We don't really want to rebuild eztrace on each and every binutils upload.

--- a/src/core/Makefile.am
+++ b/src/core/Makefile.am
@@ -54,7 +54,7 @@ endif
 if HAVE_LIBOPCODE
 eztrace_LDFLAGS+=-lopcodes
 endif				#HAVE_LIBOPCODE
-eztrace_LDADD += -lbfd -liberty -lz
+eztrace_LDADD += @libdir@/libbfd.a -liberty -lz
 
 eztrace_avail_CPPFLAGS = $(TLCFLAGS)
 eztrace_avail_LDFLAGS = $(TLLDFLAGS)
--- a/configure.ac
+++ b/configure.ac
@@ -55,7 +55,7 @@ AC_CHECK_LIB([pthread], [pthread_create]
 AC_CHECK_LIB([pthread], [pthread_spin_lock], have_full_pthread=yes, have_full_pthread=no)
 AC_CHECK_LIB([z], [deflate])
 AC_CHECK_LIB([iberty], [cplus_demangle])
-AC_CHECK_LIB([bfd], [bfd_demangle])
+eval LIBS="$libdir/libbfd.a -lz $LIBS"
 
 # Check the OS type
 os_type=`uname -s`
@@ -194,7 +194,7 @@ have_demangle=yes
 AC_CHECK_HEADER([demangle.h], , have_demangle=no)
 AC_CHECK_LIB([iberty], [cplus_demangle], , have_demangle=no)
 AM_CONDITIONAL([HAVE_DEMANGLE], [test "x$have_demangle" = xyes])
-AC_CHECK_LIB([bfd], [bfd_release])
+eval LIBS="$libdir/libbfd.a -lz $LIBS"
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_TYPE_SIZE_T
@@ -233,8 +233,7 @@ if test "x$use_pptrace" = xyes; then
 
   pptrace_lib_found=yes#no
   pptrace_binary_type=1
-  AC_CHECK_LIB(bfd, bfd_release, [pptrace_binary_type=1], AC_MSG_ERROR([Error! You need to have libbfd]) )
-  AC_CHECK_LIB([z], [deflate],[],  AC_MSG_ERROR([Error! Missing dependancy for libbfd (libiberty)]))
+  eval LIBS="$libdir/libbfd.a -lz $LIBS"
 # check if the arch/OS is supported by pptrace
     if [ test "x$arch_str" = "xX86_64" ] || [ test "x$arch_str" = "xARM" ] ; then
 	if [ test "x$os_type" = "xLinux" ]; then
@@ -255,12 +254,9 @@ if test "x$use_pptrace" = xyes; then
     fi
 fi
 
-AC_CHECK_LIB([opcodes], disassembler,
-[
    libopcode_found=yes
    AC_SUBST(HAVE_LIBOPCODE, 1)
-   AC_MSG_RESULT(libopcode found.)
-], [libopcode_found=no])
+eval LIBS="$libdir/libopcodes.a $LIBS"
 
 AM_CONDITIONAL([HAVE_LIBOPCODE], [test "$libopcode_found" = yes])
 
