[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet-gtk] 02/02: use AS_CASE/AS_IF
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet-gtk] 02/02: use AS_CASE/AS_IF |
Date: |
Mon, 13 May 2019 10:52:04 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet-gtk.
commit 9a3947760533b4fb5cd3270fe64d019c6a374641
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon May 13 10:51:38 2019 +0200
use AS_CASE/AS_IF
---
configure.ac | 43 +++++++++++++++++++++----------------------
1 file changed, 21 insertions(+), 22 deletions(-)
diff --git a/configure.ac b/configure.ac
index 590ea81b..fd752bec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -57,44 +57,44 @@ AS_IF([gcc -fno-strict-aliasing -S -o /dev/null -xc
/dev/null >/dev/null 2>&1],
ENABLE_ON_UNIX=""
ENABLE_ON_W32="#"
# Check system type
-case "$host_os" in
-*darwin* | *rhapsody* | *macosx*)
+AS_CASE(["$host_os"],
+ [*darwin* | *rhapsody* | *macosx*],[
AC_DEFINE_UNQUOTED(OSX,1,[This is an OS X system])
CFLAGS="-no-cpp-precomp $CFLAGS"
LDFLAGS="-flat_namespace -undefined suppress $LDFLAGS"
- ;;
-linux*)
+ ],
+ [linux*],[
AC_DEFINE_UNQUOTED(LINUX,1,[This is a Linux system])
- ;;
-freebsd*)
+ ],
+ [freebsd*],[
AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system])
AC_DEFINE_UNQUOTED(FREEBSD,1,[This is a FreeBSD system])
- ;;
-openbsd*)
+ ],
+ [openbsd*],[
AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system])
AC_DEFINE_UNQUOTED(OPENBSD,1,[This is an OpenBSD system])
- ;;
-netbsd*)
+ ],
+ [netbsd*],[
AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system])
AC_DEFINE_UNQUOTED(NETBSD,1,[This is a NetBSD system])
- ;;
-*solaris*)
+ ],
+ [*solaris*],[
AC_DEFINE_UNQUOTED(SOLARIS,1,[This is a Solaris system])
AC_DEFINE_UNQUOTED(_REENTRANT,1,[Need with solaris or errno doesnt work])
build_target="solaris"
- ;;
-*arm-linux*)
+ ],
+ [*arm-linux*],[
AC_DEFINE_UNQUOTED(LINUX,1,[This is a Linux system])
- ;;
-*cygwin*)
+ ],
+ [*cygwin*],[
AC_DEFINE_UNQUOTED(CYGWIN,1,[This is a Cygwin system])
AC_DEFINE_UNQUOTED(WINDOWS,1,[This is a Windows system])
AC_CHECK_LIB(intl, gettext)
ENABLE_ON_W32=""
ENABLE_ON_UNIX="#"
build_target="cygwin"
- ;;
-*mingw*)
+ ],
+ [*mingw*],[
AC_DEFINE_UNQUOTED(MINGW,1,[This is a MinGW system])
AC_DEFINE_UNQUOTED(WINDOWS,1,[This is a Windows system])
AC_DEFINE_UNQUOTED(_WIN32,1,[This is a Windows system])
@@ -105,12 +105,11 @@ netbsd*)
ENABLE_ON_W32=""
ENABLE_ON_UNIX="#"
build_target="mingw"
- ;;
-*)
+ ],
+ [
AC_MSG_RESULT(Unrecognised OS $host_os)
AC_DEFINE_UNQUOTED(OTHEROS,1,[Some strange OS])
-;;
-esac
+ ])
AM_CONDITIONAL(MINGW, test "$build_target" = "mingw")
--
To stop receiving notification emails like this one, please contact
address@hidden