]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Also search for -lgpfs which is available as GPL in GPFS PTF8 (cherry picked from...
authorVolker Lendecke <vl@samba.org>
Wed, 10 Dec 2008 17:17:59 +0000 (18:17 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 12 Dec 2008 16:17:37 +0000 (17:17 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
source/configure.in

index 798a0f8a8c6937e1d3868b64900abb17c4f8e8e6..97d9eb0876bbede0f7502f2e39e7b3b8dbd77dfd 100644 (file)
@@ -1078,6 +1078,20 @@ if test x"$samba_cv_HAVE_GPFS" = x"yes"; then
 fi
 LIBS="$save_LIBS"
 
+printf "%s" "checking for GPFS libs (with 3.2.1 PTF8 available as GPL)... "
+save_LIBS="$LIBS"
+LIBS="$LIBS -lgpfs"
+AC_TRY_LINK([#include <gpfs.h>],
+          [gpfs_set_share(0,GPFS_SHARE_READ,GPFS_DENY_NONE)],
+          samba_cv_HAVE_GPFS=yes,
+          samba_cv_HAVE_GPFS=no)
+echo $samba_cv_HAVE_GPFS
+if test x"$samba_cv_HAVE_GPFS" = x"yes"; then
+    AC_DEFINE(HAVE_GPFS,1,[Whether GPFS GPL libs are available])
+    default_shared_modules="$default_shared_modules vfs_gpfs"
+fi
+LIBS="$save_LIBS"
+
 # Note that all the libunwind symbols in the API are defined to internal
 # platform-specific version, so we must include libunwind.h before checking
 # any of them.