configure: remove mingw conditions, replace one gcc with $CC.
authorng0 <ng0@n0.is>
Wed, 11 Sep 2019 12:42:35 +0000 (12:42 +0000)
committerng0 <ng0@n0.is>
Wed, 11 Sep 2019 12:42:35 +0000 (12:42 +0000)
configure.ac

index ef68f01ee7bd99b6ffbc4b5e99c1e7b0cb9d8d41..e11fee9973f79c57b1f16d1ee13602d75f03e4e6 100644 (file)
@@ -62,8 +62,9 @@ AC_FUNC_FSEEKO
 
 
 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
@@ -197,6 +198,7 @@ AC_SUBST(UNIXONLY)
 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")
@@ -319,8 +321,6 @@ AC_CHECK_MEMBER(struct tm.tm_gmtoff,
      ,
      [#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!
@@ -593,8 +593,6 @@ AC_LANG_POP(C)
 # 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])],
@@ -657,8 +655,6 @@ AS_IF([test "x$jansson" = x1],
 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"])
@@ -1916,7 +1912,7 @@ AC_SUBST(features_msg)
 # TODO: reduce the length of the last message block ("the message")
 
 AC_MSG_NOTICE([
-GNUnet Configuration (incomplete!)
+GNUnet Configuration
 
 gnunet version:                 ${VERSION}