mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-27 01:29:27 +00:00
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>
This commit is contained in:
1 parent
e37d021583
commit
ac042f3f58
1 file changed
+5
@@ -1792,6 +1792,11 @@ LIBS=""
|
|||||||
# Defined in acinclude.m4.
|
# Defined in acinclude.m4.
|
||||||
grub_ASM_USCORE
|
grub_ASM_USCORE
|
||||||
grub_PROG_TARGET_CC
|
grub_PROG_TARGET_CC
|
||||||
|
|
||||||
|
# The error message produced by autoconf if autoconf-archive is not installed is
|
||||||
|
# quite misleading and not very helpful. So, try point people in the right direction.
|
||||||
|
m4_ifndef([AX_CHECK_LINK_FLAG], [m4_fatal([autoconf-archive is missing. You must install it to generate the configure script.])])
|
||||||
|
|
||||||
if test "x$TARGET_APPLE_LINKER" != x1 ; then
|
if test "x$TARGET_APPLE_LINKER" != x1 ; then
|
||||||
AX_CHECK_LINK_FLAG([-Wl,--image-base,0x400000],
|
AX_CHECK_LINK_FLAG([-Wl,--image-base,0x400000],
|
||||||
[TARGET_IMG_BASE_LDOPT="-Wl,--image-base"],
|
[TARGET_IMG_BASE_LDOPT="-Wl,--image-base"],
|
||||||
|
|||||||
Reference in new issue
Block a user