autoconf: Update scripts for newer versions of autoconf.

* AC_LINK_IFELSE without AC_LANG_SOURCE is deprecated since somewhen
  around version 2.68.
* AC_PROG_CC_STDC has been deprecated In favor of AC_PROG_CC with
  version 2.70. The necessary options for standard C are now determined
  and added automatically.

Signed-off-by: Kimon Hoffmann <Kimon.Hoffmann@lawo.com>
This commit is contained in:
Kimon Hoffmann 2023-03-23 21:12:29 +01:00
parent 0d8de181b1
commit 097107517a
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ AC_INIT([genimage],
AC_CONFIG_SRCDIR([genimage.c])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects])
AC_PROG_CC_STDC
AC_PROG_CC
# If possible, enable extensions to Posix
AC_USE_SYSTEM_EXTENSIONS

View File

@ -89,7 +89,7 @@ AC_DEFUN([CC_CHECK_LDFLAGS], [
AS_TR_SH([cc_cv_ldflags_$1]),
[ac_save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $1"
AC_LINK_IFELSE([int main() { return 1; }],
AC_LINK_IFELSE([AC_LANG_SOURCE([int main() { return 1; }])],
[eval "AS_TR_SH([cc_cv_ldflags_$1])='yes'"],
[eval "AS_TR_SH([cc_cv_ldflags_$1])="])
LDFLAGS="$ac_save_LDFLAGS"