newlib/libgloss/configure.in

243 lines
4.6 KiB
Plaintext
Raw Normal View History

2000-03-17 23:48:54 +01:00
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT([libgloss],[LIBGLOSS_VERSION])
AC_CONFIG_SRCDIR([libnosys])
2000-03-17 23:48:54 +01:00
if test "${enable_shared}" = "yes" ; then
echo "Shared libraries not supported for cross compiling, ignored"
fi
if test "${srcdir}" = "." ; then
if test "${with_target_subdir}" != "." ; then
libgloss_topdir="${srcdir}/${with_multisrctop}../.."
else
libgloss_topdir="${srcdir}/${with_multisrctop}.."
fi
else
libgloss_topdir="${srcdir}/.."
fi
AC_CONFIG_AUX_DIR($libgloss_topdir)
AC_PROG_INSTALL
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([cygnus no-define 1.9.5])
2000-03-17 23:48:54 +01:00
if test -z "${with_multisubdir}" ; then
AC_CONFIG_SUBDIRS([doc])
2000-03-17 23:48:54 +01:00
fi
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
2000-03-17 23:48:54 +01:00
case "${target}" in
aarch64*-*-*)
AC_CONFIG_SUBDIRS(aarch64)
config_testsuite=true
;;
arc*-*-*)
AC_CONFIG_SUBDIRS(arc)
;;
epiphany-*-*)
AC_CONFIG_SUBDIRS(epiphany)
config_testsuite=true
;;
i[[3456]]86-*-elf* | i[[3456]]86-*-coff*)
AC_CONFIG_SUBDIRS([i386])
2000-03-17 23:48:54 +01:00
;;
m32r-*-*)
AC_CONFIG_SUBDIRS([m32r])
2000-03-17 23:48:54 +01:00
;;
m68hc11-*-* | m6811-*-* | m68hc12-*-* | m6812-*-*)
AC_CONFIG_SUBDIRS([m68hc11])
;;
nds32*-*-*)
AC_CONFIG_SUBDIRS([nds32])
;;
fido-*-* | m68*-*-*)
AC_CONFIG_SUBDIRS([m68k])
2000-03-17 23:48:54 +01:00
;;
hppa*-*-pro*)
AC_CONFIG_SUBDIRS([pa])
2000-03-17 23:48:54 +01:00
;;
i960-*-coff)
AC_CONFIG_SUBDIRS([i960])
2000-03-17 23:48:54 +01:00
;;
2011-12-15 Konrad Eisele <konrad@gaisler.com> * configure.in: Add SPARC LEON support. * configure: Regenerated. * sparc_leon/asm-leon/amba.h, sparc_leon/asm-leon/asmmacro.h, sparc_leon/asm-leon/clock.h, sparc_leon/asm-leon/contextswitch.h, sparc_leon/asm-leon/elfmacro.h, sparc_leon/asm-leon/head.h, sparc_leon/asm-leon/irq.h, sparc_leon/asm-leon/jiffies.h, sparc_leon/asm-leon/lambapp.h, sparc_leon/asm-leon/lambapp_devs.h, sparc_leon/asm-leon/leon.h, sparc_leon/asm-leon/leon3.h, sparc_leon/asm-leon/leonbare_debug.h, sparc_leon/asm-leon/leonbare_kernel.h, sparc_leon/asm-leon/leonbare_kernel_queue.h, sparc_leon/asm-leon/leoncompat.h, sparc_leon/asm-leon/leondbg.h, sparc_leon/asm-leon/leonstack.h, sparc_leon/asm-leon/liblocks.h, sparc_leon/asm-leon/linkage.h, sparc_leon/asm-leon/param.h, sparc_leon/asm-leon/queue.h, sparc_leon/asm-leon/spinlock.h, sparc_leon/asm-leon/stack.h, sparc_leon/asm-leon/time.h, sparc_leon/asm-leon/timer.h, sparc_leon/asm-leon/types.h, sparc_leon/asm-leon/winmacros.h: New file. * sparc_leon/Makefile.in, sparc_leon/_exit.c, sparc_leon/amba.c, sparc_leon/amba_dbg.c, sparc_leon/amba_driver.c, sparc_leon/amba_scan.c, sparc_leon/asm-leon, sparc_leon/bdinit.S, sparc_leon/busscan.S, sparc_leon/cacheA.S, sparc_leon/catch_interrupt.c, sparc_leon/catch_interrupt_mvt.c, sparc_leon/catch_interrupt_pending.c, sparc_leon/catch_interrupt_svt.c, sparc_leon/configure.in, sparc_leon/console.c, sparc_leon/console_dbg.c, sparc_leon/console_init.c, sparc_leon/contextswitch.c, sparc_leon/contextswitch_asm.S, sparc_leon/crt0.S, sparc_leon/crti.S, sparc_leon/crtn.S, sparc_leon/etrap.S, sparc_leon/etrap_fast.S, sparc_leon/fpu.S, sparc_leon/gettimeofday.c, sparc_leon/initcalls.c, sparc_leon/io.c, sparc_leon/irqinstall.S, sparc_leon/irqtrap.S, sparc_leon/irqtrap_fast.S, sparc_leon/jiffies.c, sparc_leon/kernel.c, sparc_leon/kernel_context.S, sparc_leon/kernel_debug.c, sparc_leon/kernel_debug_var.c, sparc_leon/kernel_mm.c, sparc_leon/kernel_mutex.c, sparc_leon/kernel_queue.c, sparc_leon/kernel_sched.c, sparc_leon/kernel_thread.c, sparc_leon/lcpuinit.S, sparc_leon/locore.S, sparc_leon/locore_atexit.c, sparc_leon/locore_clean.S, sparc_leon/locore_mvt.S, sparc_leon/locore_mvt_reset.S, sparc_leon/locore_svt.S, sparc_leon/locore_svt_reset.S, sparc_leon/locore_svtdisp.S, sparc_leon/locore_var.S, sparc_leon/locore_var_svt.S, sparc_leon/mmu_asm.S, sparc_leon/mutex.c, sparc_leon/nocache.S, sparc_leon/pnpinit.c, sparc_leon/pnpinit_malloc.c, sparc_leon/pnpinit_simple.c, sparc_leon/regwin.S, sparc_leon/regwin_patch.c, sparc_leon/regwin_slow.S, sparc_leon/regwinflush.S, sparc_leon/rtc.c, sparc_leon/rtrap.S, sparc_leon/rtrap_fast.S, sparc_leon/stop.S, sparc_leon/timer.c, sparc_leon/times.c: New file * sparc_leon/configure: Regenerate
2011-12-15 23:58:40 +01:00
sparc-*leon*-elf* | sparc-*leon*-none*)
AC_CONFIG_SUBDIRS([sparc_leon])
;;
sparclet-*-aout* | sparc-*-elf* | sparc64-*-elf* | sparc86x-*-* | sparclite-*-*)
AC_CONFIG_SUBDIRS([sparc])
2000-03-17 23:48:54 +01:00
;;
sh*-*-pe | mips*-*-pe | *arm*-wince-pe)
AC_CONFIG_SUBDIRS([wince])
2000-03-17 23:48:54 +01:00
;;
mips*-*-*)
AC_CONFIG_SUBDIRS([mips])
2000-03-17 23:48:54 +01:00
;;
riscv*-*-*)
AC_CONFIG_SUBDIRS([riscv])
;;
2000-03-17 23:48:54 +01:00
powerpc-*-*|powerpcle-*-*)
AC_CONFIG_SUBDIRS([rs6000])
2000-03-17 23:48:54 +01:00
;;
mn10200-*-*)
AC_CONFIG_SUBDIRS([mn10200])
2000-03-17 23:48:54 +01:00
;;
mn10300-*-*)
AC_CONFIG_SUBDIRS([mn10300])
2000-03-17 23:48:54 +01:00
;;
bfin-*-*)
AC_CONFIG_SUBDIRS([bfin])
;;
cr16-*-*)
AC_CONFIG_SUBDIRS([cr16])
;;
cris-*-* | crisv32-*-*)
AC_CONFIG_SUBDIRS([cris])
;;
crx-*-*)
AC_CONFIG_SUBDIRS([crx])
;;
2000-03-17 23:48:54 +01:00
d30v-*-*)
AC_CONFIG_SUBDIRS([d30v])
2000-03-17 23:48:54 +01:00
;;
fr30-*-*)
AC_CONFIG_SUBDIRS([fr30])
2000-03-17 23:48:54 +01:00
;;
frv*-*-*)
AC_CONFIG_SUBDIRS([frv])
2002-06-18 23:41:22 +02:00
;;
2015-09-04 19:07:00 +02:00
ft32*-*-*)
AC_CONFIG_SUBDIRS([ft32])
;;
lm32*-*-*)
AC_CONFIG_SUBDIRS([lm32])
;;
2000-03-17 23:48:54 +01:00
mcore-*-*)
AC_CONFIG_SUBDIRS([mcore])
2000-03-17 23:48:54 +01:00
;;
mep-*-*)
AC_CONFIG_SUBDIRS([mep])
;;
moxie-*-*)
AC_CONFIG_SUBDIRS([moxie])
;;
microblaze*-*-*)
AC_CONFIG_SUBDIRS([microblaze])
;;
Rename ms1 to mt, part 1 * config.sub: Replace ms1 arch with mt. Allow ms1 as alias. * configure.in: Replace ms1 arch with mt. * configure: Rebuilt. * bfd/Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace ms1 with mt. (cpu_mt.lo, elf32-mt.lo): Update target and dependency names. * bfd/Makefile.in: Rebuilt. * bfd/config.bfd: Replace ms1 arch with mt. * bfd/configure.in: Replace ms1 files with mt files. * bfd/configure: Rebuilt. * bfd/elf32-mt.c: Renamed from elf32-ms1.c. Update include files. * bfd/cpu-mt.c: Renamed from cpu-ms1.c. * cpu/mt.cpu: Rename from ms1.cpu. * cpu/mt.opc: Rename from ms1.opc. * binutils/Makefile.am: Replace ms1 files with mt files. * binutils/Makefile.in: Rebuilt. * binutils/readelf.c (elf/mt.h): Adjust #include. * gas/configure.in: Replace ms1 arch with mt arch. * gas/configure: Rebuilt. * gas/configure.tgt: Replace ms1 arch with mt arch. * gas/config/tc-mt.c: Renamed from tc-ms1.c: Update include files. * gas/doc/Makefile.am (CPU_DOCS): Replace ms1 files with mt files. * gas/doc/Makefile.in: Rebuilt. * gas/testsuite/gas/mt: Renamed from ms1 dir. Update file names as needed. * gas/testsuite/gas/mt/errors.exp: Replace ms1 arch with mt arch. * gas/testsuite/gas/mt/mt.exp: Replace ms1 arch with mt arch. * gas/testsuite/gas/mt/relocs.exp: Replace ms1 arch with mt arch. * gdb/configure.tgt: Replace ms1 arch with mt arch. * gdb/config/mt: Renamed from ms1 dir. Update file names as needed. * gdb/config/mt/mt.mt (TDEPFILES): Replace ms1 file with mt file. * include/elf/mt.h: Renamed from ms1.h * ld/Makefile.am (ALL_EMULATIONS): Replace ms1 files with mt files. (eelf32mt.c): Update target name and dependencies. * ld/Makefile.in: Rebuilt. * ld/configure.tgt: Replace ms1 arch with mt arch. * ld/emulparams/elf32mt.sh: Renamed from elf32ms1.sh. Update comment. * libgloss/configure.in: Replace ms1 arch with mt arch. * libgloss/configure: Rebuilt. * libgloss/mt: Renamed from ms1 dir. * newlib/configure.host: Replace ms1 arch with mt arch. * newlib/libc/machine/mt: Renamed from ms1 dir. * opcodes/Makefile.am (CLEANFILES, CGEN_CPUS, MT_DEPS): Replace ms1 with mt. * opcodes/Makefile.in: Rebuilt. * opcodes/configure.in: Replace ms1 files with mt files. * opcodes/configure: Rebuilt. * sid/component/cgen-cpu/mt: Renamed from ms1 dir. Update file names as appropriate. * sid/component/cgen-cpu/mt/Makefile.am: Replace ms1 files with mt files. * sid/component/cgen-cpu/mt/Makefile.in: Rebuilt.
2005-12-12 12:25:07 +01:00
mt-*-*)
AC_CONFIG_SUBDIRS([mt])
;;
v850*-*-*)
AC_CONFIG_SUBDIRS([v850])
;;
visium-*-*)
AC_CONFIG_SUBDIRS([visium])
config_testsuite=false
;;
xc16x-*-*)
AC_CONFIG_SUBDIRS([xc16x])
;;
In newlib/: 2001-12-22 Geoffrey Keating <geoffk@redhat.com> Catherine Moore <clm@redhat.com> Richard Henderson <rth@redhat.com> Corinna Vinschen <vinschen@redhat.com> * configure.host: Add support for xstormy16. * libc/include/machine/ieeefp.h: Add support for xstormy16. * libc/include/machine/setjmp.h: Add support for xstormy16. * libc/include/sys/config.h: Add support for xstormy16. * libc/machine/xstormy16/Makefile.am: New file. * libc/machine/xstormy16/Makefile.in: New file. * libc/machine/xstormy16/aclocal.m4: New file. * libc/machine/xstormy16/configure: New file. * libc/machine/xstormy16/configure.in: New file. * libc/machine/xstormy16/setjmp.S: New file. In libgloss/: 2001-12-22 Geoffrey Keating <geoffk@redhat.com> Mark Salter <msalter@redhat.com> Catherine Moore <clm@redhat.com> Richard Henderson <rth@redhat.com> * configure.in: Add xstormy16. * libnosys/configure.in: Add xstormy16. * configure: Regenerated. * libnosys/configure: Regenerated. * xstormy16/Makefile.in: New file. * xstormy16/close.c: New file. * xstormy16/configure: New file. * xstormy16/configure.in: New file. * xstormy16/crt0.s: New file. * xstormy16/crt0_stub.s: New file. * xstormy16/crti.s: New file. * xstormy16/crtn.s: New file. * xstormy16/eva_app.c: New file. * xstormy16/eva_app.ld: New file. * xstormy16/eva_stub.ld: New file. * xstormy16/fstat.c: New file. * xstormy16/getpid.c: New file. * xstormy16/kill.c: New file. * xstormy16/lseek.c: New file. * xstormy16/open.c: New file. * xstormy16/sbrk.c: New file. * xstormy16/sim_high.ld: New file. * xstormy16/stat.c: New file. * xstormy16/syscalls.S: New file. * xstormy16/syscalls.m4: New file. * xstormy16/unlink.c: New file. * xstormy16/xstormy16_stub.c: New file.
2001-12-22 23:47:58 +01:00
xstormy16-*-*)
AC_CONFIG_SUBDIRS([xstormy16])
In newlib/: 2001-12-22 Geoffrey Keating <geoffk@redhat.com> Catherine Moore <clm@redhat.com> Richard Henderson <rth@redhat.com> Corinna Vinschen <vinschen@redhat.com> * configure.host: Add support for xstormy16. * libc/include/machine/ieeefp.h: Add support for xstormy16. * libc/include/machine/setjmp.h: Add support for xstormy16. * libc/include/sys/config.h: Add support for xstormy16. * libc/machine/xstormy16/Makefile.am: New file. * libc/machine/xstormy16/Makefile.in: New file. * libc/machine/xstormy16/aclocal.m4: New file. * libc/machine/xstormy16/configure: New file. * libc/machine/xstormy16/configure.in: New file. * libc/machine/xstormy16/setjmp.S: New file. In libgloss/: 2001-12-22 Geoffrey Keating <geoffk@redhat.com> Mark Salter <msalter@redhat.com> Catherine Moore <clm@redhat.com> Richard Henderson <rth@redhat.com> * configure.in: Add xstormy16. * libnosys/configure.in: Add xstormy16. * configure: Regenerated. * libnosys/configure: Regenerated. * xstormy16/Makefile.in: New file. * xstormy16/close.c: New file. * xstormy16/configure: New file. * xstormy16/configure.in: New file. * xstormy16/crt0.s: New file. * xstormy16/crt0_stub.s: New file. * xstormy16/crti.s: New file. * xstormy16/crtn.s: New file. * xstormy16/eva_app.c: New file. * xstormy16/eva_app.ld: New file. * xstormy16/eva_stub.ld: New file. * xstormy16/fstat.c: New file. * xstormy16/getpid.c: New file. * xstormy16/kill.c: New file. * xstormy16/lseek.c: New file. * xstormy16/open.c: New file. * xstormy16/sbrk.c: New file. * xstormy16/sim_high.ld: New file. * xstormy16/stat.c: New file. * xstormy16/syscalls.S: New file. * xstormy16/syscalls.m4: New file. * xstormy16/unlink.c: New file. * xstormy16/xstormy16_stub.c: New file.
2001-12-22 23:47:58 +01:00
;;
m32c-*-*)
AC_CONFIG_SUBDIRS([m32c])
;;
msp430-*-elf*)
AC_CONFIG_SUBDIRS([msp430])
config_libnosys=false
;;
rl78*-*-elf)
AC_CONFIG_SUBDIRS([rl78])
;;
rx*-*-elf)
AC_CONFIG_SUBDIRS([rx])
;;
arm*-*-elf | arm*-*-coff | arm*-*-*)
AC_CONFIG_SUBDIRS([arm])
2002-01-07 19:12:32 +01:00
;;
spu-*-elf)
AC_CONFIG_SUBDIRS([spu])
config_testsuite=false
config_libnosys=false
;;
tic6x-*-*)
AC_CONFIG_SUBDIRS(tic6x)
config_testsuite=false
;;
2004-10-28 10:18:18 +02:00
iq2000-*-*)
AC_CONFIG_SUBDIRS([iq2000])
;;
or1k-*-* | or1knd-*-* )
AC_CONFIG_SUBDIRS([or1k])
;;
pru-*-*)
AC_CONFIG_SUBDIRS([pru])
;;
nios2-*-*)
AC_CONFIG_SUBDIRS([nios2])
;;
2000-03-17 23:48:54 +01:00
esac
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
2000-03-17 23:48:54 +01:00
LIB_AC_PROG_CC
AS=${AS-as}
AC_SUBST(AS)
AC_CHECK_PROG(AR, ar, ar, :)
AR=${AR-ar}
AC_SUBST(AR)
LD=${LD-ld}
AC_SUBST(LD)
AC_PROG_RANLIB
LIB_AM_PROG_AS
2000-03-17 23:48:54 +01:00
host_makefile_frag=${srcdir}/config/default.mh
dnl We have to assign the same value to other variables because autoconf
dnl doesn't provide a mechanism to substitute a replacement keyword with
dnl arbitrary data or pathnames.
dnl
host_makefile_frag_path=$host_makefile_frag
AC_SUBST(host_makefile_frag_path)
AC_SUBST_FILE(host_makefile_frag)
if test "${multilib}" = "yes"; then
multilib_arg="--enable-multilib"
else
multilib_arg=
fi
2000-03-17 23:48:54 +01:00
# for now, only add multilibs for specific targets
AC_CONFIG_FILES([Makefile],
[if test -n "$CONFIG_FILES"; then
unset ac_file
. ${libgloss_topdir}/config-ml.in
fi],
2000-03-17 23:48:54 +01:00
srcdir=${srcdir}
target=${target}
host=${host}
2000-03-17 23:48:54 +01:00
with_multisubdir=${with_multisubdir}
ac_configure_args="--enable-multilib ${ac_configure_args}"
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
libgloss_topdir=${libgloss_topdir}
CC="${CC}"
LDFLAGS=${LDFLAGS}
2000-03-17 23:48:54 +01:00
)
AC_OUTPUT
2000-03-17 23:48:54 +01:00