diff options
author | Roumen Petrov <rumen@master.example.net> | 2010-01-23 19:01:41 +0200 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2011-12-19 16:20:27 +0800 |
commit | 3634f870de977f38ae3ea81ee0abef4e7e17e245 (patch) | |
tree | 430e666f26a64681af764d7e2814ef7d2d7123b5 /configure.in | |
parent | 5425e22f366658c4de7342a202970330a02d3ba6 (diff) | |
download | libxslt-3634f870de977f38ae3ea81ee0abef4e7e17e245.tar.gz libxslt-3634f870de977f38ae3ea81ee0abef4e7e17e245.tar.bz2 libxslt-3634f870de977f38ae3ea81ee0abef4e7e17e245.zip |
minimal mingw support
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.in b/configure.in index d63a23be..f217e244 100644 --- a/configure.in +++ b/configure.in @@ -141,12 +141,17 @@ AC_SUBST(VERSION_SCRIPT_FLAGS) AM_CONDITIONAL([USE_VERSION_SCRIPT], [test -n "$VERSION_SCRIPT_FLAGS"]) dnl Look for pthread.h, needed for testThreads +case $host in + *-mingw*) ;; + *) THREAD_LIBS="" AC_CHECK_HEADER(pthread.h, AC_CHECK_LIB(pthread, pthread_join,[ AC_DEFINE([HAVE_LIBPTHREAD], [], [Define if pthread library is there (-lpthread)]) AC_DEFINE([HAVE_PTHREAD_H], [], [Define if <pthread.h> is there]) THREAD_LIBS="-lpthread"])) + ;; +esac AC_SUBST(THREAD_LIBS) @@ -546,12 +551,14 @@ then XMLVERS=`$XML_CONFIG --version` if test VERSION_TO_NUMBER(echo $XMLVERS) -ge VERSION_TO_NUMBER(echo $LIBXML_REQUIRED_VERSION) then - LIBXML_LIBS="$LIBXML_LIBS `$XML_CONFIG --libs`" - LIBXML_CFLAGS="$LIBXML_CFLAGS `$XML_CONFIG --cflags`" AC_MSG_RESULT($XMLVERS found) else AC_MSG_ERROR(Version $XMLVERS found. You need at least libxml2 $LIBXML_REQUIRED_VERSION for this version of libxslt) fi + LIBXML_LIBS="$LIBXML_LIBS `$XML_CONFIG --libs`" + if test "x$LIBXML_SRC" = "x"; then + LIBXML_CFLAGS="$LIBXML_CFLAGS `$XML_CONFIG --cflags`" + fi else AC_MSG_ERROR([Could not find libxml2 anywhere, check ftp://xmlsoft.org/.]) fi |