diff options
author | ng0 <ng0@n0.is> | 2019-11-19 17:30:32 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-11-19 17:30:32 +0000 |
commit | 7c14b80a011e9e99b1cef0bfd96bae364edd5663 (patch) | |
tree | 9b4d0714c179b434117aad6fe6a65bc023ba04f9 /configure.ac | |
parent | 1b296cf77a90930e29bd60c0aef70b8efbb1bd24 (diff) | |
download | gnunet-7c14b80a011e9e99b1cef0bfd96bae364edd5663.tar.gz gnunet-7c14b80a011e9e99b1cef0bfd96bae364edd5663.zip |
On *BSD the header file sys/param.h defines BSD. Drop unnecessary
BSD defines in the build-system. Furthermore add detection for
FreeBSD using the additional defines by FreeBSD.
Use !Linux where previously a list of BSDs was.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 25a558902..c5c6586e5 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -132,8 +132,6 @@ AS_CASE(["$host_os"], | |||
132 | AC_PATH_XTRA | 132 | AC_PATH_XTRA |
133 | ], | 133 | ], |
134 | [*freebsd*],[ | 134 | [*freebsd*],[ |
135 | AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system]) | ||
136 | AC_DEFINE_UNQUOTED(FREEBSD,1,[This is a FreeBSD system]) | ||
137 | CFLAGS="-D_THREAD_SAFE $CFLAGS" | 135 | CFLAGS="-D_THREAD_SAFE $CFLAGS" |
138 | build_target="freebsd" | 136 | build_target="freebsd" |
139 | LIBPREFIX= | 137 | LIBPREFIX= |
@@ -141,8 +139,6 @@ AS_CASE(["$host_os"], | |||
141 | UNIXONLY="#" | 139 | UNIXONLY="#" |
142 | ], | 140 | ], |
143 | [*openbsd*],[ | 141 | [*openbsd*],[ |
144 | AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system]) | ||
145 | AC_DEFINE_UNQUOTED(OPENBSD,1,[This is an OpenBSD system]) | ||
146 | LIBS=`echo $LIBS | sed -e "s/-ldl//"` | 142 | LIBS=`echo $LIBS | sed -e "s/-ldl//"` |
147 | build_target="openbsd" | 143 | build_target="openbsd" |
148 | LIBPREFIX= | 144 | LIBPREFIX= |
@@ -150,8 +146,6 @@ AS_CASE(["$host_os"], | |||
150 | UNIXONLY="#" | 146 | UNIXONLY="#" |
151 | ], | 147 | ], |
152 | [*netbsd*],[ | 148 | [*netbsd*],[ |
153 | AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system]) | ||
154 | AC_DEFINE_UNQUOTED(NETBSD,1,[This is a NetBSD system]) | ||
155 | build_target="netbsd" | 149 | build_target="netbsd" |
156 | LIBPREFIX= | 150 | LIBPREFIX= |
157 | DLLDIR=lib | 151 | DLLDIR=lib |