From 8432270a725199efd0ccabb19d0c55c3ab3a94f0 Mon Sep 17 00:00:00 2001 From: sezero Date: Thu, 12 Jan 2017 11:28:02 +0300 Subject: [PATCH] configure.ac: check xmp_set_player instead of xmp_version Autoconf checks the symbol by doing a "return xmp_version ();" from main(), and the MorphOS linker fails it with the error message: The target (xmp_version) of a R_PPC_REL24 relocation is in the wrong section (.sdata) well, xmp_version is data... --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 50ba507..35d9a18 100644 --- a/configure.ac +++ b/configure.ac @@ -32,8 +32,9 @@ AM_INIT_AUTOMAKE([foreign subdir-objects tar-pax]) old_LDFLAGS="${LDFLAGS}" PKG_CHECK_MODULES([libxmp], [libxmp >= 4.4], LDFLAGS="${LDFLAGS} ${libxmp_LIBS}" - AC_CHECK_LIB(xmp, xmp_version, [LDFLAGS="${old_LDFLAGS}"], [exit 1]), - [echo "You need libxmp version 4.4 or later to build this package"; exit 1]) + AC_CHECK_LIB(xmp, xmp_set_player, [LDFLAGS="${old_LDFLAGS}"], [exit 1]), + [echo "You need libxmp version 4.4 or later to build this package"; exit 1] +) dnl Don't use things like /usr/etc or /usr/var