aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorshemminger <shemminger>2005-03-16 19:18:32 +0000
committershemminger <shemminger>2005-03-16 19:18:32 +0000
commit749cca9d9ef372de3fc886b6d8c3a726da07d188 (patch)
tree574a8ba371db1b261505fa95e3342706c4b66ca6 /configure.in
parentf7f02257d155d61db5d99c265bff7a8d1f90b6ef (diff)
downloadandroid_external_brctl-749cca9d9ef372de3fc886b6d8c3a726da07d188.tar.gz
android_external_brctl-749cca9d9ef372de3fc886b6d8c3a726da07d188.tar.bz2
android_external_brctl-749cca9d9ef372de3fc886b6d8c3a726da07d188.zip
1,0.6 fix sysfs detection and allow multiple interfaces for add/del
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index fe2e729..f79ea5c 100644
--- a/configure.in
+++ b/configure.in
@@ -1,7 +1,7 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(brctl/brctl.c)
AC_CONFIG_HEADER(libbridge/config.h)
-AM_INIT_AUTOMAKE(bridge-utils,1.0.5)
+AM_INIT_AUTOMAKE(bridge-utils,1.0.6)
AC_ARG_WITH( linux-headers, [ --with-linux-headers Location of the linux headers to use],
KERNEL_HEADERS=$withval, KERNEL_HEADERS="/usr/src/linux/include")
@@ -24,7 +24,14 @@ AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
AC_CHECK_FUNCS(gethostname socket strdup uname)
AC_CHECK_FUNCS(if_nametoindex if_indextoname)
-AC_CHECK_LIB(sysfs, sysfs_open_directory)
+
+dnl Check for libsysfs
+libsysfs_found=0
+AC_CHECK_HEADER(sysfs/libsysfs.h,
+ [AC_CHECK_LIB(sysfs, sysfs_open_directory, libsysfs_found=1)])
+if test $libsysfs_found != 1; then
+ AC_MSG_WARN([Compiling without libsysfs support!])
+fi
AC_SUBST(KERNEL_HEADERS)