From 3e6520cffaa72a028eea0f97ad8f4e1a8d34a0e1 Mon Sep 17 00:00:00 2001
From: reid <unknown>
Date: Tue, 19 May 1998 19:34:09 +0000
Subject: [PATCH] [project @ 1998-05-19 19:34:09 by reid] Added test for
 libiberty.a (needed by libbfd.a)

---
 configure.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index effe2ee80e24..44e30895f7c8 100644
--- a/configure.in
+++ b/configure.in
@@ -482,9 +482,11 @@ AC_CHECK_LIB(gmp, mpz_fdiv_qr, HaveLibGmp=YES, HaveLibGmp=NO)
 AC_SUBST(HaveLibGmp)
 
 #
-dnl ** check whether this machine has BFD installed (used for debugging)
+dnl ** check whether this machine has BFD and liberty installed (used for debugging)
+dnl ** the order of these tests matters: bfd needs liberty
 #
-AC_CHECK_LIB(bfd, bfd_init)
+AC_CHECK_LIB(iberty, xmalloc)
+AC_CHECK_LIB(bfd,    bfd_init)
 
 #
 # Misc
-- 
GitLab