libgloss: merge arm configure script up a level
Move the minor arm-specific logic to a dedicated variable so we can merge its configure logic up a level.
This commit is contained in:
parent
8893cd1006
commit
04411f45d0
|
@ -158,7 +158,7 @@ am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \
|
||||||
$(top_srcdir)/../config/multi.m4 \
|
$(top_srcdir)/../config/multi.m4 \
|
||||||
$(top_srcdir)/../config/override.m4 \
|
$(top_srcdir)/../config/override.m4 \
|
||||||
$(top_srcdir)/aarch64/acinclude.m4 \
|
$(top_srcdir)/aarch64/acinclude.m4 \
|
||||||
$(top_srcdir)/i386/acinclude.m4 \
|
$(top_srcdir)/arm/acinclude.m4 $(top_srcdir)/i386/acinclude.m4 \
|
||||||
$(top_srcdir)/libnosys/acinclude.m4 \
|
$(top_srcdir)/libnosys/acinclude.m4 \
|
||||||
$(top_srcdir)/m68k/acinclude.m4 \
|
$(top_srcdir)/m68k/acinclude.m4 \
|
||||||
$(top_srcdir)/mcore/acinclude.m4 \
|
$(top_srcdir)/mcore/acinclude.m4 \
|
||||||
|
@ -183,8 +183,8 @@ CONFIG_CLEAN_FILES = aarch64/Makefile aarch64/cpu-init/Makefile \
|
||||||
mcore/Makefile mep/Makefile moxie/Makefile microblaze/Makefile \
|
mcore/Makefile mep/Makefile moxie/Makefile microblaze/Makefile \
|
||||||
mt/Makefile v850/Makefile visium/Makefile xc16x/Makefile \
|
mt/Makefile v850/Makefile visium/Makefile xc16x/Makefile \
|
||||||
xstormy16/Makefile m32c/Makefile msp430/Makefile rl78/Makefile \
|
xstormy16/Makefile m32c/Makefile msp430/Makefile rl78/Makefile \
|
||||||
rx/Makefile spu/Makefile tic6x/Makefile or1k/Makefile \
|
rx/Makefile arm/Makefile arm/cpu-init/Makefile spu/Makefile \
|
||||||
pru/Makefile nios2/Makefile
|
tic6x/Makefile or1k/Makefile pru/Makefile nios2/Makefile
|
||||||
CONFIG_CLEAN_VPATH_FILES =
|
CONFIG_CLEAN_VPATH_FILES =
|
||||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||||
am__vpath_adj = case $$p in \
|
am__vpath_adj = case $$p in \
|
||||||
|
@ -512,6 +512,9 @@ ACLOCAL = @ACLOCAL@
|
||||||
AMTAR = @AMTAR@
|
AMTAR = @AMTAR@
|
||||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||||
AR = @AR@
|
AR = @AR@
|
||||||
|
ARM_BUILD_CRT0_FALSE = @ARM_BUILD_CRT0_FALSE@
|
||||||
|
ARM_BUILD_CRT0_TRUE = @ARM_BUILD_CRT0_TRUE@
|
||||||
|
ARM_OBJTYPE = @ARM_OBJTYPE@
|
||||||
AUTOCONF = @AUTOCONF@
|
AUTOCONF = @AUTOCONF@
|
||||||
AUTOHEADER = @AUTOHEADER@
|
AUTOHEADER = @AUTOHEADER@
|
||||||
AUTOMAKE = @AUTOMAKE@
|
AUTOMAKE = @AUTOMAKE@
|
||||||
|
@ -931,6 +934,10 @@ rl78/Makefile: $(top_builddir)/config.status $(top_srcdir)/rl78/Makefile.in
|
||||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||||
rx/Makefile: $(top_builddir)/config.status $(top_srcdir)/rx/Makefile.in
|
rx/Makefile: $(top_builddir)/config.status $(top_srcdir)/rx/Makefile.in
|
||||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||||
|
arm/Makefile: $(top_builddir)/config.status $(top_srcdir)/arm/Makefile.in
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||||
|
arm/cpu-init/Makefile: $(top_builddir)/config.status $(top_srcdir)/arm/cpu-init/Makefile.in
|
||||||
|
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||||
spu/Makefile: $(top_builddir)/config.status $(top_srcdir)/spu/Makefile.in
|
spu/Makefile: $(top_builddir)/config.status $(top_srcdir)/spu/Makefile.in
|
||||||
cd $(top_builddir) && $(SHELL) ./config.status $@
|
cd $(top_builddir) && $(SHELL) ./config.status $@
|
||||||
tic6x/Makefile: $(top_builddir)/config.status $(top_srcdir)/tic6x/Makefile.in
|
tic6x/Makefile: $(top_builddir)/config.status $(top_srcdir)/tic6x/Makefile.in
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
DESTDIR =
|
DESTDIR =
|
||||||
VPATH = @srcdir@ @srcdir@/..
|
VPATH = @srcdir@ @srcdir@/..
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
|
abs_srcdir = @abs_srcdir@
|
||||||
objdir = .
|
objdir = .
|
||||||
srcroot = $(srcdir)/../..
|
srcroot = $(srcdir)/../..
|
||||||
objroot = $(objdir)/../..
|
objroot = $(objdir)/../..
|
||||||
|
@ -17,7 +18,7 @@ bindir = @bindir@
|
||||||
libdir = @libdir@
|
libdir = @libdir@
|
||||||
tooldir = $(exec_prefix)/$(target_alias)
|
tooldir = $(exec_prefix)/$(target_alias)
|
||||||
|
|
||||||
objtype = @objtype@
|
objtype = @ARM_OBJTYPE@
|
||||||
|
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
|
@ -43,8 +44,6 @@ AR = @AR@
|
||||||
LD = @LD@
|
LD = @LD@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
|
|
||||||
SUBDIRS = @subdirs@
|
|
||||||
|
|
||||||
OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \
|
OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \
|
||||||
then echo ${objroot}/../binutils/objdump ; \
|
then echo ${objroot}/../binutils/objdump ; \
|
||||||
else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
|
else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi`
|
||||||
|
@ -52,10 +51,10 @@ OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
|
||||||
then echo ${objroot}/../binutils/objcopy ; \
|
then echo ${objroot}/../binutils/objcopy ; \
|
||||||
else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
|
else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
|
||||||
|
|
||||||
@BUILD_CRT0_TRUE@CRT0 = crt0.o
|
@ARM_BUILD_CRT0_TRUE@CRT0 = crt0.o
|
||||||
@BUILD_CRT0_TRUE@CRT0_INSTALL = install-crt0
|
@ARM_BUILD_CRT0_TRUE@CRT0_INSTALL = install-crt0
|
||||||
@BUILD_CRT0_FALSE@CRT0 =
|
@ARM_BUILD_CRT0_FALSE@CRT0 =
|
||||||
@BUILD_CRT0_FALSE@CRT0_INSTALL =
|
@ARM_BUILD_CRT0_FALSE@CRT0_INSTALL =
|
||||||
|
|
||||||
NANO_SCRIPTS=nano.specs
|
NANO_SCRIPTS=nano.specs
|
||||||
NANO_INSTALL=install-nano
|
NANO_INSTALL=install-nano
|
||||||
|
@ -105,15 +104,6 @@ INCLUDES += `if [ -d ${objroot}/newlib ]; then echo -I$(srcroot)/newlib/libc/mac
|
||||||
# it to link is a good test, so we ignore all the errors for now.
|
# it to link is a good test, so we ignore all the errors for now.
|
||||||
#
|
#
|
||||||
all: ${CRT0} ${LINUX_CRT0} ${LINUX_BSP} ${REDBOOT_CRT0} ${REDBOOT_OBJS} ${RDPMON_CRT0} ${RDPMON_BSP} ${RDIMON_CRT0} ${RDIMON_BSP}
|
all: ${CRT0} ${LINUX_CRT0} ${LINUX_BSP} ${REDBOOT_CRT0} ${REDBOOT_OBJS} ${RDPMON_CRT0} ${RDPMON_BSP} ${RDIMON_CRT0} ${RDIMON_BSP}
|
||||||
@rootpre=`pwd`/; export rootpre; \
|
|
||||||
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
|
|
||||||
for dir in .. ${SUBDIRS}; do \
|
|
||||||
if [ x$$dir != x.. ]; then \
|
|
||||||
if [ -d $$dir ]; then \
|
|
||||||
(cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
|
|
||||||
else true; fi; \
|
|
||||||
else true; fi; \
|
|
||||||
done
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# here's where we build the test programs for each target
|
# here's where we build the test programs for each target
|
||||||
|
@ -199,30 +189,12 @@ librdimon-v2m.a: $(RDIMON_SEMIHV2M_OBJS)
|
||||||
|
|
||||||
clean mostlyclean:
|
clean mostlyclean:
|
||||||
rm -f a.out core *.i *.o *-test *.srec *.dis *.x $(SIM_BSP) $(IQ80310_BSP)
|
rm -f a.out core *.i *.o *-test *.srec *.dis *.x $(SIM_BSP) $(IQ80310_BSP)
|
||||||
@rootpre=`pwd`/; export rootpre; \
|
|
||||||
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
|
|
||||||
for dir in .. ${SUBDIRS}; do \
|
|
||||||
if [ x$$dir != x.. ]; then \
|
|
||||||
if [ -d $$dir ]; then \
|
|
||||||
(cd $$dir; $(MAKE) $(FLAGS_TO_PASS) clean); \
|
|
||||||
else true; fi; \
|
|
||||||
else true; fi; \
|
|
||||||
done
|
|
||||||
|
|
||||||
distclean maintainer-clean realclean: clean
|
distclean maintainer-clean realclean: clean
|
||||||
rm -f Makefile config.status *~
|
rm -f Makefile *~
|
||||||
|
|
||||||
.PHONY: install info install-info clean-info
|
.PHONY: install info install-info clean-info
|
||||||
install: ${CRT0_INSTALL} ${LINUX_INSTALL} ${REDBOOT_INSTALL} ${RDPMON_INSTALL} ${RDIMON_INSTALL} ${IQ80310_INSTALL} ${PID_INSTALL} ${NANO_INSTALL}
|
install: ${CRT0_INSTALL} ${LINUX_INSTALL} ${REDBOOT_INSTALL} ${RDPMON_INSTALL} ${RDIMON_INSTALL} ${IQ80310_INSTALL} ${PID_INSTALL} ${NANO_INSTALL}
|
||||||
@rootpre=`pwd`/; export rootpre; \
|
|
||||||
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
|
|
||||||
for dir in .. ${SUBDIRS}; do \
|
|
||||||
if [ x$$dir != x.. ]; then \
|
|
||||||
if [ -d $$dir ]; then \
|
|
||||||
(cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install); \
|
|
||||||
else true; fi; \
|
|
||||||
else true; fi; \
|
|
||||||
done
|
|
||||||
|
|
||||||
install-nano:
|
install-nano:
|
||||||
${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR}
|
${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR}
|
||||||
|
@ -267,8 +239,5 @@ info:
|
||||||
install-info:
|
install-info:
|
||||||
clean-info:
|
clean-info:
|
||||||
|
|
||||||
Makefile: Makefile.in config.status @host_makefile_frag_path@
|
Makefile: Makefile.in ../config.status
|
||||||
$(SHELL) config.status
|
cd .. && $(SHELL) ./config.status
|
||||||
|
|
||||||
config.status: configure
|
|
||||||
$(SHELL) config.status --recheck
|
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
if test "x$newlib_may_supply_syscalls" = "xyes"; then
|
||||||
|
ARM_BUILD_CRT0_TRUE='#'
|
||||||
|
ARM_BUILD_CRT0_FALSE=
|
||||||
|
else
|
||||||
|
ARM_BUILD_CRT0_TRUE=
|
||||||
|
ARM_BUILD_CRT0_FALSE='#'
|
||||||
|
fi
|
||||||
|
AC_SUBST(ARM_BUILD_CRT0_TRUE)
|
||||||
|
AC_SUBST(ARM_BUILD_CRT0_FALSE)
|
||||||
|
|
||||||
|
ARM_OBJTYPE=
|
||||||
|
case "${target}" in
|
||||||
|
*-*-elf | *-*-eabi* | *-*-tirtos*)
|
||||||
|
ARM_OBJTYPE=elf-
|
||||||
|
;;
|
||||||
|
*-*-coff)
|
||||||
|
ARM_OBJTYPE=coff-
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
AC_SUBST(ARM_OBJTYPE)
|
|
@ -1,546 +0,0 @@
|
||||||
# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
|
|
||||||
|
|
||||||
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
# This file is free software; the Free Software Foundation
|
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
|
||||||
# with or without modifications, as long as this notice is preserved.
|
|
||||||
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|
||||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
||||||
# PARTICULAR PURPOSE.
|
|
||||||
|
|
||||||
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
|
||||||
# Copyright (C) 2011-2017 Free Software Foundation, Inc.
|
|
||||||
#
|
|
||||||
# This file is free software; the Free Software Foundation
|
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
|
||||||
# with or without modifications, as long as this notice is preserved.
|
|
||||||
|
|
||||||
# AM_PROG_AR([ACT-IF-FAIL])
|
|
||||||
# -------------------------
|
|
||||||
# Try to determine the archiver interface, and trigger the ar-lib wrapper
|
|
||||||
# if it is needed. If the detection of archiver interface fails, run
|
|
||||||
# ACT-IF-FAIL (default is to abort configure with a proper error message).
|
|
||||||
AC_DEFUN([AM_PROG_AR],
|
|
||||||
[AC_BEFORE([$0], [LT_INIT])dnl
|
|
||||||
AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
|
|
||||||
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
||||||
AC_REQUIRE_AUX_FILE([ar-lib])dnl
|
|
||||||
AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
|
|
||||||
: ${AR=ar}
|
|
||||||
|
|
||||||
AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
|
|
||||||
[AC_LANG_PUSH([C])
|
|
||||||
am_cv_ar_interface=ar
|
|
||||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
|
|
||||||
[am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
|
|
||||||
AC_TRY_EVAL([am_ar_try])
|
|
||||||
if test "$ac_status" -eq 0; then
|
|
||||||
am_cv_ar_interface=ar
|
|
||||||
else
|
|
||||||
am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
|
|
||||||
AC_TRY_EVAL([am_ar_try])
|
|
||||||
if test "$ac_status" -eq 0; then
|
|
||||||
am_cv_ar_interface=lib
|
|
||||||
else
|
|
||||||
am_cv_ar_interface=unknown
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
rm -f conftest.lib libconftest.a
|
|
||||||
])
|
|
||||||
AC_LANG_POP([C])])
|
|
||||||
|
|
||||||
case $am_cv_ar_interface in
|
|
||||||
ar)
|
|
||||||
;;
|
|
||||||
lib)
|
|
||||||
# Microsoft lib, so override with the ar-lib wrapper script.
|
|
||||||
# FIXME: It is wrong to rewrite AR.
|
|
||||||
# But if we don't then we get into trouble of one sort or another.
|
|
||||||
# A longer-term fix would be to have automake use am__AR in this case,
|
|
||||||
# and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
|
|
||||||
# similar.
|
|
||||||
AR="$am_aux_dir/ar-lib $AR"
|
|
||||||
;;
|
|
||||||
unknown)
|
|
||||||
m4_default([$1],
|
|
||||||
[AC_MSG_ERROR([could not determine $AR interface])])
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
AC_SUBST([AR])dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
# Figure out how to run the assembler. -*- Autoconf -*-
|
|
||||||
|
|
||||||
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
||||||
#
|
|
||||||
# This file is free software; the Free Software Foundation
|
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
|
||||||
# with or without modifications, as long as this notice is preserved.
|
|
||||||
|
|
||||||
# AM_PROG_AS
|
|
||||||
# ----------
|
|
||||||
AC_DEFUN([AM_PROG_AS],
|
|
||||||
[# By default we simply use the C compiler to build assembly code.
|
|
||||||
AC_REQUIRE([AC_PROG_CC])
|
|
||||||
test "${CCAS+set}" = set || CCAS=$CC
|
|
||||||
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
|
|
||||||
AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
|
|
||||||
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
|
|
||||||
_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
|
||||||
|
|
||||||
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
||||||
#
|
|
||||||
# This file is free software; the Free Software Foundation
|
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
|
||||||
# with or without modifications, as long as this notice is preserved.
|
|
||||||
|
|
||||||
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
|
||||||
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
|
|
||||||
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
|
|
||||||
#
|
|
||||||
# Of course, Automake must honor this variable whenever it calls a
|
|
||||||
# tool from the auxiliary directory. The problem is that $srcdir (and
|
|
||||||
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
|
||||||
# depending on how configure is run. This is pretty annoying, since
|
|
||||||
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
|
||||||
# source directory, any form will work fine, but in subdirectories a
|
|
||||||
# relative path needs to be adjusted first.
|
|
||||||
#
|
|
||||||
# $ac_aux_dir/missing
|
|
||||||
# fails when called from a subdirectory if $ac_aux_dir is relative
|
|
||||||
# $top_srcdir/$ac_aux_dir/missing
|
|
||||||
# fails if $ac_aux_dir is absolute,
|
|
||||||
# fails when called from a subdirectory in a VPATH build with
|
|
||||||
# a relative $ac_aux_dir
|
|
||||||
#
|
|
||||||
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
|
||||||
# are both prefixed by $srcdir. In an in-source build this is usually
|
|
||||||
# harmless because $srcdir is '.', but things will broke when you
|
|
||||||
# start a VPATH build or use an absolute $srcdir.
|
|
||||||
#
|
|
||||||
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
|
||||||
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
|
||||||
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
|
||||||
# and then we would define $MISSING as
|
|
||||||
# MISSING="\${SHELL} $am_aux_dir/missing"
|
|
||||||
# This will work as long as MISSING is not called from configure, because
|
|
||||||
# unfortunately $(top_srcdir) has no meaning in configure.
|
|
||||||
# However there are other variables, like CC, which are often used in
|
|
||||||
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
|
||||||
#
|
|
||||||
# Another solution, used here, is to always expand $ac_aux_dir to an
|
|
||||||
# absolute PATH. The drawback is that using absolute paths prevent a
|
|
||||||
# configured tree to be moved without reconfiguration.
|
|
||||||
|
|
||||||
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
|
||||||
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
|
|
||||||
# Expand $ac_aux_dir to an absolute path.
|
|
||||||
am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
|
||||||
])
|
|
||||||
|
|
||||||
# AM_CONDITIONAL -*- Autoconf -*-
|
|
||||||
|
|
||||||
# Copyright (C) 1997-2017 Free Software Foundation, Inc.
|
|
||||||
#
|
|
||||||
# This file is free software; the Free Software Foundation
|
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
|
||||||
# with or without modifications, as long as this notice is preserved.
|
|
||||||
|
|
||||||
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
|
||||||
# -------------------------------------
|
|
||||||
# Define a conditional.
|
|
||||||
AC_DEFUN([AM_CONDITIONAL],
|
|
||||||
[AC_PREREQ([2.52])dnl
|
|
||||||
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
|
||||||
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
|
||||||
AC_SUBST([$1_TRUE])dnl
|
|
||||||
AC_SUBST([$1_FALSE])dnl
|
|
||||||
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
|
||||||
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
|
||||||
m4_define([_AM_COND_VALUE_$1], [$2])dnl
|
|
||||||
if $2; then
|
|
||||||
$1_TRUE=
|
|
||||||
$1_FALSE='#'
|
|
||||||
else
|
|
||||||
$1_TRUE='#'
|
|
||||||
$1_FALSE=
|
|
||||||
fi
|
|
||||||
AC_CONFIG_COMMANDS_PRE(
|
|
||||||
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
|
||||||
AC_MSG_ERROR([[conditional "$1" was never defined.
|
|
||||||
Usually this means the macro was only invoked conditionally.]])
|
|
||||||
fi])])
|
|
||||||
|
|
||||||
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
|
|
||||||
#
|
|
||||||
# This file is free software; the Free Software Foundation
|
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
|
||||||
# with or without modifications, as long as this notice is preserved.
|
|
||||||
|
|
||||||
|
|
||||||
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
|
|
||||||
# written in clear, in which case automake, when reading aclocal.m4,
|
|
||||||
# will think it sees a *use*, and therefore will trigger all it's
|
|
||||||
# C support machinery. Also note that it means that autoscan, seeing
|
|
||||||
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
|
||||||
|
|
||||||
|
|
||||||
# _AM_DEPENDENCIES(NAME)
|
|
||||||
# ----------------------
|
|
||||||
# See how the compiler implements dependency checking.
|
|
||||||
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
|
|
||||||
# We try a few techniques and use that to set a single cache variable.
|
|
||||||
#
|
|
||||||
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
|
||||||
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
|
||||||
# dependency, and given that the user is not expected to run this macro,
|
|
||||||
# just rely on AC_PROG_CC.
|
|
||||||
AC_DEFUN([_AM_DEPENDENCIES],
|
|
||||||
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
|
||||||
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
|
||||||
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
|
||||||
AC_REQUIRE([AM_DEP_TRACK])dnl
|
|
||||||
|
|
||||||
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
|
|
||||||
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
|
|
||||||
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
|
||||||
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
|
|
||||||
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
|
|
||||||
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
|
||||||
[depcc="$$1" am_compiler_list=])
|
|
||||||
|
|
||||||
AC_CACHE_CHECK([dependency style of $depcc],
|
|
||||||
[am_cv_$1_dependencies_compiler_type],
|
|
||||||
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
|
||||||
# We make a subdir and do the tests there. Otherwise we can end up
|
|
||||||
# making bogus files that we don't know about and never remove. For
|
|
||||||
# instance it was reported that on HP-UX the gcc test will end up
|
|
||||||
# making a dummy file named 'D' -- because '-MD' means "put the output
|
|
||||||
# in D".
|
|
||||||
rm -rf conftest.dir
|
|
||||||
mkdir conftest.dir
|
|
||||||
# Copy depcomp to subdir because otherwise we won't find it if we're
|
|
||||||
# using a relative directory.
|
|
||||||
cp "$am_depcomp" conftest.dir
|
|
||||||
cd conftest.dir
|
|
||||||
# We will build objects and dependencies in a subdirectory because
|
|
||||||
# it helps to detect inapplicable dependency modes. For instance
|
|
||||||
# both Tru64's cc and ICC support -MD to output dependencies as a
|
|
||||||
# side effect of compilation, but ICC will put the dependencies in
|
|
||||||
# the current directory while Tru64 will put them in the object
|
|
||||||
# directory.
|
|
||||||
mkdir sub
|
|
||||||
|
|
||||||
am_cv_$1_dependencies_compiler_type=none
|
|
||||||
if test "$am_compiler_list" = ""; then
|
|
||||||
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
|
||||||
fi
|
|
||||||
am__universal=false
|
|
||||||
m4_case([$1], [CC],
|
|
||||||
[case " $depcc " in #(
|
|
||||||
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
|
||||||
esac],
|
|
||||||
[CXX],
|
|
||||||
[case " $depcc " in #(
|
|
||||||
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
|
||||||
esac])
|
|
||||||
|
|
||||||
for depmode in $am_compiler_list; do
|
|
||||||
# Setup a source with many dependencies, because some compilers
|
|
||||||
# like to wrap large dependency lists on column 80 (with \), and
|
|
||||||
# we should not choose a depcomp mode which is confused by this.
|
|
||||||
#
|
|
||||||
# We need to recreate these files for each test, as the compiler may
|
|
||||||
# overwrite some of them when testing with obscure command lines.
|
|
||||||
# This happens at least with the AIX C compiler.
|
|
||||||
: > sub/conftest.c
|
|
||||||
for i in 1 2 3 4 5 6; do
|
|
||||||
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
|
||||||
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
|
||||||
# Solaris 10 /bin/sh.
|
|
||||||
echo '/* dummy */' > sub/conftst$i.h
|
|
||||||
done
|
|
||||||
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
|
||||||
|
|
||||||
# We check with '-c' and '-o' for the sake of the "dashmstdout"
|
|
||||||
# mode. It turns out that the SunPro C++ compiler does not properly
|
|
||||||
# handle '-M -o', and we need to detect this. Also, some Intel
|
|
||||||
# versions had trouble with output in subdirs.
|
|
||||||
am__obj=sub/conftest.${OBJEXT-o}
|
|
||||||
am__minus_obj="-o $am__obj"
|
|
||||||
case $depmode in
|
|
||||||
gcc)
|
|
||||||
# This depmode causes a compiler race in universal mode.
|
|
||||||
test "$am__universal" = false || continue
|
|
||||||
;;
|
|
||||||
nosideeffect)
|
|
||||||
# After this tag, mechanisms are not by side-effect, so they'll
|
|
||||||
# only be used when explicitly requested.
|
|
||||||
if test "x$enable_dependency_tracking" = xyes; then
|
|
||||||
continue
|
|
||||||
else
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
|
||||||
# This compiler won't grok '-c -o', but also, the minuso test has
|
|
||||||
# not run yet. These depmodes are late enough in the game, and
|
|
||||||
# so weak that their functioning should not be impacted.
|
|
||||||
am__obj=conftest.${OBJEXT-o}
|
|
||||||
am__minus_obj=
|
|
||||||
;;
|
|
||||||
none) break ;;
|
|
||||||
esac
|
|
||||||
if depmode=$depmode \
|
|
||||||
source=sub/conftest.c object=$am__obj \
|
|
||||||
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
|
||||||
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
|
||||||
>/dev/null 2>conftest.err &&
|
|
||||||
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
||||||
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
||||||
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
|
||||||
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
|
||||||
# icc doesn't choke on unknown options, it will just issue warnings
|
|
||||||
# or remarks (even with -Werror). So we grep stderr for any message
|
|
||||||
# that says an option was ignored or not supported.
|
|
||||||
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
|
||||||
# icc: Command line warning: ignoring option '-M'; no argument required
|
|
||||||
# The diagnosis changed in icc 8.0:
|
|
||||||
# icc: Command line remark: option '-MP' not supported
|
|
||||||
if (grep 'ignoring option' conftest.err ||
|
|
||||||
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
|
||||||
am_cv_$1_dependencies_compiler_type=$depmode
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
rm -rf conftest.dir
|
|
||||||
else
|
|
||||||
am_cv_$1_dependencies_compiler_type=none
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
|
||||||
AM_CONDITIONAL([am__fastdep$1], [
|
|
||||||
test "x$enable_dependency_tracking" != xno \
|
|
||||||
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
# AM_SET_DEPDIR
|
|
||||||
# -------------
|
|
||||||
# Choose a directory name for dependency files.
|
|
||||||
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
|
|
||||||
AC_DEFUN([AM_SET_DEPDIR],
|
|
||||||
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|
||||||
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
# AM_DEP_TRACK
|
|
||||||
# ------------
|
|
||||||
AC_DEFUN([AM_DEP_TRACK],
|
|
||||||
[AC_ARG_ENABLE([dependency-tracking], [dnl
|
|
||||||
AS_HELP_STRING(
|
|
||||||
[--enable-dependency-tracking],
|
|
||||||
[do not reject slow dependency extractors])
|
|
||||||
AS_HELP_STRING(
|
|
||||||
[--disable-dependency-tracking],
|
|
||||||
[speeds up one-time build])])
|
|
||||||
if test "x$enable_dependency_tracking" != xno; then
|
|
||||||
am_depcomp="$ac_aux_dir/depcomp"
|
|
||||||
AMDEPBACKSLASH='\'
|
|
||||||
am__nodep='_no'
|
|
||||||
fi
|
|
||||||
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
|
||||||
AC_SUBST([AMDEPBACKSLASH])dnl
|
|
||||||
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
|
|
||||||
AC_SUBST([am__nodep])dnl
|
|
||||||
_AM_SUBST_NOTMAKE([am__nodep])dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
|
||||||
|
|
||||||
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
|
|
||||||
#
|
|
||||||
# This file is free software; the Free Software Foundation
|
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
|
||||||
# with or without modifications, as long as this notice is preserved.
|
|
||||||
|
|
||||||
|
|
||||||
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
||||||
# ------------------------------
|
|
||||||
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
||||||
[{
|
|
||||||
# Older Autoconf quotes --file arguments for eval, but not when files
|
|
||||||
# are listed without --file. Let's play safe and only enable the eval
|
|
||||||
# if we detect the quoting.
|
|
||||||
case $CONFIG_FILES in
|
|
||||||
*\'*) eval set x "$CONFIG_FILES" ;;
|
|
||||||
*) set x $CONFIG_FILES ;;
|
|
||||||
esac
|
|
||||||
shift
|
|
||||||
for mf
|
|
||||||
do
|
|
||||||
# Strip MF so we end up with the name of the file.
|
|
||||||
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
|
||||||
# Check whether this is an Automake generated Makefile or not.
|
|
||||||
# We used to match only the files named 'Makefile.in', but
|
|
||||||
# some people rename them; so instead we look at the file content.
|
|
||||||
# Grep'ing the first line is not enough: some people post-process
|
|
||||||
# each Makefile.in and add a new line on top of each file to say so.
|
|
||||||
# Grep'ing the whole file is not good either: AIX grep has a line
|
|
||||||
# limit of 2048, but all sed's we know have understand at least 4000.
|
|
||||||
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
|
||||||
dirpart=`AS_DIRNAME("$mf")`
|
|
||||||
else
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
# Extract the definition of DEPDIR, am__include, and am__quote
|
|
||||||
# from the Makefile without running 'make'.
|
|
||||||
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
|
||||||
test -z "$DEPDIR" && continue
|
|
||||||
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
|
||||||
test -z "$am__include" && continue
|
|
||||||
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
|
||||||
# Find all dependency output files, they are included files with
|
|
||||||
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
|
||||||
# simplest approach to changing $(DEPDIR) to its actual value in the
|
|
||||||
# expansion.
|
|
||||||
for file in `sed -n "
|
|
||||||
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
|
||||||
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
|
|
||||||
# Make sure the directory exists.
|
|
||||||
test -f "$dirpart/$file" && continue
|
|
||||||
fdir=`AS_DIRNAME(["$file"])`
|
|
||||||
AS_MKDIR_P([$dirpart/$fdir])
|
|
||||||
# echo "creating $dirpart/$file"
|
|
||||||
echo '# dummy' > "$dirpart/$file"
|
|
||||||
done
|
|
||||||
done
|
|
||||||
}
|
|
||||||
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
||||||
|
|
||||||
|
|
||||||
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
||||||
# -----------------------------
|
|
||||||
# This macro should only be invoked once -- use via AC_REQUIRE.
|
|
||||||
#
|
|
||||||
# This code is only required when automatic dependency tracking
|
|
||||||
# is enabled. FIXME. This creates each '.P' file that we will
|
|
||||||
# need in order to bootstrap the dependency handling code.
|
|
||||||
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
||||||
[AC_CONFIG_COMMANDS([depfiles],
|
|
||||||
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
||||||
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
|
||||||
])
|
|
||||||
|
|
||||||
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
|
||||||
|
|
||||||
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
||||||
#
|
|
||||||
# This file is free software; the Free Software Foundation
|
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
|
||||||
# with or without modifications, as long as this notice is preserved.
|
|
||||||
|
|
||||||
# AM_MAKE_INCLUDE()
|
|
||||||
# -----------------
|
|
||||||
# Check to see how make treats includes.
|
|
||||||
AC_DEFUN([AM_MAKE_INCLUDE],
|
|
||||||
[am_make=${MAKE-make}
|
|
||||||
cat > confinc << 'END'
|
|
||||||
am__doit:
|
|
||||||
@echo this is the am__doit target
|
|
||||||
.PHONY: am__doit
|
|
||||||
END
|
|
||||||
# If we don't find an include directive, just comment out the code.
|
|
||||||
AC_MSG_CHECKING([for style of include used by $am_make])
|
|
||||||
am__include="#"
|
|
||||||
am__quote=
|
|
||||||
_am_result=none
|
|
||||||
# First try GNU make style include.
|
|
||||||
echo "include confinc" > confmf
|
|
||||||
# Ignore all kinds of additional output from 'make'.
|
|
||||||
case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
||||||
*the\ am__doit\ target*)
|
|
||||||
am__include=include
|
|
||||||
am__quote=
|
|
||||||
_am_result=GNU
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
# Now try BSD make style include.
|
|
||||||
if test "$am__include" = "#"; then
|
|
||||||
echo '.include "confinc"' > confmf
|
|
||||||
case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
||||||
*the\ am__doit\ target*)
|
|
||||||
am__include=.include
|
|
||||||
am__quote="\""
|
|
||||||
_am_result=BSD
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
AC_SUBST([am__include])
|
|
||||||
AC_SUBST([am__quote])
|
|
||||||
AC_MSG_RESULT([$_am_result])
|
|
||||||
rm -f confinc confmf
|
|
||||||
])
|
|
||||||
|
|
||||||
# Helper functions for option handling. -*- Autoconf -*-
|
|
||||||
|
|
||||||
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
||||||
#
|
|
||||||
# This file is free software; the Free Software Foundation
|
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
|
||||||
# with or without modifications, as long as this notice is preserved.
|
|
||||||
|
|
||||||
# _AM_MANGLE_OPTION(NAME)
|
|
||||||
# -----------------------
|
|
||||||
AC_DEFUN([_AM_MANGLE_OPTION],
|
|
||||||
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
|
||||||
|
|
||||||
# _AM_SET_OPTION(NAME)
|
|
||||||
# --------------------
|
|
||||||
# Set option NAME. Presently that only means defining a flag for this option.
|
|
||||||
AC_DEFUN([_AM_SET_OPTION],
|
|
||||||
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
|
|
||||||
|
|
||||||
# _AM_SET_OPTIONS(OPTIONS)
|
|
||||||
# ------------------------
|
|
||||||
# OPTIONS is a space-separated list of Automake options.
|
|
||||||
AC_DEFUN([_AM_SET_OPTIONS],
|
|
||||||
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
|
||||||
|
|
||||||
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
|
||||||
# -------------------------------------------
|
|
||||||
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
|
||||||
AC_DEFUN([_AM_IF_OPTION],
|
|
||||||
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
|
||||||
|
|
||||||
# Copyright (C) 2006-2017 Free Software Foundation, Inc.
|
|
||||||
#
|
|
||||||
# This file is free software; the Free Software Foundation
|
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
|
||||||
# with or without modifications, as long as this notice is preserved.
|
|
||||||
|
|
||||||
# _AM_SUBST_NOTMAKE(VARIABLE)
|
|
||||||
# ---------------------------
|
|
||||||
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
|
|
||||||
# This macro is traced by Automake.
|
|
||||||
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
|
||||||
|
|
||||||
# AM_SUBST_NOTMAKE(VARIABLE)
|
|
||||||
# --------------------------
|
|
||||||
# Public sister of _AM_SUBST_NOTMAKE.
|
|
||||||
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
|
||||||
|
|
||||||
m4_include([../../config/depstand.m4])
|
|
||||||
m4_include([../../config/lead-dot.m4])
|
|
||||||
m4_include([../../config/multi.m4])
|
|
||||||
m4_include([../../config/override.m4])
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,72 +0,0 @@
|
||||||
dnl Process this file with autoconf to produce a configure script.
|
|
||||||
AC_INIT(redboot-crt0.S)
|
|
||||||
|
|
||||||
dnl Support --disable-newlib-supplied-syscalls
|
|
||||||
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
|
|
||||||
|
|
||||||
if test "x$newlib_may_supply_syscalls" = "xyes"; then
|
|
||||||
BUILD_CRT0_TRUE='#'
|
|
||||||
BUILD_CRT0_FALSE=
|
|
||||||
else
|
|
||||||
BUILD_CRT0_TRUE=
|
|
||||||
BUILD_CRT0_FALSE='#'
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(BUILD_CRT0_TRUE)
|
|
||||||
AC_SUBST(BUILD_CRT0_FALSE)
|
|
||||||
|
|
||||||
AC_CONFIG_AUX_DIR(../..)
|
|
||||||
|
|
||||||
AC_CANONICAL_SYSTEM
|
|
||||||
AC_ARG_PROGRAM
|
|
||||||
|
|
||||||
AC_PROG_INSTALL
|
|
||||||
|
|
||||||
AC_NO_EXECUTABLES
|
|
||||||
AC_PROG_CC
|
|
||||||
AM_PROG_AS
|
|
||||||
AM_PROG_AR
|
|
||||||
LD=${LD-ld}
|
|
||||||
AC_SUBST(LD)
|
|
||||||
AC_PROG_RANLIB
|
|
||||||
|
|
||||||
case "${target}" in
|
|
||||||
*-*-elf | *-*-eabi* | *-*-tirtos*)
|
|
||||||
objtype=elf-
|
|
||||||
;;
|
|
||||||
*-*-coff)
|
|
||||||
objtype=coff-
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
AC_SUBST(objtype)
|
|
||||||
|
|
||||||
host_makefile_frag=`cd $srcdir/../config;pwd`/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)
|
|
||||||
|
|
||||||
# Configure cpu init plug-ins
|
|
||||||
if test -d "${srcdir}/cpu-init"; then
|
|
||||||
subdirs="${subdirs} cpu-init"
|
|
||||||
AC_CONFIG_FILES([cpu-init/Makefile], [dnl
|
|
||||||
ac_file=cpu-init/Makefile . ${srcdir}/../../config-ml.in
|
|
||||||
])
|
|
||||||
AC_SUBST(subdirs)
|
|
||||||
fi
|
|
||||||
|
|
||||||
AM_ENABLE_MULTILIB(, ../..)
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile])
|
|
||||||
AC_OUTPUT
|
|
|
@ -80,8 +80,5 @@ info:
|
||||||
install-info:
|
install-info:
|
||||||
clean-info:
|
clean-info:
|
||||||
|
|
||||||
Makefile: Makefile.in ../config.status @host_makefile_frag_path@
|
Makefile: Makefile.in ../../config.status
|
||||||
$(SHELL) ../config.status --file cpu-init/Makefile
|
cd ../.. && $(SHELL) ./config.status --file arm/cpu-init/Makefile
|
||||||
|
|
||||||
../config.status: ../configure
|
|
||||||
$(SHELL) ../config.status --recheck
|
|
||||||
|
|
|
@ -582,7 +582,6 @@ PACKAGE_BUGREPORT=''
|
||||||
PACKAGE_URL=''
|
PACKAGE_URL=''
|
||||||
|
|
||||||
ac_no_link=no
|
ac_no_link=no
|
||||||
enable_option_checking=no
|
|
||||||
ac_subst_vars='am__EXEEXT_FALSE
|
ac_subst_vars='am__EXEEXT_FALSE
|
||||||
am__EXEEXT_TRUE
|
am__EXEEXT_TRUE
|
||||||
LTLIBOBJS
|
LTLIBOBJS
|
||||||
|
@ -602,6 +601,9 @@ MIPS_PART_SPECIFIC_OBJ
|
||||||
MCORE_BSP_PREFIX
|
MCORE_BSP_PREFIX
|
||||||
M68K_TARGET
|
M68K_TARGET
|
||||||
I386_CPPFLAGS
|
I386_CPPFLAGS
|
||||||
|
ARM_OBJTYPE
|
||||||
|
ARM_BUILD_CRT0_FALSE
|
||||||
|
ARM_BUILD_CRT0_TRUE
|
||||||
AARCH64_OBJTYPE
|
AARCH64_OBJTYPE
|
||||||
CPP
|
CPP
|
||||||
RANLIB
|
RANLIB
|
||||||
|
@ -708,7 +710,6 @@ infodir
|
||||||
docdir
|
docdir
|
||||||
oldincludedir
|
oldincludedir
|
||||||
includedir
|
includedir
|
||||||
runstatedir
|
|
||||||
localstatedir
|
localstatedir
|
||||||
sharedstatedir
|
sharedstatedir
|
||||||
sysconfdir
|
sysconfdir
|
||||||
|
@ -732,6 +733,7 @@ ac_subst_files='host_makefile_frag
|
||||||
target_makefile_frag'
|
target_makefile_frag'
|
||||||
ac_user_opts='
|
ac_user_opts='
|
||||||
enable_option_checking
|
enable_option_checking
|
||||||
|
enable_newlib_supplied_syscalls
|
||||||
enable_silent_rules
|
enable_silent_rules
|
||||||
enable_maintainer_mode
|
enable_maintainer_mode
|
||||||
enable_dependency_tracking
|
enable_dependency_tracking
|
||||||
|
@ -748,7 +750,7 @@ CPPFLAGS
|
||||||
CCAS
|
CCAS
|
||||||
CCASFLAGS
|
CCASFLAGS
|
||||||
CPP'
|
CPP'
|
||||||
ac_subdirs_all='arm'
|
|
||||||
|
|
||||||
# Initialize some variables set by options.
|
# Initialize some variables set by options.
|
||||||
ac_init_help=
|
ac_init_help=
|
||||||
|
@ -786,7 +788,6 @@ datadir='${datarootdir}'
|
||||||
sysconfdir='${prefix}/etc'
|
sysconfdir='${prefix}/etc'
|
||||||
sharedstatedir='${prefix}/com'
|
sharedstatedir='${prefix}/com'
|
||||||
localstatedir='${prefix}/var'
|
localstatedir='${prefix}/var'
|
||||||
runstatedir='${localstatedir}/run'
|
|
||||||
includedir='${prefix}/include'
|
includedir='${prefix}/include'
|
||||||
oldincludedir='/usr/include'
|
oldincludedir='/usr/include'
|
||||||
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
||||||
|
@ -1039,15 +1040,6 @@ do
|
||||||
| -silent | --silent | --silen | --sile | --sil)
|
| -silent | --silent | --silen | --sile | --sil)
|
||||||
silent=yes ;;
|
silent=yes ;;
|
||||||
|
|
||||||
-runstatedir | --runstatedir | --runstatedi | --runstated \
|
|
||||||
| --runstate | --runstat | --runsta | --runst | --runs \
|
|
||||||
| --run | --ru | --r)
|
|
||||||
ac_prev=runstatedir ;;
|
|
||||||
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
|
|
||||||
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
|
|
||||||
| --run=* | --ru=* | --r=*)
|
|
||||||
runstatedir=$ac_optarg ;;
|
|
||||||
|
|
||||||
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
||||||
ac_prev=sbindir ;;
|
ac_prev=sbindir ;;
|
||||||
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
||||||
|
@ -1185,7 +1177,7 @@ fi
|
||||||
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
||||||
datadir sysconfdir sharedstatedir localstatedir includedir \
|
datadir sysconfdir sharedstatedir localstatedir includedir \
|
||||||
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
||||||
libdir localedir mandir runstatedir
|
libdir localedir mandir
|
||||||
do
|
do
|
||||||
eval ac_val=\$$ac_var
|
eval ac_val=\$$ac_var
|
||||||
# Remove trailing slashes.
|
# Remove trailing slashes.
|
||||||
|
@ -1338,7 +1330,6 @@ Fine tuning of the installation directories:
|
||||||
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
||||||
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
||||||
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
||||||
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
|
|
||||||
--libdir=DIR object code libraries [EPREFIX/lib]
|
--libdir=DIR object code libraries [EPREFIX/lib]
|
||||||
--includedir=DIR C header files [PREFIX/include]
|
--includedir=DIR C header files [PREFIX/include]
|
||||||
--oldincludedir=DIR C header files for non-gcc [/usr/include]
|
--oldincludedir=DIR C header files for non-gcc [/usr/include]
|
||||||
|
@ -1378,6 +1369,7 @@ Optional Features:
|
||||||
--disable-option-checking ignore unrecognized --enable/--with options
|
--disable-option-checking ignore unrecognized --enable/--with options
|
||||||
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
||||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||||
|
--disable-newlib-supplied-syscalls disable newlib from supplying syscalls
|
||||||
--enable-silent-rules less verbose build output (undo: "make V=1")
|
--enable-silent-rules less verbose build output (undo: "make V=1")
|
||||||
--disable-silent-rules verbose build output (undo: "make V=0")
|
--disable-silent-rules verbose build output (undo: "make V=0")
|
||||||
--enable-maintainer-mode
|
--enable-maintainer-mode
|
||||||
|
@ -1948,6 +1940,17 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Check whether --enable-newlib-supplied-syscalls was given.
|
||||||
|
if test "${enable_newlib_supplied_syscalls+set}" = set; then :
|
||||||
|
enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
|
||||||
|
yes) newlib_may_supply_syscalls=yes ;;
|
||||||
|
no) newlib_may_supply_syscalls=no ;;
|
||||||
|
*) as_fn_error $? "bad value ${enableval} for newlib-supplied-syscalls option" "$LINENO" 5 ;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
newlib_may_supply_syscalls=yes
|
||||||
|
fi
|
||||||
|
|
||||||
# Find a good install program. We prefer a C program (faster),
|
# Find a good install program. We prefer a C program (faster),
|
||||||
# so one script is as good as another. But avoid the broken or
|
# so one script is as good as another. But avoid the broken or
|
||||||
# incompatible versions:
|
# incompatible versions:
|
||||||
|
@ -2932,10 +2935,9 @@ case "${target}" in
|
||||||
subdirs="$subdirs rx"
|
subdirs="$subdirs rx"
|
||||||
;;
|
;;
|
||||||
arm*-*-elf | arm*-*-coff | arm*-*-*)
|
arm*-*-elf | arm*-*-coff | arm*-*-*)
|
||||||
|
ac_config_files="$ac_config_files arm/Makefile arm/cpu-init/Makefile"
|
||||||
|
|
||||||
|
subdirs="$subdirs arm arm/cpu-init"
|
||||||
subdirs="$subdirs arm"
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
spu-*-elf)
|
spu-*-elf)
|
||||||
ac_config_files="$ac_config_files spu/Makefile"
|
ac_config_files="$ac_config_files spu/Makefile"
|
||||||
|
@ -2971,6 +2973,7 @@ subdirs="$subdirs arm"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
if test x$config_bfin = xtrue; then
|
if test x$config_bfin = xtrue; then
|
||||||
CONFIG_BFIN_TRUE=
|
CONFIG_BFIN_TRUE=
|
||||||
CONFIG_BFIN_FALSE='#'
|
CONFIG_BFIN_FALSE='#'
|
||||||
|
@ -4842,6 +4845,27 @@ case "${target}" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
if test "x$newlib_may_supply_syscalls" = "xyes"; then
|
||||||
|
ARM_BUILD_CRT0_TRUE='#'
|
||||||
|
ARM_BUILD_CRT0_FALSE=
|
||||||
|
else
|
||||||
|
ARM_BUILD_CRT0_TRUE=
|
||||||
|
ARM_BUILD_CRT0_FALSE='#'
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ARM_OBJTYPE=
|
||||||
|
case "${target}" in
|
||||||
|
*-*-elf | *-*-eabi* | *-*-tirtos*)
|
||||||
|
ARM_OBJTYPE=elf-
|
||||||
|
;;
|
||||||
|
*-*-coff)
|
||||||
|
ARM_OBJTYPE=coff-
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
I386_CPPFLAGS=
|
I386_CPPFLAGS=
|
||||||
case "${target}" in
|
case "${target}" in
|
||||||
i[3456]86-*-coff)
|
i[3456]86-*-coff)
|
||||||
|
@ -5906,6 +5930,8 @@ do
|
||||||
"msp430/Makefile") CONFIG_FILES="$CONFIG_FILES msp430/Makefile" ;;
|
"msp430/Makefile") CONFIG_FILES="$CONFIG_FILES msp430/Makefile" ;;
|
||||||
"rl78/Makefile") CONFIG_FILES="$CONFIG_FILES rl78/Makefile" ;;
|
"rl78/Makefile") CONFIG_FILES="$CONFIG_FILES rl78/Makefile" ;;
|
||||||
"rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
|
"rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
|
||||||
|
"arm/Makefile") CONFIG_FILES="$CONFIG_FILES arm/Makefile" ;;
|
||||||
|
"arm/cpu-init/Makefile") CONFIG_FILES="$CONFIG_FILES arm/cpu-init/Makefile" ;;
|
||||||
"spu/Makefile") CONFIG_FILES="$CONFIG_FILES spu/Makefile" ;;
|
"spu/Makefile") CONFIG_FILES="$CONFIG_FILES spu/Makefile" ;;
|
||||||
"tic6x/Makefile") CONFIG_FILES="$CONFIG_FILES tic6x/Makefile" ;;
|
"tic6x/Makefile") CONFIG_FILES="$CONFIG_FILES tic6x/Makefile" ;;
|
||||||
"or1k/Makefile") CONFIG_FILES="$CONFIG_FILES or1k/Makefile" ;;
|
"or1k/Makefile") CONFIG_FILES="$CONFIG_FILES or1k/Makefile" ;;
|
||||||
|
@ -6691,151 +6717,6 @@ if test "$no_create" != yes; then
|
||||||
# would make configure fail if this is the last instruction.
|
# would make configure fail if this is the last instruction.
|
||||||
$ac_cs_success || as_fn_exit 1
|
$ac_cs_success || as_fn_exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
|
||||||
# CONFIG_SUBDIRS section.
|
|
||||||
#
|
|
||||||
if test "$no_recursion" != yes; then
|
|
||||||
|
|
||||||
# Remove --cache-file, --srcdir, and --disable-option-checking arguments
|
|
||||||
# so they do not pile up.
|
|
||||||
ac_sub_configure_args=
|
|
||||||
ac_prev=
|
|
||||||
eval "set x $ac_configure_args"
|
|
||||||
shift
|
|
||||||
for ac_arg
|
|
||||||
do
|
|
||||||
if test -n "$ac_prev"; then
|
|
||||||
ac_prev=
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
case $ac_arg in
|
|
||||||
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
|
||||||
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
|
||||||
ac_prev=cache_file ;;
|
|
||||||
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
|
||||||
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
|
||||||
| --c=*)
|
|
||||||
;;
|
|
||||||
--config-cache | -C)
|
|
||||||
;;
|
|
||||||
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
|
||||||
ac_prev=srcdir ;;
|
|
||||||
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
|
||||||
;;
|
|
||||||
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
|
||||||
ac_prev=prefix ;;
|
|
||||||
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
|
||||||
;;
|
|
||||||
--disable-option-checking)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
case $ac_arg in
|
|
||||||
*\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
||||||
esac
|
|
||||||
as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
# Always prepend --prefix to ensure using the same prefix
|
|
||||||
# in subdir configurations.
|
|
||||||
ac_arg="--prefix=$prefix"
|
|
||||||
case $ac_arg in
|
|
||||||
*\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
||||||
esac
|
|
||||||
ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
|
|
||||||
|
|
||||||
# Pass --silent
|
|
||||||
if test "$silent" = yes; then
|
|
||||||
ac_sub_configure_args="--silent $ac_sub_configure_args"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Always prepend --disable-option-checking to silence warnings, since
|
|
||||||
# different subdirs can have different --enable and --with options.
|
|
||||||
ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
|
|
||||||
|
|
||||||
ac_popdir=`pwd`
|
|
||||||
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
|
||||||
|
|
||||||
# Do not complain, so a configure script can configure whichever
|
|
||||||
# parts of a large source tree are present.
|
|
||||||
test -d "$srcdir/$ac_dir" || continue
|
|
||||||
|
|
||||||
ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
|
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
|
|
||||||
$as_echo "$ac_msg" >&6
|
|
||||||
as_dir="$ac_dir"; as_fn_mkdir_p
|
|
||||||
ac_builddir=.
|
|
||||||
|
|
||||||
case "$ac_dir" in
|
|
||||||
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
||||||
*)
|
|
||||||
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
|
||||||
# A ".." for each directory in $ac_dir_suffix.
|
|
||||||
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
|
||||||
case $ac_top_builddir_sub in
|
|
||||||
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
|
||||||
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
|
||||||
esac ;;
|
|
||||||
esac
|
|
||||||
ac_abs_top_builddir=$ac_pwd
|
|
||||||
ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
|
||||||
# for backward compatibility:
|
|
||||||
ac_top_builddir=$ac_top_build_prefix
|
|
||||||
|
|
||||||
case $srcdir in
|
|
||||||
.) # We are building in place.
|
|
||||||
ac_srcdir=.
|
|
||||||
ac_top_srcdir=$ac_top_builddir_sub
|
|
||||||
ac_abs_top_srcdir=$ac_pwd ;;
|
|
||||||
[\\/]* | ?:[\\/]* ) # Absolute name.
|
|
||||||
ac_srcdir=$srcdir$ac_dir_suffix;
|
|
||||||
ac_top_srcdir=$srcdir
|
|
||||||
ac_abs_top_srcdir=$srcdir ;;
|
|
||||||
*) # Relative name.
|
|
||||||
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
|
||||||
ac_top_srcdir=$ac_top_build_prefix$srcdir
|
|
||||||
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
|
||||||
esac
|
|
||||||
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
|
||||||
|
|
||||||
|
|
||||||
cd "$ac_dir"
|
|
||||||
|
|
||||||
# Check for guested configure; otherwise get Cygnus style configure.
|
|
||||||
if test -f "$ac_srcdir/configure.gnu"; then
|
|
||||||
ac_sub_configure=$ac_srcdir/configure.gnu
|
|
||||||
elif test -f "$ac_srcdir/configure"; then
|
|
||||||
ac_sub_configure=$ac_srcdir/configure
|
|
||||||
elif test -f "$ac_srcdir/configure.in"; then
|
|
||||||
# This should be Cygnus configure.
|
|
||||||
ac_sub_configure=$ac_aux_dir/configure
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
|
|
||||||
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
|
||||||
ac_sub_configure=
|
|
||||||
fi
|
|
||||||
|
|
||||||
# The recursion is here.
|
|
||||||
if test -n "$ac_sub_configure"; then
|
|
||||||
# Make the cache file name correct relative to the subdirectory.
|
|
||||||
case $cache_file in
|
|
||||||
[\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
|
||||||
*) # Relative name.
|
|
||||||
ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
|
||||||
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
|
||||||
# The eval makes quoting arguments work.
|
|
||||||
eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
|
|
||||||
--cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
|
|
||||||
as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd "$ac_popdir"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
||||||
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
||||||
|
|
|
@ -8,6 +8,16 @@ fi
|
||||||
|
|
||||||
AC_CONFIG_AUX_DIR(..)
|
AC_CONFIG_AUX_DIR(..)
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
AC_CANONICAL_SYSTEM
|
AC_CANONICAL_SYSTEM
|
||||||
|
@ -205,7 +215,8 @@ case "${target}" in
|
||||||
subdirs="$subdirs rx"
|
subdirs="$subdirs rx"
|
||||||
;;
|
;;
|
||||||
arm*-*-elf | arm*-*-coff | arm*-*-*)
|
arm*-*-elf | arm*-*-coff | arm*-*-*)
|
||||||
AC_CONFIG_SUBDIRS([arm])
|
AC_CONFIG_FILES([arm/Makefile arm/cpu-init/Makefile])
|
||||||
|
subdirs="$subdirs arm arm/cpu-init"
|
||||||
;;
|
;;
|
||||||
spu-*-elf)
|
spu-*-elf)
|
||||||
AC_CONFIG_FILES([spu/Makefile])
|
AC_CONFIG_FILES([spu/Makefile])
|
||||||
|
@ -235,6 +246,7 @@ case "${target}" in
|
||||||
subdirs="$subdirs nios2"
|
subdirs="$subdirs nios2"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
AC_SUBST(subdirs)
|
||||||
|
|
||||||
dnl These subdirs have converted to non-recursive make. Hopefully someday all
|
dnl These subdirs have converted to non-recursive make. Hopefully someday all
|
||||||
dnl the ports above will too!
|
dnl the ports above will too!
|
||||||
|
@ -332,6 +344,7 @@ dnl
|
||||||
AC_DEFINE_UNQUOTED(__SYMBOL_PREFIX, "$libc_cv_symbol_prefix", [symbol prefix])
|
AC_DEFINE_UNQUOTED(__SYMBOL_PREFIX, "$libc_cv_symbol_prefix", [symbol prefix])
|
||||||
|
|
||||||
m4_include([aarch64/acinclude.m4])
|
m4_include([aarch64/acinclude.m4])
|
||||||
|
m4_include([arm/acinclude.m4])
|
||||||
m4_include([i386/acinclude.m4])
|
m4_include([i386/acinclude.m4])
|
||||||
m4_include([libnosys/acinclude.m4])
|
m4_include([libnosys/acinclude.m4])
|
||||||
m4_include([m68k/acinclude.m4])
|
m4_include([m68k/acinclude.m4])
|
||||||
|
|
Loading…
Reference in New Issue