build: drop obsolete autoconf macro
PATCH 1/1 build: drop obsolete autoconf macro
From: Bartosz Golaszewski <[email protected]>
AC_HEADER_STDC is deprecated and should be replaced with AC_CHECK_INCLUDES_DEFAULT. We haven't done this until now because the latter is only available since autoconf v2.71. We kept supporting v2.69 for the sake of Debian stable but it has since upgraded to autoconf v2.71 so we update configure.ac as well and fix an autoconf warning.
--- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
configure.ac +3 -2
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-or-later # SPDX-FileCopyrightText: 2017-2022 Bartosz Golaszewski <[email protected]> -AC_PREREQ([2.69]) +AC_PREREQ([2.71]) AC_INIT([libgpiod], [2.2]) AC_SUBST(EXTRA_VERSION, [-rc2])
@@ -74,7 +74,8 @@ AC_DEFUN([HEADER_NOT_FOUND_CXX], [ERR_NOT_FOUND([$1 header], [C++ bindings])]) # This is always checked (library needs this) -AC_HEADER_STDC +AC_CHECK_INCLUDES_DEFAULT + AC_FUNC_MALLOC AC_HEADER_STDBOOL AC_CHECK_FUNC([ioctl], [], [FUNC_NOT_FOUND_LIB([ioctl])])
Signature · 1 line
2.43.0
Bartosz Golaszewski
AppliedFrom: Bartosz Golaszewski <[email protected]>
Quoted 8 lines · Bartosz Golaszewski
AC_HEADER_STDCis deprecated and should be replaced withAC_CHECK_INCLUDES_DEFAULT. We haven't done this until now because the latter is only available since autoconf v2.71. We kept supporting v2.69 for the sake of Debian stable but it has since upgraded to autoconf v2.71 so we update configure.ac as well and fix an autoconf warning.[...]
Applied, thanks!
[1/1] build: drop obsolete autoconf macro
commit: ed7ffe83627b804af1a644c5df9c66ebcec2d28c
Best regards,
Signature · 1 line
Bartosz Golaszewski <[email protected]>