diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-05 09:07:09 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-05 09:07:09 +0000 |
commit | 262a695388efa539a23ba82eb2d0187961a4c894 (patch) | |
tree | e046f07d1983aa6f6e658204097cb758f20aad69 /configure.ac | |
parent | b8fb774718de49d5a96e6cfa5b38a42b9f3f0e6a (diff) | |
download | gnunet-262a695388efa539a23ba82eb2d0187961a4c894.tar.gz gnunet-262a695388efa539a23ba82eb2d0187961a4c894.zip |
LRN: Compile against libgnurx (W32)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 7957cc2a0..e596766eb 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -142,7 +142,7 @@ netbsd*) | |||
142 | AC_DEFINE_UNQUOTED(_WIN32,1,[This is a Windows system]) | 142 | AC_DEFINE_UNQUOTED(_WIN32,1,[This is a Windows system]) |
143 | AC_CHECK_LIB(intl, gettext) | 143 | AC_CHECK_LIB(intl, gettext) |
144 | LDFLAGS="$LDFLAGS -Wl,-no-undefined -Wl,--export-all-symbols" | 144 | LDFLAGS="$LDFLAGS -Wl,-no-undefined -Wl,--export-all-symbols" |
145 | LIBS="$LIBS -lws2_32 -lplibc" | 145 | LIBS="$LIBS -lws2_32 -lplibc -lgnurx" |
146 | CFLAGS="-mms-bitfields $CFLAGS" | 146 | CFLAGS="-mms-bitfields $CFLAGS" |
147 | CPPFLAGS="-D_WIN32_WINNT=0x0501 $CPPFLAGS" | 147 | CPPFLAGS="-D_WIN32_WINNT=0x0501 $CPPFLAGS" |
148 | build_target="mingw" | 148 | build_target="mingw" |
@@ -183,6 +183,14 @@ AC_CHECK_LIB(c, getloadavg, AC_DEFINE(HAVE_GETLOADAVG,1,[getloadavg supported])) | |||
183 | # will be more selective! | 183 | # will be more selective! |
184 | SAVE_LIBS=$LIBS | 184 | SAVE_LIBS=$LIBS |
185 | 185 | ||
186 | # libgnurx (regex library for W32) | ||
187 | gnurx=0 | ||
188 | AC_CHECK_LIB(gnurx, regexec, gnurx=1) | ||
189 | if test "x$gnurx" = "x0" -a "x$build_target" = "xmingw" | ||
190 | then | ||
191 | AC_MSG_ERROR([on W32 GNUnet needs libgnurx]) | ||
192 | fi | ||
193 | |||
186 | # libgcrypt | 194 | # libgcrypt |
187 | gcrypt=0 | 195 | gcrypt=0 |
188 | AM_PATH_LIBGCRYPT(1.2.0, gcrypt=1) | 196 | AM_PATH_LIBGCRYPT(1.2.0, gcrypt=1) |