aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Reim <reimth@gmail.com>2022-08-16 12:07:59 +0800
committerIan Kent <raven@themaw.net>2022-08-26 16:32:55 +0800
commit69fda4f090e35bec87754932a941f574a1aad4eb (patch)
tree6ab257063586d210b8182822f64ff524195cac2f
parentd692f7addabc539dbc00c3bff8538afea983fc52 (diff)
downloadautofs-69fda4f090e35bec87754932a941f574a1aad4eb.tar.gz
autofs-5.1.8 - configure: LDAP function checks ignore implicit declarations
Wrong CFLAGS: gcc handles implicit function declaration as warning with current flag settings. Missing functions in libldap will not be identified. Signed-off-by: Thomas Reim <reimth@gmail.com> Signed-off-by: Ian Kent <raven@themaw.net>
-rw-r--r--CHANGELOG1
-rw-r--r--aclocal.m46
2 files changed, 7 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 52da6256..02f059d0 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -32,6 +32,7 @@
- restore gcc flags after autoconf Kerberos 5 check.
- prepare for OpenLDAP SASL binding.
- let OpenLDAP handle SASL binding.
+- configure: LDAP function checks ignore implicit declarations.
19/10/2021 autofs-5.1.8
- add xdr_exports().
diff --git a/aclocal.m4 b/aclocal.m4
index 91b22dae..9fc20bf1 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -379,6 +379,8 @@ AC_DEFUN([AF_CHECK_FUNC_LDAP_CREATE_PAGE_CONTROL],
# save current libs
af_check_ldap_create_page_control_save_libs="$LIBS"
LIBS="$LIBS -lldap"
+af_check_ldap_create_page_control_save_cflags="$CFLAGS"
+CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
AC_TRY_LINK(
[ #include <ldap.h> ],
@@ -399,6 +401,7 @@ fi
# restore libs
LIBS="$af_check_ldap_create_page_control_save_libs"
+CFLAGS="$af_check_ldap_create_page_control_save_cflags"
])
dnl --------------------------------------------------------------------------
@@ -412,6 +415,8 @@ AC_DEFUN([AF_CHECK_FUNC_LDAP_PARSE_PAGE_CONTROL],
# save current libs
af_check_ldap_parse_page_control_save_libs="$LIBS"
LIBS="$LIBS -lldap"
+af_check_ldap_parse_page_control_save_cflags="$CFLAGS"
+CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
AC_TRY_LINK(
[ #include <ldap.h> ],
@@ -432,6 +437,7 @@ fi
# restore libs
LIBS="$af_check_ldap_parse_page_control_save_libs"
+CFLAGS="$af_check_ldap_parse_page_control_save_cflags"
])
dnl --------------------------------------------------------------------------