From c8256a96be5b555326a1f05ec9bf77e51810f748 Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Sat, 2 Mar 2019 23:13:45 +0100 Subject: [PATCH] look for headers in include/samba-* for --with-libsmbclient This allows to specify a samba install directory via --with-libsmbclient where the header is located under include/samba-4.0/libsmbclient.h --- config.m4 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config.m4 b/config.m4 index 7874e15..50d6035 100644 --- a/config.m4 +++ b/config.m4 @@ -13,7 +13,12 @@ if test "$PHP_SMBCLIENT" != "no"; then if test "$PHP_LIBSMBCLIENT" != "yes"; then LIBSMBCLIENT_DIR=$PHP_LIBSMBCLIENT/$PHP_LIBDIR - LIBSMBCLIENT_INCDIR=$PHP_LIBSMBCLIENT/include + for i in $PHP_LIBSMBCLIENT/include $PHP_LIBSMBCLIENT/include/samba-* ; do + if test -r $i/libsmbclient.h; then + LIBSMBCLIENT_INCDIR="$i"; + break; + fi + done AC_DEFINE(HAVE_LIBSMBCLIENT, 1, [ ]) PHP_ADD_INCLUDE($LIBSMBCLIENT_INCDIR)