Re: [ptxdist] [PATCH 3/3] configure.ac: replace obsolete AC_HEADER_STDC

2023-07-28 Thread Michael Olbrich
On Mon, Jul 10, 2023 at 11:33:53AM +0200, Robert Schwebel wrote:
> The AC_HEADER_STDC macro is obsolete (found by autoupdate), replace it by
> AC_CHECK_INCLUDES_DEFAULT and AC_PROG_EGREP which do the same.

On Debian Bullseye this fails with:

configure.ac:41: error: possibly undefined macro: AC_CHECK_INCLUDES_DEFAULT
  If this token and others are legitimate, please use m4_pattern_allow.
  See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

So I'll stick with the old version for now.

Michael

> Signed-off-by: Robert Schwebel 
> ---
>  configure.ac | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 2499b06fc..7a013a51a 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -38,7 +38,8 @@ AS_IF([test -z "$PKG_CONFIG"], AC_MSG_ERROR([pkg-config not 
> found.]))
>  dnl
>  dnl Check header files, mostly for lxdialog & kconfig
>  dnl
> -AC_HEADER_STDC
> +AC_CHECK_INCLUDES_DEFAULT
> +AC_PROG_EGREP
>  
>  AC_CHECK_HEADERS([fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h 
> stddef.h stdlib.h string.h sys/time.h unistd.h])
>  
> -- 
> 2.30.2
> 
> 
> 

-- 
Pengutronix e.K.   | |
Steuerwalder Str. 21   | http://www.pengutronix.de/  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |



[ptxdist] [PATCH 3/3] configure.ac: replace obsolete AC_HEADER_STDC

2023-07-10 Thread Robert Schwebel
The AC_HEADER_STDC macro is obsolete (found by autoupdate), replace it by
AC_CHECK_INCLUDES_DEFAULT and AC_PROG_EGREP which do the same.

Signed-off-by: Robert Schwebel 
---
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 2499b06fc..7a013a51a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,7 +38,8 @@ AS_IF([test -z "$PKG_CONFIG"], AC_MSG_ERROR([pkg-config not 
found.]))
 dnl
 dnl Check header files, mostly for lxdialog & kconfig
 dnl
-AC_HEADER_STDC
+AC_CHECK_INCLUDES_DEFAULT
+AC_PROG_EGREP
 
 AC_CHECK_HEADERS([fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h 
stddef.h stdlib.h string.h sys/time.h unistd.h])
 
-- 
2.30.2