samba: simplify the configure test.
authorRémi Duraffort <ivoire@videolan.org>
Fri, 26 Jun 2009 07:01:38 +0000 (09:01 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Fri, 26 Jun 2009 07:01:38 +0000 (09:01 +0200)
configure.ac

index 3c822c4..fb9bb48 100644 (file)
@@ -2250,15 +2250,10 @@ dnl
 AC_ARG_ENABLE(smb,
   [  --enable-smb            smb input module (default enabled)])
 if test "${enable_smb}" != "no"; then
-  AC_CHECK_HEADERS(libsmbclient.h,
-    [ VLC_ADD_PLUGIN([access_smb])
-      VLC_ADD_LIBS([access_smb],[-lsmbclient]) ],
-    [ if test -n "${enable_smb}"; then
-        AC_MSG_ERROR([cannot find libsmbclient headers])
-     fi ])
-  AC_CHECK_MEMBER([struct _SMBCCTX.close_fn],
-    AC_DEFINE([HAVE__SMBCCTX_CLOSE_FN], 1, [Define if samba has _SMBCCTX.close_fn]),,
-    [#include <libsmbclient.h>])
+  AC_CHECK_HEADERS(libsmbclient.h, [
+    VLC_ADD_PLUGIN([access_smb])
+    VLC_ADD_LIBS([access_smb],[-lsmbclient])
+  ],[AC_MSG_ERROR([cannot find libsmbclient headers])])
 fi
 
 dnl