#
AC_PREREQ(2.61)
# Checks for programs.
-AC_INIT([gnunet], [0.9.3],[bug-gnunet@gnu.org])
+AC_INIT([gnunet], [0.9.4],[bug-gnunet@gnu.org])
AC_CANONICAL_TARGET
AC_CANONICAL_HOST
AC_CANONICAL_SYSTEM
-AM_INIT_AUTOMAKE([gnunet], [0.9.3])
+AM_INIT_AUTOMAKE([gnunet], [0.9.4])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CONFIG_HEADERS([gnunet_config.h])
AH_TOP([#define _GNU_SOURCE 1])
else
AM_CONDITIONAL(HAVE_LIBCURL, false)
fi
+
+
+# libidn
+AC_MSG_CHECKING([if Libidn can be used])
+AC_ARG_WITH(libidn, AC_HELP_STRING([--with-libidn=[DIR]],
+ [Support IDN (needs GNU Libidn)]),
+libidn=$withval, libidn=yes)
+if test "$libidn" != "no"; then
+ if test "$libidn" != "yes"; then
+ LDFLAGS="${LDFLAGS} -L$libidn/lib"
+ CPPFLAGS="${CPPFLAGS} -I$libidn/include"
+ fi
+ AC_CHECK_HEADER(idna.h,
+ AC_CHECK_LIB(idn, stringprep_check_version,
+ [libidn=yes LIBS="${LIBS} -lidn"], libidn=no),
+ libidn=no)
+fi
+if test "$libidn" != "no" ; then
+ AC_DEFINE(LIBIDN, 1, [Define to 1 if you want IDN support.])
+ else
+ AC_MSG_FAILURE([Libidn not found])
+fi
+AC_MSG_RESULT($libidn)
+
+
+
# restore LIBS
LIBS=$SAVE_LIBS
fi
],
[AC_MSG_RESULT([--with-mysql not specified])
- LDFLAGS="-L/usr/lib/mysql $LDFLAGS $ZLIBS"
+ if test -d "/usr/lib64/mysql"; then
+ MYSQL_LIBDIR="/usr/lib64/mysql"
+ elif test -d "/usr/lib/mysql"; then
+ MYSQL_LIBDIR="/usr/lib/mysql"
+ else
+ MYSQL_LIBDIR="/usr/lib"
+ fi
+ LDFLAGS="-L$MYSQL_LIBDIR $LDFLAGS $ZLIBS"
AC_CHECK_LIB(mysqlclient, mysql_init,
[AC_CHECK_HEADERS(mysql/mysql.h,
- MYSQL_LDFLAGS="-L/usr/lib/mysql"
+ MYSQL_LDFLAGS="-L$MYSQL_LIBDIR"
mysql=true
, [], [$CYGWIN_MYSQL_MAGIC])])
AC_DEFINE_UNQUOTED([HAVE_GNUTLS], $gnutls, [We have gnutls])
+# Test if we are building for superMUC
+llapi=0
+AC_MSG_CHECKING(if testbed should use IBM LoadLeveler to run on SuperMUC)
+AC_ARG_WITH([ll],
+ [AS_HELP_STRING([--with-ll=PFX],
+ [use IBM LoadLeveler (installed at PFX) for running testbed on SuperMUC]. Default is no)],
+ [AC_MSG_RESULT([$with_ll])
+ case $with_ll in
+ no)
+ ;;
+ yes)
+ AC_CHECK_HEADERS([llapi.h],
+ AC_CHECK_LIB([llapi], [llsubmit],
+ llapi=true,
+ AC_MSG_ERROR(libllapi not found but --with-llapi given)),
+ AC_MSG_ERROR(llapi.h not found but --with-llapi given))
+ ;;
+ *)
+ LDFLAGS="-L$with_ll/lib $LDFLAGS"
+ CPPFLAGS="-I$with_ll/include $CPPFLAGS"
+ AC_CHECK_HEADERS([llapi.h],
+ AC_CHECK_LIB([llapi], [llsubmit],
+ llapi=true,
+ AC_MSG_ERROR(libllapi not found but --with-llapi given)),
+ AC_MSG_ERROR(llapi.h not found but --with-llapi given))
+ ;;
+ esac
+ ],
+ [AC_MSG_RESULT(--with-ll not specified)])
+AM_CONDITIONAL([WITH_LL], [test "x$llapi" = "xtrue"])
+AC_DEFINE_UNQUOTED(WITH_LL, $llapi, [Do we have to use IBM LoadLeveler])
# should 'make check' run tests?
AC_MSG_CHECKING(whether to run tests)
AC_MSG_RESULT($enable_experimental)
AM_CONDITIONAL([HAVE_EXPERIMENTAL], [test "x$enable_experimental" = "xyes"])
+# should memory statistics be kept (very expensive CPU-wise!)
+AC_MSG_CHECKING(whether to create expensive statistics on memory use)
+AC_ARG_ENABLE([heapstats],
+ [AS_HELP_STRING([--enable-heapstats], [enable expensive heap statistics])],
+ [enable_heapstats=1],
+ [enable_heapstats=0])
+AC_MSG_RESULT($enable_heapstats)
+AC_DEFINE_UNQUOTED([ENABLE_HEAP_STATISTICS],$enable_heapstats,[enable expensive heap statistics])
+
# should code be enabled that works around missing OS functionality on Windows?
# used for test cases
if test $build_target = "mingw"
AM_CONDITIONAL([USE_COVERAGE], [test "x$use_gcov" = "xyes"])
+# version info
+AC_PATH_PROG(svnversioncommand, svnversion)
+AC_PATH_PROG(gitcommand, git)
+if test "X$svnversioncommand" = "X" || test `$svnversioncommand -n '.'` = "exported"
+then
+ if test "X$gitcommand" = "X"
+ then
+ AC_DEFINE_UNQUOTED(VCS_VERSION, ["release"], [repository svn version])
+ else
+ gitver=$(git log -1 | grep "git-svn-id" | sed -e 's/.*@\([[0-9]]\+\) .*/\1/')
+ if "X$gitver" = "X"
+ then
+ AC_DEFINE_UNQUOTED(VCS_VERSION, ["release"], [repository svn version])
+ else
+ AC_DEFINE_UNQUOTED(VCS_VERSION, ["svn-$gitver"], [repository svn version])
+ fi
+ fi
+else
+ AC_DEFINE_UNQUOTED(VCS_VERSION, ["svn-`svnversion -n`"], [repository svn version])
+fi
+
AC_CONFIG_FILES([
Makefile
contrib/Makefile
src/arm/arm.conf
src/ats/Makefile
src/ats/ats.conf
+src/ats-tool/Makefile
src/block/Makefile
src/chat/Makefile
src/chat/chat.conf
src/core/Makefile
src/core/core.conf
+src/consensus/Makefile
+src/consensus/consensus.conf
src/datacache/Makefile
src/datastore/Makefile
src/datastore/datastore.conf
src/statistics/Makefile
src/statistics/statistics.conf
src/stream/Makefile
+src/sysmon/Makefile
+src/sysmon/sysmon.conf
src/template/Makefile
src/testbed/Makefile
src/testbed/testbed.conf
src/vpn/vpn.conf
src/integration-tests/Makefile
pkgconfig/Makefile
+pkgconfig/gnunetats.pc
pkgconfig/gnunetarm.pc
pkgconfig/gnunetblock.pc
pkgconfig/gnunetcore.pc
pkgconfig/gnunetdatacache.pc
pkgconfig/gnunetdatastore.pc
pkgconfig/gnunetdht.pc
-pkgconfig/gnunetdhtlog.pc
+pkgconfig/gnunetdns.pc
+pkgconfig/gnunetdnsparser.pc
pkgconfig/gnunetdv.pc
pkgconfig/gnunetfragmentation.pc
pkgconfig/gnunetfs.pc
+pkgconfig/gnunetgns.pc
pkgconfig/gnunethello.pc
+pkgconfig/gnunetlockmanager.pc
+pkgconfig/gnunetmesh.pc
+pkgconfig/gnunetmysql.pc
+pkgconfig/gnunetnamestore.pc
pkgconfig/gnunetnat.pc
pkgconfig/gnunetnse.pc
pkgconfig/gnunetpeerinfo.pc
+pkgconfig/gnunetpostgres.pc
pkgconfig/gnunetregex.pc
pkgconfig/gnunetstatistics.pc
+pkgconfig/gnunetstream.pc
+pkgconfig/gnunettestbed.pc
pkgconfig/gnunettesting.pc
pkgconfig/gnunettransport.pc
+pkgconfig/gnunettun.pc
pkgconfig/gnunetutil.pc
+pkgconfig/gnunetvpn.pc
])
AC_OUTPUT