This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] prevent libnosys from being build on the SPU


Hi,

This patch prevents libnosys from being build on the SPU target. It introduces 
a config_libnosys flag to indicate whether to build libnosys or not.

Ken
libgloss/ChangeLog:

2009-05-06  Ken Werner  <ken.werner@de.ibm.com>

        * configure.in: Introduce config_libnosys flag which defaults to true.
        * configure: Regenerate.

Index: src/libgloss/configure.in
===================================================================
--- src.orig/libgloss/configure.in
+++ src/libgloss/configure.in
@@ -24,128 +24,113 @@ AC_CANONICAL_SYSTEM
 AM_INIT_AUTOMAKE([cygnus no-define 1.9.5])
 
 if test -z "${with_multisubdir}" ; then
-  AC_CONFIG_SUBDIRS(doc)
+  AC_CONFIG_SUBDIRS([doc])
 fi
 
-AC_CONFIG_SUBDIRS(libnosys)
+dnl indicates whether to run configure within the testsuite subdirectory
+config_testsuite=true
+
+dnl indicates whether to run configure within the libnosys subdirectory
+config_libnosys=true
 
 case "${target}" in
   i[[3456]]86-*-elf* | i[[3456]]86-*-coff*)
-	AC_CONFIG_SUBDIRS(i386)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([i386])
 	;;
   m32r-*-*)
-	AC_CONFIG_SUBDIRS(m32r)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([m32r])
 	;;
   m68hc11-*-* | m6811-*-* | m68hc12-*-* | m6812-*-*)
-	AC_CONFIG_SUBDIRS(m68hc11)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([m68hc11])
 	;;
   fido-*-* | m68*-*-*)
-	AC_CONFIG_SUBDIRS(m68k)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([m68k])
 	;;
   hppa*-*-pro*)
-	AC_CONFIG_SUBDIRS(pa)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([pa])
 	;;
   i960-*-coff)
-	AC_CONFIG_SUBDIRS(i960)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([i960])
 	;;
   sparclet-*-aout* | sparc-*-elf* | sparc64-*-elf* | sparc86x-*-* | sparclite-*-*)
-	AC_CONFIG_SUBDIRS(sparc)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([sparc])
 	;;
   sh*-*-pe | mips*-*-pe | *arm-wince-pe)
-	AC_CONFIG_SUBDIRS(wince)
+	AC_CONFIG_SUBDIRS([wince])
 	;;
   mips*-*-*)
-	AC_CONFIG_SUBDIRS(mips)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([mips])
 	;;
   powerpc-*-*|powerpcle-*-*)
-	AC_CONFIG_SUBDIRS(rs6000)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([rs6000])
 	;;
   mn10200-*-*)
-	AC_CONFIG_SUBDIRS(mn10200)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([mn10200])
 	;;
   mn10300-*-*)
-	AC_CONFIG_SUBDIRS(mn10300)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([mn10300])
 	;;
   bfin-*-*)
-	AC_CONFIG_SUBDIRS(bfin)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([bfin])
 	;;
   cris-*-* | crisv32-*-*)
-	AC_CONFIG_SUBDIRS(cris)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([cris])
 	;;
   crx-*-*)
-	AC_CONFIG_SUBDIRS(crx)
+	AC_CONFIG_SUBDIRS([crx])
 	;;
   d30v-*-*)
-	AC_CONFIG_SUBDIRS(d30v)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([d30v])
 	;;
   fr30-*-*)
-	AC_CONFIG_SUBDIRS(fr30)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([fr30])
 	;;
   frv*-*-*)
-	AC_CONFIG_SUBDIRS(frv)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([frv])
 	;;
   lm32*-*-*)
-	AC_CONFIG_SUBDIRS(lm32)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([lm32])
 	;;
   mcore-*-*)
-	AC_CONFIG_SUBDIRS(mcore)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([mcore])
 	;;
   mep-*-*)
-	AC_CONFIG_SUBDIRS(mep)
-	config_testsuite = true;
+	AC_CONFIG_SUBDIRS([mep])
 	;;
   moxie-*-*)
-	AC_CONFIG_SUBDIRS(moxie)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([moxie])
 	;;
   mt-*-*)
-        AC_CONFIG_SUBDIRS(mt)
-	config_testsuite=true
+        AC_CONFIG_SUBDIRS([mt])
 	;;
   xstormy16-*-*)
-	AC_CONFIG_SUBDIRS(xstormy16)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([xstormy16])
 	;;
   m32c-*-*)
-	AC_CONFIG_SUBDIRS(m32c)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([m32c])
 	;;
   strongarm-*-elf | strongarm-*-coff | arm*-*-elf | arm*-*-coff | ep9312-*-elf | ep9312-*-coff | xscale-*-elf | xscale-*-coff | *arm-*-*)
-	AC_CONFIG_SUBDIRS(arm)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([arm])
 	;;
   spu-*-elf)
-	AC_CONFIG_SUBDIRS(spu)
+	AC_CONFIG_SUBDIRS([spu])
 	config_testsuite=false
+	config_libnosys=false
 	;;
   iq2000-*-*)
-	AC_CONFIG_SUBDIRS(iq2000)
-	config_testsuite=true
+	AC_CONFIG_SUBDIRS([iq2000])
 	;;
 esac
 
-# For now, don't bother configuring testsuite
-#
-# if test ${config_testsuite); then AC_CONFIG_SUBDIRS(testsuite); fi
-#
+dnl For now, don't bother configuring testsuite
+dnl
+dnl if test "${config_testsuite}" = "true";
+dnl   then AC_CONFIG_SUBDIRS([testsuite])
+dnl fi
+
+if test "${config_libnosys}" = "true"; then
+  AC_CONFIG_SUBDIRS([libnosys])
+fi
 
 LIB_AC_PROG_CC
 AS=${AS-as}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]