diff options
author | Jeff Garzik <jeff@garzik.org> | 2010-11-26 16:28:12 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-11-26 16:28:12 -0500 |
commit | 0a333110f7c7228a2e2d4f57814979392df192c3 (patch) | |
tree | 8d383291be2fb7027f7131f40c908ea3fe8ba08f /configure.ac | |
parent | 4575851ea331ea85946c30421541a493c6659445 (diff) |
Build on Windows using mingw32.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b60fbfb..2543ae3 100644 --- a/configure.ac +++ b/configure.ac @@ -17,6 +17,18 @@ AC_PROG_RANLIB dnl Checks for header files. AC_HEADER_STDC +case $host in + *-*-mingw*) + have_win32=true + PTHREAD_FLAGS="" + ;; + *) + have_win32=false + PTHREAD_FLAGS="-pthread" + ;; +esac + + AC_CHECK_LIB(jansson, json_loads, request_jansson=false, request_jansson=true) AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIBS=-lpthread) @@ -35,6 +47,7 @@ LIBCURL_CHECK_CONFIG(, 7.10.1, , [AC_MSG_ERROR([Missing required libcurl >= 7.10.1])]) AC_SUBST(JANSSON_LIBS) +AC_SUBST(PTHREAD_FLAGS) AC_SUBST(PTHREAD_LIBS) AC_CONFIG_FILES([ |