2009-03-30 22:52:44 +00:00
|
|
|
#
|
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
# or more contributor license agreements. See the NOTICE file
|
|
|
|
# distributed with this work for additional information
|
|
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
|
|
# to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance
|
|
|
|
# with the License. You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing,
|
|
|
|
# software distributed under the License is distributed on an
|
|
|
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
# KIND, either express or implied. See the License for the
|
|
|
|
# specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
#
|
|
|
|
|
2011-01-27 02:53:57 +00:00
|
|
|
AC_PREREQ(2.65)
|
2015-04-03 10:37:03 +00:00
|
|
|
AC_CONFIG_MACRO_DIR([./aclocal])
|
2006-08-23 22:03:34 +00:00
|
|
|
|
2022-08-30 20:54:32 +00:00
|
|
|
AC_INIT([thrift], [0.18.0])
|
2006-08-23 22:03:34 +00:00
|
|
|
|
|
|
|
AC_CONFIG_AUX_DIR([.])
|
|
|
|
|
2021-06-05 11:57:27 +00:00
|
|
|
AM_INIT_AUTOMAKE([1.13 subdir-objects tar-ustar foreign])
|
2011-02-09 17:05:11 +00:00
|
|
|
PKG_PROG_PKG_CONFIG
|
2006-08-23 22:03:34 +00:00
|
|
|
|
2007-09-05 00:47:32 +00:00
|
|
|
AC_ARG_VAR([PY_PREFIX], [Prefix for installing Python modules.
|
|
|
|
(Normal --prefix is ignored for Python because
|
|
|
|
Python has different conventions.)
|
|
|
|
Default = "/usr"])
|
2008-03-04 21:10:29 +00:00
|
|
|
AS_IF([test "x$PY_PREFIX" = x], [PY_PREFIX="/usr"])
|
2007-09-05 00:47:32 +00:00
|
|
|
|
2008-07-11 01:26:16 +00:00
|
|
|
AC_ARG_VAR([JAVA_PREFIX], [Prefix for installing the Java lib jar.
|
2016-02-16 16:22:49 +00:00
|
|
|
Default = "/usr/local/lib"])
|
|
|
|
AS_IF([test "x$JAVA_PREFIX" != x], [JAVA_PREFIX="$JAVA_PREFIX/usr/local/lib"],
|
|
|
|
[test "x$PREFIX" != x], [JAVA_PREFIX="$PREFIX/usr/local/lib"],
|
|
|
|
[JAVA_PREFIX="/usr/local/lib"])
|
2007-12-28 18:25:33 +00:00
|
|
|
|
2010-05-12 21:31:58 +00:00
|
|
|
AC_ARG_VAR([RUBY_PREFIX], [Prefix for installing Ruby modules.
|
|
|
|
(Normal --prefix is ignored for Ruby because
|
|
|
|
Ruby has different conventions.)
|
|
|
|
Default = none, let ruby setup decide])
|
|
|
|
|
2010-05-02 22:39:31 +00:00
|
|
|
AC_ARG_VAR([PHP_PREFIX], [Prefix for installing PHP modules.
|
|
|
|
(Normal --prefix is ignored for PHP because
|
|
|
|
PHP has different conventions.)
|
|
|
|
Default = "/usr/lib/php"])
|
|
|
|
AS_IF([test "x$PHP_PREFIX" = x], [PHP_PREFIX="/usr/lib/php"])
|
|
|
|
|
2010-08-25 17:09:02 +00:00
|
|
|
AC_ARG_VAR([PHP_CONFIG_PREFIX],
|
|
|
|
[Prefix for installing PHP extension module .ini file.
|
|
|
|
(Normal --prefix is ignored for PHP because PHP has
|
|
|
|
different conventions.)
|
|
|
|
Default = "/etc/php.d"])
|
|
|
|
AS_IF([test "x$PHP_CONFIG_PREFIX" = x], [PHP_CONFIG_PREFIX="/etc/php.d"])
|
|
|
|
|
2011-05-05 13:45:26 +00:00
|
|
|
AC_ARG_VAR([INSTALLDIRS], [When installing Perl modules, specifies which
|
|
|
|
of the sets of installation directories
|
|
|
|
to choose: perl, site or vendor.
|
|
|
|
Default = "vendor"])
|
|
|
|
AS_IF([test "x$INSTALLDIRS" = x], [INSTALLDIRS="vendor"])
|
|
|
|
|
2010-06-11 17:57:32 +00:00
|
|
|
AC_ARG_VAR([PERL_PREFIX], [Prefix for installing Perl modules.
|
|
|
|
(Normal --prefix is ignored for Perl because
|
|
|
|
Perl has different conventions.)
|
2011-05-05 13:45:26 +00:00
|
|
|
Ignored, when INSTALLDIRS set to site or vendor.
|
2010-06-11 17:57:32 +00:00
|
|
|
Default = "/usr/local/lib"])
|
|
|
|
AS_IF([test "x$PERL_PREFIX" = x], [PERL_PREFIX="/usr/local"])
|
|
|
|
|
2012-03-22 21:49:10 +00:00
|
|
|
AC_ARG_VAR([D_IMPORT_PREFIX], [Prefix for installing D modules.
|
|
|
|
[INCLUDEDIR/d2]])
|
|
|
|
AS_IF([test "x$D_IMPORT_PREFIX" = x], [D_IMPORT_PREFIX="${includedir}/d2"])
|
|
|
|
|
|
|
|
AC_ARG_VAR([DMD_LIBEVENT_FLAGS], [DMD flags for linking libevent (auto-detected if not set).])
|
|
|
|
AC_ARG_VAR([DMD_OPENSSL_FLAGS], [DMD flags for linking OpenSSL (auto-detected if not set).])
|
|
|
|
|
2017-08-25 22:10:40 +00:00
|
|
|
AC_ARG_VAR([THRIFT], [Path to the thrift tool (needed for cross-compilation).])
|
|
|
|
AS_IF([test "x$THRIFT" = x], [THRIFT=`pwd`/compiler/cpp/thrift])
|
|
|
|
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CPP
|
|
|
|
AC_PROG_CXX
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
AC_PROG_MAKE_SET
|
2014-07-14 18:22:12 +00:00
|
|
|
AC_PROG_BISON(2.5)
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_PROG_YACC
|
|
|
|
AC_PROG_LEX
|
|
|
|
AM_PROG_LEX
|
2008-02-11 23:24:47 +00:00
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_MKDIR_P
|
2011-02-20 02:39:19 +00:00
|
|
|
AC_PROG_AWK
|
|
|
|
AC_PROG_RANLIB
|
2007-12-28 18:25:33 +00:00
|
|
|
|
|
|
|
AC_LANG([C++])
|
2019-01-05 02:52:48 +00:00
|
|
|
AX_CXX_COMPILE_STDCXX_11([noext], [mandatory])
|
2007-12-28 18:25:33 +00:00
|
|
|
|
2014-11-13 14:33:38 +00:00
|
|
|
AM_EXTRA_RECURSIVE_TARGETS([style])
|
|
|
|
AC_SUBST(CPPSTYLE_CMD, 'find . -type f \( -iname "*.h" -or -iname "*.cpp" -or -iname "*.cc" -or -iname "*.tcc" \) -printf "Reformatting: %h/%f\n" -exec clang-format -i {} \;')
|
2015-04-20 10:24:50 +00:00
|
|
|
# '
|
|
|
|
# The above comment is to fix editor syntax highlighting
|
2014-11-13 14:33:38 +00:00
|
|
|
|
2014-02-09 20:13:53 +00:00
|
|
|
AC_ARG_ENABLE([libs],
|
|
|
|
AS_HELP_STRING([--enable-libs], [build the Apache Thrift libraries [default=yes]]),
|
|
|
|
[], enable_libs=yes
|
|
|
|
)
|
|
|
|
have_libs=yes
|
|
|
|
if test "$enable_libs" = "no"; then
|
|
|
|
have_libs="no"
|
|
|
|
with_cpp="no"
|
|
|
|
with_c_glib="no"
|
2022-08-23 15:38:34 +00:00
|
|
|
with_cl="no"
|
2014-02-09 20:13:53 +00:00
|
|
|
with_java="no"
|
2022-04-06 08:49:09 +00:00
|
|
|
with_kotlin="no"
|
2014-02-09 20:13:53 +00:00
|
|
|
with_python="no"
|
2017-09-01 20:00:36 +00:00
|
|
|
with_py3="no"
|
2014-02-09 20:13:53 +00:00
|
|
|
with_ruby="no"
|
2014-07-27 23:25:30 +00:00
|
|
|
with_haxe="no"
|
2019-01-28 22:27:45 +00:00
|
|
|
with_netstd="no"
|
2014-02-09 20:13:53 +00:00
|
|
|
with_perl="no"
|
|
|
|
with_php="no"
|
|
|
|
with_php_extension="no"
|
2015-08-29 15:46:51 +00:00
|
|
|
with_dart="no"
|
2014-02-09 20:13:53 +00:00
|
|
|
with_erlang="no"
|
|
|
|
with_go="no"
|
|
|
|
with_d="no"
|
|
|
|
with_nodejs="no"
|
2015-04-20 10:24:50 +00:00
|
|
|
with_nodets="no"
|
2014-04-04 22:45:42 +00:00
|
|
|
with_lua="no"
|
2016-11-02 12:01:08 +00:00
|
|
|
with_rs="no"
|
2018-12-31 22:17:34 +00:00
|
|
|
with_swift="no"
|
2014-02-09 20:13:53 +00:00
|
|
|
fi
|
|
|
|
|
2010-08-31 16:51:21 +00:00
|
|
|
AX_THRIFT_LIB(cpp, [C++], yes)
|
|
|
|
have_cpp=no
|
|
|
|
if test "$with_cpp" = "yes"; then
|
2019-05-04 12:20:59 +00:00
|
|
|
AX_BOOST_BASE([1.56.0])
|
2011-06-09 19:14:22 +00:00
|
|
|
if test "x$succeeded" = "xyes" ; then
|
2014-12-20 11:19:00 +00:00
|
|
|
AC_SUBST([BOOST_LIB_DIR], [$(echo "$BOOST_LDFLAGS" | sed -e 's/^\-L//')])
|
2015-04-24 13:52:44 +00:00
|
|
|
AC_SUBST([BOOST_CHRONO_LDADD], [$(echo "$BOOST_LIB_DIR/libboost_chrono.a")])
|
2015-07-28 17:31:27 +00:00
|
|
|
AC_SUBST([BOOST_FILESYSTEM_LDADD], [$(echo "$BOOST_LIB_DIR/libboost_filesystem.a")])
|
2015-04-24 13:52:44 +00:00
|
|
|
AC_SUBST([BOOST_SYSTEM_LDADD], [$(echo "$BOOST_LIB_DIR/libboost_system.a")])
|
2014-12-20 11:19:00 +00:00
|
|
|
AC_SUBST([BOOST_TEST_LDADD], [$(echo "$BOOST_LIB_DIR/libboost_unit_test_framework.a")])
|
2015-04-24 13:52:44 +00:00
|
|
|
AC_SUBST([BOOST_THREAD_LDADD], [$(echo "$BOOST_LIB_DIR/libboost_thread.a")])
|
2010-08-31 16:51:28 +00:00
|
|
|
have_cpp="yes"
|
|
|
|
fi
|
2010-08-31 16:51:21 +00:00
|
|
|
|
2018-12-28 13:50:58 +00:00
|
|
|
AX_LIB_EVENT([2.0])
|
2010-08-31 16:51:21 +00:00
|
|
|
have_libevent=$success
|
|
|
|
|
|
|
|
AX_LIB_ZLIB([1.2.3])
|
|
|
|
have_zlib=$success
|
2013-03-07 16:32:48 +00:00
|
|
|
|
2014-12-07 12:45:33 +00:00
|
|
|
AX_THRIFT_LIB(qt5, [Qt5], yes)
|
|
|
|
have_qt5=no
|
|
|
|
qt_reduce_reloc=""
|
|
|
|
if test "$with_qt5" = "yes"; then
|
|
|
|
PKG_CHECK_MODULES([QT5], [Qt5Core >= 5.0, Qt5Network >= 5.0],
|
|
|
|
[have_qt5=yes;qt_reduce_reloc=`$PKG_CONFIG --variable=qt_config Qt5Core | grep "reduce_relocations"`],
|
|
|
|
[have_qt5=no])
|
|
|
|
fi
|
|
|
|
if test "$have_qt5" = "yes"; then
|
2014-12-23 17:18:58 +00:00
|
|
|
AC_PATH_PROGS([QT5_MOC], [moc-qt5 moc], "fail")
|
|
|
|
if test "$QT5_MOC" = "fail"; then
|
|
|
|
have_qt5=no
|
|
|
|
fi
|
2014-12-07 12:45:33 +00:00
|
|
|
fi
|
2010-08-31 16:51:21 +00:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL([WITH_CPP], [test "$have_cpp" = "yes"])
|
|
|
|
AM_CONDITIONAL([AMX_HAVE_LIBEVENT], [test "$have_libevent" = "yes"])
|
|
|
|
AM_CONDITIONAL([AMX_HAVE_ZLIB], [test "$have_zlib" = "yes"])
|
2014-12-07 12:45:33 +00:00
|
|
|
AM_CONDITIONAL([AMX_HAVE_QT5], [test "$have_qt5" = "yes"])
|
|
|
|
AM_CONDITIONAL([QT5_REDUCE_RELOCATIONS], [test "x$qt_reduce_reloc" != "x"])
|
2007-12-28 18:25:33 +00:00
|
|
|
|
2012-05-01 11:19:53 +00:00
|
|
|
AX_THRIFT_LIB(c_glib, [C (GLib)], yes)
|
2010-10-27 12:30:11 +00:00
|
|
|
if test "$with_c_glib" = "yes"; then
|
|
|
|
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.0], have_glib2=yes, have_glib2=no)
|
|
|
|
PKG_CHECK_MODULES([GOBJECT], [gobject-2.0 >= 2.0], have_gobject2=yes, have_gobject2=no)
|
|
|
|
if test "$have_glib2" = "yes" -a "$have_gobject2" = "yes" ; then
|
2019-01-22 19:16:39 +00:00
|
|
|
AC_PATH_PROG([GSETTINGS], [gsettings])
|
2010-10-27 12:30:11 +00:00
|
|
|
have_c_glib="yes"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(WITH_C_GLIB, [test "$have_glib2" = "yes" -a "$have_gobject2" = "yes"])
|
|
|
|
|
2019-01-24 22:45:07 +00:00
|
|
|
# echo "OpenSSL check"
|
2017-02-13 20:25:41 +00:00
|
|
|
if test "$have_cpp" = "yes" -o "$have_c_glib" = "yes"; then
|
2019-01-24 22:45:07 +00:00
|
|
|
# echo "Have cpp or c so we check for OpenSSL"
|
2017-04-04 17:04:29 +00:00
|
|
|
AX_CHECK_OPENSSL()
|
2017-02-13 20:25:41 +00:00
|
|
|
fi
|
|
|
|
|
2008-02-06 22:10:12 +00:00
|
|
|
|
2008-03-02 07:00:22 +00:00
|
|
|
AX_THRIFT_LIB(java, [Java], yes)
|
|
|
|
if test "$with_java" = "yes"; then
|
2009-03-13 21:25:29 +00:00
|
|
|
AX_JAVAC_AND_JAVA
|
2010-08-12 00:27:14 +00:00
|
|
|
AC_PATH_PROG([ANT], [ant])
|
2022-04-19 02:18:58 +00:00
|
|
|
AC_PATH_PROG([GRADLE], [gradle])
|
2011-05-25 21:07:29 +00:00
|
|
|
AX_CHECK_ANT_VERSION($ANT, 1.7)
|
2009-05-22 19:50:33 +00:00
|
|
|
AC_SUBST(CLASSPATH)
|
2009-05-12 23:16:55 +00:00
|
|
|
AC_SUBST(ANT_FLAGS)
|
2018-01-24 15:30:13 +00:00
|
|
|
AC_SUBST(GRADLE_OPTS)
|
2022-04-19 02:18:58 +00:00
|
|
|
if test "x$JAVA" != "x" && test "x$JAVAC" != "x" && test "x$ANT" != "x" && test "x$GRADLE" != "x" ; then
|
2010-08-31 16:51:20 +00:00
|
|
|
have_java="yes"
|
|
|
|
fi
|
2008-03-02 07:00:22 +00:00
|
|
|
fi
|
2010-08-31 16:51:20 +00:00
|
|
|
AM_CONDITIONAL([WITH_JAVA], [test "$have_java" = "yes"])
|
2008-02-06 22:10:12 +00:00
|
|
|
|
2022-04-06 08:49:09 +00:00
|
|
|
AX_THRIFT_LIB(kotlin, [Kotlin], yes)
|
|
|
|
if test "$with_kotlin" = "yes"; then
|
|
|
|
AX_JAVAC_AND_JAVA
|
2022-10-08 06:06:44 +00:00
|
|
|
AC_PATH_PROG([GRADLE], [gradle])
|
2022-04-06 08:49:09 +00:00
|
|
|
AC_SUBST(CLASSPATH)
|
|
|
|
AC_SUBST(GRADLE_OPTS)
|
2022-10-08 06:06:44 +00:00
|
|
|
if test "x$JAVA" != "x" && test "x$JAVAC" != "x" && "x$GRADLE" != "x" ; then
|
2022-04-06 08:49:09 +00:00
|
|
|
have_kotlin="yes"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL([WITH_KOTLIN], [test "$have_kotlin" = "yes"])
|
|
|
|
|
2008-03-04 07:09:12 +00:00
|
|
|
AX_THRIFT_LIB(erlang, [Erlang], yes)
|
|
|
|
if test "$with_erlang" = "yes"; then
|
2010-05-18 16:52:48 +00:00
|
|
|
AC_ERLANG_PATH_ERL
|
|
|
|
AC_ERLANG_PATH_ERLC
|
2019-04-18 14:27:46 +00:00
|
|
|
AC_PATH_PROG([REBAR], [rebar3])
|
2010-08-24 20:45:24 +00:00
|
|
|
if test -n "$ERLC" ; then
|
|
|
|
AC_ERLANG_SUBST_LIB_DIR
|
|
|
|
# Install into the detected Erlang directory instead of $libdir/erlang/lib
|
|
|
|
ERLANG_INSTALL_LIB_DIR="$ERLANG_LIB_DIR"
|
|
|
|
AC_ERLANG_SUBST_INSTALL_LIB_SUBDIR(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
|
|
|
|
fi
|
2015-11-14 09:08:33 +00:00
|
|
|
if test -n "$ERL" -a -n "$ERLC" && test "x$REBAR" != "x" ; then
|
2010-08-31 16:51:20 +00:00
|
|
|
have_erlang="yes"
|
2015-07-28 21:12:10 +00:00
|
|
|
|
2010-08-31 16:51:20 +00:00
|
|
|
fi
|
2008-03-04 07:09:12 +00:00
|
|
|
fi
|
2010-08-31 16:51:20 +00:00
|
|
|
AM_CONDITIONAL(WITH_ERLANG, [test "$have_erlang" = "yes"])
|
2008-03-04 07:09:12 +00:00
|
|
|
|
2014-01-26 10:44:27 +00:00
|
|
|
AX_THRIFT_LIB(nodejs, [Nodejs], yes)
|
|
|
|
have_nodejs=no
|
|
|
|
if test "$with_nodejs" = "yes"; then
|
|
|
|
AC_PATH_PROGS([NODEJS], [nodejs node])
|
|
|
|
AC_PATH_PROG([NPM], [npm])
|
|
|
|
if test "x$NODEJS" != "x" -a "x$NPM" != "x"; then
|
|
|
|
have_nodejs="yes"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(WITH_NODEJS, [test "$have_nodejs" = "yes"])
|
|
|
|
AM_CONDITIONAL(HAVE_NPM, [test "x$NPM" != "x"])
|
|
|
|
|
2015-04-20 10:24:50 +00:00
|
|
|
AX_THRIFT_LIB(nodets, [Nodets], yes)
|
|
|
|
have_nodets=no
|
|
|
|
if test "$with_nodets" = "yes"; then
|
|
|
|
AC_PATH_PROGS([NODETS], [nodets node])
|
|
|
|
AC_PATH_PROG([NPM], [npm])
|
|
|
|
if test "x$NODETS" != "x" -a "x$NPM" != "x"; then
|
|
|
|
have_nodets="yes"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(WITH_NODETS, [test "$have_nodets" = "yes"])
|
|
|
|
AM_CONDITIONAL(HAVE_NPM, [test "x$NPM" != "x"])
|
|
|
|
|
2014-04-04 22:45:42 +00:00
|
|
|
AX_THRIFT_LIB(lua, [Lua], yes)
|
|
|
|
have_lua=no
|
|
|
|
if test "$with_lua" = "yes"; then
|
2015-02-08 13:43:15 +00:00
|
|
|
AX_PROG_LUA(5.2,, have_lua="yes", have_lua="no")
|
|
|
|
if test "$have_lua" = "yes"; then
|
|
|
|
AX_LUA_HEADERS(, have_lua="no")
|
|
|
|
AX_LUA_LIBS(, have_lua="no")
|
2014-04-04 22:45:42 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(WITH_LUA, [test "$have_lua" = "yes"])
|
|
|
|
|
2016-01-12 10:20:05 +00:00
|
|
|
# Find python regardless of with_python value, because it's needed by make cross
|
|
|
|
AM_PATH_PYTHON(2.6,, :)
|
2010-08-31 16:51:20 +00:00
|
|
|
AX_THRIFT_LIB(python, [Python], yes)
|
|
|
|
if test "$with_python" = "yes"; then
|
2016-09-04 09:49:21 +00:00
|
|
|
if test -n "$PYTHON"; then
|
2010-08-31 16:51:20 +00:00
|
|
|
have_python="yes"
|
|
|
|
fi
|
2016-09-04 09:49:21 +00:00
|
|
|
AC_PATH_PROG([TRIAL], [trial])
|
|
|
|
if test -n "$TRIAL"; then
|
|
|
|
have_trial="yes"
|
|
|
|
fi
|
2008-06-11 01:16:37 +00:00
|
|
|
fi
|
2010-08-31 16:51:20 +00:00
|
|
|
AM_CONDITIONAL(WITH_PYTHON, [test "$have_python" = "yes"])
|
2016-09-04 09:49:21 +00:00
|
|
|
AM_CONDITIONAL(WITH_TWISTED_TEST, [test "$have_trial" = "yes"])
|
2008-06-11 01:16:37 +00:00
|
|
|
|
2015-11-06 12:24:24 +00:00
|
|
|
# Find "python3" executable.
|
|
|
|
# It's distro specific and far from ideal but needed to cross test py2-3 at once.
|
2016-09-04 09:49:21 +00:00
|
|
|
# TODO: find "python2" if it's 3.x
|
2017-09-01 20:00:36 +00:00
|
|
|
have_py3="no"
|
2019-01-02 13:28:47 +00:00
|
|
|
AX_THRIFT_LIB(py3, [Py3], yes)
|
|
|
|
if test "$with_py3" = "yes"; then
|
2020-03-10 21:39:18 +00:00
|
|
|
# if $PYTHON is 2.x then search for python 3. otherwise, $PYTHON is already 3.x
|
|
|
|
if $PYTHON --version 2>&1 | grep -q "Python 2"; then
|
|
|
|
AC_PATH_PROGS([PYTHON3], [python3 python3.8 python38 python3.7 python37 python3.6 python36 python3.5 python35 python3.4 python34])
|
2019-01-02 13:28:47 +00:00
|
|
|
if test -n "$PYTHON3"; then
|
|
|
|
have_py3="yes"
|
|
|
|
fi
|
2020-03-10 21:39:18 +00:00
|
|
|
elif $PYTHON --version 2>&1 | grep -q "Python 3"; then
|
|
|
|
have_py3="yes"
|
|
|
|
PYTHON3=$PYTHON
|
2016-09-04 09:49:21 +00:00
|
|
|
fi
|
2015-11-06 12:24:24 +00:00
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(WITH_PY3, [test "$have_py3" = "yes"])
|
|
|
|
|
2009-02-01 04:47:30 +00:00
|
|
|
AX_THRIFT_LIB(perl, [Perl], yes)
|
|
|
|
if test "$with_perl" = "yes"; then
|
|
|
|
AC_PATH_PROG([PERL], [perl])
|
2010-08-31 16:51:22 +00:00
|
|
|
if test -n "$PERL" ; then
|
|
|
|
AC_PROG_PERL_MODULES([Bit::Vector], success="yes", success="no")
|
|
|
|
have_perl_bit_vector="$success"
|
2014-01-15 12:55:09 +00:00
|
|
|
AC_PROG_PERL_MODULES([Class::Accessor], success="yes", success="no")
|
|
|
|
have_perl_class_accessor="$success"
|
2010-08-19 05:23:59 +00:00
|
|
|
fi
|
2010-08-31 16:51:22 +00:00
|
|
|
if test -n "$PERL" -a "$have_perl_bit_vector" = "yes" ; then
|
2014-01-15 12:55:09 +00:00
|
|
|
if test -n "$PERL" -a "$have_perl_class_accessor" = "yes" ; then
|
|
|
|
have_perl="yes"
|
|
|
|
fi
|
2010-08-31 16:51:20 +00:00
|
|
|
fi
|
2009-02-01 04:47:30 +00:00
|
|
|
fi
|
2010-08-31 16:51:20 +00:00
|
|
|
AM_CONDITIONAL(WITH_PERL, [test "$have_perl" = "yes"])
|
2009-02-01 04:47:30 +00:00
|
|
|
|
2010-05-02 22:39:31 +00:00
|
|
|
AX_THRIFT_LIB(php, [PHP], yes)
|
|
|
|
if test "$with_php" = "yes"; then
|
|
|
|
AC_PATH_PROG([PHP], [php])
|
2010-08-31 16:51:20 +00:00
|
|
|
if test -n "$PHP" ; then
|
|
|
|
have_php="yes"
|
|
|
|
fi
|
2010-05-02 22:39:31 +00:00
|
|
|
fi
|
2010-08-31 16:51:20 +00:00
|
|
|
AM_CONDITIONAL(WITH_PHP, [test "$have_php" = "yes"])
|
2010-05-02 22:39:31 +00:00
|
|
|
|
2010-08-25 17:09:02 +00:00
|
|
|
AX_THRIFT_LIB(php_extension, [PHP_EXTENSION], yes)
|
|
|
|
if test "$with_php_extension" = "yes"; then
|
2014-07-10 22:42:30 +00:00
|
|
|
if test -f "lib/php/src/ext/thrift_protocol/configure"; then
|
|
|
|
AC_PATH_PROG([PHP_CONFIG], [php-config])
|
|
|
|
if test -n "$PHP_CONFIG" ; then
|
|
|
|
AC_CONFIG_SUBDIRS([lib/php/src/ext/thrift_protocol])
|
|
|
|
have_php_extension="yes"
|
|
|
|
fi
|
2010-10-05 16:45:50 +00:00
|
|
|
fi
|
2010-08-25 17:09:02 +00:00
|
|
|
fi
|
2010-10-05 16:45:50 +00:00
|
|
|
AM_CONDITIONAL(WITH_PHP_EXTENSION, [test "$have_php_extension" = "yes"])
|
2010-08-25 17:09:02 +00:00
|
|
|
|
2015-08-29 15:46:51 +00:00
|
|
|
AX_THRIFT_LIB(dart, [DART], yes)
|
|
|
|
if test "$with_dart" = "yes"; then
|
|
|
|
AC_PATH_PROG([DART], [dart])
|
|
|
|
AC_PATH_PROG([DARTPUB], [pub])
|
|
|
|
if test "x$DART" != "x" -a "x$DARTPUB" != "x"; then
|
|
|
|
have_dart="yes"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(WITH_DART, [test "$have_dart" = "yes"])
|
|
|
|
|
2008-07-08 00:47:49 +00:00
|
|
|
AX_THRIFT_LIB(ruby, [Ruby], yes)
|
2010-08-31 16:51:20 +00:00
|
|
|
have_ruby=no
|
2008-07-08 00:47:49 +00:00
|
|
|
if test "$with_ruby" = "yes"; then
|
|
|
|
AC_PATH_PROG([RUBY], [ruby])
|
2011-08-30 19:12:10 +00:00
|
|
|
AC_PATH_PROG([BUNDLER], [bundle])
|
2014-01-23 03:20:21 +00:00
|
|
|
if test "x$RUBY" != "x" -a "x$BUNDLER" != "x"; then
|
2010-08-31 16:51:20 +00:00
|
|
|
have_ruby="yes"
|
|
|
|
fi
|
2008-07-08 00:47:49 +00:00
|
|
|
fi
|
2010-08-31 16:51:20 +00:00
|
|
|
AM_CONDITIONAL(WITH_RUBY, [test "$have_ruby" = "yes"])
|
2011-08-30 19:12:10 +00:00
|
|
|
AM_CONDITIONAL(HAVE_BUNDLER, [test "x$BUNDLER" != "x"])
|
2009-04-07 16:31:04 +00:00
|
|
|
|
2011-02-20 02:39:19 +00:00
|
|
|
AX_THRIFT_LIB(go, [Go], yes)
|
|
|
|
if test "$with_go" = "yes"; then
|
2013-06-18 20:25:07 +00:00
|
|
|
AC_PATH_PROG([GO], [go])
|
|
|
|
if [[ -x "$GO" ]] ; then
|
2015-03-18 21:38:43 +00:00
|
|
|
AS_IF([test -n "$GO"],[
|
2017-07-17 16:40:42 +00:00
|
|
|
ax_go_version="1.4"
|
2017-07-23 13:21:44 +00:00
|
|
|
ax_go17_version="1.7"
|
2022-04-19 21:31:39 +00:00
|
|
|
ax_go118_version="1.18"
|
2015-03-18 21:38:43 +00:00
|
|
|
|
|
|
|
AC_MSG_CHECKING([for Go version])
|
|
|
|
golang_version=`$GO version 2>&1 | $SED -e 's/\(go \)\(version \)\(go\)\(@<:@0-9@:>@.@<:@0-9@:>@.@<:@0-9@:>@\)\(@<:@\*@:>@*\).*/\4/'`
|
|
|
|
AC_MSG_RESULT($golang_version)
|
|
|
|
AC_SUBST([golang_version],[$golang_version])
|
|
|
|
AX_COMPARE_VERSION([$ax_go_version],[le],[$golang_version],[
|
|
|
|
:
|
|
|
|
have_go="yes"
|
|
|
|
],[
|
|
|
|
:
|
|
|
|
have_go="no"
|
|
|
|
])
|
2017-07-23 13:21:44 +00:00
|
|
|
AX_COMPARE_VERSION([$golang_version],[lt],[$ax_go17_version],[
|
|
|
|
:
|
|
|
|
go_version_lt_17="yes"
|
|
|
|
],[
|
|
|
|
:
|
|
|
|
go_version_lt_17="no"
|
|
|
|
])
|
2022-04-19 21:31:39 +00:00
|
|
|
AX_COMPARE_VERSION([$golang_version],[ge],[$ax_go118_version],[
|
|
|
|
:
|
|
|
|
go_version_ge_118="yes"
|
|
|
|
],[
|
|
|
|
:
|
|
|
|
go_version_ge_118="no"
|
|
|
|
])
|
2015-03-18 21:38:43 +00:00
|
|
|
],[
|
|
|
|
AC_MSG_WARN([could not find Go ])
|
|
|
|
have_go="no"
|
|
|
|
])
|
2011-02-20 02:39:19 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(WITH_GO, [test "$have_go" = "yes"])
|
2017-07-23 13:21:44 +00:00
|
|
|
AM_CONDITIONAL([GOVERSION_LT_17], [test "$go_version_lt_17" = "yes"])
|
2022-04-19 21:31:39 +00:00
|
|
|
AM_CONDITIONAL([GOVERSION_GE_118], [test "$go_version_ge_118" = "yes"])
|
2011-02-20 02:39:19 +00:00
|
|
|
|
2018-12-31 22:17:34 +00:00
|
|
|
AX_THRIFT_LIB(swift, [Swift], yes)
|
|
|
|
have_swift="no"
|
|
|
|
if test "$with_swift" = "yes"; then
|
|
|
|
AC_PATH_PROG([SWIFT], [swift])
|
|
|
|
if test "x$SWIFT" != "x" -a "x$SWIFT" != "x"; then
|
|
|
|
have_swift="yes"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL([WITH_SWIFT], [test "$have_swift" = "yes"])
|
|
|
|
|
2016-11-02 12:01:08 +00:00
|
|
|
AX_THRIFT_LIB(rs, [Rust], yes)
|
|
|
|
have_rs="no"
|
|
|
|
if test "$with_rs" = "yes"; then
|
|
|
|
AC_PATH_PROG([CARGO], [cargo])
|
|
|
|
AC_PATH_PROG([RUSTC], [rustc])
|
|
|
|
if [[ -x "$CARGO" ]] && [[ -x "$RUSTC" ]]; then
|
|
|
|
min_rustc_version="1.13"
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for rustc version])
|
|
|
|
rustc_version=`$RUSTC --version 2>&1 | $SED -e 's/\(rustc \)\([0-9]\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\2.\3/'`
|
|
|
|
AC_MSG_RESULT($rustc_version)
|
|
|
|
AC_SUBST([rustc_version],[$rustc_version])
|
|
|
|
|
|
|
|
AX_COMPARE_VERSION([$min_rustc_version],[le],[$rustc_version],[
|
|
|
|
:
|
|
|
|
have_rs="yes"
|
|
|
|
],[
|
|
|
|
:
|
|
|
|
have_rs="no"
|
|
|
|
])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(WITH_RS, [test "$have_rs" = "yes"])
|
2012-03-22 21:49:10 +00:00
|
|
|
|
2022-08-23 15:38:34 +00:00
|
|
|
AX_THRIFT_LIB(cl, [Common Lisp], yes)
|
|
|
|
have_cl="no"
|
|
|
|
if test "$with_cl" = "yes"; then
|
|
|
|
AC_PATH_PROG([SBCL], [sbcl])
|
|
|
|
if test "x$SBCL" != "x"; then
|
|
|
|
have_cl="yes"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(WITH_CL, [test "$have_cl" = "yes"])
|
|
|
|
|
2014-07-27 23:25:30 +00:00
|
|
|
AX_THRIFT_LIB(haxe, [Haxe], yes)
|
|
|
|
if test "$with_haxe" = "yes"; then
|
|
|
|
AC_PATH_PROG([HAXE], [haxe])
|
|
|
|
if [[ -x "$HAXE" ]] ; then
|
2021-02-25 08:42:52 +00:00
|
|
|
AX_PROG_HAXE_VERSION( [4.2.1], have_haxe="yes", have_haxe="no")
|
2014-07-27 23:25:30 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(WITH_HAXE, [test "$have_haxe" = "yes"])
|
|
|
|
|
|
|
|
|
2019-10-19 16:27:35 +00:00
|
|
|
AX_THRIFT_LIB(netstd, [.NET Core], yes)
|
|
|
|
if test "$with_netstd" = "yes"; then
|
2016-09-15 00:18:48 +00:00
|
|
|
AC_PATH_PROG([DOTNETCORE], [dotnet])
|
|
|
|
if [[ -x "$DOTNETCORE" ]] ; then
|
2019-12-06 22:43:08 +00:00
|
|
|
AX_PROG_DOTNETCORE_VERSION( [3.1.0], have_netstd="yes", have_netstd="no")
|
2016-09-15 00:18:48 +00:00
|
|
|
fi
|
|
|
|
fi
|
2019-10-19 16:27:35 +00:00
|
|
|
AM_CONDITIONAL(WITH_DOTNET, [test "$have_netstd" = "yes"])
|
2016-09-15 00:18:48 +00:00
|
|
|
|
|
|
|
|
2012-03-22 21:49:10 +00:00
|
|
|
AX_THRIFT_LIB(d, [D], yes)
|
|
|
|
if test "$with_d" = "yes"; then
|
|
|
|
AX_DMD
|
|
|
|
AC_SUBST(DMD)
|
|
|
|
if test "x$DMD" != "x"; then
|
|
|
|
have_d="yes"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Determine actual name of the generated D library for use in the command line
|
|
|
|
# when compiling tests. This is needed because the -l<lib> syntax doesn't work
|
|
|
|
# with OPTLINK (Windows).
|
|
|
|
lib_prefix=lib
|
|
|
|
lib_suffix=a
|
|
|
|
case "$host_os" in
|
|
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
|
|
|
lib_prefix=""
|
|
|
|
lib_suffix=lib
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
D_LIB_NAME="${lib_prefix}thriftd.${lib_suffix}"
|
|
|
|
AC_SUBST(D_LIB_NAME)
|
|
|
|
D_EVENT_LIB_NAME="${lib_prefix}thriftd-event.${lib_suffix}"
|
|
|
|
AC_SUBST(D_EVENT_LIB_NAME)
|
|
|
|
D_SSL_LIB_NAME="${lib_prefix}thriftd-ssl.${lib_suffix}"
|
|
|
|
AC_SUBST(D_SSL_LIB_NAME)
|
|
|
|
|
|
|
|
if test "$have_d" = "yes"; then
|
|
|
|
AX_CHECK_D_MODULE(deimos.event2.event)
|
|
|
|
have_deimos_event2=$success
|
|
|
|
|
|
|
|
with_d_event_tests="no"
|
|
|
|
if test "$have_deimos_event2" = "yes"; then
|
|
|
|
if test "x$DMD_LIBEVENT_FLAGS" = "x"; then
|
|
|
|
if test "$dmd_optlink" = "yes"; then
|
|
|
|
AC_MSG_WARN([D libevent interface found, but cannot auto-detect \
|
|
|
|
linker flags for OPTLINK. Please set DMD_LIBEVENT_FLAGS manually.])
|
|
|
|
else
|
|
|
|
AX_LIB_EVENT([2.0])
|
|
|
|
if test "$success" = "yes"; then
|
2018-01-29 19:51:24 +00:00
|
|
|
DMD_LIBEVENT_FLAGS=$(echo "-fuse-ld=gold $LIBEVENT_LDFLAGS $LIBEVENT_LIBS" | \
|
2012-03-22 21:49:10 +00:00
|
|
|
sed -e 's/^ *//g;s/ *$//g;s/^\(.\)/-L\1/g;s/ */ -L/g')
|
|
|
|
with_d_event_tests="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([D libevent interface present, but libevent library not found.])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
with_d_event_tests="yes"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AX_CHECK_D_MODULE(deimos.openssl.ssl)
|
|
|
|
have_deimos_openssl=$success
|
|
|
|
|
|
|
|
with_d_ssl_tests="no"
|
|
|
|
if test "$have_deimos_openssl" = "yes"; then
|
|
|
|
if test "x$DMD_OPENSSL_FLAGS" = "x"; then
|
|
|
|
if test "$dmd_optlink" = "yes"; then
|
|
|
|
AC_MSG_WARN([D OpenSSL interface found, but cannot auto-detect \
|
|
|
|
linker flags for OPTLINK. Please set DMD_OPENSSL_FLAGS manually.])
|
|
|
|
else
|
|
|
|
AX_CHECK_OPENSSL([with_d_ssl_tests="yes"])
|
|
|
|
if test "$with_d_ssl_tests" = "yes"; then
|
2018-01-29 19:51:24 +00:00
|
|
|
DMD_OPENSSL_FLAGS=$(echo "-fuse-ld=gold $OPENSSL_LDFLAGS $OPENSSL_LIBS" | \
|
2012-03-22 21:49:10 +00:00
|
|
|
sed -e 's/^ *//g;s/ *$//g;s/^\(.\)/-L\1/g;s/ */ -L/g')
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([D OpenSSL interface present, but OpenSSL library not found.])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
with_d_ssl_tests="yes"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(WITH_D, [test "$have_d" = "yes"])
|
|
|
|
AM_CONDITIONAL(DMD_OPTLINK, [test "$dmd_optlink" = "yes"])
|
|
|
|
AC_SUBST(DMD_OF_DIRSEP, "$dmd_of_dirsep")
|
|
|
|
AM_CONDITIONAL(HAVE_DEIMOS_EVENT2, [test "$have_deimos_event2" = "yes"])
|
|
|
|
AM_CONDITIONAL(WITH_D_EVENT_TESTS, [test "$with_d_event_tests" = "yes"])
|
|
|
|
AC_SUBST(DMD_LIBEVENT_FLAGS)
|
|
|
|
AM_CONDITIONAL(HAVE_DEIMOS_OPENSSL, [test "$have_deimos_openssl" = "yes"])
|
|
|
|
AM_CONDITIONAL(WITH_D_SSL_TESTS, [test "$with_d_ssl_tests" = "yes"])
|
|
|
|
AC_SUBST(DMD_OPENSSL_FLAGS)
|
|
|
|
|
2014-01-26 10:51:26 +00:00
|
|
|
AC_ARG_ENABLE([tests],
|
|
|
|
AS_HELP_STRING([--enable-tests], [build tests [default=yes]]),
|
|
|
|
[], enable_tests=yes
|
|
|
|
)
|
2011-09-14 03:43:49 +00:00
|
|
|
have_tests=yes
|
2014-01-26 10:51:26 +00:00
|
|
|
if test "$enable_tests" = "no"; then
|
2011-09-14 03:43:49 +00:00
|
|
|
have_tests="no"
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(WITH_TESTS, [test "$have_tests" = "yes"])
|
|
|
|
|
2014-01-26 10:51:26 +00:00
|
|
|
AC_ARG_ENABLE([tutorial],
|
|
|
|
AS_HELP_STRING([--enable-tutorial], [build tutorial [default=yes]]),
|
|
|
|
[], enable_tutorial=yes
|
|
|
|
)
|
|
|
|
have_tutorial=yes
|
|
|
|
if test "$enable_tutorial" = "no"; then
|
|
|
|
have_tutorial="no"
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(WITH_TUTORIAL, [test "$have_tutorial" = "yes"])
|
|
|
|
|
2011-12-13 00:36:01 +00:00
|
|
|
AM_CONDITIONAL(MINGW, false)
|
|
|
|
case "${host_os}" in
|
|
|
|
*mingw*)
|
|
|
|
mingw32_support="yes"
|
|
|
|
AC_CHECK_HEADER(windows.h)
|
|
|
|
AM_CONDITIONAL(MINGW, true)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_ISC_POSIX
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_C_VOLATILE
|
|
|
|
|
|
|
|
AC_HEADER_STDBOOL
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_HEADER_TIME
|
2011-02-20 02:39:19 +00:00
|
|
|
AC_HEADER_SYS_WAIT
|
|
|
|
AC_TYPE_SIGNAL
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_CHECK_HEADERS([arpa/inet.h])
|
|
|
|
AC_CHECK_HEADERS([fcntl.h])
|
|
|
|
AC_CHECK_HEADERS([inttypes.h])
|
2022-05-23 16:08:47 +00:00
|
|
|
AC_CHECK_HEADERS([libintl.h])
|
2008-02-11 23:24:47 +00:00
|
|
|
AC_CHECK_HEADERS([limits.h])
|
2022-05-23 16:08:47 +00:00
|
|
|
AC_CHECK_HEADERS([malloc.h])
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_CHECK_HEADERS([netdb.h])
|
|
|
|
AC_CHECK_HEADERS([netinet/in.h])
|
2022-05-23 16:08:47 +00:00
|
|
|
AC_CHECK_HEADERS([openssl/rand.h])
|
|
|
|
AC_CHECK_HEADERS([openssl/ssl.h])
|
|
|
|
AC_CHECK_HEADERS([openssl/x509v3.h])
|
|
|
|
AC_CHECK_HEADERS([poll.h])
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_CHECK_HEADERS([pthread.h])
|
2022-05-23 16:08:47 +00:00
|
|
|
AC_CHECK_HEADERS([sched.h])
|
2018-03-16 20:07:42 +00:00
|
|
|
AC_CHECK_HEADERS([signal.h])
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_CHECK_HEADERS([stddef.h])
|
2022-05-23 16:08:47 +00:00
|
|
|
AC_CHECK_HEADERS([stdint.h])
|
2008-02-19 22:47:29 +00:00
|
|
|
AC_CHECK_HEADERS([stdlib.h])
|
2022-05-23 16:08:47 +00:00
|
|
|
AC_CHECK_HEADERS([strings.h])
|
2018-01-21 17:43:49 +00:00
|
|
|
AC_CHECK_HEADERS([sys/ioctl.h])
|
2022-05-23 16:08:47 +00:00
|
|
|
AC_CHECK_HEADERS([sys/param.h])
|
|
|
|
AC_CHECK_HEADERS([sys/poll.h])
|
|
|
|
AC_CHECK_HEADERS([sys/resource.h])
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_CHECK_HEADERS([sys/socket.h])
|
|
|
|
AC_CHECK_HEADERS([sys/time.h])
|
2011-09-05 19:15:53 +00:00
|
|
|
AC_CHECK_HEADERS([sys/un.h])
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_CHECK_HEADERS([unistd.h])
|
2013-03-15 18:49:23 +00:00
|
|
|
AC_CHECK_HEADERS([wchar.h])
|
2007-12-28 18:25:33 +00:00
|
|
|
|
|
|
|
AC_CHECK_LIB(pthread, pthread_create)
|
2009-05-21 02:28:19 +00:00
|
|
|
dnl NOTE(dreiss): I haven't been able to find any really solid docs
|
|
|
|
dnl on what librt is and how it fits into various Unix systems.
|
|
|
|
dnl My best guess is that it is where glibc stashes its implementation
|
|
|
|
dnl of the POSIX Real-Time Extensions. This seems necessary on Linux,
|
|
|
|
dnl and we haven't yet found a system where this is a problem.
|
|
|
|
AC_CHECK_LIB(rt, clock_gettime)
|
2009-10-21 05:51:28 +00:00
|
|
|
AC_CHECK_LIB(socket, setsockopt)
|
2011-09-09 06:19:35 +00:00
|
|
|
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_TYPE_INT16_T
|
|
|
|
AC_TYPE_INT32_T
|
|
|
|
AC_TYPE_INT64_T
|
|
|
|
AC_TYPE_INT8_T
|
|
|
|
AC_TYPE_MODE_T
|
|
|
|
AC_TYPE_OFF_T
|
|
|
|
AC_TYPE_SIZE_T
|
2008-04-21 18:07:43 +00:00
|
|
|
AC_TYPE_SSIZE_T
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_TYPE_UINT16_T
|
|
|
|
AC_TYPE_UINT32_T
|
|
|
|
AC_TYPE_UINT64_T
|
|
|
|
AC_TYPE_UINT8_T
|
2017-09-01 20:00:36 +00:00
|
|
|
AC_CHECK_TYPES([ptrdiff_t], [], [echo "ptrdiff_t not found or g++ not installed - cannot continue" && exit 1])
|
2007-12-28 18:25:33 +00:00
|
|
|
|
2008-02-11 23:24:47 +00:00
|
|
|
AC_STRUCT_TM
|
|
|
|
|
2009-05-21 02:28:16 +00:00
|
|
|
dnl NOTE(dreiss): AI_ADDRCONFIG is not defined on OpenBSD.
|
|
|
|
AC_CHECK_DECL([AI_ADDRCONFIG], [],
|
|
|
|
[AC_DEFINE([AI_ADDRCONFIG], 0,
|
|
|
|
[Define if the AI_ADDRCONFIG symbol is unavailable])],
|
|
|
|
[
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <netdb.h>
|
|
|
|
])
|
|
|
|
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_FUNC_ALLOCA
|
2010-10-27 12:30:11 +00:00
|
|
|
AC_FUNC_FORK
|
2017-02-15 19:12:37 +00:00
|
|
|
AC_FUNC_MALLOC
|
2008-02-11 23:24:47 +00:00
|
|
|
AC_FUNC_MEMCMP
|
2017-02-15 19:12:37 +00:00
|
|
|
AC_FUNC_REALLOC
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_FUNC_SELECT_ARGTYPES
|
|
|
|
AC_FUNC_STAT
|
|
|
|
AC_FUNC_STRERROR_R
|
2008-02-11 23:24:47 +00:00
|
|
|
AC_FUNC_STRFTIME
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_FUNC_VPRINTF
|
|
|
|
AC_CHECK_FUNCS([strtoul])
|
|
|
|
AC_CHECK_FUNCS([bzero])
|
2008-02-11 23:24:47 +00:00
|
|
|
AC_CHECK_FUNCS([ftruncate])
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_CHECK_FUNCS([gethostbyname])
|
2014-04-08 21:52:01 +00:00
|
|
|
AC_CHECK_FUNCS([gethostbyname_r])
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_CHECK_FUNCS([gettimeofday])
|
|
|
|
AC_CHECK_FUNCS([memmove])
|
|
|
|
AC_CHECK_FUNCS([memset])
|
|
|
|
AC_CHECK_FUNCS([mkdir])
|
|
|
|
AC_CHECK_FUNCS([realpath])
|
|
|
|
AC_CHECK_FUNCS([select])
|
2015-04-03 10:37:03 +00:00
|
|
|
AC_CHECK_FUNCS([setlocale])
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_CHECK_FUNCS([socket])
|
|
|
|
AC_CHECK_FUNCS([strchr])
|
|
|
|
AC_CHECK_FUNCS([strdup])
|
2008-02-11 23:24:47 +00:00
|
|
|
AC_CHECK_FUNCS([strerror])
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_CHECK_FUNCS([strstr])
|
|
|
|
AC_CHECK_FUNCS([strtol])
|
|
|
|
AC_CHECK_FUNCS([sqrt])
|
2009-05-21 02:28:19 +00:00
|
|
|
dnl The following functions are optional.
|
2010-10-27 12:30:11 +00:00
|
|
|
AC_CHECK_FUNCS([alarm])
|
2009-05-21 02:28:19 +00:00
|
|
|
AC_CHECK_FUNCS([clock_gettime])
|
|
|
|
AC_CHECK_FUNCS([sched_get_priority_min])
|
|
|
|
AC_CHECK_FUNCS([sched_get_priority_max])
|
2014-05-27 21:10:11 +00:00
|
|
|
AC_CHECK_FUNCS([inet_ntoa])
|
|
|
|
AC_CHECK_FUNCS([pow])
|
2007-12-28 18:25:33 +00:00
|
|
|
|
2010-08-31 16:51:31 +00:00
|
|
|
if test "$cross_compiling" = "no" ; then
|
|
|
|
AX_SIGNED_RIGHT_SHIFT
|
|
|
|
fi
|
2009-04-02 21:37:17 +00:00
|
|
|
|
2010-10-06 17:09:37 +00:00
|
|
|
dnl autoscan thinks we need this macro because we have a member function
|
|
|
|
dnl called "error". Invoke the macro but don't run the check so autoscan
|
|
|
|
dnl thinks we are in the clear. It's highly unlikely that we will ever
|
|
|
|
dnl actually use the function that this checks for.
|
|
|
|
if false ; then
|
|
|
|
AC_FUNC_ERROR_AT_LINE
|
|
|
|
fi
|
|
|
|
|
2010-10-27 12:30:11 +00:00
|
|
|
# --- Coverage hooks ---
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(coverage,
|
|
|
|
[ --enable-coverage turn on -fprofile-arcs -ftest-coverage],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) ENABLE_COVERAGE=1 ;;
|
|
|
|
no) ENABLE_COVERAGE=0 ;;
|
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-cov) ;;
|
|
|
|
esac],
|
|
|
|
[ENABLE_COVERAGE=2])
|
|
|
|
|
|
|
|
if test "x[$]ENABLE_COVERAGE" = "x1"; then
|
|
|
|
AC_MSG_WARN(enable coverage)
|
|
|
|
GCOV_CFLAGS="`echo \"[$]CFLAGS\" | perl -pe 's/-O\d+//g;'` -fprofile-arcs -ftest-coverage"
|
|
|
|
GCOV_CXXFLAGS="`echo \"[$]CXXFLAGS\" | perl -pe 's/-O\d+//g;'` -fprofile-arcs -ftest-coverage"
|
|
|
|
GCOV_LDFLAGS="-XCClinker -fprofile-arcs -XCClinker -ftest-coverage"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(ENABLE_COVERAGE)
|
|
|
|
AC_SUBST(GCOV_CFLAGS)
|
|
|
|
AC_SUBST(GCOV_CXXFLAGS)
|
|
|
|
AC_SUBST(GCOV_LDFLAGS)
|
|
|
|
|
2007-12-28 18:25:33 +00:00
|
|
|
AC_CONFIG_HEADERS(config.h:config.hin)
|
2013-06-22 20:05:22 +00:00
|
|
|
AC_CONFIG_HEADERS(lib/cpp/src/thrift/config.h:config.hin)
|
2016-01-10 06:01:10 +00:00
|
|
|
AC_CONFIG_HEADERS(lib/c_glib/src/thrift/config.h:config.hin)
|
2019-07-01 18:07:45 +00:00
|
|
|
# guard against pre defined config.h
|
2013-06-05 03:59:34 +00:00
|
|
|
AH_TOP([
|
|
|
|
#ifndef CONFIG_H
|
2014-01-26 10:44:27 +00:00
|
|
|
#define CONFIG_H
|
2013-06-05 03:59:34 +00:00
|
|
|
])
|
|
|
|
AH_BOTTOM([
|
|
|
|
#endif
|
|
|
|
])
|
|
|
|
|
2007-12-28 18:25:33 +00:00
|
|
|
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
compiler/cpp/Makefile
|
2016-09-10 05:02:19 +00:00
|
|
|
compiler/cpp/src/Makefile
|
|
|
|
compiler/cpp/test/Makefile
|
2007-12-28 18:25:33 +00:00
|
|
|
lib/Makefile
|
2022-08-23 15:38:34 +00:00
|
|
|
lib/cl/Makefile
|
2007-12-28 18:25:33 +00:00
|
|
|
lib/cpp/Makefile
|
2010-08-31 16:51:19 +00:00
|
|
|
lib/cpp/test/Makefile
|
2007-12-28 18:25:33 +00:00
|
|
|
lib/cpp/thrift-nb.pc
|
|
|
|
lib/cpp/thrift-z.pc
|
2014-12-07 12:45:33 +00:00
|
|
|
lib/cpp/thrift-qt5.pc
|
2010-10-06 00:12:33 +00:00
|
|
|
lib/cpp/thrift.pc
|
2010-10-27 12:30:11 +00:00
|
|
|
lib/c_glib/Makefile
|
|
|
|
lib/c_glib/thrift_c_glib.pc
|
|
|
|
lib/c_glib/test/Makefile
|
2012-03-22 21:49:10 +00:00
|
|
|
lib/d/Makefile
|
|
|
|
lib/d/test/Makefile
|
2010-05-02 22:54:22 +00:00
|
|
|
lib/erl/Makefile
|
2013-06-18 20:25:07 +00:00
|
|
|
lib/go/Makefile
|
2013-07-17 22:33:05 +00:00
|
|
|
lib/go/test/Makefile
|
2021-03-15 08:34:58 +00:00
|
|
|
lib/go/test/fuzz/Makefile
|
2014-10-01 00:22:48 +00:00
|
|
|
lib/haxe/test/Makefile
|
2008-02-23 22:07:39 +00:00
|
|
|
lib/java/Makefile
|
2016-05-25 03:09:02 +00:00
|
|
|
lib/js/Makefile
|
2011-03-17 19:13:36 +00:00
|
|
|
lib/js/test/Makefile
|
2014-12-02 08:21:24 +00:00
|
|
|
lib/json/Makefile
|
|
|
|
lib/json/test/Makefile
|
2022-04-06 08:49:09 +00:00
|
|
|
lib/kotlin/Makefile
|
2019-01-28 22:27:45 +00:00
|
|
|
lib/netstd/Makefile
|
2014-01-26 10:44:27 +00:00
|
|
|
lib/nodejs/Makefile
|
2015-04-20 10:24:50 +00:00
|
|
|
lib/nodets/Makefile
|
2009-02-01 04:47:30 +00:00
|
|
|
lib/perl/Makefile
|
2019-01-14 17:07:10 +00:00
|
|
|
lib/perl/t/Makefile
|
2010-05-02 22:39:31 +00:00
|
|
|
lib/php/Makefile
|
2012-01-24 18:42:46 +00:00
|
|
|
lib/php/test/Makefile
|
2015-08-29 15:46:51 +00:00
|
|
|
lib/dart/Makefile
|
2007-12-28 18:25:33 +00:00
|
|
|
lib/py/Makefile
|
2008-07-08 00:47:49 +00:00
|
|
|
lib/rb/Makefile
|
2016-11-02 12:01:08 +00:00
|
|
|
lib/rs/Makefile
|
|
|
|
lib/rs/test/Makefile
|
2021-03-11 13:25:26 +00:00
|
|
|
lib/rs/test_recursive/Makefile
|
|
|
|
lib/rs/test_recursive/src/Makefile
|
|
|
|
lib/rs/test_recursive/src/maintenance/Makefile
|
|
|
|
lib/rs/test_recursive/src/transit/Makefile
|
|
|
|
lib/rs/test_recursive/src/transit/light/Makefile
|
|
|
|
lib/rs/test_recursive/src/transit/services/Makefile
|
2014-04-04 22:45:42 +00:00
|
|
|
lib/lua/Makefile
|
2018-12-31 22:17:34 +00:00
|
|
|
lib/swift/Makefile
|
2018-12-05 14:50:18 +00:00
|
|
|
lib/ts/Makefile
|
2015-12-28 06:15:00 +00:00
|
|
|
lib/xml/Makefile
|
|
|
|
lib/xml/test/Makefile
|
2008-02-04 21:14:14 +00:00
|
|
|
test/Makefile
|
2016-01-19 02:10:07 +00:00
|
|
|
test/features/Makefile
|
2014-09-01 19:53:40 +00:00
|
|
|
test/c_glib/Makefile
|
2022-08-23 15:38:34 +00:00
|
|
|
test/cl/Makefile
|
2011-06-24 14:01:10 +00:00
|
|
|
test/cpp/Makefile
|
2014-08-06 02:54:57 +00:00
|
|
|
test/erl/Makefile
|
2014-05-08 21:18:44 +00:00
|
|
|
test/go/Makefile
|
2014-07-27 23:25:30 +00:00
|
|
|
test/haxe/Makefile
|
2016-02-01 12:47:49 +00:00
|
|
|
test/lua/Makefile
|
2019-01-28 22:27:45 +00:00
|
|
|
test/netstd/Makefile
|
2012-01-21 09:18:05 +00:00
|
|
|
test/php/Makefile
|
2015-08-29 15:46:51 +00:00
|
|
|
test/dart/Makefile
|
2012-01-10 21:30:02 +00:00
|
|
|
test/perl/Makefile
|
2008-02-15 01:10:23 +00:00
|
|
|
test/py/Makefile
|
2010-10-08 17:46:06 +00:00
|
|
|
test/py.twisted/Makefile
|
2013-03-07 16:32:48 +00:00
|
|
|
test/py.tornado/Makefile
|
2008-07-08 00:47:49 +00:00
|
|
|
test/rb/Makefile
|
2016-11-02 12:01:08 +00:00
|
|
|
test/rs/Makefile
|
2012-10-22 19:27:38 +00:00
|
|
|
tutorial/Makefile
|
2014-07-29 21:28:46 +00:00
|
|
|
tutorial/c_glib/Makefile
|
2022-08-23 15:38:34 +00:00
|
|
|
tutorial/cl/Makefile
|
2012-10-24 18:40:06 +00:00
|
|
|
tutorial/cpp/Makefile
|
2016-02-22 13:41:25 +00:00
|
|
|
tutorial/d/Makefile
|
2013-06-18 20:25:07 +00:00
|
|
|
tutorial/go/Makefile
|
2014-07-27 23:25:30 +00:00
|
|
|
tutorial/haxe/Makefile
|
2012-10-22 19:27:38 +00:00
|
|
|
tutorial/java/Makefile
|
|
|
|
tutorial/js/Makefile
|
2019-01-28 22:27:45 +00:00
|
|
|
tutorial/netstd/Makefile
|
2014-01-27 20:15:56 +00:00
|
|
|
tutorial/nodejs/Makefile
|
2015-08-29 15:46:51 +00:00
|
|
|
tutorial/dart/Makefile
|
2019-10-09 13:23:16 +00:00
|
|
|
tutorial/perl/Makefile
|
2019-10-18 13:09:01 +00:00
|
|
|
tutorial/php/Makefile
|
2012-10-26 21:46:18 +00:00
|
|
|
tutorial/py/Makefile
|
|
|
|
tutorial/py.twisted/Makefile
|
2013-03-07 16:32:48 +00:00
|
|
|
tutorial/py.tornado/Makefile
|
2013-06-09 21:10:06 +00:00
|
|
|
tutorial/rb/Makefile
|
2016-11-02 12:01:08 +00:00
|
|
|
tutorial/rs/Makefile
|
2022-09-07 00:34:02 +00:00
|
|
|
tutorial/swift/Makefile
|
2007-12-28 18:25:33 +00:00
|
|
|
])
|
2006-08-23 22:03:34 +00:00
|
|
|
|
2015-05-09 09:33:42 +00:00
|
|
|
if test "$have_cpp" = "yes" ; then MAYBE_CPP="cpp" ; else MAYBE_CPP="" ; fi
|
|
|
|
AC_SUBST([MAYBE_CPP])
|
|
|
|
if test "$have_c_glib" = "yes" ; then MAYBE_C_GLIB="c_glib" ; else MAYBE_C_GLIB="" ; fi
|
|
|
|
AC_SUBST([MAYBE_C_GLIB])
|
2016-03-05 04:40:25 +00:00
|
|
|
if test "$have_d" = "yes" -a "$have_deimos_event2" = "yes" -a "$have_deimos_openssl" = "yes"; then MAYBE_D="d" ; else MAYBE_D="" ; fi
|
|
|
|
AC_SUBST([MAYBE_D])
|
2015-05-09 09:33:42 +00:00
|
|
|
if test "$have_java" = "yes" ; then MAYBE_JAVA="java" ; else MAYBE_JAVA="" ; fi
|
|
|
|
AC_SUBST([MAYBE_JAVA])
|
2022-04-06 08:49:09 +00:00
|
|
|
if test "$have_kotlin" = "yes" ; then MAYBE_KOTLIN="kotlin" ; else MAYBE_KOTLIN="" ; fi
|
|
|
|
AC_SUBST([MAYBE_KOTLIN])
|
2015-10-09 19:28:57 +00:00
|
|
|
if test "$have_python" = "yes" ; then MAYBE_PYTHON="py" ; else MAYBE_PYTHON="" ; fi
|
2015-05-09 09:33:42 +00:00
|
|
|
AC_SUBST([MAYBE_PYTHON])
|
2015-11-06 12:24:24 +00:00
|
|
|
if test "$have_py3" = "yes" ; then MAYBE_PY3="py3" ; else MAYBE_PY3="" ; fi
|
|
|
|
AC_SUBST([MAYBE_PY3])
|
2015-05-09 09:33:42 +00:00
|
|
|
if test "$have_ruby" = "yes" ; then MAYBE_RUBY="rb" ; else MAYBE_RUBY="" ; fi
|
|
|
|
AC_SUBST([MAYBE_RUBY])
|
|
|
|
if test "$have_perl" = "yes" ; then MAYBE_PERL="perl" ; else MAYBE_PERL="" ; fi
|
|
|
|
AC_SUBST([MAYBE_PERL])
|
|
|
|
if test "$have_php" = "yes" ; then MAYBE_PHP="php" ; else MAYBE_PHP="" ; fi
|
|
|
|
AC_SUBST([MAYBE_PHP])
|
2015-08-29 15:46:51 +00:00
|
|
|
if test "$have_dart" = "yes" ; then MAYBE_DART="dart" ; else MAYBE_DART="" ; fi
|
|
|
|
AC_SUBST([MAYBE_DART])
|
2015-05-09 09:33:42 +00:00
|
|
|
if test "$have_go" = "yes" ; then MAYBE_GO="go" ; else MAYBE_GO="" ; fi
|
|
|
|
AC_SUBST([MAYBE_GO])
|
|
|
|
if test "$have_nodejs" = "yes" ; then MAYBE_NODEJS="nodejs" ; else MAYBE_NODEJS="" ; fi
|
|
|
|
AC_SUBST([MAYBE_NODEJS])
|
2015-04-20 10:24:50 +00:00
|
|
|
if test "$have_nodets" = "yes" ; then MAYBE_NODETS="nodets" ; else MAYBE_NODETS="" ; fi
|
|
|
|
AC_SUBST([MAYBE_NODETS])
|
2015-10-28 13:19:45 +00:00
|
|
|
if test "$have_erlang" = "yes" ; then MAYBE_ERLANG="erl" ; else MAYBE_ERLANG="" ; fi
|
|
|
|
AC_SUBST([MAYBE_ERLANG])
|
2016-02-01 12:47:49 +00:00
|
|
|
if test "$have_lua" = "yes" ; then MAYBE_LUA="lua" ; else MAYBE_LUA="" ; fi
|
|
|
|
AC_SUBST([MAYBE_LUA])
|
2016-11-02 12:01:08 +00:00
|
|
|
if test "$have_rs" = "yes" ; then MAYBE_RS="rs" ; else MAYBE_RS="" ; fi
|
|
|
|
AC_SUBST([MAYBE_RS])
|
2018-12-31 22:17:34 +00:00
|
|
|
if test "$have_swift" = "yes" ; then MAYBE_SWIFT="swift" ; else MAYBE_SWIFT="" ; fi
|
|
|
|
AC_SUBST([MAYBE_SWIFT])
|
2019-10-19 16:27:35 +00:00
|
|
|
if test "$have_netstd" = "yes" ; then MAYBE_NETSTD="netstd" ; else MAYBE_NETSTD="" ; fi
|
|
|
|
AC_SUBST([MAYBE_NETSTD])
|
2022-08-23 15:38:34 +00:00
|
|
|
if test "$have_cl" = "yes" ; then MAYBE_CL="cl" ; else MAYBE_CL="" ; fi
|
|
|
|
AC_SUBST([MAYBE_CL])
|
2015-05-09 09:33:42 +00:00
|
|
|
|
2006-08-23 22:03:34 +00:00
|
|
|
AC_OUTPUT
|
2010-08-31 16:51:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo "$PACKAGE $VERSION"
|
|
|
|
echo
|
2010-10-27 12:30:11 +00:00
|
|
|
echo "Building C (GLib) Library .... : $have_c_glib"
|
2017-09-01 20:00:36 +00:00
|
|
|
echo "Building C++ Library ......... : $have_cpp"
|
2022-08-23 15:38:34 +00:00
|
|
|
echo "Building Common Lisp Library.. : $have_cl"
|
2017-09-01 20:00:36 +00:00
|
|
|
echo "Building D Library ........... : $have_d"
|
2015-08-29 15:46:51 +00:00
|
|
|
echo "Building Dart Library ........ : $have_dart"
|
2019-10-19 16:27:35 +00:00
|
|
|
echo "Building .NET Standard Library : $have_netstd"
|
2010-08-31 16:51:20 +00:00
|
|
|
echo "Building Erlang Library ...... : $have_erlang"
|
2011-02-20 02:39:19 +00:00
|
|
|
echo "Building Go Library .......... : $have_go"
|
2017-09-01 20:00:36 +00:00
|
|
|
echo "Building Haxe Library ........ : $have_haxe"
|
|
|
|
echo "Building Java Library ........ : $have_java"
|
2022-04-06 08:49:09 +00:00
|
|
|
echo "Building Kotlin Library ...... : $have_kotlin"
|
2014-04-04 22:45:42 +00:00
|
|
|
echo "Building Lua Library ......... : $have_lua"
|
2017-09-01 20:00:36 +00:00
|
|
|
echo "Building NodeJS Library ...... : $have_nodejs"
|
|
|
|
echo "Building Perl Library ........ : $have_perl"
|
|
|
|
echo "Building PHP Library ......... : $have_php"
|
|
|
|
echo "Building Python Library ...... : $have_python"
|
|
|
|
echo "Building Py3 Library ......... : $have_py3"
|
|
|
|
echo "Building Ruby Library ........ : $have_ruby"
|
2016-11-02 12:01:08 +00:00
|
|
|
echo "Building Rust Library ........ : $have_rs"
|
2018-12-31 22:17:34 +00:00
|
|
|
echo "Building Swift Library ....... : $have_swift"
|
2012-07-24 17:28:24 +00:00
|
|
|
|
2019-01-22 19:16:39 +00:00
|
|
|
if test "$have_c_glib" = "yes" ; then
|
|
|
|
echo
|
|
|
|
echo "C (glib):"
|
|
|
|
echo " Using glib version ........ : $($GSETTINGS --version)"
|
|
|
|
fi
|
2010-08-31 16:51:20 +00:00
|
|
|
if test "$have_cpp" = "yes" ; then
|
|
|
|
echo
|
2012-02-10 19:53:20 +00:00
|
|
|
echo "C++ Library:"
|
2017-09-01 20:00:36 +00:00
|
|
|
echo " C++ compiler .............. : $CXX"
|
2012-02-10 19:53:20 +00:00
|
|
|
echo " Build TZlibTransport ...... : $have_zlib"
|
|
|
|
echo " Build TNonblockingServer .. : $have_libevent"
|
2017-02-20 13:52:11 +00:00
|
|
|
echo " Build TQTcpServer (Qt5) ... : $have_qt5"
|
2017-09-01 20:00:36 +00:00
|
|
|
echo " C++ compiler version ...... : $($CXX --version | head -1)"
|
2010-08-31 16:51:20 +00:00
|
|
|
fi
|
2022-08-23 15:38:34 +00:00
|
|
|
if test "$have_cl" = "yes" ; then
|
|
|
|
echo
|
|
|
|
echo "Common Lisp Library:"
|
|
|
|
echo " Using Common Lisp ......... : $SBCL"
|
|
|
|
echo " Using Common Lisp version . : $($SBCL --version)"
|
|
|
|
fi
|
2017-09-01 20:00:36 +00:00
|
|
|
if test "$have_d" = "yes" ; then
|
2010-08-31 16:51:20 +00:00
|
|
|
echo
|
2017-09-01 20:00:36 +00:00
|
|
|
echo "D Library:"
|
|
|
|
echo " Using D Compiler .......... : $DMD"
|
|
|
|
echo " Building D libevent tests . : $with_d_event_tests"
|
|
|
|
echo " Building D SSL tests ...... : $with_d_ssl_tests"
|
|
|
|
echo " Using D version ........... : $($DMD --version | head -1)"
|
2010-08-31 16:51:20 +00:00
|
|
|
fi
|
2017-09-01 20:00:36 +00:00
|
|
|
if test "$have_dart" = "yes" ; then
|
2010-08-31 16:51:20 +00:00
|
|
|
echo
|
2017-09-01 20:00:36 +00:00
|
|
|
echo "Dart Library:"
|
|
|
|
echo " Using Dart ................ : $DART"
|
|
|
|
echo " Using Pub ................. : $DARTPUB"
|
|
|
|
echo " Using Dart version ........ : $($DART --version 2>&1)"
|
2010-08-31 16:51:20 +00:00
|
|
|
fi
|
2019-10-19 16:27:35 +00:00
|
|
|
if test "$have_netstd" = "yes" ; then
|
2019-01-28 22:27:45 +00:00
|
|
|
echo
|
|
|
|
echo ".NET Standard Library:"
|
|
|
|
echo " Using dotnet .............. : $DOTNETCORE"
|
|
|
|
echo " Using dotnet version ...... : $DOTNETCORE_VERSION"
|
|
|
|
fi
|
2017-09-01 20:00:36 +00:00
|
|
|
if test "$have_erlang" = "yes" ; then
|
2015-08-29 15:46:51 +00:00
|
|
|
echo
|
2017-09-01 20:00:36 +00:00
|
|
|
echo "Erlang Library:"
|
|
|
|
echo " Using erlc ................ : $ERLC"
|
|
|
|
echo " Using rebar ............... : $REBAR"
|
|
|
|
echo " Using erlc version ........ : $($ERL -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell | tr -d '\"')"
|
2015-08-29 15:46:51 +00:00
|
|
|
fi
|
2017-09-01 20:00:36 +00:00
|
|
|
if test "$have_go" = "yes" ; then
|
2010-08-31 16:51:20 +00:00
|
|
|
echo
|
2017-09-01 20:00:36 +00:00
|
|
|
echo "Go Library:"
|
|
|
|
echo " Using Go................... : $GO"
|
|
|
|
echo " Using Go version........... : $($GO version)"
|
2010-08-31 16:51:20 +00:00
|
|
|
fi
|
2014-07-27 23:25:30 +00:00
|
|
|
if test "$have_haxe" = "yes" ; then
|
|
|
|
echo
|
|
|
|
echo "Haxe Library:"
|
|
|
|
echo " Using Haxe ................ : $HAXE"
|
2015-02-11 01:14:14 +00:00
|
|
|
echo " Using Haxe version ........ : $HAXE_VERSION"
|
2014-07-27 23:25:30 +00:00
|
|
|
fi
|
2017-09-01 20:00:36 +00:00
|
|
|
if test "$have_java" = "yes" ; then
|
2011-02-20 02:39:19 +00:00
|
|
|
echo
|
2017-09-01 20:00:36 +00:00
|
|
|
echo "Java Library:"
|
2022-04-19 02:18:58 +00:00
|
|
|
echo " Using gradle .............. : $GRADLE"
|
2017-09-01 20:00:36 +00:00
|
|
|
echo " Using java ................ : $JAVA"
|
|
|
|
echo " Using javac ............... : $JAVAC"
|
2022-04-19 02:18:58 +00:00
|
|
|
echo " Using Gradle version ...... : $($GRADLE --version --quiet | grep Gradle 2>&1)"
|
2017-09-01 20:00:36 +00:00
|
|
|
echo " Using java version ........ : $($JAVA -version 2>&1 | grep 'version ')"
|
2022-04-06 08:49:09 +00:00
|
|
|
fi
|
|
|
|
if test "$have_kotlin" = "yes" ; then
|
|
|
|
echo
|
|
|
|
echo "Kotlin (Test Only) Library:"
|
2022-05-06 16:40:03 +00:00
|
|
|
echo " Using gradle .............. : $GRADLE"
|
2022-04-06 08:49:09 +00:00
|
|
|
echo " Using java ................ : $JAVA"
|
|
|
|
echo " Using javac ............... : $JAVAC"
|
2022-05-06 16:40:03 +00:00
|
|
|
echo " Using Gradle version ...... : $($GRADLE --version --quiet | grep Gradle 2>&1)"
|
2022-04-06 08:49:09 +00:00
|
|
|
echo " Using java version ........ : $($JAVA -version 2>&1 | grep 'version ')"
|
2011-02-20 02:39:19 +00:00
|
|
|
fi
|
2017-09-01 20:00:36 +00:00
|
|
|
if test "$have_lua" = "yes" ; then
|
2012-03-22 21:49:10 +00:00
|
|
|
echo
|
2017-09-01 20:00:36 +00:00
|
|
|
echo "Lua Library:"
|
|
|
|
echo " Using Lua ................. : $LUA"
|
|
|
|
echo " Using Lua version.......... : $($LUA -v)"
|
2012-03-22 21:49:10 +00:00
|
|
|
fi
|
2014-01-26 10:44:27 +00:00
|
|
|
if test "$have_nodejs" = "yes" ; then
|
|
|
|
echo
|
|
|
|
echo "NodeJS Library:"
|
|
|
|
echo " Using NodeJS .............. : $NODEJS"
|
|
|
|
echo " Using NodeJS version....... : $($NODEJS --version)"
|
|
|
|
fi
|
2017-09-01 20:00:36 +00:00
|
|
|
if test "$have_perl" = "yes" ; then
|
2014-04-04 22:45:42 +00:00
|
|
|
echo
|
2017-09-01 20:00:36 +00:00
|
|
|
echo "Perl Library:"
|
|
|
|
echo " Using Perl ................ : $PERL"
|
|
|
|
echo " Using Perl version ........ : $($PERL -v | grep 'version ')"
|
|
|
|
fi
|
|
|
|
if test "$have_php" = "yes" ; then
|
|
|
|
echo
|
|
|
|
echo "PHP Library:"
|
|
|
|
echo " Using php-config .......... : $PHP_CONFIG"
|
|
|
|
echo " Using php version ......... : $($PHP --version | head -1)"
|
|
|
|
fi
|
|
|
|
if test "$have_python" = "yes" ; then
|
|
|
|
echo
|
|
|
|
echo "Python Library:"
|
|
|
|
echo " Using Python .............. : $PYTHON"
|
|
|
|
echo " Using Python version ...... : $($PYTHON --version 2>&1)"
|
|
|
|
if test "$have_py3" = "yes" ; then
|
|
|
|
echo " Using Python3 ............. : $PYTHON3"
|
|
|
|
echo " Using Python3 version ..... : $($PYTHON3 --version)"
|
|
|
|
fi
|
|
|
|
if test "$have_trial" = "yes"; then
|
|
|
|
echo " Using trial ............... : $TRIAL"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if test "$have_ruby" = "yes" ; then
|
|
|
|
echo
|
|
|
|
echo "Ruby Library:"
|
|
|
|
echo " Using Ruby ................ : $RUBY"
|
|
|
|
echo " Using Ruby version ........ : $($RUBY --version)"
|
2014-04-04 22:45:42 +00:00
|
|
|
fi
|
2016-11-02 12:01:08 +00:00
|
|
|
if test "$have_rs" = "yes" ; then
|
|
|
|
echo
|
|
|
|
echo "Rust Library:"
|
|
|
|
echo " Using Cargo................ : $CARGO"
|
|
|
|
echo " Using rustc................ : $RUSTC"
|
|
|
|
echo " Using Rust version......... : $($RUSTC --version)"
|
|
|
|
fi
|
2018-12-31 22:17:34 +00:00
|
|
|
if test "$have_swift" = "yes" ; then
|
|
|
|
echo
|
|
|
|
echo "Swift Library:"
|
|
|
|
echo " Using Swift ............... : $SWIFT"
|
|
|
|
echo " Using Swift version ....... : $($SWIFT --version | head -1)"
|
|
|
|
fi
|
2010-08-31 16:51:20 +00:00
|
|
|
echo
|
|
|
|
echo "If something is missing that you think should be present,"
|
|
|
|
echo "please skim the output of configure to find the missing"
|
|
|
|
echo "component. Details are present in config.log."
|
2017-09-01 20:00:36 +00:00
|
|
|
echo
|