aboutsummaryrefslogtreecommitdiff
blob: 2343066e30113972a40c1984f7450f8d9881b534 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Compatibility fix for autoconf-2.72
Patch backported from master branch
https://bugs.gentoo.org/930502

commit e34ebc0ccc6c27e7e1217baad9ca74dd7bea4c37
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Wed Feb 7 13:17:57 2024 -0800

    Port better to Autoconf 2.72

    * configure.ac: Set ac_cv_type_gid_t=yes to pacify Autoconf 2.72
    AC_TYPE_GETGROUPS.  Problem reported by Nick Bowler in:
    https://lists.gnu.org/r/autoconf-patches/2024-02/msg00001.html

--- emacs-27.2/configure.ac
+++ emacs-27.2/configure.ac
@@ -1633,6 +1633,7 @@
 AC_DEFUN([AC_TYPE_SIZE_T])
 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
 AC_DEFUN([AC_TYPE_UID_T])
+ac_cv_type_gid_t=yes # AC_TYPE_GETGROUPS needs this in Autoconf 2.72.
 
 # sqrt and other floating-point functions such as fmod and frexp
 # are found in -lm on many systems.