Fix bugs in the disassembly of some ld-instructions
[binutils-gdb.git] / opcodes / configure.in
index 460d95dea927dc9c0ff7f56dbc828d15e952973b..2800eed7503e2731f0d64fa2755f779241916054 100644 (file)
@@ -19,17 +19,18 @@ AM_INIT_AUTOMAKE(opcodes, ${BFD_VERSION})
 
 AC_PROG_CC
 AC_GNU_SOURCE
+AC_USE_SYSTEM_EXTENSIONS
 
-dnl These must be called before AM_PROG_LIBTOOL, because it may want
+dnl These must be called before LT_INIT, because it may want
 dnl to call AC_CHECK_PROG.
 AC_CHECK_TOOL(AR, ar)
 AC_CHECK_TOOL(RANLIB, ranlib, :)
 
 dnl Default to a non shared library.  This may be overridden by the
 dnl configure option --enable-shared.
-AM_DISABLE_SHARED
+AC_DISABLE_SHARED
 
-AM_PROG_LIBTOOL
+LT_INIT
 
 AC_ARG_ENABLE(targets,
 [  --enable-targets        alternative target configurations],
@@ -49,7 +50,7 @@ esac])dnl
 
 AM_BINUTILS_WARNINGS
 
-AM_CONFIG_HEADER(config.h:config.in)
+AC_CONFIG_HEADERS(config.h:config.in)
 
 if test -z "$target" ; then
     AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
@@ -107,8 +108,19 @@ if test "$enable_shared" = "yes"; then
       SHARED_LDFLAGS="-no-undefined"
       SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
       ;;
+   *-*-darwin*)
+     SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib"
+     SHARED_DEPENDENCIES="../bfd/libbfd.la"
+     ;;
     *)
-      SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so"
+      case "$host_vendor" in
+        hp)
+          SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl"
+         ;;
+       *)
+          SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so"
+         ;;
+      esac
       SHARED_DEPENDENCIES="../bfd/libbfd.la"
       ;;
   esac