CFLAGS="-Wall $CFLAGS"
+AC_MSG_CHECKING(whether cc can use -fno-strict-aliasing)
# use '-fno-strict-aliasing', but only if the compiler can take it
-AS_IF([gcc -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1],
+AS_IF([$CC -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1],
[CFLAGS="-fno-strict-aliasing $CFLAGS"])
# A helper which allows us to check cflags if compiler
AC_MSG_CHECKING([for build target])
AM_CONDITIONAL(DARWIN, test "$build_target" = "darwin")
AM_CONDITIONAL(SOLARIS, test "$build_target" = "solaris")
+AM_CONDITIONAL(XNETBSD, test "$build_target" = "netbsd")
AM_CONDITIONAL(XFREEBSD, test "$build_target" = "freebsd")
AM_CONDITIONAL(OPENBSD, test "$build_target" = "openbsd")
AM_CONDITIONAL(LINUX, test "$build_target" = "linux")
,
[#include <time.h>])
-AC_CHECK_DECLS([_stati64])
-
# 'save' libs; only those libs found so far will be
# linked against _everywhere_. For the others, we
# will be more selective!
# check for bluetooth library
bluetooth=0
CHECK_LIBHEADER(BLUETOOTH, bluetooth, ba2str, bluetooth/bluetooth.h,bluetooth=1,)
-AS_IF([test "$build_target" = "mingw"],
- [bluetooth=1])
AM_CONDITIONAL(HAVE_LIBBLUETOOTH, [test "$bluetooth" = 1])
AS_IF([test "$bluetooth" = 1],
[AC_DEFINE([HAVE_LIBBLUETOOTH],[1],[Have bluetooth library])],
pulse=0
libpulse_msg="no"
CHECK_LIBHEADER(LIBPULSE, pulse, pa_stream_peek, pulse/simple.h,pulse=1,)
-AS_IF([test "$build_target" = "mingw"],
- [pulse=0])
AS_IF([test "$pulse" = 1],
[AC_DEFINE([HAVE_PULSE],[1],[Have libpulse(audio) library])
libpulse_msg="yes"])
# TODO: reduce the length of the last message block ("the message")
AC_MSG_NOTICE([
-GNUnet Configuration (incomplete!)
+GNUnet Configuration
gnunet version: ${VERSION}