2000-03-18 06:48:54 +08:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2006-04-20 03:44:05 +08:00
|
|
|
AC_INIT([libgloss],[LIBGLOSS_VERSION])
|
2022-01-24 13:12:58 +08:00
|
|
|
AC_CONFIG_HEADER(config.h)
|
2000-03-18 06:48:54 +08:00
|
|
|
|
|
|
|
if test "${enable_shared}" = "yes" ; then
|
2022-01-17 16:58:13 +08:00
|
|
|
AC_MSG_WARN([Shared libraries not supported for cross compiling, ignored])
|
2000-03-18 06:48:54 +08:00
|
|
|
fi
|
|
|
|
|
2022-01-07 13:53:26 +08:00
|
|
|
AC_CONFIG_AUX_DIR(..)
|
2000-03-18 06:48:54 +08:00
|
|
|
|
2022-02-19 11:38:41 +08:00
|
|
|
dnl Support --disable-newlib-supplied-syscalls
|
|
|
|
dnl NB: This is kept in sync with the newlib/acinclude.m4 option code.
|
|
|
|
AC_ARG_ENABLE(newlib-supplied-syscalls,
|
|
|
|
[ --disable-newlib-supplied-syscalls disable newlib from supplying syscalls],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) newlib_may_supply_syscalls=yes ;;
|
|
|
|
no) newlib_may_supply_syscalls=no ;;
|
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} for newlib-supplied-syscalls option) ;;
|
|
|
|
esac], [newlib_may_supply_syscalls=yes])dnl
|
|
|
|
|
2022-12-14 11:27:35 +08:00
|
|
|
AM_CONDITIONAL(MAY_SUPPLY_SYSCALLS, test x[$]{newlib_may_supply_syscalls} = xyes)
|
|
|
|
|
2000-03-18 06:48:54 +08:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
AC_CANONICAL_SYSTEM
|
2022-01-17 17:12:11 +08:00
|
|
|
AM_INIT_AUTOMAKE([foreign no-dist no-define subdir-objects 1.15.1])
|
2022-02-23 06:09:16 +08:00
|
|
|
AM_MAINTAINER_MODE
|
2022-01-17 17:12:11 +08:00
|
|
|
AM_SILENT_RULES(yes)
|
2000-03-18 06:48:54 +08:00
|
|
|
|
2022-02-02 12:46:57 +08:00
|
|
|
if test -z "${with_multisubdir}"; then
|
|
|
|
have_multisubdir=no
|
|
|
|
else
|
|
|
|
have_multisubdir=yes
|
2000-03-18 06:48:54 +08:00
|
|
|
fi
|
2022-02-02 12:46:57 +08:00
|
|
|
AM_CONDITIONAL(HAVE_DOC, test x$have_multisubdir = xno)
|
2022-02-02 14:06:21 +08:00
|
|
|
AM_CONDITIONAL(HAVE_MULTISUBDIR, test x$have_multisubdir = xyes)
|
2000-03-18 06:48:54 +08:00
|
|
|
|
2022-01-24 13:12:58 +08:00
|
|
|
AC_NO_EXECUTABLES
|
|
|
|
|
2009-05-14 05:38:25 +08:00
|
|
|
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
|
2006-04-20 03:44:05 +08:00
|
|
|
|
2022-01-24 13:28:05 +08:00
|
|
|
host_makefile_frag=${srcdir}/config/default.mh
|
|
|
|
target_makefile_frag=${srcdir}/config/default.mt
|
|
|
|
|
2000-03-18 06:48:54 +08:00
|
|
|
case "${target}" in
|
2012-09-27 04:11:54 +08:00
|
|
|
aarch64*-*-*)
|
2022-12-14 10:54:54 +08:00
|
|
|
config_aarch64=true
|
2012-09-27 04:11:54 +08:00
|
|
|
config_testsuite=true
|
|
|
|
;;
|
2015-10-24 02:24:06 +08:00
|
|
|
arc*-*-*)
|
2022-12-15 07:54:45 +08:00
|
|
|
config_arc=true
|
2015-10-24 02:24:06 +08:00
|
|
|
;;
|
2020-09-25 23:01:25 +08:00
|
|
|
csky*-*-*)
|
2023-01-13 12:34:59 +08:00
|
|
|
config_csky=true
|
2020-09-25 23:01:25 +08:00
|
|
|
;;
|
2012-02-22 06:37:47 +08:00
|
|
|
epiphany-*-*)
|
2022-01-24 13:12:58 +08:00
|
|
|
AC_CONFIG_FILES([epiphany/Makefile])
|
|
|
|
subdirs="$subdirs epiphany"
|
2012-02-22 06:37:47 +08:00
|
|
|
config_testsuite=true
|
|
|
|
;;
|
2006-04-20 03:44:05 +08:00
|
|
|
i[[3456]]86-*-elf* | i[[3456]]86-*-coff*)
|
2023-12-27 11:39:05 +08:00
|
|
|
config_i386=true
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
|
|
|
m32r-*-*)
|
2023-12-27 13:54:13 +08:00
|
|
|
config_m32r=true
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
2006-04-20 03:44:05 +08:00
|
|
|
m68hc11-*-* | m6811-*-* | m68hc12-*-* | m6812-*-*)
|
2022-01-23 14:10:33 +08:00
|
|
|
AC_CONFIG_FILES([m68hc11/Makefile])
|
|
|
|
subdirs="$subdirs m68hc11"
|
2002-07-24 05:56:27 +08:00
|
|
|
;;
|
2013-07-09 Sabrina Ni <sabrina@andestech.com>
* configure.in: Add nds32 subdir.
* configure: Regenerated.
* nds32/configure.in: New.
* nds32/configure: New (autogenerated).
* nds32/{crt0.S,crt1.S}: New.
* nds32/Makefile.in: New.
* nds32/{syscall_argvlen.S,syscall_argv.S,
syscall_chdirS, syscall_chmod.S,
syscall_close.S,syscall_exit.S,syscall_extra.h, syscall_fstat.S,
syscall_getpid.S,syscall_gettimeofday.S,syscall_isatty.S,syscall_kill.S,
syscall_link.S,syscall_lseek.S,syscall_open.S,syscall_read.S,
syscall_rename.S,syscall_sbrk.S,syscall_stat.S,syscall_system.S,
syscall_time.S,syscall_times.S,syscall_unlink.S,syscall_utime.S,
syscall_write.S}: New.
2013-07-10 03:16:25 +08:00
|
|
|
nds32*-*-*)
|
2023-12-27 12:59:00 +08:00
|
|
|
config_nds32=true
|
2013-07-09 Sabrina Ni <sabrina@andestech.com>
* configure.in: Add nds32 subdir.
* configure: Regenerated.
* nds32/configure.in: New.
* nds32/configure: New (autogenerated).
* nds32/{crt0.S,crt1.S}: New.
* nds32/Makefile.in: New.
* nds32/{syscall_argvlen.S,syscall_argv.S,
syscall_chdirS, syscall_chmod.S,
syscall_close.S,syscall_exit.S,syscall_extra.h, syscall_fstat.S,
syscall_getpid.S,syscall_gettimeofday.S,syscall_isatty.S,syscall_kill.S,
syscall_link.S,syscall_lseek.S,syscall_open.S,syscall_read.S,
syscall_rename.S,syscall_sbrk.S,syscall_stat.S,syscall_system.S,
syscall_time.S,syscall_times.S,syscall_unlink.S,syscall_utime.S,
syscall_write.S}: New.
2013-07-10 03:16:25 +08:00
|
|
|
;;
|
2006-12-18 Kazu Hirata <kazu@codesourcery.com>
Merge from newlib-csl-20060320-branch:
2006-12-15 Daniel Jacobowitz <dan@codesourcery.com>
* m68k/fido-crt0.S (_vector_table): Reference
_PrivilegeViolationHandler.
2006-12-15 Daniel Jacobowitz <dan@codesourcery.com>
* m68k/fido-crt0.S (_start): Set %vbr for context 0 in
RAM configs.
* m68k/fido.sc: Clean up formatting. Add comments. Move
stack and heap end to SDRAM for SRAM and SDRAM configurations.
Put RedBoot application text in SRAM.
2006-12-13 Nathan Sidwell <nathan@codesourcery.com>
* m68k/Makefile (install_cf): Don't loop over files here. Only
install sources for the default multilib.
(install_fido): Likewise.
(install_io): Install bsps in one go.
2006-12-01 Nathan Sidwell <nathan@codesourcery.com>
Kazu Hirata <kazu@codesourcery.com>
* configure.in: Recognize fido-*-*.
* configure: Regenerate.
* m68k/Makefile.in (CF_ISRS): Use addprefix.
(FIDO_CRT0, FIDO_BSP, FIDO_OBJS, FIDO_HANDLERS,
FIDO_UNHOSTED_SCRIPTS, FIDO_HOSTED_SCRIPTS, FIDO_SCRIPTS,
FIDO_SOURCES, all_fido, fido-%-crt0.o, fido-rom.ld,
fido-rom-hosted.ld, fido-sram.ld, fido-sram-hosted.ld,
fido-sdram.ld, fido-sdram-hosted.ld, fido-redboot.ld,
install_fido): New.
* m68k/asm.h (mbb): New.
* m68k/configure.in (DO): Check for __mfido__.
* m68k/configure: Regenerate.
* m68k/fido-_exit.c, m68k/fido-crt0.S, m68k/fido-handler.c,
m68k/fido-hosted.S, m68k/fido-sbrk.c, m68k/fido.h,
m68k/fido.sc, m68k/fido_profiling.h: New.
2006-12-19 05:48:18 +08:00
|
|
|
fido-*-* | m68*-*-*)
|
2022-02-11 19:57:11 +08:00
|
|
|
AC_CONFIG_FILES([m68k/Makefile])
|
|
|
|
subdirs="$subdirs m68k"
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
|
|
|
hppa*-*-pro*)
|
2022-01-23 14:10:33 +08:00
|
|
|
AC_CONFIG_FILES([pa/Makefile])
|
|
|
|
subdirs="$subdirs pa"
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
|
|
|
i960-*-coff)
|
2023-12-27 09:59:58 +08:00
|
|
|
config_i960=true
|
2000-03-18 06:48:54 +08: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-16 06:58:40 +08:00
|
|
|
sparc-*leon*-elf* | sparc-*leon*-none*)
|
2022-01-23 14:10:33 +08:00
|
|
|
AC_CONFIG_FILES([sparc_leon/Makefile])
|
|
|
|
subdirs="$subdirs sparc_leon"
|
|
|
|
;;
|
2006-04-20 03:44:05 +08:00
|
|
|
sparclet-*-aout* | sparc-*-elf* | sparc64-*-elf* | sparc86x-*-* | sparclite-*-*)
|
2022-02-18 10:23:40 +08:00
|
|
|
AC_CONFIG_FILES([sparc/Makefile])
|
|
|
|
subdirs="$subdirs sparc"
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
2012-03-02 21:20:08 +08:00
|
|
|
sh*-*-pe | mips*-*-pe | *arm*-wince-pe)
|
2022-02-12 17:58:24 +08:00
|
|
|
config_wince=true
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
|
|
|
mips*-*-*)
|
2022-02-12 18:17:15 +08:00
|
|
|
AC_CONFIG_FILES([mips/Makefile])
|
|
|
|
subdirs="$subdirs mips"
|
|
|
|
target_makefile_frag=${srcdir}/config/mips.mt
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
2017-07-27 16:45:47 +08:00
|
|
|
riscv*-*-*)
|
2022-08-24 07:12:56 +08:00
|
|
|
config_riscv=true
|
2017-07-27 16:45:47 +08:00
|
|
|
;;
|
2000-03-18 06:48:54 +08:00
|
|
|
powerpc-*-*|powerpcle-*-*)
|
2022-01-24 13:28:05 +08:00
|
|
|
AC_CONFIG_FILES([rs6000/Makefile])
|
|
|
|
subdirs="$subdirs rs6000"
|
|
|
|
host_makefile_frag=${srcdir}/config/ppc.mh
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
|
|
|
mn10200-*-*)
|
2023-12-27 12:26:40 +08:00
|
|
|
config_mn10200=true
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
|
|
|
mn10300-*-*)
|
2023-12-27 12:13:37 +08:00
|
|
|
config_mn10300=true
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
2006-11-09 03:36:56 +08:00
|
|
|
bfin-*-*)
|
2022-02-02 14:06:21 +08:00
|
|
|
config_bfin=true
|
2006-11-09 03:36:56 +08:00
|
|
|
;;
|
2010-12-03 03:35:47 +08:00
|
|
|
cr16-*-*)
|
2022-01-23 14:10:33 +08:00
|
|
|
AC_CONFIG_FILES([cr16/Makefile])
|
|
|
|
subdirs="$subdirs cr16"
|
|
|
|
;;
|
2005-01-27 Hans-Peter Nilsson <hp@axis.com>
* configure.in: Support cris-*-* and crisv32-*-*.
* libnosys/configure.in: Ditto.
* configure, libnosys/configure: Regenerate.
* cris: New directory.
* cris/crt0.S, cris/crtn.c, cris/gensyscalls, cris/linunistd.h,
cris/outbyte.c, cris/configure.in, cris/crti.c, cris/lcrt0.c,
cris/Makefile.in, cris/setup.S, cris/configure: New files.
2005-01-28 06:57:32 +08:00
|
|
|
cris-*-* | crisv32-*-*)
|
2022-01-23 14:10:33 +08:00
|
|
|
AC_CONFIG_FILES([cris/Makefile])
|
|
|
|
subdirs="$subdirs cris"
|
2005-01-27 Hans-Peter Nilsson <hp@axis.com>
* configure.in: Support cris-*-* and crisv32-*-*.
* libnosys/configure.in: Ditto.
* configure, libnosys/configure: Regenerate.
* cris: New directory.
* cris/crt0.S, cris/crtn.c, cris/gensyscalls, cris/linunistd.h,
cris/outbyte.c, cris/configure.in, cris/crti.c, cris/lcrt0.c,
cris/Makefile.in, cris/setup.S, cris/configure: New files.
2005-01-28 06:57:32 +08:00
|
|
|
;;
|
2004-10-06 04:00:53 +08:00
|
|
|
crx-*-*)
|
2022-01-23 14:10:33 +08:00
|
|
|
AC_CONFIG_FILES([crx/Makefile])
|
|
|
|
subdirs="$subdirs crx"
|
2004-10-06 04:00:53 +08:00
|
|
|
;;
|
2000-03-18 06:48:54 +08:00
|
|
|
d30v-*-*)
|
2022-12-15 07:58:01 +08:00
|
|
|
config_d30v=true
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
|
|
|
fr30-*-*)
|
2022-01-23 14:10:33 +08:00
|
|
|
AC_CONFIG_FILES([fr30/Makefile])
|
|
|
|
subdirs="$subdirs fr30"
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
2002-06-19 05:19:17 +08:00
|
|
|
frv*-*-*)
|
2023-12-27 11:29:20 +08:00
|
|
|
config_frv=true
|
2002-06-19 05:41:22 +08:00
|
|
|
;;
|
2015-09-05 01:07:00 +08:00
|
|
|
ft32*-*-*)
|
2022-01-23 14:10:33 +08:00
|
|
|
AC_CONFIG_FILES([ft32/Makefile])
|
|
|
|
subdirs="$subdirs ft32"
|
2015-09-05 01:07:00 +08:00
|
|
|
;;
|
2008-12-18 07:08:09 +08:00
|
|
|
lm32*-*-*)
|
2022-03-01 15:03:17 +08:00
|
|
|
config_lm32=true
|
2008-12-18 07:08:09 +08:00
|
|
|
;;
|
2000-03-18 06:48:54 +08:00
|
|
|
mcore-*-*)
|
2023-12-27 12:44:44 +08:00
|
|
|
config_mcore=true
|
2000-03-18 06:48:54 +08:00
|
|
|
;;
|
2007-02-09 05:22:05 +08:00
|
|
|
mep-*-*)
|
2022-01-23 14:10:33 +08:00
|
|
|
AC_CONFIG_FILES([mep/Makefile])
|
|
|
|
subdirs="$subdirs mep"
|
2007-02-09 05:22:05 +08:00
|
|
|
;;
|
2009-04-22 Anthony Green <green@moxielogic.com>
* configure.in: Add moxie support.
* configure: Regenerate.
* moxie/aclocal.m4, moxie/configure, moxie/configure.in,
moxie/crt0.S, moxie/fstat.c, moxie/getpid.c, isatty.c,
moxie/kill.c, moxie/Makefile.in, moxie/moxie-elf-common.ld,
moxie/print.c, moxie/putnum.c, moxie/qemu.ld, moxie/qemu-time.c,
moxie/qemu-write.c, moxie/sbrk.c, moxie/sim-close.S,
moxie/sim-exit.S,
moxie/sim-inbyte.c, moxie/sim.ld, moxie/sim-lseek.c,
moxie/sim-lseek.S, moxie/sim-open.S, moxie/sim-read.S, moxie/sim-time.c,
moxie/sim-unlink.S, moxie/sim-write.S, moxie/stat.c: New files.
2009-04-23 03:48:07 +08:00
|
|
|
moxie-*-*)
|
2023-12-27 09:21:28 +08:00
|
|
|
config_moxie=true
|
2009-04-22 Anthony Green <green@moxielogic.com>
* configure.in: Add moxie support.
* configure: Regenerate.
* moxie/aclocal.m4, moxie/configure, moxie/configure.in,
moxie/crt0.S, moxie/fstat.c, moxie/getpid.c, isatty.c,
moxie/kill.c, moxie/Makefile.in, moxie/moxie-elf-common.ld,
moxie/print.c, moxie/putnum.c, moxie/qemu.ld, moxie/qemu-time.c,
moxie/qemu-write.c, moxie/sbrk.c, moxie/sim-close.S,
moxie/sim-exit.S,
moxie/sim-inbyte.c, moxie/sim.ld, moxie/sim-lseek.c,
moxie/sim-lseek.S, moxie/sim-open.S, moxie/sim-read.S, moxie/sim-time.c,
moxie/sim-unlink.S, moxie/sim-write.S, moxie/stat.c: New files.
2009-04-23 03:48:07 +08:00
|
|
|
;;
|
2013-07-16 15:48:53 +08:00
|
|
|
microblaze*-*-*)
|
2022-01-23 14:10:33 +08:00
|
|
|
AC_CONFIG_FILES([microblaze/Makefile])
|
|
|
|
subdirs="$subdirs microblaze"
|
2009-09-28 Michael Eager <eager@eagercon.com>
* configure.in: Add microblaze-*-*.
* configure: Add microblaze-*-* (not regenerated.)
* microblaze: NEW microblaze target directory.
* microblaze/configure.in: NEW.
* microblaze/configure: Generate.
* microblaze/Makefile.in: NEW.
* microblaze/{crt0.S, crt1.S, crt2.S, crt3.S, crt4.S, crtinit.S}: NEW.
* microblaze/{pgcrtinit.S, _program_clean.S, _program_init.S,
sbrk.c, sim-crtinit.S, sim-pgcrtinit.S, timer.c, _exception_handler.S,
_hw_exception_handler.S, _interrupt_handler.S, xil_malloc.c,
nnxil_printf.c, xil_sbrk.c: NEW.
* microblaze/xilinx.ld: NEW.
2009-09-29 00:43:57 +08:00
|
|
|
;;
|
2005-12-12 19:25:07 +08:00
|
|
|
mt-*-*)
|
2022-01-23 14:10:33 +08:00
|
|
|
AC_CONFIG_FILES([mt/Makefile])
|
|
|
|
subdirs="$subdirs mt"
|
2006-04-20 03:44:05 +08:00
|
|
|
;;
|
2010-07-24 01:52:37 +08:00
|
|
|
v850*-*-*)
|
2023-12-27 09:47:38 +08:00
|
|
|
config_v850=true
|
2022-01-23 14:10:33 +08:00
|
|
|
;;
|
2015-01-22 02:27:47 +08:00
|
|
|
visium-*-*)
|
2022-01-23 14:10:33 +08:00
|
|
|
AC_CONFIG_FILES([visium/Makefile])
|
|
|
|
subdirs="$subdirs visium"
|
2015-01-22 02:27:47 +08:00
|
|
|
config_testsuite=false
|
|
|
|
;;
|
2009-12-11 01:07:04 +08:00
|
|
|
xc16x-*-*)
|
2022-01-24 13:28:05 +08:00
|
|
|
AC_CONFIG_FILES([xc16x/Makefile])
|
|
|
|
subdirs="$subdirs xc16x"
|
|
|
|
target_makefile_frag=${srcdir}/config/xc16x.mt
|
2009-12-11 01:07:04 +08:00
|
|
|
;;
|
2001-12-23 06:47:58 +08:00
|
|
|
xstormy16-*-*)
|
2023-12-27 13:18:12 +08:00
|
|
|
config_xstormy16=true
|
2001-12-23 06:47:58 +08:00
|
|
|
;;
|
2023-08-09 04:07:04 +08:00
|
|
|
xtensa-*-*)
|
|
|
|
config_xtensa=true
|
|
|
|
;;
|
2005-08-10 DJ Delorie <dj@redhat.com>
* configure.in: Add m32c support.
* configure: Regenerated
* m32c: New directory, Renesas R8C/M16C/M32C support.
* m32c/abort.S m32c/argvlen.S m32c/argv.S m32c/chdir.S,
m32c/chmod.S m32c/close.S m32c/configure m32c/configure.in,
m32c/crt0.S, m32c/crtn.S, m32c/exit.S, m32c/fstat.S,
m32c/genscript, m32c/getpid.S, m32c/gettimeofday.S,
m32c/heaptop.S, m32c/isatty.S, m32c/kill.S, m32c/link.S,
m32c/lseek.S, m32c/m32csys.h, m32c/m32c.tmpl, m32c/Makefile.in,
m32c/open.S, m32c/read.S, m32c/sbrk.c, m32c/stat.S, m32c/time.S,
m32c/times.S, m32c/unlink.S, m32c/utime.S, m32c/write.S: New files
2005-08-11 04:29:33 +08:00
|
|
|
m32c-*-*)
|
2022-01-23 14:10:33 +08:00
|
|
|
AC_CONFIG_FILES([m32c/Makefile])
|
|
|
|
subdirs="$subdirs m32c"
|
2004-06-09 Toralf Lund <toralf@procaptura.com>
* arm/crt0.S: Copied from newlib and it now also sets up stacks for
FIQ and IRQ mode, plus calls hardware_init_hook() and
software_init_hook() if present.
* arm/libcfunc.c, arm/swi.h, arm/syscalls.c: Copied
from newlib.
* arm/Makefile.in: Build crt0.o, rdpmon-crt0.o, rdimon-crt0.o,
librdpmon.a, librdimon.a - support file for "bare" setup, as well
as "RDP" and "RDI" monitors.
* arm/coff-rdpmon.specs, arm/elf-rdpmon.specs,
arm/coff-rdimon.specs, arm/elf-rdimon.specs: gcc specs files to go
with above mentioned support libs and startfiles.
2004-06-10 03:06:50 +08:00
|
|
|
;;
|
2019-11-26 05:17:41 +08:00
|
|
|
msp430-*-elf*)
|
2023-12-27 10:11:58 +08:00
|
|
|
config_msp430=true
|
2015-12-18 05:49:08 +08:00
|
|
|
config_libnosys=false
|
2013-05-14 05:39:51 +08:00
|
|
|
;;
|
2011-11-29 14:33:49 +08:00
|
|
|
rl78*-*-elf)
|
2023-12-27 13:43:25 +08:00
|
|
|
config_rl78=true
|
2011-11-29 14:33:49 +08:00
|
|
|
;;
|
2009-10-26 18:05:23 +08:00
|
|
|
rx*-*-elf)
|
2023-12-27 13:38:25 +08:00
|
|
|
config_rx=true
|
2009-10-26 18:05:23 +08:00
|
|
|
;;
|
2012-03-02 21:20:08 +08:00
|
|
|
arm*-*-elf | arm*-*-coff | arm*-*-*)
|
2022-12-14 11:27:35 +08:00
|
|
|
config_arm=true
|
2002-01-08 02:12:32 +08:00
|
|
|
;;
|
2006-08-17 05:15:03 +08:00
|
|
|
spu-*-elf)
|
2022-01-24 13:28:05 +08:00
|
|
|
AC_CONFIG_FILES([spu/Makefile])
|
|
|
|
subdirs="$subdirs spu"
|
|
|
|
host_makefile_frag=${srcdir}/config/ppc.mh
|
2006-12-12 06:19:03 +08:00
|
|
|
config_testsuite=false
|
2009-05-14 05:38:25 +08:00
|
|
|
config_libnosys=false
|
2006-08-17 05:15:03 +08:00
|
|
|
;;
|
2010-10-09 10:31:22 +08:00
|
|
|
tic6x-*-*)
|
2022-01-23 14:10:33 +08:00
|
|
|
AC_CONFIG_FILES([tic6x/Makefile])
|
|
|
|
subdirs="$subdirs tic6x"
|
2010-10-09 10:31:22 +08:00
|
|
|
config_testsuite=false
|
|
|
|
;;
|
2004-10-28 16:18:18 +08:00
|
|
|
iq2000-*-*)
|
2022-02-02 13:23:50 +08:00
|
|
|
config_iq2000=true
|
2006-04-20 03:44:05 +08:00
|
|
|
;;
|
2014-12-16 04:09:28 +08:00
|
|
|
or1k-*-* | or1knd-*-* )
|
2022-01-24 13:12:58 +08:00
|
|
|
AC_CONFIG_FILES([or1k/Makefile])
|
|
|
|
subdirs="$subdirs or1k"
|
2014-12-16 04:09:28 +08:00
|
|
|
;;
|
2018-03-12 04:23:26 +08:00
|
|
|
pru-*-*)
|
2022-01-23 14:10:33 +08:00
|
|
|
AC_CONFIG_FILES([pru/Makefile])
|
|
|
|
subdirs="$subdirs pru"
|
2018-03-12 04:23:26 +08:00
|
|
|
;;
|
2018-08-08 05:15:47 +08:00
|
|
|
nios2-*-*)
|
2023-01-12 10:11:59 +08:00
|
|
|
config_nios2=true
|
2018-08-08 05:15:47 +08:00
|
|
|
;;
|
2000-03-18 06:48:54 +08:00
|
|
|
esac
|
2022-02-19 11:38:41 +08:00
|
|
|
AC_SUBST(subdirs)
|
2000-03-18 06:48:54 +08:00
|
|
|
|
2022-02-07 19:18:55 +08:00
|
|
|
dnl These subdirs have converted to non-recursive make. Hopefully someday all
|
|
|
|
dnl the ports above will too!
|
|
|
|
m4_foreach_w([SUBDIR], [
|
2023-12-27 12:13:37 +08:00
|
|
|
aarch64 arc arm bfin csky d30v frv i386 i960 iq2000 libnosys lm32
|
2023-12-27 13:54:13 +08:00
|
|
|
m32r mcore mn10200 mn10300 moxie msp430
|
2023-12-27 13:43:25 +08:00
|
|
|
nds32 nios2 riscv rl78 rx v850 wince xstormy16 xtensa
|
2022-02-07 19:18:55 +08:00
|
|
|
], [dnl
|
|
|
|
AM_CONDITIONAL([CONFIG_]m4_toupper(SUBDIR), [test x$config_]SUBDIR = xtrue)
|
|
|
|
])
|
2022-02-02 13:23:50 +08:00
|
|
|
|
2009-05-14 05:38:25 +08:00
|
|
|
dnl For now, don't bother configuring testsuite
|
|
|
|
dnl
|
|
|
|
dnl if test "${config_testsuite}" = "true";
|
|
|
|
dnl then AC_CONFIG_SUBDIRS([testsuite])
|
|
|
|
dnl fi
|
|
|
|
|
2022-02-12 18:29:06 +08:00
|
|
|
AC_PROG_CC
|
2022-02-19 12:46:44 +08:00
|
|
|
AM_PROG_AS
|
2022-02-12 18:36:20 +08:00
|
|
|
AM_PROG_AR
|
2000-03-18 06:48:54 +08:00
|
|
|
LD=${LD-ld}
|
|
|
|
AC_SUBST(LD)
|
|
|
|
AC_PROG_RANLIB
|
2023-12-27 13:26:14 +08:00
|
|
|
AC_CHECK_TOOL(OBJCOPY, objcopy, :)
|
|
|
|
AC_CHECK_TOOL(OBJDUMP, objdump, :)
|
2000-03-18 06:48:54 +08:00
|
|
|
|
2022-01-24 13:12:58 +08:00
|
|
|
AC_DEFINE(HAVE_GNU_LD, 1, [Using GNU LD])
|
|
|
|
|
|
|
|
AC_CACHE_CHECK([if target is ELF], libc_cv_is_elf, [dnl
|
|
|
|
AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
|
|
|
|
[[#ifndef __ELF__
|
|
|
|
# error "not ELF"
|
|
|
|
#endif
|
|
|
|
]])], [libc_cv_is_elf=yes], [libc_cv_is_elf=no])
|
|
|
|
])
|
|
|
|
if test "x${libc_cv_is_elf}" = "xyes"; then
|
|
|
|
AC_DEFINE(HAVE_ELF, 1, [Using ELF format])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CACHE_CHECK([for .previous assembler directive],
|
|
|
|
libc_cv_asm_previous_directive, [dnl
|
|
|
|
libc_cv_asm_previous_directive=no
|
|
|
|
cat > conftest.s <<EOF
|
|
|
|
.section foo_section
|
|
|
|
.previous
|
|
|
|
EOF
|
|
|
|
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
|
|
|
|
libc_cv_asm_previous_directive=yes
|
|
|
|
fi
|
|
|
|
rm -f conftest*])
|
|
|
|
if test "x${libc_cv_asm_previous_directive}" = "xyes"; then
|
|
|
|
AC_DEFINE(HAVE_ASM_PREVIOUS_DIRECTIVE, 1, [.previous directive allowed])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CACHE_CHECK([for .popsection assembler directive],
|
|
|
|
libc_cv_asm_popsection_directive, [dnl
|
|
|
|
libc_cv_asm_popsection_directive=no
|
|
|
|
cat > conftest.s <<EOF
|
|
|
|
.pushsection foo_section
|
|
|
|
.popsection
|
|
|
|
EOF
|
|
|
|
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
|
|
|
|
libc_cv_asm_popsection_directive=yes
|
|
|
|
fi
|
|
|
|
rm -f conftest*])
|
|
|
|
if test "x${libc_cv_asm_popsection_directive}" = "xyes"; then
|
|
|
|
AC_DEFINE(HAVE_ASM_POPSECTION_DIRECTIVE, 1, [.pushsection/.popsection directives allowed])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CACHE_CHECK([for section attributes],
|
|
|
|
libc_cv_section_attributes, [dnl
|
|
|
|
libc_cv_section_attributes=no
|
|
|
|
cat > conftest.c <<EOF
|
|
|
|
int secttest __attribute__ ((section (".gnu.warning.secttest"))) = 10;
|
|
|
|
int main() {}
|
|
|
|
EOF
|
|
|
|
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.c 1>&AC_FD_CC); then
|
|
|
|
libc_cv_section_attributes=yes
|
|
|
|
fi
|
|
|
|
rm -f conftest*])
|
|
|
|
if test "x${libc_cv_section_attributes}" = "xyes"; then
|
|
|
|
AC_DEFINE(HAVE_SECTION_ATTRIBUTES, 1, [support for section attributes])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CACHE_CHECK([for symbol prefix], libc_cv_symbol_prefix, [dnl
|
|
|
|
cat > conftest.c <<\EOF
|
|
|
|
foo () { }
|
|
|
|
EOF
|
|
|
|
dnl
|
|
|
|
libc_cv_symbol_prefix=''
|
|
|
|
if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null]); then
|
|
|
|
libc_cv_symbol_prefix='$'
|
|
|
|
else
|
|
|
|
if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "_foo" > /dev/null]); then
|
|
|
|
libc_cv_symbol_prefix=_
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
rm -f conftest* ])
|
|
|
|
AC_DEFINE_UNQUOTED(__SYMBOL_PREFIX, "$libc_cv_symbol_prefix", [symbol prefix])
|
|
|
|
|
2022-02-19 11:14:13 +08:00
|
|
|
m4_include([aarch64/acinclude.m4])
|
2022-02-19 11:38:41 +08:00
|
|
|
m4_include([arm/acinclude.m4])
|
2022-02-11 19:43:45 +08:00
|
|
|
m4_include([i386/acinclude.m4])
|
2022-01-24 13:12:58 +08:00
|
|
|
m4_include([libnosys/acinclude.m4])
|
2022-02-11 19:57:11 +08:00
|
|
|
m4_include([m68k/acinclude.m4])
|
2022-02-11 19:51:34 +08:00
|
|
|
m4_include([mcore/acinclude.m4])
|
2022-02-12 18:17:15 +08:00
|
|
|
m4_include([mips/acinclude.m4])
|
2022-02-11 20:11:15 +08:00
|
|
|
m4_include([mn10300/acinclude.m4])
|
2022-02-11 19:48:07 +08:00
|
|
|
m4_include([moxie/acinclude.m4])
|
2023-12-29 13:33:05 +08:00
|
|
|
m4_include([sparc/acinclude.m4])
|
2023-08-09 04:07:04 +08:00
|
|
|
m4_include([xtensa/acinclude.m4])
|
2022-01-24 13:12:58 +08:00
|
|
|
|
2022-02-12 14:59:13 +08:00
|
|
|
AC_CACHE_CHECK([for compiler search settings], libc_cv_compiler_isystem, [dnl
|
|
|
|
for subdir in include include-fixed; do
|
|
|
|
AS_IF([dir=`$CC -print-file-name=$subdir`], [dnl
|
|
|
|
AS_IF([test -n "$dir"], [dnl
|
|
|
|
libc_cv_compiler_isystem="$libc_cv_compiler_isystem -isystem $dir"
|
|
|
|
])
|
|
|
|
])
|
|
|
|
done
|
|
|
|
])
|
|
|
|
CC="$CC -nostdinc $libc_cv_compiler_isystem"
|
|
|
|
|
2000-03-18 06:48:54 +08:00
|
|
|
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)
|
2022-01-24 13:23:10 +08:00
|
|
|
target_makefile_frag_path=$target_makefile_frag
|
|
|
|
AC_SUBST(target_makefile_frag_path)
|
|
|
|
AC_SUBST_FILE(target_makefile_frag)
|
2000-03-18 06:48:54 +08:00
|
|
|
|
2022-02-04 14:17:54 +08:00
|
|
|
dnl AM_ENABLE_MULTILIB only processes the top-level Makefile, but we want the
|
|
|
|
dnl multilib settings to propagate to all sub-Makefiles that we recurse into
|
|
|
|
dnl too. This can go away if we ever get rid of sub-Makefiles and only use
|
|
|
|
dnl Automake + makefile include fragments.
|
|
|
|
AC_OUTPUT_COMMANDS([
|
|
|
|
for subdir in $subdirs; do
|
|
|
|
case " $CONFIG_FILES " in
|
|
|
|
*" $subdir/Makefile "*)
|
|
|
|
ac_file=$subdir/Makefile . ${multi_basedir}/config-ml.in
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done], [subdirs="$subdirs"])
|
|
|
|
|
2022-01-24 12:24:52 +08:00
|
|
|
AM_ENABLE_MULTILIB(, ..)
|
2006-05-11 04:51:41 +08:00
|
|
|
|
2022-01-24 12:24:52 +08:00
|
|
|
AC_CONFIG_FILES([Makefile])
|
2006-04-20 03:44:05 +08:00
|
|
|
AC_OUTPUT
|