* [PATCH cifs-utils] configure.ac: libtalloc is now mandatory
@ 2024-12-26 20:42 Thomas Petazzoni
2025-01-20 16:09 ` Paulo Alcantara
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Petazzoni @ 2024-12-26 20:42 UTC (permalink / raw)
To: Pavel Shilovsky; +Cc: linux-cifs, Thomas Petazzoni
Since commit c6bf4d9a59809fbb0c22ef9eb167c099ab8089fb ("Implement
CLDAP Ping to find the closest site"), libtalloc is mandatory to
cifs-utils. This needs to be reflected in the configure.ac script to
get a failure at configure time and not build time.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
configure.ac | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/configure.ac b/configure.ac
index b84c41f..b74358d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -133,6 +133,10 @@ AC_CHECK_HEADERS([arpa/inet.h ctype.h fcntl.h inttypes.h limits.h mntent.h netdb
AC_CHECK_HEADERS([sys/fsuid.h])
AC_CHECK_FUNC(setfsuid, , [AC_MSG_ERROR([System does not support setfsuid()])])
+# libtalloc
+AC_CHECK_HEADERS([talloc.h], ,[AC_MSG_ERROR([talloc.h not found, consider installing libtalloc-devel.])])
+AC_CHECK_LIB(talloc, talloc_init, ,[AC_MSG_ERROR([talloc.h not found, consider installing libtalloc-devel.])])
+
# FIXME: add test(s) to autodisable these flags when compiler/linker don't support it
if test $enable_pie != "no"; then
PIE_CFLAGS="-fpie -pie"
@@ -177,16 +181,6 @@ if test $enable_cifsupcall != "no"; then
[Whether the krb5_keyblock struct has a keyvalue property])
fi
fi
-if test $enable_cifsupcall != "no"; then
- AC_CHECK_HEADERS([talloc.h], , [
- if test "$enable_cifsupcall" = "yes"; then
- AC_MSG_ERROR([talloc.h not found, consider installing libtalloc-devel.])
- else
- AC_MSG_WARN([talloc.h not found, consider installing libtalloc-devel. Disabling cifs.upcall.])
- enable_cifsupcall="no"
- fi
- ])
-fi
if test $enable_cifsupcall != "no" -o $enable_cifsidmap != "no"; then
AC_CHECK_HEADERS([keyutils.h], , [
if test "$enable_cifsupcall" = "yes"; then
--
2.47.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH cifs-utils] configure.ac: libtalloc is now mandatory
2024-12-26 20:42 [PATCH cifs-utils] configure.ac: libtalloc is now mandatory Thomas Petazzoni
@ 2025-01-20 16:09 ` Paulo Alcantara
0 siblings, 0 replies; 2+ messages in thread
From: Paulo Alcantara @ 2025-01-20 16:09 UTC (permalink / raw)
To: Thomas Petazzoni, Pavel Shilovsky; +Cc: linux-cifs, Thomas Petazzoni
Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:
> Since commit c6bf4d9a59809fbb0c22ef9eb167c099ab8089fb ("Implement
> CLDAP Ping to find the closest site"), libtalloc is mandatory to
> cifs-utils. This needs to be reflected in the configure.ac script to
> get a failure at configure time and not build time.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ---
> configure.ac | 14 ++++----------
> 1 file changed, 4 insertions(+), 10 deletions(-)
Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-20 16:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-26 20:42 [PATCH cifs-utils] configure.ac: libtalloc is now mandatory Thomas Petazzoni
2025-01-20 16:09 ` Paulo Alcantara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox