Skip to content

Commit ac042f3

Browse files
radolinDaniel Kiper
authored andcommitted
configure: Print a more helpful error if autoconf-archive is not installed
... because an undefined macro receives another macro as parameter and autoconf is not smart enough to produce a useful error message. Signed-off-by: Radoslav Kolev <radoslav.kolev@suse.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
1 parent e37d021 commit ac042f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

configure.ac

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1792,6 +1792,11 @@ LIBS=""
17921792
# Defined in acinclude.m4.
17931793
grub_ASM_USCORE
17941794
grub_PROG_TARGET_CC
1795+
1796+
# The error message produced by autoconf if autoconf-archive is not installed is
1797+
# quite misleading and not very helpful. So, try point people in the right direction.
1798+
m4_ifndef([AX_CHECK_LINK_FLAG], [m4_fatal([autoconf-archive is missing. You must install it to generate the configure script.])])
1799+
17951800
if test "x$TARGET_APPLE_LINKER" != x1 ; then
17961801
AX_CHECK_LINK_FLAG([-Wl,--image-base,0x400000],
17971802
[TARGET_IMG_BASE_LDOPT="-Wl,--image-base"],

0 commit comments

Comments
 (0)