From 56629f7e606a83c55e12d0af729a3452db207b5f Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Sat, 6 Mar 2010 13:34:18 +0100 Subject: [PATCH] Fix iwlib detection in certain situations --- configure.ac.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac.in b/configure.ac.in index f7d8741..ffa38a4 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -543,9 +543,10 @@ AC_ARG_ENABLE([wlan], AM_CONDITIONAL(BUILD_WLAN, test x$want_wlan = xyes) if test x$want_wlan = xyes; then - AC_CHECK_HEADERS([iwlib.h], [], AC_MSG_ERROR([iwlib.h header not found])) - AC_CHECK_LIB([iw], [iw_sockets_open], [conky_LIBS="$conky_LIBS -liw"], AC_MSG_ERROR([iw_sockets_open not found])) - AC_DEFINE(HAVE_IWLIB, 1, [Define if you want wireless support]) + AC_CHECK_HEADERS([wlib.h], [], AC_MSG_ERROR([iwlib.h header not found])) + AC_CHECK_LIB([iw], [iw_sockets_open], [conky_LIBS="-liw $conky_LIBS"], + AC_MSG_ERROR([iw_sockets_open not found]), [$conky_LIBS]) + AC_DEFINE(HAVE_IWLIB, 1, [Define if you want wireless support]) fi dnl -- 1.7.9.5