Add -m{,no-}regnames support; Add Solaris/linux support
[deliverable/binutils-gdb.git] / gas / configure.in
index 3275b8ef76816fce0c875e20c40061d02ec86de4..17893fe3c9b8919b19424ed9a547cc188ebe6e2e 100644 (file)
@@ -26,9 +26,13 @@ esac])dnl
 AC_ARG_ENABLE(shared,
 [  --enable-shared         build shared BFD library],
 [case "${enableval}" in
-  yes) shared=true ;;
+  yes) shared=true shared_bfd=true shared_opcodes=true ;;
   no)  shared=false ;;
-  *)   AC_MSG_ERROR([bad value ${enableval} for BFD shared option]) ;;
+  *bfd*opcodes*) shared=true shared_bfd=true shared_opcodes=true ;;
+  *opcodes*bfd*) shared=true shared_bfd=true shared_opcodes=true ;;
+  *bfd*) shared=true shared_bfd=true ;;
+  *opcodes*) shared=true shared_opcodes=true ;;
+  *) shared=false ;;
 esac])dnl
 
 # Generate a header file -- gets more post-processing by Makefile later.
@@ -230,6 +234,18 @@ changequote([,])dnl
                            *)    targ=ppc-lit ;;
                            esac
                            ;;
+      ppc-*-linux*)        fmt=elf
+                           case "$endian" in
+                           big)  targ=ppc-big ;;
+                           *)    AC_MSG_ERROR(Linux must be configured big endian) ;;
+                           esac
+                           ;;
+      ppc-*-solaris*)      fmt=elf
+                           case "$endian" in
+                           big)  AC_MSG_ERROR(Solaris must be configured little endian) ;;
+                           *)    targ=ppc-sol ;;
+                           esac
+                           ;;
       ppc-*-macos* | ppc-*-mpw*)
                            fmt=coff em=macos ;;
       ppc-*-netware*)       fmt=elf em=ppcnw ;;
@@ -300,7 +316,7 @@ changequote([,])dnl
        ;;
       *)
        need_opcodes=yes
-       if test "${shared}" = "true"; then
+       if test "${shared_opcodes}" = "true"; then
          # A shared libopcodes must be linked against libbfd.
          need_bfd=yes
        fi
@@ -519,7 +535,7 @@ case "${need_opcodes}" in
     OPCODES_LIB='-L../opcodes -lopcodes'
 
     # We need to handle some special cases if opcodes was built shared.
-    if test "${shared}" = "true"; then
+    if test "${shared_opcodes}" = "true"; then
       case "${host}" in
       *-*-sunos*)
       # On SunOS, we must link against the name we are going to install,
@@ -540,7 +556,7 @@ case "${need_bfd}" in
     ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
 
     # We need to handle some special cases if BFD was built shared.
-    if test "${shared}" = "true"; then
+    if test "${shared_bfd}" = "true"; then
       case "${host}" in
        *-*-sunos*)
        # On SunOS, we must link against the name we are going to install,
This page took 0.029495 seconds and 4 git commands to generate.