Commit 2e370dc8 authored by Chris Aillon's avatar Chris Aillon Committed by Chris Aillon
Browse files

2005-10-19 Christopher Aillon <caillon@redhat.com>

	* configure.in: Update check for adequate wireless-tools
	with an AC_TRY_COMPILE for the new symbols we use.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1051 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
parent b9898889
2005-10-19 Christopher Aillon <caillon@redhat.com>
* configure.in: Update check for adequate wireless-tools
with an AC_TRY_COMPILE for the new symbols we use.
2005-10-19 Dan Williams <dcbw@redhat.com> 2005-10-19 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerDevice.c * src/NetworkManagerDevice.c
......
...@@ -73,10 +73,18 @@ AM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo) ...@@ -73,10 +73,18 @@ AM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
AM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian) AM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
AM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware) AM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware)
AC_CHECK_HEADER(iwlib.h, [], AC_MSG_CHECKING([for wireless-tools >= 28pre9])
[AC_MSG_ERROR(iwlib.h not found. Install wireless-tools.)], []) AC_TRY_COMPILE([#include <iwlib.h>],
AC_CHECK_LIB(iw, iw_scan, [ IWLIB=-liw ], [#ifndef IWEVGENIE
[AC_MSG_ERROR(wireless-tools 27.pre23 not installed or not functional)], []) #error "not found"
#endif],
[ac_have_iwevgenie=yes],
[ac_have_iwevgenie=no])
AC_MSG_RESULT($ac_have_iwevgenie)
if test "$ac_have_iwevgenie" = no; then
AC_MSG_ERROR(wireless-tools >= 28pre9 not installed or not functional)
fi
IWLIB=-liw
AC_SUBST(IWLIB) AC_SUBST(IWLIB)
PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= 0.22) PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= 0.22)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment