s3:dmapi: prefer dmapi libs from gpfs over system libs
[ira/wip.git] / source3 / m4 / aclocal.m4
index 3b120e25643ebbe8a44e7040b07d6423ca978252..29033b79667977b0b07a1ad97b24f48bf18e75f3 100644 (file)
@@ -694,13 +694,13 @@ AC_DEFUN([SMB_CHECK_DMAPI],
     fi
 
     if test x"$samba_dmapi_libs" = x"" ; then
-       AC_CHECK_LIB(xdsm, dm_get_eventlist,
-               [samba_dmapi_libs="-lxdsm"], [])
+        AC_CHECK_LIB(dmapi, dm_get_eventlist,
+                [samba_dmapi_libs="-ldmapi"], [])
     fi
 
     if test x"$samba_dmapi_libs" = x"" ; then
-        AC_CHECK_LIB(dmapi, dm_get_eventlist,
-                [samba_dmapi_libs="-ldmapi"], [])
+       AC_CHECK_LIB(xdsm, dm_get_eventlist,
+               [samba_dmapi_libs="-lxdsm"], [])
     fi