Skip to content

Commit 0971075

Browse files
committed
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 <[email protected]>
1 parent 0d8de18 commit 0971075

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ AC_INIT([genimage],
77
AC_CONFIG_SRCDIR([genimage.c])
88
AC_CONFIG_AUX_DIR([build-aux])
99
AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects])
10-
AC_PROG_CC_STDC
10+
AC_PROG_CC
1111

1212
# If possible, enable extensions to Posix
1313
AC_USE_SYSTEM_EXTENSIONS

m4/attributes.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ AC_DEFUN([CC_CHECK_LDFLAGS], [
8989
AS_TR_SH([cc_cv_ldflags_$1]),
9090
[ac_save_LDFLAGS="$LDFLAGS"
9191
LDFLAGS="$LDFLAGS $1"
92-
AC_LINK_IFELSE([int main() { return 1; }],
92+
AC_LINK_IFELSE([AC_LANG_SOURCE([int main() { return 1; }])],
9393
[eval "AS_TR_SH([cc_cv_ldflags_$1])='yes'"],
9494
[eval "AS_TR_SH([cc_cv_ldflags_$1])="])
9595
LDFLAGS="$ac_save_LDFLAGS"

0 commit comments

Comments
 (0)