summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-05 09:07:09 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-05 09:07:09 +0000
commit262a695388efa539a23ba82eb2d0187961a4c894 (patch)
treee046f07d1983aa6f6e658204097cb758f20aad69 /configure.ac
parentb8fb774718de49d5a96e6cfa5b38a42b9f3f0e6a (diff)
LRN: Compile against libgnurx (W32)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
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*)
AC_DEFINE_UNQUOTED(_WIN32,1,[This is a Windows system])
AC_CHECK_LIB(intl, gettext)
LDFLAGS="$LDFLAGS -Wl,-no-undefined -Wl,--export-all-symbols"
- LIBS="$LIBS -lws2_32 -lplibc"
+ LIBS="$LIBS -lws2_32 -lplibc -lgnurx"
CFLAGS="-mms-bitfields $CFLAGS"
CPPFLAGS="-D_WIN32_WINNT=0x0501 $CPPFLAGS"
build_target="mingw"
@@ -183,6 +183,14 @@ AC_CHECK_LIB(c, getloadavg, AC_DEFINE(HAVE_GETLOADAVG,1,[getloadavg supported]))
# will be more selective!
SAVE_LIBS=$LIBS
+# libgnurx (regex library for W32)
+gnurx=0
+AC_CHECK_LIB(gnurx, regexec, gnurx=1)
+if test "x$gnurx" = "x0" -a "x$build_target" = "xmingw"
+then
+ AC_MSG_ERROR([on W32 GNUnet needs libgnurx])
+fi
+
# libgcrypt
gcrypt=0
AM_PATH_LIBGCRYPT(1.2.0, gcrypt=1)