search for: sysfs_open_directory

Displaying 1 result from an estimated 1 matches for "sysfs_open_directory".

2007 Apr 18
0
[Bridge] [PATCH] Better test for libsysfs
...sed. The patch is against bridge-utils-1.0.4. -- Regards, Pavel Roskin -------------- next part -------------- --- configure.in +++ configure.in @@ -24,7 +24,14 @@ 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)