]> sourceware.org Git - newlib-cygwin.git/blobdiff - newlib/configure.host
2008-03-07 Jeff Johnston <jjohnstn@redhat.com>
[newlib-cygwin.git] / newlib / configure.host
index 7cde98e362b1f68b0e8cfb53030c295eceb3c668..bbdfff31fca7946b3524ea552d127271c13adbf6 100644 (file)
@@ -24,6 +24,7 @@
 #   target_optspace    --enable-target-optspace ("yes", "no", "")
 #   newlib_multithread --enable-newlib-multithread ("yes", "no", "yes")
 #   newlib_elix_level  --enable-newlib-elix-level ("1","2","3","4") ("4")
+#   newlib_io_c99_formats --enable-newlib-io-c99-formats ("yes", "no", "")
 #   newlib_io_long_long --enable-newlib-io-long-long ("yes", "no", "")
 #   newlib_io_long_double --enable-newlib-io-long-double ("yes", "no", "")
 
@@ -52,6 +53,7 @@ machine_dir=
 sys_dir=
 posix_dir=
 signal_dir=signal
+stdio_dir=stdio
 stdio64_dir=
 syscall_dir=
 unix_dir=
@@ -61,6 +63,7 @@ crt1_dir=
 have_crt0=
 use_libtool=no
 have_sys_mach_dir=no
+default_newlib_io_c99_formats=no
 default_newlib_io_long_long=no
 default_newlib_io_long_double=no
 default_newlib_io_pos_args=no
@@ -117,6 +120,10 @@ case "${host_cpu}" in
   ep9312)
        machine_dir=arm
        ;;
+  fido)
+       machine_dir=m68k
+       newlib_cflags="${newlib_cflags} -DCOMPACT_CTYPE"
+       ;;
   fr30)
        machine_dir=fr30
        ;;
@@ -183,6 +190,9 @@ case "${host_cpu}" in
        ;;
   mcore)
        ;;
+  mep)
+       machine_dir=mep
+       ;;
   mips*)
        machine_dir=mips
        ;;
@@ -243,6 +253,9 @@ case "${host_cpu}" in
   w65*)
        machine_dir=w65
        ;;
+  x86_64)
+       machine_dir=x86_64
+       ;;
   xstormy16)
        machine_dir=xstormy16
        newlib_cflags="${newlib_cflags} -DMALLOC_PROVIDED"
@@ -252,8 +265,10 @@ case "${host_cpu}" in
        machine_dir=z8k
        ;;
   spu)
+       stdio_dir=
+       libm_machine_dir=spu
        machine_dir=spu
-       newlib_cflags="${newlib_cflags} -ffunction-sections -fdata-sections "
+       newlib_cflags="${newlib_cflags} -D_POSIX_MODE -ffunction-sections -fdata-sections "
        ;;
   *)
        echo '***' "Newlib does not support CPU ${host_cpu}" 1>&2
@@ -391,6 +406,7 @@ case "${host}" in
        crt1=crt1.o
        crt1_dir=libc/sys/${sys_dir}    
        gcc_dir=`gcc -print-search-dirs | awk '/^install:/{print $2}'`
+       default_newlib_io_c99_formats="yes"
        default_newlib_io_long_double="yes"
        default_newlib_io_long_long="yes"
        default_newlib_io_pos_args="yes"
@@ -398,6 +414,7 @@ case "${host}" in
        newlib_cflags="${newlib_cflags} -Wall"
        newlib_cflags="${newlib_cflags} -D_I386MACH_ALLOW_HW_INTERRUPTS"
        newlib_cflags="${newlib_cflags} -DHAVE_FCNTL"
+       newlib_cflags="${newlib_cflags} -DHAVE_GETOPT"
        # --- Required when building a shared library ------------------------
        newlib_cflags="${newlib_cflags} -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION"
        # --- The three lines below are optional ------------------------------
@@ -415,6 +432,10 @@ case "${host}" in
   m8*-bug-*)
        sys_dir=m88kbug
        ;;
+  mep-*-*)
+       default_newlib_io_long_long="yes"
+       newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES"
+       ;;
   mips*-dec-*)
        sys_dir=decstation
        ;;
@@ -437,6 +458,7 @@ case "${host}" in
        ;;
   spu-*-*)
        default_newlib_io_long_long="yes"
+       default_newlib_atexit_dynamic_alloc="no"
        ;;
   strongarm-*-*)
        sys_dir=arm
@@ -490,11 +512,12 @@ case "${host}" in
   *-*-cygwin*)
        test -z "$cygwin_srcdir" && cygwin_srcdir=`cd ${srcdir}/../winsup/cygwin; pwd`
        export cygwin_srcdir
+       default_newlib_io_c99_formats="yes"
        default_newlib_io_long_long="yes"
        default_newlib_io_long_double="yes"
        default_newlib_io_pos_args="yes"
        CC="${CC} -I${cygwin_srcdir}/include"
-       newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DSIGNAL_PROVIDED -D_COMPILING_NEWLIB -DHAVE_FCNTL -DMALLOC_PROVIDED"
+       newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DSIGNAL_PROVIDED -D_COMPILING_NEWLIB -DHAVE_BLKSIZE -DHAVE_FCNTL -DMALLOC_PROVIDED"
        syscall_dir=syscalls
        ;;
 # RTEMS supplies its own versions of some routines:
@@ -571,6 +594,10 @@ case "${host}" in
          newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
        fi
        ;;
+  fido-*-elf)
+       newlib_cflags="${newlib_cflags} -DHAVE_RENAME -DHAVE_SYSTEM -DMISSING_SYSCALL_NAMES"
+       syscall_dir=
+       ;;
   fr30-*-*)
        syscall_dir=syscalls
        ;;
@@ -732,6 +759,13 @@ esac
 
 # Use defaults for certain settings if not specified by user
 
+# Enable C99 format support in I/O routines if requested.
+if [ "x${newlib_io_c99_formats}" = "x" ]; then
+       if [ ${default_newlib_io_c99_formats} = "yes" ]; then
+               newlib_io_c99_formats="yes";
+       fi
+fi
+
 # Enable long long support in I/O routines if requested.
 if [ "x${newlib_io_long_long}" = "x" ]; then
        if [ ${default_newlib_io_long_long} = "yes" ]; then
This page took 0.027073 seconds and 5 git commands to generate.