configure: Print a warning when prelink isn't found.
diff --git a/configure.ac b/configure.ac
index 9ef36b0..37628f6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -350,12 +350,6 @@
fi
-case $host_cpu in
- *i[[3456789]]86*)
- AC_PATH_PROG(PRELINK, prelink, false, [/sbin /usr/sbin $PATH])
- ;;
-esac
-
dnl **** Check for some libraries ****
dnl Check for -li386 for NetBSD and OpenBSD
@@ -796,6 +790,11 @@
*i[[3456789]]86* | x86_64)
WINE_TRY_CFLAGS([-Wl,--section-start,.interp=0x7bf00400],
[LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"])
+ AC_PATH_PROG(PRELINK, prelink, false, [/sbin /usr/sbin $PATH])
+ if test "x$PRELINK" = xfalse
+ then
+ WINE_WARNING([prelink not found, base address of core dlls won't be set correctly.])
+ fi
;;
esac