diff --git a/configure.ac b/configure.ac index 22c21ed5..6eccb704 100644 --- a/configure.ac +++ b/configure.ac @@ -47,13 +47,18 @@ AC_SEARCH_LIBS([SSL_library_init], [ssl], [ AC_CHECK_HEADER([fetch.h], [ AC_DEFINE(HAVE_FETCH_H, 1, [Define to 1 if you have the header file.]) - AC_CHECK_LIB(sbuf, fetchXGet, [ + AC_CHECK_LIB(fetch, fetchXGet, [ AC_DEFINE(HAVE_LIBFETCH, 1, [Define to 1 if you have the 'fetch' library (-fetch).]) LIBFETCH_LIBS="-lfetch" have_libfetch="yes" LIBS_EXTRA="${LIBS_EXTRA} -lfetch" ]) -], []) +], [],[ +#include +#ifdef HAVE_SYS_PARAM_H +#include +#endif +]) AC_SUBST([LIBFETCH_LIBS]) AS_IF([ test "x$have_libfetch" != "xyes"], [ @@ -68,4 +73,4 @@ AC_SUBST([CURL_CFLAGS]) AC_CONFIG_FILES(Makefile \ libucl.pc) -AC_OUTPUT \ No newline at end of file +AC_OUTPUT