From: Evgeny Grin (Karlson2k) Date: Sat, 12 Jul 2025 15:19:09 +0000 (+0200) Subject: configure: Fix quoting of the "#" symbol X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c458839aa6769b0c9437052e922fca389ac54a43;p=thirdparty%2Fshadow.git configure: Fix quoting of the "#" symbol [[]] means "use literally, without expansion and substitution". # symbol potentially could be interpreted as a comment. Also fixed one check with indented " #include " which is not correct C syntax. Signed-off-by: Evgeny Grin (Karlson2k) --- diff --git a/configure.ac b/configure.ac index d0c1fd437..db7957628 100644 --- a/configure.ac +++ b/configure.ac @@ -297,8 +297,8 @@ if test "$enable_subids" != "no"; then dnl dnl FIXME: check if 32 bit UIDs/GIDs are supported by libc dnl - AC_CHECK_SIZEOF([uid_t],[], [#include "sys/types.h"]) - AC_CHECK_SIZEOF([gid_t],[], [#include "sys/types.h"]) + AC_CHECK_SIZEOF([uid_t],[], [[#include "sys/types.h"]]) + AC_CHECK_SIZEOF([gid_t],[], [[#include "sys/types.h"]]) if test "$ac_cv_sizeof_uid_t" -ge 4 && test "$ac_cv_sizeof_gid_t" -ge 4; then AC_DEFINE([ENABLE_SUBIDS], [1], [Define to support the subordinate IDs.]) @@ -315,7 +315,7 @@ AM_CONDITIONAL([ENABLE_SUBIDS], [test "x$enable_subids" != "xno"]) if test "$enable_lastlog" = "yes" && test "$ac_cv_header_lastlog_h" = "yes"; then AC_CACHE_CHECK([for ll_host in struct lastlog], [ac_cv_struct_lastlog_ll_host], - [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [struct lastlog ll; char *cp = ll.ll_host;])], [ac_cv_struct_lastlog_ll_host=yes], [ac_cv_struct_lastlog_ll_host=no]) @@ -428,10 +428,10 @@ if test "$with_audit" != "no"; then if test "$audit_header$with_audit" = "noyes" ; then AC_MSG_ERROR([libaudit.h is missing]) elif test "$audit_header" = "yes"; then - AC_CHECK_DECL([AUDIT_ADD_USER],[],[audit_header="no"],[#include ]) - AC_CHECK_DECL([AUDIT_DEL_USER],[],[audit_header="no"],[#include ]) - AC_CHECK_DECL([AUDIT_ADD_GROUP],[],[audit_header="no"],[#include ]) - AC_CHECK_DECL([AUDIT_DEL_GROUP],[],[audit_header="no"],[#include ]) + AC_CHECK_DECL([AUDIT_ADD_USER],[],[audit_header="no"],[[#include ]]) + AC_CHECK_DECL([AUDIT_DEL_USER],[],[audit_header="no"],[[#include ]]) + AC_CHECK_DECL([AUDIT_ADD_GROUP],[],[audit_header="no"],[[#include ]]) + AC_CHECK_DECL([AUDIT_DEL_GROUP],[],[audit_header="no"],[[#include ]]) if test "$audit_header$with_audit" = "noyes" ; then AC_MSG_ERROR([AUDIT_ADD_USER AUDIT_DEL_USER AUDIT_ADD_GROUP or AUDIT_DEL_GROUP missing from libaudit.h]) fi @@ -552,7 +552,7 @@ if test "$with_libpam" != "no"; then pam_headers_found=no AC_CHECK_HEADERS( [security/openpam.h security/pam_misc.h], [ pam_headers_found=yes ; break ], [], - [ #include ] ) + [[#include ]] ) if test "$pam_headers_found$with_libpam" = "noyes" ; then AC_MSG_ERROR([PAM headers not found]) fi @@ -571,7 +571,7 @@ if test "$with_libpam" = "yes"; then PAM_DELETE_CRED, PAM_NEW_AUTHTOK_REQD, PAM_DATA_SILENT], - [], [], [#include ]) + [], [], [[#include ]]) save_libs=$LIBS