* mh-hp300: Don't define CFLAGS to empty. Why should hp300 be
[binutils-gdb.git] / configure.in
index 5a453a7f9658e0ca500d6964ed0c756166406a4a..e206884c3dc2ed28777513c4b63e2500d5f53ee4 100644 (file)
@@ -30,9 +30,9 @@ host_libs="mmalloc libiberty opcodes bfd readline glob gash tcl tk tclX"
 #
 host_tools="texinfo byacc flex bison binutils ld gas gcc gdb make patch
            prms send-pr gprof gdbtest tgas etc expect dejagnu sim
-            m4 autoconf ispell grep diff rcs cvs dosutils fileutils shellutils
+            m4 autoconf ispell grep diff rcs cvs fileutils shellutils
            textutils wdiff find emacs uudecode hello tar gzip indent
-           recode release"
+           recode release sed utils"
 
 
 # these libraries are built for the target environment, and are built after
@@ -88,10 +88,10 @@ case "${host}" in
   m68k-apollo-bsd*)       host_makefile_frag=config/mh-a68bsd ;;
   m88k-motorola-sysv*)    host_makefile_frag=config/mh-delta88;;
   m88k-dg-dgux*)         host_makefile_frag=config/mh-dgux ;;
-  mips-dec-ultrix*)       host_makefile_frag=config/mh-decstation ;;
-  mips-sgi-irix4*)        host_makefile_frag=config/mh-irix4 ;;
-  mips-sgi-irix3*)        host_makefile_frag=config/mh-sysv ;;
-  mips-*-sysv*)                  host_makefile_frag=config/mh-riscos ;;
+  mips*-dec-ultrix*)      host_makefile_frag=config/mh-decstation ;;
+  mips*-sgi-irix4*)       host_makefile_frag=config/mh-irix4 ;;
+  mips*-sgi-irix3*)       host_makefile_frag=config/mh-sysv ;;
+  mips*-*-sysv*)         host_makefile_frag=config/mh-riscos ;;
   i[34]86-ncr-sysv4*)     host_makefile_frag=config/mh-ncr3000 ;;
   i[34]86-*-sco*)         host_makefile_frag=config/mh-sco ;;
   i[34]86-*-isc*)        host_makefile_frag=config/mh-sysv ;;
@@ -137,7 +137,7 @@ esac
 
 
 
-# some tools are only suitable for building in a "native" situation.
+# Some tools are only suitable for building in a "native" situation.
 # Those are added when we have a host==target configuration.  For cross
 # toolchains, we add some directories that should only be useful in a
 # cross-compiler.
@@ -156,13 +156,16 @@ else
        done
 fi     
 
+## start-sanitize-for-fsf
 
-# remove more programs from consideration, based on the host or 
+# Remove more programs from consideration, based on the host or 
 # target this usually means that a port of the program doesn't
-# exist yet.
+# exist yet.  This section gets removed for FSF releases,
+# where we want the configure scripts in the subdirectories to
+# complain if the target or host isn't supported.
 
 case "${host}" in
-  alpha-dec-osf1)
+  alpha-dec-osf1*)
     configdirs=`echo ${configdirs} | sed -e 's/gdb//'`
     ;;
   i[34]86-*-go32)
@@ -176,8 +179,8 @@ case "${host}" in
 esac
 
 case "${target}" in
-  alpha-dec-osf1)
-    configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas //'`
+  alpha-dec-osf1*)
+    configdirs=`echo ${configdirs} | sed -e 's/gas //'`
     configdirs=`echo ${configdirs} | sed -e 's/gdb//;s/emacs//;s/fileutils//'`
     configdirs=`echo ${configdirs} | sed -e 's/grep//;s/libg++//;s/libio//'`
     ;; 
@@ -196,7 +199,15 @@ case "${target}" in
   hppa*-*-osf)
     # Do configure ld/binutils/gas for this case.
     ;;
+  m68k-hp-hpux*)
+    configdirs=`echo ${configdirs} | sed -e 's/emacs//'`
+    ;; 
   hppa*-*-*)
+    # HP's C compiler doesn't handle Emacs correctly
+    case "${CC}" in
+       "" | cc*) configdirs=`echo ${configdirs} | sed -e 's/emacs//'` ;;
+        *) echo "building emacs" ;;
+    esac
     configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas /pagas /;s/shellutils//'`
     gasdir=pagas
     ;;
@@ -204,8 +215,18 @@ case "${target}" in
     # add the go32 support tools to the list
     configdirs=`echo go32 ${configdirs}`
     ;;
+  i[34]86-*-sysv4*)
+    # The SYSV4 C compiler doesn't handle Emacs correctly
+    case "${CC}" in
+       "" | cc*) configdirs=`echo ${configdirs} | sed -e 's/emacs//'` ;;
+        *) ;;
+    esac
+    # but that's okay since emacs doesn't work anyway
+    configdirs=`echo ${configdirs} | sed -e 's/emacs//'`
+    ;;
   rs6000-*-*)
-    configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas //;s/gprof//'`
+    # a gcc built textutils will cause the linker to hang on 'join'
+    configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas //;s/gprof//;s/textutils//'`
     ;;
   mips-*-*)
     configdirs=`echo ${configdirs} | sed -e 's/gprof//'`
@@ -219,6 +240,9 @@ case "${target}" in
   sparc-*-sunos4*)
     use_gnu_ld=no
     ;;
+  sparc-*-solaris2*)
+    configdirs=`echo ${configdirs} | sed -e 's/ld//'`
+    ;;
   i[34]86-*-sco*)
     configdirs=`echo ${configdirs} | sed -e 's/gprof//'`
     ;;
@@ -230,6 +254,8 @@ case "${target}" in
     ;;
 esac
 
+## end-sanitize-for-fsf
+
 # Set with_gnu_as and with_gnu_ld as appropriate.
 #
 # This is done by determining whether or not the appropriate directory