Switch to side-by-side view

--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-AC_INIT([upmpdcli], [0.4], [jfd@lesbonscomptes.com],
+AC_INIT([upmpdcli], [0.5], [jfd@lesbonscomptes.com],
              [upmpdcli], [http://www.lesbonscomptes.com/upnpp])
 AC_PREREQ([2.53])
 AC_CONFIG_SRCDIR([libupnpp/upnpplib.hxx])
@@ -18,11 +18,23 @@
 AC_DEFINE([_LARGE_FILE_SOURCE], [], [Large files support])
 AC_DEFINE([_FILE_OFFSET_BITS], [64], [File Offset size])
 
-AC_CHECK_LIB([upnp], [UpnpInit], [true], AC_MSG_ERROR([libupnp not found]))
-AC_CHECK_LIB([mpdclient], [mpd_connection_new], [true],
-                          AC_MSG_ERROR([libmpdclient not found]))
+AC_CHECK_LIB([rt], [clock_gettime], [], [])
+AC_CHECK_LIB([pthread], [pthread_create], [], [])
+AC_CHECK_LIB([ixml], [ixmlDocument_getElementsByTagName], [], 
+		     AC_MSG_ERROR([libixml not found]))
+AC_CHECK_LIB([upnp], [UpnpInit], [], AC_MSG_ERROR([libupnp not found]))
+AC_CHECK_LIB([expat], [XML_ParserCreate], [], 
+		      AC_MSG_ERROR([libexpat not found]))
+LIBUPNPP_LIBS="$LIBS"
+
+AC_CHECK_LIB([mpdclient], [mpd_connection_new], [],
+                     AC_MSG_ERROR([libmpdclient not found]))
+
+LIBS=""
                      
 AC_CHECK_FUNCS([getifaddrs] [UpnpSetLogLevel])
 
+AC_SUBST(LIBUPNPP_LIBS)
+
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT