public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] newlib: libc: merge machine/ configure scripts up a level
@ 2022-01-26  9:11 Michael Frysinger
  0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2022-01-26  9:11 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=08a55a233d8a90914270a898360f806f7f8f2bdd

commit 08a55a233d8a90914270a898360f806f7f8f2bdd
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sun Jan 23 00:23:28 2022 -0500

    newlib: libc: merge machine/ configure scripts up a level
    
    The machine configure scripts are all effectively stub scripts that
    pass the higher level options to its own makefile.  There were only
    three doing custom tests.  The rest were all effectively the same as
    the libc/ configure script.
    
    So instead of recursively running configure in all of these subdirs,
    generate their makefiles from the top-level configure.  For the few
    unique ones, deploy a pattern of including subdir logic via m4:
            m4_include([machine/nds32/acinclude.m4])
    
    Some of the generated machine makefiles have a bunch of extra stuff
    added to them, but that's because they were inconsistent in their
    configure libtool calls.  The top-level has it, so it exports some
    new vars to the ones that weren't already.

Diff:
---
 newlib/libc/Makefile.in                     |     7 +-
 newlib/libc/argz/Makefile.in                |     7 +-
 newlib/libc/configure                       |   412 +-
 newlib/libc/configure.ac                    |   127 +-
 newlib/libc/ctype/Makefile.in               |     7 +-
 newlib/libc/errno/Makefile.in               |     7 +-
 newlib/libc/iconv/Makefile.in               |     7 +-
 newlib/libc/iconv/ccs/Makefile.in           |     7 +-
 newlib/libc/iconv/ccs/binary/Makefile.in    |     7 +-
 newlib/libc/iconv/ces/Makefile.in           |     7 +-
 newlib/libc/iconv/lib/Makefile.in           |     7 +-
 newlib/libc/locale/Makefile.in              |     7 +-
 newlib/libc/machine/a29k/Makefile.am        |     3 -
 newlib/libc/machine/a29k/Makefile.in        |   142 +-
 newlib/libc/machine/a29k/aclocal.m4         |  1109 --
 newlib/libc/machine/a29k/configure          |  4942 ---------
 newlib/libc/machine/a29k/configure.ac       |    13 -
 newlib/libc/machine/aarch64/Makefile.am     |     3 -
 newlib/libc/machine/aarch64/Makefile.in     |   159 +-
 newlib/libc/machine/aarch64/aclocal.m4      |  1109 --
 newlib/libc/machine/aarch64/configure       |  4942 ---------
 newlib/libc/machine/aarch64/configure.ac    |    13 -
 newlib/libc/machine/amdgcn/Makefile.am      |     3 -
 newlib/libc/machine/amdgcn/Makefile.in      |   144 +-
 newlib/libc/machine/amdgcn/aclocal.m4       |  1109 --
 newlib/libc/machine/amdgcn/configure        |  4942 ---------
 newlib/libc/machine/amdgcn/configure.ac     |    13 -
 newlib/libc/machine/arc/Makefile.am         |     3 -
 newlib/libc/machine/arc/Makefile.in         |   159 +-
 newlib/libc/machine/arc/aclocal.m4          |  1109 --
 newlib/libc/machine/arc/configure           |  4942 ---------
 newlib/libc/machine/arc/configure.ac        |    12 -
 newlib/libc/machine/arm/Makefile.am         |     3 -
 newlib/libc/machine/arm/Makefile.in         |   158 +-
 newlib/libc/machine/arm/aclocal.m4          |  1109 --
 newlib/libc/machine/arm/configure           |  4945 ---------
 newlib/libc/machine/arm/configure.ac        |    15 -
 newlib/libc/machine/bfin/Makefile.am        |     3 -
 newlib/libc/machine/bfin/Makefile.in        |   152 +-
 newlib/libc/machine/bfin/aclocal.m4         |  1109 --
 newlib/libc/machine/bfin/configure          |  4942 ---------
 newlib/libc/machine/bfin/configure.ac       |    13 -
 newlib/libc/machine/cr16/Makefile.am        |     3 -
 newlib/libc/machine/cr16/Makefile.in        |   159 +-
 newlib/libc/machine/cr16/aclocal.m4         |  1109 --
 newlib/libc/machine/cr16/configure          |  4942 ---------
 newlib/libc/machine/cr16/configure.ac       |    13 -
 newlib/libc/machine/cris/Makefile.am        |     3 -
 newlib/libc/machine/cris/Makefile.in        |   156 +-
 newlib/libc/machine/cris/aclocal.m4         |  1109 --
 newlib/libc/machine/cris/configure          |  4942 ---------
 newlib/libc/machine/cris/configure.ac       |    13 -
 newlib/libc/machine/crx/Makefile.am         |     3 -
 newlib/libc/machine/crx/Makefile.in         |   159 +-
 newlib/libc/machine/crx/aclocal.m4          |  1109 --
 newlib/libc/machine/crx/configure           |  4942 ---------
 newlib/libc/machine/crx/configure.ac        |    13 -
 newlib/libc/machine/csky/Makefile.am        |     3 -
 newlib/libc/machine/csky/Makefile.in        |   152 +-
 newlib/libc/machine/csky/aclocal.m4         |  1109 --
 newlib/libc/machine/csky/configure          |  4942 ---------
 newlib/libc/machine/csky/configure.ac       |    13 -
 newlib/libc/machine/d10v/Makefile.am        |     3 -
 newlib/libc/machine/d10v/Makefile.in        |   152 +-
 newlib/libc/machine/d10v/aclocal.m4         |  1109 --
 newlib/libc/machine/d10v/configure          |  4942 ---------
 newlib/libc/machine/d10v/configure.ac       |    13 -
 newlib/libc/machine/d30v/Makefile.am        |     3 -
 newlib/libc/machine/d30v/Makefile.in        |   152 +-
 newlib/libc/machine/d30v/aclocal.m4         |  1109 --
 newlib/libc/machine/d30v/configure          |  4942 ---------
 newlib/libc/machine/d30v/configure.ac       |    13 -
 newlib/libc/machine/epiphany/Makefile.am    |     3 -
 newlib/libc/machine/epiphany/Makefile.in    |   152 +-
 newlib/libc/machine/epiphany/aclocal.m4     |  1109 --
 newlib/libc/machine/epiphany/configure      |  4942 ---------
 newlib/libc/machine/epiphany/configure.ac   |    40 -
 newlib/libc/machine/fr30/Makefile.am        |     3 -
 newlib/libc/machine/fr30/Makefile.in        |   152 +-
 newlib/libc/machine/fr30/aclocal.m4         |  1109 --
 newlib/libc/machine/fr30/configure          |  4942 ---------
 newlib/libc/machine/fr30/configure.ac       |    13 -
 newlib/libc/machine/frv/Makefile.am         |     3 -
 newlib/libc/machine/frv/Makefile.in         |   152 +-
 newlib/libc/machine/frv/aclocal.m4          |  1109 --
 newlib/libc/machine/frv/configure           |  4942 ---------
 newlib/libc/machine/frv/configure.ac        |    13 -
 newlib/libc/machine/ft32/Makefile.am        |     3 -
 newlib/libc/machine/ft32/Makefile.in        |   152 +-
 newlib/libc/machine/ft32/aclocal.m4         |  1109 --
 newlib/libc/machine/ft32/configure          |  4942 ---------
 newlib/libc/machine/ft32/configure.ac       |    13 -
 newlib/libc/machine/h8300/Makefile.am       |     3 -
 newlib/libc/machine/h8300/Makefile.in       |   152 +-
 newlib/libc/machine/h8300/aclocal.m4        |  1109 --
 newlib/libc/machine/h8300/configure         |  4942 ---------
 newlib/libc/machine/h8300/configure.ac      |    13 -
 newlib/libc/machine/h8500/Makefile.am       |     3 -
 newlib/libc/machine/h8500/Makefile.in       |   159 +-
 newlib/libc/machine/h8500/aclocal.m4        |  1109 --
 newlib/libc/machine/h8500/configure         |  4942 ---------
 newlib/libc/machine/h8500/configure.ac      |    13 -
 newlib/libc/machine/hppa/Makefile.am        |     3 -
 newlib/libc/machine/hppa/Makefile.in        |   152 +-
 newlib/libc/machine/hppa/aclocal.m4         |  1109 --
 newlib/libc/machine/hppa/configure          |  4942 ---------
 newlib/libc/machine/hppa/configure.ac       |    13 -
 newlib/libc/machine/i386/Makefile.am        |     3 -
 newlib/libc/machine/i386/Makefile.in        |   120 +-
 newlib/libc/machine/i386/aclocal.m4         |  1178 ---
 newlib/libc/machine/i386/configure          | 14184 --------------------------
 newlib/libc/machine/i386/configure.ac       |    25 -
 newlib/libc/machine/i960/Makefile.am        |     3 -
 newlib/libc/machine/i960/Makefile.in        |   142 +-
 newlib/libc/machine/i960/aclocal.m4         |  1109 --
 newlib/libc/machine/i960/configure          |  4942 ---------
 newlib/libc/machine/i960/configure.ac       |    13 -
 newlib/libc/machine/iq2000/Makefile.am      |     3 -
 newlib/libc/machine/iq2000/Makefile.in      |   152 +-
 newlib/libc/machine/iq2000/aclocal.m4       |  1109 --
 newlib/libc/machine/iq2000/configure        |  4942 ---------
 newlib/libc/machine/iq2000/configure.ac     |    13 -
 newlib/libc/machine/lm32/Makefile.am        |     4 -
 newlib/libc/machine/lm32/Makefile.in        |   152 +-
 newlib/libc/machine/lm32/aclocal.m4         |  1109 --
 newlib/libc/machine/lm32/configure          |  4942 ---------
 newlib/libc/machine/lm32/configure.ac       |    13 -
 newlib/libc/machine/m32c/Makefile.am        |     3 -
 newlib/libc/machine/m32c/Makefile.in        |   152 +-
 newlib/libc/machine/m32c/aclocal.m4         |  1109 --
 newlib/libc/machine/m32c/configure          |  4942 ---------
 newlib/libc/machine/m32c/configure.ac       |    13 -
 newlib/libc/machine/m32r/Makefile.am        |     3 -
 newlib/libc/machine/m32r/Makefile.in        |   152 +-
 newlib/libc/machine/m32r/aclocal.m4         |  1109 --
 newlib/libc/machine/m32r/configure          |  4942 ---------
 newlib/libc/machine/m32r/configure.ac       |    13 -
 newlib/libc/machine/m68hc11/Makefile.am     |     3 -
 newlib/libc/machine/m68hc11/Makefile.in     |   152 +-
 newlib/libc/machine/m68hc11/aclocal.m4      |  1109 --
 newlib/libc/machine/m68hc11/configure       |  4942 ---------
 newlib/libc/machine/m68hc11/configure.ac    |    13 -
 newlib/libc/machine/m68k/Makefile.am        |     3 -
 newlib/libc/machine/m68k/Makefile.in        |   159 +-
 newlib/libc/machine/m68k/aclocal.m4         |  1109 --
 newlib/libc/machine/m68k/configure          |  4942 ---------
 newlib/libc/machine/m68k/configure.ac       |    13 -
 newlib/libc/machine/m88k/Makefile.am        |     3 -
 newlib/libc/machine/m88k/Makefile.in        |   152 +-
 newlib/libc/machine/m88k/aclocal.m4         |  1109 --
 newlib/libc/machine/m88k/configure          |  4942 ---------
 newlib/libc/machine/m88k/configure.ac       |    13 -
 newlib/libc/machine/mep/Makefile.am         |     3 -
 newlib/libc/machine/mep/Makefile.in         |   152 +-
 newlib/libc/machine/mep/aclocal.m4          |  1109 --
 newlib/libc/machine/mep/configure           |  4942 ---------
 newlib/libc/machine/mep/configure.ac        |    13 -
 newlib/libc/machine/microblaze/Makefile.am  |     3 -
 newlib/libc/machine/microblaze/Makefile.in  |   159 +-
 newlib/libc/machine/microblaze/aclocal.m4   |  1109 --
 newlib/libc/machine/microblaze/configure    |  4942 ---------
 newlib/libc/machine/microblaze/configure.ac |    13 -
 newlib/libc/machine/mips/Makefile.am        |     3 -
 newlib/libc/machine/mips/Makefile.in        |   155 +-
 newlib/libc/machine/mips/aclocal.m4         |  1109 --
 newlib/libc/machine/mips/configure          |  4942 ---------
 newlib/libc/machine/mips/configure.ac       |    13 -
 newlib/libc/machine/mn10200/Makefile.am     |     3 -
 newlib/libc/machine/mn10200/Makefile.in     |   152 +-
 newlib/libc/machine/mn10200/aclocal.m4      |  1109 --
 newlib/libc/machine/mn10200/configure       |  4942 ---------
 newlib/libc/machine/mn10200/configure.ac    |    13 -
 newlib/libc/machine/mn10300/Makefile.am     |     3 -
 newlib/libc/machine/mn10300/Makefile.in     |   152 +-
 newlib/libc/machine/mn10300/aclocal.m4      |  1109 --
 newlib/libc/machine/mn10300/configure       |  4942 ---------
 newlib/libc/machine/mn10300/configure.ac    |    13 -
 newlib/libc/machine/moxie/Makefile.am       |     3 -
 newlib/libc/machine/moxie/Makefile.in       |   152 +-
 newlib/libc/machine/moxie/aclocal.m4        |  1109 --
 newlib/libc/machine/moxie/configure         |  4942 ---------
 newlib/libc/machine/moxie/configure.ac      |    13 -
 newlib/libc/machine/msp430/Makefile.am      |     3 -
 newlib/libc/machine/msp430/Makefile.in      |   159 +-
 newlib/libc/machine/msp430/aclocal.m4       |  1109 --
 newlib/libc/machine/msp430/configure        |  4970 ---------
 newlib/libc/machine/msp430/configure.ac     |    37 -
 newlib/libc/machine/mt/Makefile.am          |     3 -
 newlib/libc/machine/mt/Makefile.in          |   152 +-
 newlib/libc/machine/mt/aclocal.m4           |  1109 --
 newlib/libc/machine/mt/configure            |  4942 ---------
 newlib/libc/machine/mt/configure.ac         |    13 -
 newlib/libc/machine/nds32/Makefile.am       |     3 -
 newlib/libc/machine/nds32/Makefile.in       |   153 +-
 newlib/libc/machine/nds32/acinclude.m4      |    10 +
 newlib/libc/machine/nds32/aclocal.m4        |  1173 ---
 newlib/libc/machine/nds32/configure         |  6031 -----------
 newlib/libc/machine/nds32/configure.ac      |    22 -
 newlib/libc/machine/necv70/Makefile.am      |     3 -
 newlib/libc/machine/necv70/Makefile.in      |   152 +-
 newlib/libc/machine/necv70/aclocal.m4       |  1109 --
 newlib/libc/machine/necv70/configure        |  4942 ---------
 newlib/libc/machine/necv70/configure.ac     |    13 -
 newlib/libc/machine/nios2/Makefile.am       |     3 -
 newlib/libc/machine/nios2/Makefile.in       |   151 +-
 newlib/libc/machine/nios2/aclocal.m4        |  1109 --
 newlib/libc/machine/nios2/configure         |  4942 ---------
 newlib/libc/machine/nios2/configure.ac      |    13 -
 newlib/libc/machine/nvptx/Makefile.am       |     3 -
 newlib/libc/machine/nvptx/Makefile.in       |   144 +-
 newlib/libc/machine/nvptx/aclocal.m4        |  1109 --
 newlib/libc/machine/nvptx/configure         |  4942 ---------
 newlib/libc/machine/nvptx/configure.ac      |    13 -
 newlib/libc/machine/or1k/Makefile.am        |     3 -
 newlib/libc/machine/or1k/Makefile.in        |   152 +-
 newlib/libc/machine/or1k/aclocal.m4         |  1109 --
 newlib/libc/machine/or1k/configure          |  4942 ---------
 newlib/libc/machine/or1k/configure.ac       |    13 -
 newlib/libc/machine/powerpc/Makefile.am     |     4 -
 newlib/libc/machine/powerpc/Makefile.in     |   159 +-
 newlib/libc/machine/powerpc/acinclude.m4    |    10 +
 newlib/libc/machine/powerpc/aclocal.m4      |  1109 --
 newlib/libc/machine/powerpc/configure       |  4977 ---------
 newlib/libc/machine/powerpc/configure.ac    |    22 -
 newlib/libc/machine/pru/Makefile.am         |     3 -
 newlib/libc/machine/pru/Makefile.in         |   151 +-
 newlib/libc/machine/pru/aclocal.m4          |  1109 --
 newlib/libc/machine/pru/configure           |  4942 ---------
 newlib/libc/machine/pru/configure.ac        |    13 -
 newlib/libc/machine/riscv/Makefile.am       |     3 -
 newlib/libc/machine/riscv/Makefile.in       |   159 +-
 newlib/libc/machine/riscv/aclocal.m4        |  1109 --
 newlib/libc/machine/riscv/configure         |  4942 ---------
 newlib/libc/machine/riscv/configure.ac      |    13 -
 newlib/libc/machine/rl78/Makefile.am        |     3 -
 newlib/libc/machine/rl78/Makefile.in        |   152 +-
 newlib/libc/machine/rl78/aclocal.m4         |  1109 --
 newlib/libc/machine/rl78/configure          |  4942 ---------
 newlib/libc/machine/rl78/configure.ac       |    13 -
 newlib/libc/machine/rx/Makefile.am          |     3 -
 newlib/libc/machine/rx/Makefile.in          |   152 +-
 newlib/libc/machine/rx/aclocal.m4           |  1109 --
 newlib/libc/machine/rx/configure            |  4942 ---------
 newlib/libc/machine/rx/configure.ac         |    13 -
 newlib/libc/machine/sh/Makefile.am          |     3 -
 newlib/libc/machine/sh/Makefile.in          |   146 +-
 newlib/libc/machine/sh/acinclude.m4         |     9 +
 newlib/libc/machine/sh/aclocal.m4           |  1173 ---
 newlib/libc/machine/sh/configure            |  6030 -----------
 newlib/libc/machine/sh/configure.ac         |    20 -
 newlib/libc/machine/sparc/Makefile.am       |     3 -
 newlib/libc/machine/sparc/Makefile.in       |   159 +-
 newlib/libc/machine/sparc/aclocal.m4        |  1109 --
 newlib/libc/machine/sparc/configure         |  4942 ---------
 newlib/libc/machine/sparc/configure.ac      |    13 -
 newlib/libc/machine/spu/Makefile.am         |     4 -
 newlib/libc/machine/spu/Makefile.in         |   153 +-
 newlib/libc/machine/spu/acinclude.m4        |    10 +
 newlib/libc/machine/spu/aclocal.m4          |  1173 ---
 newlib/libc/machine/spu/configure           |  6034 -----------
 newlib/libc/machine/spu/configure.ac        |    22 -
 newlib/libc/machine/tic4x/Makefile.am       |     3 -
 newlib/libc/machine/tic4x/Makefile.in       |   152 +-
 newlib/libc/machine/tic4x/aclocal.m4        |  1109 --
 newlib/libc/machine/tic4x/configure         |  4942 ---------
 newlib/libc/machine/tic4x/configure.ac      |    13 -
 newlib/libc/machine/tic6x/Makefile.am       |     3 -
 newlib/libc/machine/tic6x/Makefile.in       |   152 +-
 newlib/libc/machine/tic6x/aclocal.m4        |  1109 --
 newlib/libc/machine/tic6x/configure         |  4942 ---------
 newlib/libc/machine/tic6x/configure.ac      |    13 -
 newlib/libc/machine/tic80/Makefile.am       |     3 -
 newlib/libc/machine/tic80/Makefile.in       |   152 +-
 newlib/libc/machine/tic80/aclocal.m4        |  1109 --
 newlib/libc/machine/tic80/configure         |  4942 ---------
 newlib/libc/machine/tic80/configure.ac      |    13 -
 newlib/libc/machine/v850/Makefile.am        |     3 -
 newlib/libc/machine/v850/Makefile.in        |   152 +-
 newlib/libc/machine/v850/aclocal.m4         |  1109 --
 newlib/libc/machine/v850/configure          |  4942 ---------
 newlib/libc/machine/v850/configure.ac       |    13 -
 newlib/libc/machine/visium/Makefile.am      |     3 -
 newlib/libc/machine/visium/Makefile.in      |   159 +-
 newlib/libc/machine/visium/aclocal.m4       |  1109 --
 newlib/libc/machine/visium/configure        |  4942 ---------
 newlib/libc/machine/visium/configure.ac     |    13 -
 newlib/libc/machine/w65/Makefile.am         |     3 -
 newlib/libc/machine/w65/Makefile.in         |   159 +-
 newlib/libc/machine/w65/aclocal.m4          |  1109 --
 newlib/libc/machine/w65/configure           |  4942 ---------
 newlib/libc/machine/w65/configure.ac        |    13 -
 newlib/libc/machine/x86_64/Makefile.am      |     3 -
 newlib/libc/machine/x86_64/Makefile.in      |   152 +-
 newlib/libc/machine/x86_64/aclocal.m4       |  1109 --
 newlib/libc/machine/x86_64/configure        |  4942 ---------
 newlib/libc/machine/x86_64/configure.ac     |    13 -
 newlib/libc/machine/xc16x/Makefile.am       |     3 -
 newlib/libc/machine/xc16x/Makefile.in       |   159 +-
 newlib/libc/machine/xc16x/aclocal.m4        |  1109 --
 newlib/libc/machine/xc16x/configure         |  4942 ---------
 newlib/libc/machine/xc16x/configure.ac      |    13 -
 newlib/libc/machine/xscale/Makefile.am      |     3 -
 newlib/libc/machine/xscale/aclocal.m4       |  1109 --
 newlib/libc/machine/xscale/configure        |  4942 ---------
 newlib/libc/machine/xscale/configure.ac     |    13 -
 newlib/libc/machine/xstormy16/Makefile.am   |     4 -
 newlib/libc/machine/xstormy16/Makefile.in   |   152 +-
 newlib/libc/machine/xstormy16/aclocal.m4    |  1109 --
 newlib/libc/machine/xstormy16/configure     |  4942 ---------
 newlib/libc/machine/xstormy16/configure.ac  |    13 -
 newlib/libc/machine/z8k/Makefile.am         |     3 -
 newlib/libc/machine/z8k/Makefile.in         |   152 +-
 newlib/libc/machine/z8k/aclocal.m4          |  1109 --
 newlib/libc/machine/z8k/configure           |  4942 ---------
 newlib/libc/machine/z8k/configure.ac        |    13 -
 newlib/libc/misc/Makefile.in                |     7 +-
 newlib/libc/posix/Makefile.in               |     7 +-
 newlib/libc/reent/Makefile.in               |     7 +-
 newlib/libc/search/Makefile.in              |     7 +-
 newlib/libc/signal/Makefile.in              |     7 +-
 newlib/libc/ssp/Makefile.in                 |     7 +-
 newlib/libc/stdio/Makefile.in               |     7 +-
 newlib/libc/stdio64/Makefile.in             |     7 +-
 newlib/libc/stdlib/Makefile.in              |     7 +-
 newlib/libc/string/Makefile.in              |     7 +-
 newlib/libc/sys/a29khif/Makefile.in         |     7 +-
 newlib/libc/sys/amdgcn/Makefile.in          |     7 +-
 newlib/libc/sys/arm/Makefile.in             |     7 +-
 newlib/libc/sys/d10v/Makefile.in            |     7 +-
 newlib/libc/sys/decstation/Makefile.in      |     7 +-
 newlib/libc/sys/epiphany/Makefile.in        |     7 +-
 newlib/libc/sys/h8300hms/Makefile.in        |     7 +-
 newlib/libc/sys/h8500hms/Makefile.in        |     7 +-
 newlib/libc/sys/m88kbug/Makefile.in         |     7 +-
 newlib/libc/sys/mmixware/Makefile.in        |     7 +-
 newlib/libc/sys/netware/Makefile.in         |     7 +-
 newlib/libc/sys/or1k/Makefile.in            |     7 +-
 newlib/libc/sys/rdos/Makefile.in            |     7 +-
 newlib/libc/sys/rtems/Makefile.in           |     7 +-
 newlib/libc/sys/sh/Makefile.in              |     7 +-
 newlib/libc/sys/sparc64/Makefile.in         |     7 +-
 newlib/libc/sys/sun4/Makefile.in            |     7 +-
 newlib/libc/sys/sysmec/Makefile.in          |     7 +-
 newlib/libc/sys/sysnec810/Makefile.in       |     7 +-
 newlib/libc/sys/sysnecv850/Makefile.in      |     7 +-
 newlib/libc/sys/sysvi386/Makefile.in        |     7 +-
 newlib/libc/sys/sysvnecv70/Makefile.in      |     7 +-
 newlib/libc/sys/tic80/Makefile.in           |     7 +-
 newlib/libc/sys/tirtos/Makefile.in          |     7 +-
 newlib/libc/sys/w65/Makefile.in             |     7 +-
 newlib/libc/sys/z8ksim/Makefile.in          |     7 +-
 newlib/libc/syscalls/Makefile.in            |     7 +-
 newlib/libc/time/Makefile.in                |     7 +-
 newlib/libc/unix/Makefile.in                |     7 +-
 newlib/libc/xdr/Makefile.in                 |     7 +-
 355 files changed, 6795 insertions(+), 380098 deletions(-)

diff --git a/newlib/libc/Makefile.in b/newlib/libc/Makefile.in
index 5b01b1714..7e29c18e1 100644
--- a/newlib/libc/Makefile.in
+++ b/newlib/libc/Makefile.in
@@ -102,7 +102,12 @@ am__aclocal_m4_deps = $(top_srcdir)/../../config/depstand.m4 \
 	$(top_srcdir)/../../ltsugar.m4 \
 	$(top_srcdir)/../../ltversion.m4 \
 	$(top_srcdir)/../../lt~obsolete.m4 \
-	$(top_srcdir)/../acinclude.m4 $(top_srcdir)/configure.ac
+	$(top_srcdir)/../acinclude.m4 \
+	$(top_srcdir)/machine/nds32/acinclude.m4 \
+	$(top_srcdir)/machine/powerpc/acinclude.m4 \
+	$(top_srcdir)/machine/sh/acinclude.m4 \
+	$(top_srcdir)/machine/spu/acinclude.m4 \
+	$(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 	$(ACLOCAL_M4)
 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
diff --git a/newlib/libc/argz/Makefile.in b/newlib/libc/argz/Makefile.in
index b62fa7c78..7bde4da53 100644
--- a/newlib/libc/argz/Makefile.in
+++ b/newlib/libc/argz/Makefile.in
@@ -100,7 +100,12 @@ am__aclocal_m4_deps = $(top_srcdir)/../../config/depstand.m4 \
 	$(top_srcdir)/../../ltsugar.m4 \
 	$(top_srcdir)/../../ltversion.m4 \
 	$(top_srcdir)/../../lt~obsolete.m4 \
-	$(top_srcdir)/../acinclude.m4 $(top_srcdir)/configure.ac
+	$(top_srcdir)/../acinclude.m4 \
+	$(top_srcdir)/machine/nds32/acinclude.m4 \
+	$(top_srcdir)/machine/powerpc/acinclude.m4 \
+	$(top_srcdir)/machine/sh/acinclude.m4 \
+	$(top_srcdir)/machine/spu/acinclude.m4 \
+	$(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 	$(ACLOCAL_M4)
 DIST_COMMON = $(srcdir)/Makefile.am
diff --git a/newlib/libc/configure b/newlib/libc/configure
index b2e10391b..ba3094e97 100755
--- a/newlib/libc/configure
+++ b/newlib/libc/configure
@@ -634,10 +634,22 @@ ac_subst_vars='am__EXEEXT_FALSE
 am__EXEEXT_TRUE
 LTLIBOBJS
 LIBOBJS
+MACH_ADD_SETJMP_FALSE
+MACH_ADD_SETJMP_TRUE
 LIBC_MACHINE_LIB
 LIBC_MACHINE_DIR
 HAVE_LIBC_MACHINE_DIR_FALSE
 HAVE_LIBC_MACHINE_DIR_TRUE
+HAVE_SPU_EA_FALSE
+HAVE_SPU_EA_TRUE
+SH64_FALSE
+SH64_TRUE
+HAVE_POWERPC_SPE_FALSE
+HAVE_POWERPC_SPE_TRUE
+HAVE_POWERPC_ALTIVEC_FALSE
+HAVE_POWERPC_ALTIVEC_TRUE
+IS_NDS32_ISA_V3M_FALSE
+IS_NDS32_ISA_V3M_TRUE
 ENABLE_NEWLIB_ICONV_FALSE
 ENABLE_NEWLIB_ICONV_TRUE
 HAVE_LONG_DOUBLE_FALSE
@@ -858,66 +870,7 @@ LIBS
 CPPFLAGS
 CPP'
 ac_subdirs_all='sys/linux
-sys/phoenix
-machine/a29k
-machine/aarch64
-machine/amdgcn
-machine/arc
-machine/arm
-machine/bfin
-machine/cr16
-machine/cris
-machine/crx
-machine/csky
-machine/d10v
-machine/d30v
-machine/epiphany
-machine/fr30
-machine/frv
-machine/ft32
-machine/h8300
-machine/h8500
-machine/hppa
-machine/i386
-machine/i960
-machine/iq2000
-machine/lm32
-machine/m32c
-machine/m32r
-machine/m68hc11
-machine/m68k
-machine/m88k
-machine/mep
-machine/microblaze
-machine/mips
-machine/riscv
-machine/mn10200
-machine/mn10300
-machine/moxie
-machine/msp430
-machine/mt
-machine/nds32
-machine/necv70
-machine/nios2
-machine/nvptx
-machine/or1k
-machine/powerpc
-machine/pru
-machine/rl78
-machine/rx
-machine/sh
-machine/sparc
-machine/spu
-machine/tic4x
-machine/tic6x
-machine/tic80
-machine/v850
-machine/visium
-machine/w65
-machine/x86_64
-machine/xc16x
-machine/xstormy16
-machine/z8k'
+sys/phoenix'
 
 # Initialize some variables set by options.
 ac_init_help=
@@ -11758,7 +11711,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11761 "configure"
+#line 11714 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11864,7 +11817,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11867 "configure"
+#line 11820 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12395,126 +12348,251 @@ else
 fi
 
 
+if test "${machine_dir}" = "nds32"; then
+    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#ifdef __NDS32_ISA_V3M__
+# error "This is nds32_isa_v3m."
+#endif
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+  is_nds32_isa_v3m="no"
+else
+  is_nds32_isa_v3m="yes"
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+fi
+
+ if test "$is_nds32_isa_v3m" = "yes"; then
+  IS_NDS32_ISA_V3M_TRUE=
+  IS_NDS32_ISA_V3M_FALSE='#'
+else
+  IS_NDS32_ISA_V3M_TRUE='#'
+  IS_NDS32_ISA_V3M_FALSE=
+fi
+
+
+HAVE_POWERPC_ALTIVEC=no
+HAVE_POWERPC_SPE=no
+if test "${machine_dir}" = "powerpc"; then
+  case $host in
+    powerpc*-*altivec*) HAVE_POWERPC_ALTIVEC=yes ;;
+    powerpc*-*spe*) HAVE_POWERPC_SPE=yes ;;
+  esac
+fi
+ if test "$HAVE_POWERPC_ALTIVEC" = yes; then
+  HAVE_POWERPC_ALTIVEC_TRUE=
+  HAVE_POWERPC_ALTIVEC_FALSE='#'
+else
+  HAVE_POWERPC_ALTIVEC_TRUE='#'
+  HAVE_POWERPC_ALTIVEC_FALSE=
+fi
+
+ if test "$HAVE_POWERPC_SPE" = yes; then
+  HAVE_POWERPC_SPE_TRUE=
+  HAVE_POWERPC_SPE_FALSE='#'
+else
+  HAVE_POWERPC_SPE_TRUE='#'
+  HAVE_POWERPC_SPE_FALSE=
+fi
+
+
+if test "${machine_dir}" = "sh"; then
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#if !defined(__SH5__)
+# error "not SH5"
+#endif
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+  have_sh64=yes
+else
+  have_sh64=no
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+fi
+
+ if test "$have_sh64" = yes; then
+  SH64_TRUE=
+  SH64_FALSE='#'
+else
+  SH64_TRUE='#'
+  SH64_FALSE=
+fi
+
+
+if test "${machine_dir}" = "spu"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __ea" >&5
+$as_echo_n "checking whether the compiler supports __ea... " >&6; }
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#if !defined (__EA32__) && !defined (__EA64__)
+# error "__ea not supported"
+#endif
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+  spu_compiler_has_ea=yes
+else
+  spu_compiler_has_ea=no
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $spu_compiler_has_ea" >&5
+$as_echo "$spu_compiler_has_ea" >&6; }
+fi
+ if test x${spu_compiler_has_ea} != xno; then
+  HAVE_SPU_EA_TRUE=
+  HAVE_SPU_EA_FALSE='#'
+else
+  HAVE_SPU_EA_TRUE='#'
+  HAVE_SPU_EA_FALSE=
+fi
+
+
+
 LIBC_MACHINE_LIB=
 if test -n "${machine_dir}"; then
   case ${machine_dir} in
-    a29k) subdirs="$subdirs machine/a29k"
+    a29k) ac_config_files="$ac_config_files machine/a29k/Makefile"
  ;;
-    aarch64) subdirs="$subdirs machine/aarch64"
+    aarch64) ac_config_files="$ac_config_files machine/aarch64/Makefile"
  ;;
-    amdgcn) subdirs="$subdirs machine/amdgcn"
+    amdgcn) ac_config_files="$ac_config_files machine/amdgcn/Makefile"
  ;;
-    arc) subdirs="$subdirs machine/arc"
+    arc) ac_config_files="$ac_config_files machine/arc/Makefile"
  ;;
-    arm) subdirs="$subdirs machine/arm"
+    arm) ac_config_files="$ac_config_files machine/arm/Makefile"
  ;;
-    bfin) subdirs="$subdirs machine/bfin"
+    bfin) ac_config_files="$ac_config_files machine/bfin/Makefile"
  ;;
-    cr16) subdirs="$subdirs machine/cr16"
+    cr16) ac_config_files="$ac_config_files machine/cr16/Makefile"
  ;;
-    cris) subdirs="$subdirs machine/cris"
+    cris) ac_config_files="$ac_config_files machine/cris/Makefile"
  ;;
-    crx) subdirs="$subdirs machine/crx"
+    crx) ac_config_files="$ac_config_files machine/crx/Makefile"
  ;;
-    csky) subdirs="$subdirs machine/csky"
+    csky) ac_config_files="$ac_config_files machine/csky/Makefile"
  ;;
-    d10v) subdirs="$subdirs machine/d10v"
+    d10v) ac_config_files="$ac_config_files machine/d10v/Makefile"
  ;;
-    d30v) subdirs="$subdirs machine/d30v"
+    d30v) ac_config_files="$ac_config_files machine/d30v/Makefile"
  ;;
-    epiphany) subdirs="$subdirs machine/epiphany"
+    epiphany) ac_config_files="$ac_config_files machine/epiphany/Makefile"
  ;;
-    fr30) subdirs="$subdirs machine/fr30"
+    fr30) ac_config_files="$ac_config_files machine/fr30/Makefile"
  ;;
-    frv) subdirs="$subdirs machine/frv"
+    frv) ac_config_files="$ac_config_files machine/frv/Makefile"
  ;;
-    ft32) subdirs="$subdirs machine/ft32"
+    ft32) ac_config_files="$ac_config_files machine/ft32/Makefile"
  ;;
-    h8300) subdirs="$subdirs machine/h8300"
+    h8300) ac_config_files="$ac_config_files machine/h8300/Makefile"
  ;;
-    h8500) subdirs="$subdirs machine/h8500"
+    h8500) ac_config_files="$ac_config_files machine/h8500/Makefile"
  ;;
-    hppa) subdirs="$subdirs machine/hppa"
+    hppa) ac_config_files="$ac_config_files machine/hppa/Makefile"
  ;;
-    i386) subdirs="$subdirs machine/i386"
+    i386) ac_config_files="$ac_config_files machine/i386/Makefile"
  ;;
-    i960) subdirs="$subdirs machine/i960"
+    i960) ac_config_files="$ac_config_files machine/i960/Makefile"
  ;;
-    iq2000) subdirs="$subdirs machine/iq2000"
+    iq2000) ac_config_files="$ac_config_files machine/iq2000/Makefile"
  ;;
-    lm32) subdirs="$subdirs machine/lm32"
+    lm32) ac_config_files="$ac_config_files machine/lm32/Makefile"
  ;;
-    m32c) subdirs="$subdirs machine/m32c"
+    m32c) ac_config_files="$ac_config_files machine/m32c/Makefile"
  ;;
-    m32r) subdirs="$subdirs machine/m32r"
+    m32r) ac_config_files="$ac_config_files machine/m32r/Makefile"
  ;;
-    m68hc11) subdirs="$subdirs machine/m68hc11"
+    m68hc11) ac_config_files="$ac_config_files machine/m68hc11/Makefile"
  ;;
-    m68k) subdirs="$subdirs machine/m68k"
+    m68k) ac_config_files="$ac_config_files machine/m68k/Makefile"
  ;;
-    m88k) subdirs="$subdirs machine/m88k"
+    m88k) ac_config_files="$ac_config_files machine/m88k/Makefile"
  ;;
-    mep) subdirs="$subdirs machine/mep"
+    mep) ac_config_files="$ac_config_files machine/mep/Makefile"
  ;;
-    microblaze) subdirs="$subdirs machine/microblaze"
+    microblaze) ac_config_files="$ac_config_files machine/microblaze/Makefile"
  ;;
-    mips) subdirs="$subdirs machine/mips"
+    mips) ac_config_files="$ac_config_files machine/mips/Makefile"
  ;;
-    riscv) subdirs="$subdirs machine/riscv"
+    riscv) ac_config_files="$ac_config_files machine/riscv/Makefile"
  ;;
-    mn10200) subdirs="$subdirs machine/mn10200"
+    mn10200) ac_config_files="$ac_config_files machine/mn10200/Makefile"
  ;;
-    mn10300) subdirs="$subdirs machine/mn10300"
+    mn10300) ac_config_files="$ac_config_files machine/mn10300/Makefile"
  ;;
-    moxie) subdirs="$subdirs machine/moxie"
+    moxie) ac_config_files="$ac_config_files machine/moxie/Makefile"
  ;;
-    msp430) subdirs="$subdirs machine/msp430"
+    msp430) ac_config_files="$ac_config_files machine/msp430/Makefile"
  ;;
-    mt) subdirs="$subdirs machine/mt"
+    mt) ac_config_files="$ac_config_files machine/mt/Makefile"
  ;;
-    nds32) subdirs="$subdirs machine/nds32"
+    nds32) ac_config_files="$ac_config_files machine/nds32/Makefile"
  ;;
-    necv70) subdirs="$subdirs machine/necv70"
+    necv70) ac_config_files="$ac_config_files machine/necv70/Makefile"
  ;;
-    nios2) subdirs="$subdirs machine/nios2"
+    nios2) ac_config_files="$ac_config_files machine/nios2/Makefile"
  ;;
-    nvptx) subdirs="$subdirs machine/nvptx"
+    nvptx) ac_config_files="$ac_config_files machine/nvptx/Makefile"
  ;;
-    or1k) subdirs="$subdirs machine/or1k"
+    or1k) ac_config_files="$ac_config_files machine/or1k/Makefile"
  ;;
-    powerpc) subdirs="$subdirs machine/powerpc"
+    powerpc) ac_config_files="$ac_config_files machine/powerpc/Makefile"
  ;;
-    pru) subdirs="$subdirs machine/pru"
+    pru) ac_config_files="$ac_config_files machine/pru/Makefile"
  ;;
-    rl78) subdirs="$subdirs machine/rl78"
+    rl78) ac_config_files="$ac_config_files machine/rl78/Makefile"
  ;;
-    rx) subdirs="$subdirs machine/rx"
+    rx) ac_config_files="$ac_config_files machine/rx/Makefile"
  ;;
-    sh) subdirs="$subdirs machine/sh"
+    sh) ac_config_files="$ac_config_files machine/sh/Makefile"
  ;;
-    sparc) subdirs="$subdirs machine/sparc"
+    sparc) ac_config_files="$ac_config_files machine/sparc/Makefile"
  ;;
-    spu) subdirs="$subdirs machine/spu"
+    spu) ac_config_files="$ac_config_files machine/spu/Makefile"
  ;;
-    tic4x) subdirs="$subdirs machine/tic4x"
+    tic4x) ac_config_files="$ac_config_files machine/tic4x/Makefile"
  ;;
-    tic6x) subdirs="$subdirs machine/tic6x"
+    tic6x) ac_config_files="$ac_config_files machine/tic6x/Makefile"
  ;;
-    tic80) subdirs="$subdirs machine/tic80"
+    tic80) ac_config_files="$ac_config_files machine/tic80/Makefile"
  ;;
-    v850) subdirs="$subdirs machine/v850"
+    v850) ac_config_files="$ac_config_files machine/v850/Makefile"
  ;;
-    visium) subdirs="$subdirs machine/visium"
+    visium) ac_config_files="$ac_config_files machine/visium/Makefile"
  ;;
-    w65) subdirs="$subdirs machine/w65"
+    w65) ac_config_files="$ac_config_files machine/w65/Makefile"
  ;;
-    x86_64) subdirs="$subdirs machine/x86_64"
+    x86_64) ac_config_files="$ac_config_files machine/x86_64/Makefile"
  ;;
-    xc16x) subdirs="$subdirs machine/xc16x"
+    xc16x) ac_config_files="$ac_config_files machine/xc16x/Makefile"
  ;;
-    xstormy16) subdirs="$subdirs machine/xstormy16"
+    xstormy16) ac_config_files="$ac_config_files machine/xstormy16/Makefile"
  ;;
-    z8k) subdirs="$subdirs machine/z8k"
+    z8k) ac_config_files="$ac_config_files machine/z8k/Makefile"
  ;;
     *) as_fn_error $? "unsupported machine_dir \"${machine_dir}\"" "$LINENO" 5 ;;
   esac
@@ -12539,6 +12617,15 @@ fi
 
 
 
+ if test "x$mach_add_setjmp" = "xtrue"; then
+  MACH_ADD_SETJMP_TRUE=
+  MACH_ADD_SETJMP_FALSE='#'
+else
+  MACH_ADD_SETJMP_TRUE='#'
+  MACH_ADD_SETJMP_FALSE=
+fi
+
+
 ac_config_files="$ac_config_files Makefile argz/Makefile ctype/Makefile errno/Makefile locale/Makefile misc/Makefile reent/Makefile search/Makefile stdio/Makefile stdio64/Makefile stdlib/Makefile string/Makefile time/Makefile posix/Makefile signal/Makefile syscalls/Makefile unix/Makefile iconv/Makefile iconv/ces/Makefile iconv/ccs/Makefile iconv/ccs/binary/Makefile iconv/lib/Makefile ssp/Makefile xdr/Makefile"
 
 cat >confcache <<\_ACEOF
@@ -12798,10 +12885,34 @@ if test -z "${ENABLE_NEWLIB_ICONV_TRUE}" && test -z "${ENABLE_NEWLIB_ICONV_FALSE
   as_fn_error $? "conditional \"ENABLE_NEWLIB_ICONV\" was never defined.
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
 fi
+if test -z "${IS_NDS32_ISA_V3M_TRUE}" && test -z "${IS_NDS32_ISA_V3M_FALSE}"; then
+  as_fn_error $? "conditional \"IS_NDS32_ISA_V3M\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_POWERPC_ALTIVEC_TRUE}" && test -z "${HAVE_POWERPC_ALTIVEC_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_POWERPC_ALTIVEC\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_POWERPC_SPE_TRUE}" && test -z "${HAVE_POWERPC_SPE_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_POWERPC_SPE\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
+  as_fn_error $? "conditional \"SH64\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_SPU_EA_TRUE}" && test -z "${HAVE_SPU_EA_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_SPU_EA\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
 if test -z "${HAVE_LIBC_MACHINE_DIR_TRUE}" && test -z "${HAVE_LIBC_MACHINE_DIR_FALSE}"; then
   as_fn_error $? "conditional \"HAVE_LIBC_MACHINE_DIR\" was never defined.
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
 fi
+if test -z "${MACH_ADD_SETJMP_TRUE}" && test -z "${MACH_ADD_SETJMP_FALSE}"; then
+  as_fn_error $? "conditional \"MACH_ADD_SETJMP\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
 
 : "${CONFIG_STATUS=./config.status}"
 ac_write_fail=0
@@ -13666,6 +13777,65 @@ do
     "sys/tirtos/Makefile") CONFIG_FILES="$CONFIG_FILES sys/tirtos/Makefile" ;;
     "sys/w65/Makefile") CONFIG_FILES="$CONFIG_FILES sys/w65/Makefile" ;;
     "sys/z8ksim/Makefile") CONFIG_FILES="$CONFIG_FILES sys/z8ksim/Makefile" ;;
+    "machine/a29k/Makefile") CONFIG_FILES="$CONFIG_FILES machine/a29k/Makefile" ;;
+    "machine/aarch64/Makefile") CONFIG_FILES="$CONFIG_FILES machine/aarch64/Makefile" ;;
+    "machine/amdgcn/Makefile") CONFIG_FILES="$CONFIG_FILES machine/amdgcn/Makefile" ;;
+    "machine/arc/Makefile") CONFIG_FILES="$CONFIG_FILES machine/arc/Makefile" ;;
+    "machine/arm/Makefile") CONFIG_FILES="$CONFIG_FILES machine/arm/Makefile" ;;
+    "machine/bfin/Makefile") CONFIG_FILES="$CONFIG_FILES machine/bfin/Makefile" ;;
+    "machine/cr16/Makefile") CONFIG_FILES="$CONFIG_FILES machine/cr16/Makefile" ;;
+    "machine/cris/Makefile") CONFIG_FILES="$CONFIG_FILES machine/cris/Makefile" ;;
+    "machine/crx/Makefile") CONFIG_FILES="$CONFIG_FILES machine/crx/Makefile" ;;
+    "machine/csky/Makefile") CONFIG_FILES="$CONFIG_FILES machine/csky/Makefile" ;;
+    "machine/d10v/Makefile") CONFIG_FILES="$CONFIG_FILES machine/d10v/Makefile" ;;
+    "machine/d30v/Makefile") CONFIG_FILES="$CONFIG_FILES machine/d30v/Makefile" ;;
+    "machine/epiphany/Makefile") CONFIG_FILES="$CONFIG_FILES machine/epiphany/Makefile" ;;
+    "machine/fr30/Makefile") CONFIG_FILES="$CONFIG_FILES machine/fr30/Makefile" ;;
+    "machine/frv/Makefile") CONFIG_FILES="$CONFIG_FILES machine/frv/Makefile" ;;
+    "machine/ft32/Makefile") CONFIG_FILES="$CONFIG_FILES machine/ft32/Makefile" ;;
+    "machine/h8300/Makefile") CONFIG_FILES="$CONFIG_FILES machine/h8300/Makefile" ;;
+    "machine/h8500/Makefile") CONFIG_FILES="$CONFIG_FILES machine/h8500/Makefile" ;;
+    "machine/hppa/Makefile") CONFIG_FILES="$CONFIG_FILES machine/hppa/Makefile" ;;
+    "machine/i386/Makefile") CONFIG_FILES="$CONFIG_FILES machine/i386/Makefile" ;;
+    "machine/i960/Makefile") CONFIG_FILES="$CONFIG_FILES machine/i960/Makefile" ;;
+    "machine/iq2000/Makefile") CONFIG_FILES="$CONFIG_FILES machine/iq2000/Makefile" ;;
+    "machine/lm32/Makefile") CONFIG_FILES="$CONFIG_FILES machine/lm32/Makefile" ;;
+    "machine/m32c/Makefile") CONFIG_FILES="$CONFIG_FILES machine/m32c/Makefile" ;;
+    "machine/m32r/Makefile") CONFIG_FILES="$CONFIG_FILES machine/m32r/Makefile" ;;
+    "machine/m68hc11/Makefile") CONFIG_FILES="$CONFIG_FILES machine/m68hc11/Makefile" ;;
+    "machine/m68k/Makefile") CONFIG_FILES="$CONFIG_FILES machine/m68k/Makefile" ;;
+    "machine/m88k/Makefile") CONFIG_FILES="$CONFIG_FILES machine/m88k/Makefile" ;;
+    "machine/mep/Makefile") CONFIG_FILES="$CONFIG_FILES machine/mep/Makefile" ;;
+    "machine/microblaze/Makefile") CONFIG_FILES="$CONFIG_FILES machine/microblaze/Makefile" ;;
+    "machine/mips/Makefile") CONFIG_FILES="$CONFIG_FILES machine/mips/Makefile" ;;
+    "machine/riscv/Makefile") CONFIG_FILES="$CONFIG_FILES machine/riscv/Makefile" ;;
+    "machine/mn10200/Makefile") CONFIG_FILES="$CONFIG_FILES machine/mn10200/Makefile" ;;
+    "machine/mn10300/Makefile") CONFIG_FILES="$CONFIG_FILES machine/mn10300/Makefile" ;;
+    "machine/moxie/Makefile") CONFIG_FILES="$CONFIG_FILES machine/moxie/Makefile" ;;
+    "machine/msp430/Makefile") CONFIG_FILES="$CONFIG_FILES machine/msp430/Makefile" ;;
+    "machine/mt/Makefile") CONFIG_FILES="$CONFIG_FILES machine/mt/Makefile" ;;
+    "machine/nds32/Makefile") CONFIG_FILES="$CONFIG_FILES machine/nds32/Makefile" ;;
+    "machine/necv70/Makefile") CONFIG_FILES="$CONFIG_FILES machine/necv70/Makefile" ;;
+    "machine/nios2/Makefile") CONFIG_FILES="$CONFIG_FILES machine/nios2/Makefile" ;;
+    "machine/nvptx/Makefile") CONFIG_FILES="$CONFIG_FILES machine/nvptx/Makefile" ;;
+    "machine/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES machine/or1k/Makefile" ;;
+    "machine/powerpc/Makefile") CONFIG_FILES="$CONFIG_FILES machine/powerpc/Makefile" ;;
+    "machine/pru/Makefile") CONFIG_FILES="$CONFIG_FILES machine/pru/Makefile" ;;
+    "machine/rl78/Makefile") CONFIG_FILES="$CONFIG_FILES machine/rl78/Makefile" ;;
+    "machine/rx/Makefile") CONFIG_FILES="$CONFIG_FILES machine/rx/Makefile" ;;
+    "machine/sh/Makefile") CONFIG_FILES="$CONFIG_FILES machine/sh/Makefile" ;;
+    "machine/sparc/Makefile") CONFIG_FILES="$CONFIG_FILES machine/sparc/Makefile" ;;
+    "machine/spu/Makefile") CONFIG_FILES="$CONFIG_FILES machine/spu/Makefile" ;;
+    "machine/tic4x/Makefile") CONFIG_FILES="$CONFIG_FILES machine/tic4x/Makefile" ;;
+    "machine/tic6x/Makefile") CONFIG_FILES="$CONFIG_FILES machine/tic6x/Makefile" ;;
+    "machine/tic80/Makefile") CONFIG_FILES="$CONFIG_FILES machine/tic80/Makefile" ;;
+    "machine/v850/Makefile") CONFIG_FILES="$CONFIG_FILES machine/v850/Makefile" ;;
+    "machine/visium/Makefile") CONFIG_FILES="$CONFIG_FILES machine/visium/Makefile" ;;
+    "machine/w65/Makefile") CONFIG_FILES="$CONFIG_FILES machine/w65/Makefile" ;;
+    "machine/x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES machine/x86_64/Makefile" ;;
+    "machine/xc16x/Makefile") CONFIG_FILES="$CONFIG_FILES machine/xc16x/Makefile" ;;
+    "machine/xstormy16/Makefile") CONFIG_FILES="$CONFIG_FILES machine/xstormy16/Makefile" ;;
+    "machine/z8k/Makefile") CONFIG_FILES="$CONFIG_FILES machine/z8k/Makefile" ;;
     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     "argz/Makefile") CONFIG_FILES="$CONFIG_FILES argz/Makefile" ;;
     "ctype/Makefile") CONFIG_FILES="$CONFIG_FILES ctype/Makefile" ;;
diff --git a/newlib/libc/configure.ac b/newlib/libc/configure.ac
index 436dd4070..5d4dc7bf5 100644
--- a/newlib/libc/configure.ac
+++ b/newlib/libc/configure.ac
@@ -215,68 +215,75 @@ AM_CONDITIONAL(HAVE_LONG_DOUBLE, test x"$ac_cv_type_long_double" = x"yes")
 dnl iconv library will be compiled if --enable-newlib-iconv option is enabled
 AM_CONDITIONAL(ENABLE_NEWLIB_ICONV, test x${newlib_iconv} != x)
 
+dnl We have to include these unconditionally since machines might want to use
+dnl AM_CONDITIONAL in their subdirs.
+m4_include([machine/nds32/acinclude.m4])
+m4_include([machine/powerpc/acinclude.m4])
+m4_include([machine/sh/acinclude.m4])
+m4_include([machine/spu/acinclude.m4])
+
 LIBC_MACHINE_LIB=
 if test -n "${machine_dir}"; then
   case ${machine_dir} in
-    a29k) AC_CONFIG_SUBDIRS(machine/a29k) ;;
-    aarch64) AC_CONFIG_SUBDIRS(machine/aarch64) ;;
-    amdgcn) AC_CONFIG_SUBDIRS(machine/amdgcn) ;;
-    arc) AC_CONFIG_SUBDIRS(machine/arc) ;;
-    arm) AC_CONFIG_SUBDIRS(machine/arm) ;;
-    bfin) AC_CONFIG_SUBDIRS(machine/bfin) ;;
-    cr16) AC_CONFIG_SUBDIRS(machine/cr16) ;;
-    cris) AC_CONFIG_SUBDIRS(machine/cris) ;;
-    crx) AC_CONFIG_SUBDIRS(machine/crx) ;;
-    csky) AC_CONFIG_SUBDIRS(machine/csky) ;;
-    d10v) AC_CONFIG_SUBDIRS(machine/d10v) ;;
-    d30v) AC_CONFIG_SUBDIRS(machine/d30v) ;;
-    epiphany) AC_CONFIG_SUBDIRS(machine/epiphany) ;;
-    fr30) AC_CONFIG_SUBDIRS(machine/fr30) ;;
-    frv) AC_CONFIG_SUBDIRS(machine/frv) ;;
-    ft32) AC_CONFIG_SUBDIRS(machine/ft32) ;;
-    h8300) AC_CONFIG_SUBDIRS(machine/h8300) ;;
-    h8500) AC_CONFIG_SUBDIRS(machine/h8500) ;;
-    hppa) AC_CONFIG_SUBDIRS(machine/hppa) ;;
-    i386) AC_CONFIG_SUBDIRS(machine/i386) ;;
-    i960) AC_CONFIG_SUBDIRS(machine/i960) ;;
-    iq2000) AC_CONFIG_SUBDIRS(machine/iq2000) ;;
-    lm32) AC_CONFIG_SUBDIRS(machine/lm32) ;;
-    m32c) AC_CONFIG_SUBDIRS(machine/m32c) ;;
-    m32r) AC_CONFIG_SUBDIRS(machine/m32r) ;;
-    m68hc11) AC_CONFIG_SUBDIRS(machine/m68hc11) ;;
-    m68k) AC_CONFIG_SUBDIRS(machine/m68k) ;;
-    m88k) AC_CONFIG_SUBDIRS(machine/m88k) ;;
-    mep) AC_CONFIG_SUBDIRS(machine/mep) ;;
-    microblaze) AC_CONFIG_SUBDIRS(machine/microblaze) ;;
-    mips) AC_CONFIG_SUBDIRS(machine/mips) ;;
-    riscv) AC_CONFIG_SUBDIRS(machine/riscv) ;;
-    mn10200) AC_CONFIG_SUBDIRS(machine/mn10200) ;;
-    mn10300) AC_CONFIG_SUBDIRS(machine/mn10300) ;;
-    moxie) AC_CONFIG_SUBDIRS(machine/moxie) ;;
-    msp430) AC_CONFIG_SUBDIRS(machine/msp430) ;;
-    mt) AC_CONFIG_SUBDIRS(machine/mt) ;;
-    nds32) AC_CONFIG_SUBDIRS(machine/nds32) ;;
-    necv70) AC_CONFIG_SUBDIRS(machine/necv70) ;;
-    nios2) AC_CONFIG_SUBDIRS(machine/nios2) ;;
-    nvptx) AC_CONFIG_SUBDIRS(machine/nvptx) ;;
-    or1k) AC_CONFIG_SUBDIRS(machine/or1k) ;;
-    powerpc) AC_CONFIG_SUBDIRS(machine/powerpc) ;;
-    pru) AC_CONFIG_SUBDIRS(machine/pru) ;;
-    rl78) AC_CONFIG_SUBDIRS(machine/rl78) ;;
-    rx) AC_CONFIG_SUBDIRS(machine/rx) ;;
-    sh) AC_CONFIG_SUBDIRS(machine/sh) ;;
-    sparc) AC_CONFIG_SUBDIRS(machine/sparc) ;;
-    spu) AC_CONFIG_SUBDIRS(machine/spu) ;;
-    tic4x) AC_CONFIG_SUBDIRS(machine/tic4x) ;;
-    tic6x) AC_CONFIG_SUBDIRS(machine/tic6x) ;;
-    tic80) AC_CONFIG_SUBDIRS(machine/tic80) ;;
-    v850) AC_CONFIG_SUBDIRS(machine/v850) ;;
-    visium) AC_CONFIG_SUBDIRS(machine/visium) ;;
-    w65) AC_CONFIG_SUBDIRS(machine/w65) ;;
-    x86_64) AC_CONFIG_SUBDIRS(machine/x86_64) ;;
-    xc16x) AC_CONFIG_SUBDIRS(machine/xc16x) ;;
-    xstormy16) AC_CONFIG_SUBDIRS(machine/xstormy16) ;;
-    z8k) AC_CONFIG_SUBDIRS(machine/z8k) ;;
+    a29k) AC_CONFIG_FILES([machine/a29k/Makefile]) ;;
+    aarch64) AC_CONFIG_FILES([machine/aarch64/Makefile]) ;;
+    amdgcn) AC_CONFIG_FILES([machine/amdgcn/Makefile]) ;;
+    arc) AC_CONFIG_FILES([machine/arc/Makefile]) ;;
+    arm) AC_CONFIG_FILES([machine/arm/Makefile]) ;;
+    bfin) AC_CONFIG_FILES([machine/bfin/Makefile]) ;;
+    cr16) AC_CONFIG_FILES([machine/cr16/Makefile]) ;;
+    cris) AC_CONFIG_FILES([machine/cris/Makefile]) ;;
+    crx) AC_CONFIG_FILES([machine/crx/Makefile]) ;;
+    csky) AC_CONFIG_FILES([machine/csky/Makefile]) ;;
+    d10v) AC_CONFIG_FILES([machine/d10v/Makefile]) ;;
+    d30v) AC_CONFIG_FILES([machine/d30v/Makefile]) ;;
+    epiphany) AC_CONFIG_FILES([machine/epiphany/Makefile]) ;;
+    fr30) AC_CONFIG_FILES([machine/fr30/Makefile]) ;;
+    frv) AC_CONFIG_FILES([machine/frv/Makefile]) ;;
+    ft32) AC_CONFIG_FILES([machine/ft32/Makefile]) ;;
+    h8300) AC_CONFIG_FILES([machine/h8300/Makefile]) ;;
+    h8500) AC_CONFIG_FILES([machine/h8500/Makefile]) ;;
+    hppa) AC_CONFIG_FILES([machine/hppa/Makefile]) ;;
+    i386) AC_CONFIG_FILES([machine/i386/Makefile]) ;;
+    i960) AC_CONFIG_FILES([machine/i960/Makefile]) ;;
+    iq2000) AC_CONFIG_FILES([machine/iq2000/Makefile]) ;;
+    lm32) AC_CONFIG_FILES([machine/lm32/Makefile]) ;;
+    m32c) AC_CONFIG_FILES([machine/m32c/Makefile]) ;;
+    m32r) AC_CONFIG_FILES([machine/m32r/Makefile]) ;;
+    m68hc11) AC_CONFIG_FILES([machine/m68hc11/Makefile]) ;;
+    m68k) AC_CONFIG_FILES([machine/m68k/Makefile]) ;;
+    m88k) AC_CONFIG_FILES([machine/m88k/Makefile]) ;;
+    mep) AC_CONFIG_FILES([machine/mep/Makefile]) ;;
+    microblaze) AC_CONFIG_FILES([machine/microblaze/Makefile]) ;;
+    mips) AC_CONFIG_FILES([machine/mips/Makefile]) ;;
+    riscv) AC_CONFIG_FILES([machine/riscv/Makefile]) ;;
+    mn10200) AC_CONFIG_FILES([machine/mn10200/Makefile]) ;;
+    mn10300) AC_CONFIG_FILES([machine/mn10300/Makefile]) ;;
+    moxie) AC_CONFIG_FILES([machine/moxie/Makefile]) ;;
+    msp430) AC_CONFIG_FILES([machine/msp430/Makefile]) ;;
+    mt) AC_CONFIG_FILES([machine/mt/Makefile]) ;;
+    nds32) AC_CONFIG_FILES([machine/nds32/Makefile]) ;;
+    necv70) AC_CONFIG_FILES([machine/necv70/Makefile]) ;;
+    nios2) AC_CONFIG_FILES([machine/nios2/Makefile]) ;;
+    nvptx) AC_CONFIG_FILES([machine/nvptx/Makefile]) ;;
+    or1k) AC_CONFIG_FILES([machine/or1k/Makefile]) ;;
+    powerpc) AC_CONFIG_FILES([machine/powerpc/Makefile]) ;;
+    pru) AC_CONFIG_FILES([machine/pru/Makefile]) ;;
+    rl78) AC_CONFIG_FILES([machine/rl78/Makefile]) ;;
+    rx) AC_CONFIG_FILES([machine/rx/Makefile]) ;;
+    sh) AC_CONFIG_FILES([machine/sh/Makefile]) ;;
+    sparc) AC_CONFIG_FILES([machine/sparc/Makefile]) ;;
+    spu) AC_CONFIG_FILES([machine/spu/Makefile]) ;;
+    tic4x) AC_CONFIG_FILES([machine/tic4x/Makefile]) ;;
+    tic6x) AC_CONFIG_FILES([machine/tic6x/Makefile]) ;;
+    tic80) AC_CONFIG_FILES([machine/tic80/Makefile]) ;;
+    v850) AC_CONFIG_FILES([machine/v850/Makefile]) ;;
+    visium) AC_CONFIG_FILES([machine/visium/Makefile]) ;;
+    w65) AC_CONFIG_FILES([machine/w65/Makefile]) ;;
+    x86_64) AC_CONFIG_FILES([machine/x86_64/Makefile]) ;;
+    xc16x) AC_CONFIG_FILES([machine/xc16x/Makefile]) ;;
+    xstormy16) AC_CONFIG_FILES([machine/xstormy16/Makefile]) ;;
+    z8k) AC_CONFIG_FILES([machine/z8k/Makefile]) ;;
     *) AC_MSG_ERROR([unsupported machine_dir "${machine_dir}"]) ;;
   esac
 
@@ -293,5 +300,7 @@ AC_SUBST(LIBC_MACHINE_LIB)
 AC_SUBST(machine_dir)
 AC_SUBST(shared_machine_dir)
 
+AM_CONDITIONAL(MACH_ADD_SETJMP, test "x$mach_add_setjmp" = "xtrue")
+
 AC_CONFIG_FILES([Makefile argz/Makefile ctype/Makefile errno/Makefile locale/Makefile misc/Makefile reent/Makefile search/Makefile stdio/Makefile stdio64/Makefile stdlib/Makefile string/Makefile time/Makefile posix/Makefile signal/Makefile syscalls/Makefile unix/Makefile iconv/Makefile iconv/ces/Makefile iconv/ccs/Makefile iconv/ccs/binary/Makefile iconv/lib/Makefile ssp/Makefile xdr/Makefile])
 AC_OUTPUT
diff --git a/newlib/libc/ctype/Makefile.in b/newlib/libc/ctype/Makefile.in
index 17b990290..f2219330c 100644
--- a/newlib/libc/ctype/Makefile.in
+++ b/newlib/libc/ctype/Makefile.in
@@ -100,7 +100,12 @@ am__aclocal_m4_deps = $(top_srcdir)/../../config/depstand.m4 \
 	$(top_srcdir)/../../ltsugar.m4 \
 	$(top_srcdir)/../../ltversion.m4 \
 	$(top_srcdir)/../../lt~obsolete.m4 \
-	$(top_srcdir)/../acinclude.m4 $(top_srcdir)/configure.ac
+	$(top_srcdir)/../acinclude.m4 \
+	$(top_srcdir)/machine/nds32/acinclude.m4 \
+	$(top_srcdir)/machine/powerpc/acinclude.m4 \
+	$(top_srcdir)/machine/sh/acinclude.m4 \
+	$(top_srcdir)/machine/spu/acinclude.m4 \
+	$(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 	$(ACLOCAL_M4)
 DIST_COMMON = $(srcdir)/Makefile.am
diff --git a/newlib/libc/errno/Makefile.in b/newlib/libc/errno/Makefile.in
index 3eced35c8..441ea30cc 100644
--- a/newlib/libc/errno/Makefile.in
+++ b/newlib/libc/errno/Makefile.in
@@ -100,7 +100,12 @@ am__aclocal_m4_deps = $(top_srcdir)/../../config/depstand.m4 \
 	$(top_srcdir)/../../ltsugar.m4 \
 	$(top_srcdir)/../../ltversion.m4 \
 	$(top_srcdir)/../../lt~obsolete.m4 \
-	$(top_srcdir)/../acinclude.m4 $(top_srcdir)/configure.ac
+	$(top_srcdir)/../acinclude.m4 \
+	$(top_srcdir)/machine/nds32/acinclude.m4 \
+	$(top_srcdir)/machine/powerpc/acinclude.m4 \
+	$(top_srcdir)/machine/sh/acinclude.m4 \
+	$(top_srcdir)/machine/spu/acinclude.m4 \
+	$(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 	$(ACLOCAL_M4)
 DIST_COMMON = $(srcdir)/Makefile.am
diff --git a/newlib/libc/iconv/Makefile.in b/newlib/libc/iconv/Makefile.in
index 4e3ecc37e..781f3d559 100644
--- a/newlib/libc/iconv/Makefile.in
+++ b/newlib/libc/iconv/Makefile.in
@@ -98,7 +98,12 @@ am__aclocal_m4_deps = $(top_srcdir)/../../config/depstand.m4 \
 	$(top_srcdir)/../../ltsugar.m4 \
 	$(top_srcdir)/../../ltversion.m4 \
 	$(top_srcdir)/../../lt~obsolete.m4 \
-	$(top_srcdir)/../acinclude.m4 $(top_srcdir)/configure.ac
+	$(top_srcdir)/../acinclude.m4 \
+	$(top_srcdir)/machine/nds32/acinclude.m4 \
+	$(top_srcdir)/machine/powerpc/acinclude.m4 \
+	$(top_srcdir)/machine/sh/acinclude.m4 \
+	$(top_srcdir)/machine/spu/acinclude.m4 \
+	$(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 	$(ACLOCAL_M4)
 DIST_COMMON = $(srcdir)/Makefile.am
diff --git a/newlib/libc/iconv/ccs/Makefile.in b/newlib/libc/iconv/ccs/Makefile.in
index d3fe59e74..df9464391 100644
--- a/newlib/libc/iconv/ccs/Makefile.in
+++ b/newlib/libc/iconv/ccs/Makefile.in
@@ -99,7 +99,12 @@ am__aclocal_m4_deps = $(top_srcdir)/../../config/depstand.m4 \
 	$(top_srcdir)/../../ltsugar.m4 \
 	$(top_srcdir)/../../ltversion.m4 \
 	$(top_srcdir)/../../lt~obsolete.m4 \
-	$(top_srcdir)/../acinclude.m4 $(top_srcdir)/configure.ac
+	$(top_srcdir)/../acinclude.m4 \
+	$(top_srcdir)/machine/nds32/acinclude.m4 \
+	$(top_srcdir)/machine/powerpc/acinclude.m4 \
+	$(top_srcdir)/machine/sh/acinclude.m4 \
+	$(top_srcdir)/machine/spu/acinclude.m4 \
+	$(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 	$(ACLOCAL_M4)
 DIST_COMMON = $(srcdir)/Makefile.am
diff --git a/newlib/libc/iconv/ccs/binary/Makefile.in b/newlib/libc/iconv/ccs/binary/Makefile.in
index bba8db243..ccd649fe9 100644
--- a/newlib/libc/iconv/ccs/binary/Makefile.in
+++ b/newlib/libc/iconv/ccs/binary/Makefile.in
@@ -98,7 +98,12 @@ am__aclocal_m4_deps = $(top_srcdir)/../../config/depstand.m4 \
 	$(top_srcdir)/../../ltsugar.m4 \
 	$(top_srcdir)/../../ltversion.m4 \
 	$(top_srcdir)/../../lt~obsolete.m4 \
-	$(top_srcdir)/../acinclude.m4 $(top_srcdir)/configure.ac
+	$(top_srcdir)/../acinclude.m4 \
+	$(top_srcdir)/machine/nds32/acinclude.m4 \
+	$(top_srcdir)/machine/powerpc/acinclude.m4 \
+	$(top_srcdir)/machine/sh/acinclude.m4 \
+	$(top_srcdir)/machine/spu/acinclude.m4 \
+	$(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 	$(ACLOCAL_M4)
 DIST_COMMON = $(srcdir)/Makefile.am
diff --git a/newlib/libc/iconv/ces/Makefile.in b/newlib/libc/iconv/ces/Makefile.in
index 86ddf2095..1a8106a16 100644
--- a/newlib/libc/iconv/ces/Makefile.in
+++ b/newlib/libc/iconv/ces/Makefile.in
@@ -99,7 +99,12 @@ am__aclocal_m4_deps = $(top_srcdir)/../../config/depstand.m4 \
 	$(top_srcdir)/../../ltsugar.m4 \
 	$(top_srcdir)/../../ltversion.m4 \
 	$(top_srcdir)/../../lt~obsolete.m4 \
-	$(top_srcdir)/../acinclude.m4 $(top_srcdir)/configure.ac
+	$(top_srcdir)/../acinclude.m4 \
+	$(top_srcdir)/machine/nds32/acinclude.m4 \
+	$(top_srcdir)/machine/powerpc/acinclude.m4 \
+	$(top_srcdir)/machine/sh/acinclude.m4 \
+	$(top_srcdir)/machine/spu/acinclude.m4 \
+	$(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 	$(ACLOCAL_M4)
 DIST_COMMON = $(srcdir)/Makefile.am
diff --git a/newlib/libc/iconv/lib/Makefile.in b/newlib/libc/iconv/lib/Makefile.in
index b4517608d..4d04f7fa7 100644
--- a/newlib/libc/iconv/lib/Makefile.in
+++ b/newlib/libc/iconv/lib/Makefile.in
@@ -99,7 +99,12 @@ am__aclocal_m4_deps = $(top_srcdir)/../../config/depstand.m4 \
 	$(top_srcdir)/../../ltsugar.m4 \
 	$(top_srcdir)/../../ltversion.m4 \
 	$(top_srcdir)/../../lt~obsolete.m4 \
-	$(top_srcdir)/../acinclude.m4 $(top_srcdir)/configure.ac
+	$(top_srcdir)/../acinclude.m4 \
+	$(top_srcdir)/machine/nds32/acinclude.m4 \
+	$(top_srcdir)/machine/powerpc/acinclude.m4 \
+	$(top_srcdir)/machine/sh/acinclude.m4 \
+	$(top_srcdir)/machine/spu/acinclude.m4 \
+	$(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 	$(ACLOCAL_M4)
 DIST_COMMON = $(srcdir)/Makefile.am
diff --git a/newlib/libc/locale/Makefile.in b/newlib/libc/locale/Makefile.in
index cdf35671d..b7de01c81 100644
--- a/newlib/libc/locale/Makefile.in
+++ b/newlib/libc/locale/Makefile.in
@@ -100,7 +100,12 @@ am__aclocal_m4_deps = $(top_srcdir)/../../config/depstand.m4 \
 	$(top_srcdir)/../../ltsugar.m4 \
 	$(top_srcdir)/../../ltversion.m4 \
 	$(top_srcdir)/../../lt~obsolete.m4 \
-	$(top_srcdir)/../acinclude.m4 $(top_srcdir)/configure.ac
+	$(top_srcdir)/../acinclude.m4 \
+	$(top_srcdir)/machine/nds32/acinclude.m4 \
+	$(top_srcdir)/machine/powerpc/acinclude.m4 \
+	$(top_srcdir)/machine/sh/acinclude.m4 \
+	$(top_srcdir)/machine/spu/acinclude.m4 \
+	$(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 	$(ACLOCAL_M4)
 DIST_COMMON = $(srcdir)/Makefile.am
diff --git a/newlib/libc/machine/a29k/Makefile.am b/newlib/libc/machine/a29k/Makefile.am
index 768c7078f..74820dd03 100644
--- a/newlib/libc/machine/a29k/Makefile.am
+++ b/newlib/libc/machine/a29k/Makefile.am
@@ -7,6 +7,3 @@ AM_CCASFLAGS = $(AM_CPPFLAGS)
 noinst_LIBRARIES = lib.a
 
 lib_a_SOURCES =
-
-ACLOCAL_AMFLAGS = -I ../../.. -I ../../../.. -I ../../../../config
-CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
diff --git a/newlib/libc/machine/a29k/Makefile.in b/newlib/libc/machine/a29k/Makefile.in
index 1139f7073..525e6114c 100644
--- a/newlib/libc/machine/a29k/Makefile.in
+++ b/newlib/libc/machine/a29k/Makefile.in
@@ -88,19 +88,26 @@ PRE_UNINSTALL = :
 POST_UNINSTALL = :
 build_triplet = @build@
 host_triplet = @host@
-subdir = .
+subdir = machine/a29k
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/../../../../config/depstand.m4 \
-	$(top_srcdir)/../../../../config/lead-dot.m4 \
-	$(top_srcdir)/../../../../config/override.m4 \
-	$(top_srcdir)/../../../acinclude.m4 $(top_srcdir)/configure.ac
+am__aclocal_m4_deps = $(top_srcdir)/../../config/depstand.m4 \
+	$(top_srcdir)/../../config/lead-dot.m4 \
+	$(top_srcdir)/../../config/override.m4 \
+	$(top_srcdir)/../../libtool.m4 \
+	$(top_srcdir)/../../ltoptions.m4 \
+	$(top_srcdir)/../../ltsugar.m4 \
+	$(top_srcdir)/../../ltversion.m4 \
+	$(top_srcdir)/../../lt~obsolete.m4 \
+	$(top_srcdir)/../acinclude.m4 \
+	$(top_srcdir)/machine/nds32/acinclude.m4 \
+	$(top_srcdir)/machine/powerpc/acinclude.m4 \
+	$(top_srcdir)/machine/sh/acinclude.m4 \
+	$(top_srcdir)/machine/spu/acinclude.m4 \
+	$(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 	$(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
-	$(am__configure_deps)
-am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
- configure.lineno config.status.lineno
-mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs
+DIST_COMMON = $(srcdir)/Makefile.am
+mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
 CONFIG_CLEAN_FILES =
 CONFIG_CLEAN_VPATH_FILES =
 LIBRARIES = $(noinst_LIBRARIES)
@@ -130,12 +137,22 @@ depcomp =
 am__depfiles_maybe =
 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
 	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+AM_V_lt = $(am__v_lt_@AM_V@)
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
+am__v_lt_0 = --silent
+am__v_lt_1 = 
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+	$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+	$(AM_CFLAGS) $(CFLAGS)
 AM_V_CC = $(am__v_CC_@AM_V@)
 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
 am__v_CC_0 = @echo "  CC      " $@;
 am__v_CC_1 = 
 CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+	$(AM_LDFLAGS) $(LDFLAGS) -o $@
 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
 am__v_CCLD_0 = @echo "  CCLD    " $@;
@@ -160,26 +177,62 @@ CC = @CC@
 CCAS = @CCAS@
 CCASFLAGS = @CCASFLAGS@
 CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CRT0 = @CRT0@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@
 DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
 ECHO_C = @ECHO_C@
 ECHO_N = @ECHO_N@
 ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GREP = @GREP@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBC_MACHINE_DIR = @LIBC_MACHINE_DIR@
+LIBC_MACHINE_LIB = @LIBC_MACHINE_LIB@
+LIBC_POSIX_DEF = @LIBC_POSIX_DEF@
+LIBC_POSIX_LIB = @LIBC_POSIX_LIB@
+LIBC_SIGNAL_DEF = @LIBC_SIGNAL_DEF@
+LIBC_SIGNAL_LIB = @LIBC_SIGNAL_LIB@
+LIBC_STDIO64_DEF = @LIBC_STDIO64_DEF@
+LIBC_STDIO64_LIB = @LIBC_STDIO64_LIB@
+LIBC_STDIO_DEF = @LIBC_STDIO_DEF@
+LIBC_STDIO_LIB = @LIBC_STDIO_LIB@
+LIBC_SYSCALL_LIB = @LIBC_SYSCALL_LIB@
+LIBC_SYS_LIB = @LIBC_SYS_LIB@
+LIBC_UNIX_LIB = @LIBC_UNIX_LIB@
+LIBC_XDR_DEF = @LIBC_XDR_DEF@
+LIBC_XDR_LIB = @LIBC_XDR_LIB@
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
 LTLIBOBJS = @LTLIBOBJS@
 MAINT = @MAINT@
 MAKEINFO = @MAKEINFO@
 MKDIR_P = @MKDIR_P@
 NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
+NM = @NM@
+NMEDIT = @NMEDIT@
 NO_INCLUDE_LIST = @NO_INCLUDE_LIST@
+OBJDUMP = @OBJDUMP@
 OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
 PACKAGE = @PACKAGE@
 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
 PACKAGE_NAME = @PACKAGE_NAME@
@@ -190,14 +243,18 @@ PACKAGE_VERSION = @PACKAGE_VERSION@
 PATH_SEPARATOR = @PATH_SEPARATOR@
 RANLIB = @RANLIB@
 READELF = @READELF@
+SED = @SED@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+SYS_DIR = @SYS_DIR@
 VERSION = @VERSION@
 abs_builddir = @abs_builddir@
 abs_srcdir = @abs_srcdir@
 abs_top_builddir = @abs_top_builddir@
 abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
 aext = @aext@
 am__include = @am__include@
 am__leading_dot = @am__leading_dot@
@@ -245,6 +302,7 @@ sbindir = @sbindir@
 shared_machine_dir = @shared_machine_dir@
 sharedstatedir = @sharedstatedir@
 srcdir = @srcdir@
+subdirs = @subdirs@
 sys_dir = @sys_dir@
 sysconfdir = @sysconfdir@
 target_alias = @target_alias@
@@ -255,43 +313,37 @@ AM_CPPFLAGS = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
 AM_CCASFLAGS = $(AM_CPPFLAGS)
 noinst_LIBRARIES = lib.a
 lib_a_SOURCES = 
-ACLOCAL_AMFLAGS = -I ../../.. -I ../../../.. -I ../../../../config
-CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
 all: all-am
 
 .SUFFIXES:
-am--refresh: Makefile
-	@:
 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
 	@for dep in $?; do \
 	  case '$(am__configure_deps)' in \
 	    *$$dep*) \
-	      echo ' cd $(srcdir) && $(AUTOMAKE) --foreign --ignore-deps'; \
-	      $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign --ignore-deps \
-		&& exit 0; \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
 	      exit 1;; \
 	  esac; \
 	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps Makefile'; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps machine/a29k/Makefile'; \
 	$(am__cd) $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign --ignore-deps Makefile
+	  $(AUTOMAKE) --foreign --ignore-deps machine/a29k/Makefile
 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
 	@case '$?' in \
 	  *config.status*) \
-	    echo ' $(SHELL) ./config.status'; \
-	    $(SHELL) ./config.status;; \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
 	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
 	esac;
 
 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	$(SHELL) ./config.status --recheck
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
 
 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
-	$(am__cd) $(srcdir) && $(AUTOCONF)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
-	$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
 $(am__aclocal_m4_deps):
 
 clean-noinstLIBRARIES:
@@ -307,6 +359,12 @@ mostlyclean-compile:
 
 distclean-compile:
 	-rm -f *.tab.c
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
 tags TAGS:
 
 ctags CTAGS:
@@ -349,10 +407,10 @@ maintainer-clean-generic:
 	@echo "it deletes files that may require special tools to rebuild."
 clean: clean-am
 
-clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
+clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \
+	mostlyclean-am
 
 distclean: distclean-am
-	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
 	-rm -f Makefile
 distclean-am: clean-am distclean-compile distclean-generic
 
@@ -397,14 +455,13 @@ install-ps-am:
 installcheck-am:
 
 maintainer-clean: maintainer-clean-am
-	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-	-rm -rf $(top_srcdir)/autom4te.cache
 	-rm -f Makefile
 maintainer-clean-am: distclean-am maintainer-clean-generic
 
 mostlyclean: mostlyclean-am
 
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+	mostlyclean-libtool
 
 pdf: pdf-am
 
@@ -418,17 +475,18 @@ uninstall-am:
 
 .MAKE: install-am install-strip
 
-.PHONY: all all-am am--refresh check check-am clean clean-generic \
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
 	clean-noinstLIBRARIES cscopelist-am ctags-am distclean \
-	distclean-compile distclean-generic dvi dvi-am html html-am \
-	info info-am install install-am install-data install-data-am \
-	install-dvi install-dvi-am install-exec install-exec-am \
-	install-html install-html-am install-info install-info-am \
-	install-man install-pdf install-pdf-am install-ps \
-	install-ps-am install-strip installcheck installcheck-am \
-	installdirs maintainer-clean maintainer-clean-generic \
-	mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
-	ps ps-am tags-am uninstall uninstall-am
+	distclean-compile distclean-generic distclean-libtool dvi \
+	dvi-am html html-am info info-am install install-am \
+	install-data install-data-am install-dvi install-dvi-am \
+	install-exec install-exec-am install-html install-html-am \
+	install-info install-info-am install-man install-pdf \
+	install-pdf-am install-ps install-ps-am install-strip \
+	installcheck installcheck-am installdirs maintainer-clean \
+	maintainer-clean-generic mostlyclean mostlyclean-compile \
+	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+	tags-am uninstall uninstall-am
 
 .PRECIOUS: Makefile
 
diff --git a/newlib/libc/machine/a29k/aclocal.m4 b/newlib/libc/machine/a29k/aclocal.m4
deleted file mode 100644
index 1aa0c4023..000000000
--- a/newlib/libc/machine/a29k/aclocal.m4
+++ /dev/null
@@ -1,1109 +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($@)])])
-m4_ifndef([AC_AUTOCONF_VERSION],
-  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
-m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
-[m4_warning([this file was generated for autoconf 2.69.
-You have another version of autoconf.  It may work, but is not guaranteed to.
-If you have problems, you may need to regenerate the build system entirely.
-To do so, use the procedure documented by the package, typically 'autoreconf'.])])
-
-# Copyright (C) 2002-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_AUTOMAKE_VERSION(VERSION)
-# ----------------------------
-# Automake X.Y traces this macro to ensure aclocal.m4 has been
-# generated from the m4 files accompanying Automake X.Y.
-# (This private macro should not be called outside this file.)
-AC_DEFUN([AM_AUTOMAKE_VERSION],
-[am__api_version='1.15'
-dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
-dnl require some minimum version.  Point them to the right macro.
-m4_if([$1], [1.15.1], [],
-      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
-])
-
-# _AM_AUTOCONF_VERSION(VERSION)
-# -----------------------------
-# aclocal traces this macro to find the Autoconf version.
-# This is a private macro too.  Using m4_define simplifies
-# the logic in aclocal, which can simply ignore this definition.
-m4_define([_AM_AUTOCONF_VERSION], [])
-
-# AM_SET_CURRENT_AUTOMAKE_VERSION
-# -------------------------------
-# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
-# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
-AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
-[AM_AUTOMAKE_VERSION([1.15.1])dnl
-m4_ifndef([AC_AUTOCONF_VERSION],
-  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
-_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
-
-# 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"])
-])
-
-# Do all the work for Automake.                             -*- 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 macro actually does too much.  Some checks are only needed if
-# your package does certain things.  But this isn't really a big deal.
-
-dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
-m4_define([AC_PROG_CC],
-m4_defn([AC_PROG_CC])
-[_AM_PROG_CC_C_O
-])
-
-# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
-# AM_INIT_AUTOMAKE([OPTIONS])
-# -----------------------------------------------
-# The call with PACKAGE and VERSION arguments is the old style
-# call (pre autoconf-2.50), which is being phased out.  PACKAGE
-# and VERSION should now be passed to AC_INIT and removed from
-# the call to AM_INIT_AUTOMAKE.
-# We support both call styles for the transition.  After
-# the next Automake release, Autoconf can make the AC_INIT
-# arguments mandatory, and then we can depend on a new Autoconf
-# release and drop the old call support.
-AC_DEFUN([AM_INIT_AUTOMAKE],
-[AC_PREREQ([2.65])dnl
-dnl Autoconf wants to disallow AM_ names.  We explicitly allow
-dnl the ones we care about.
-m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
-AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
-AC_REQUIRE([AC_PROG_INSTALL])dnl
-if test "`cd $srcdir && pwd`" != "`pwd`"; then
-  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
-  # is not polluted with repeated "-I."
-  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
-  # test to see if srcdir already configured
-  if test -f $srcdir/config.status; then
-    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
-  fi
-fi
-
-# test whether we have cygpath
-if test -z "$CYGPATH_W"; then
-  if (cygpath --version) >/dev/null 2>/dev/null; then
-    CYGPATH_W='cygpath -w'
-  else
-    CYGPATH_W=echo
-  fi
-fi
-AC_SUBST([CYGPATH_W])
-
-# Define the identity of the package.
-dnl Distinguish between old-style and new-style calls.
-m4_ifval([$2],
-[AC_DIAGNOSE([obsolete],
-             [$0: two- and three-arguments forms are deprecated.])
-m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
- AC_SUBST([PACKAGE], [$1])dnl
- AC_SUBST([VERSION], [$2])],
-[_AM_SET_OPTIONS([$1])dnl
-dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
-m4_if(
-  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
-  [ok:ok],,
-  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
-
-_AM_IF_OPTION([no-define],,
-[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
- AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
-
-# Some tools Automake needs.
-AC_REQUIRE([AM_SANITY_CHECK])dnl
-AC_REQUIRE([AC_ARG_PROGRAM])dnl
-AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
-AM_MISSING_PROG([AUTOCONF], [autoconf])
-AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
-AM_MISSING_PROG([AUTOHEADER], [autoheader])
-AM_MISSING_PROG([MAKEINFO], [makeinfo])
-AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
-AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
-AC_REQUIRE([AC_PROG_MKDIR_P])dnl
-# For better backward compatibility.  To be removed once Automake 1.9.x
-# dies out for good.  For more background, see:
-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
-AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
-# We need awk for the "check" target (and possibly the TAP driver).  The
-# system "awk" is bad on some platforms.
-AC_REQUIRE([AC_PROG_AWK])dnl
-AC_REQUIRE([AC_PROG_MAKE_SET])dnl
-AC_REQUIRE([AM_SET_LEADING_DOT])dnl
-_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
-	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
-			     [_AM_PROG_TAR([v7])])])
-_AM_IF_OPTION([no-dependencies],,
-[AC_PROVIDE_IFELSE([AC_PROG_CC],
-		  [_AM_DEPENDENCIES([CC])],
-		  [m4_define([AC_PROG_CC],
-			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
-AC_PROVIDE_IFELSE([AC_PROG_CXX],
-		  [_AM_DEPENDENCIES([CXX])],
-		  [m4_define([AC_PROG_CXX],
-			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
-AC_PROVIDE_IFELSE([AC_PROG_OBJC],
-		  [_AM_DEPENDENCIES([OBJC])],
-		  [m4_define([AC_PROG_OBJC],
-			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
-AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
-		  [_AM_DEPENDENCIES([OBJCXX])],
-		  [m4_define([AC_PROG_OBJCXX],
-			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
-])
-AC_REQUIRE([AM_SILENT_RULES])dnl
-dnl The testsuite driver may need to know about EXEEXT, so add the
-dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
-dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
-AC_CONFIG_COMMANDS_PRE(dnl
-[m4_provide_if([_AM_COMPILER_EXEEXT],
-  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
-
-# POSIX will say in a future version that running "rm -f" with no argument
-# is OK; and we want to be able to make that assumption in our Makefile
-# recipes.  So use an aggressive probe to check that the usage we want is
-# actually supported "in the wild" to an acceptable degree.
-# See automake bug#10828.
-# To make any issue more visible, cause the running configure to be aborted
-# by default if the 'rm' program in use doesn't match our expectations; the
-# user can still override this though.
-if rm -f && rm -fr && rm -rf; then : OK; else
-  cat >&2 <<'END'
-Oops!
-
-Your 'rm' program seems unable to run without file operands specified
-on the command line, even when the '-f' option is present.  This is contrary
-to the behaviour of most rm programs out there, and not conforming with
-the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
-
-Please tell bug-automake@gnu.org about your system, including the value
-of your $PATH and any error possibly output before this message.  This
-can help us improve future automake versions.
-
-END
-  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
-    echo 'Configuration will proceed anyway, since you have set the' >&2
-    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
-    echo >&2
-  else
-    cat >&2 <<'END'
-Aborting the configuration process, to ensure you take notice of the issue.
-
-You can download and install GNU coreutils to get an 'rm' implementation
-that behaves properly: <http://www.gnu.org/software/coreutils/>.
-
-If you want to complete the configuration process using your problematic
-'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
-to "yes", and re-run configure.
-
-END
-    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
-  fi
-fi
-dnl The trailing newline in this macro's definition is deliberate, for
-dnl backward compatibility and to allow trailing 'dnl'-style comments
-dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
-])
-
-dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
-dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
-dnl mangled by Autoconf and run in a shell conditional statement.
-m4_define([_AC_COMPILER_EXEEXT],
-m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
-
-# When config.status generates a header, we must update the stamp-h file.
-# This file resides in the same directory as the config header
-# that is generated.  The stamp files are numbered to have different names.
-
-# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
-# loop where config.status creates the headers, so we can generate
-# our stamp files there.
-AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
-[# Compute $1's index in $config_headers.
-_am_arg=$1
-_am_stamp_count=1
-for _am_header in $config_headers :; do
-  case $_am_header in
-    $_am_arg | $_am_arg:* )
-      break ;;
-    * )
-      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
-  esac
-done
-echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
-
-# 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_INSTALL_SH
-# ------------------
-# Define $install_sh.
-AC_DEFUN([AM_PROG_INSTALL_SH],
-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
-if test x"${install_sh+set}" != xset; then
-  case $am_aux_dir in
-  *\ * | *\	*)
-    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
-  *)
-    install_sh="\${SHELL} $am_aux_dir/install-sh"
-  esac
-fi
-AC_SUBST([install_sh])])
-
-# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
-# From Jim Meyering
-
-# 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.
-
-# AM_MAINTAINER_MODE([DEFAULT-MODE])
-# ----------------------------------
-# Control maintainer-specific portions of Makefiles.
-# Default is to disable them, unless 'enable' is passed literally.
-# For symmetry, 'disable' may be passed as well.  Anyway, the user
-# can override the default with the --enable/--disable switch.
-AC_DEFUN([AM_MAINTAINER_MODE],
-[m4_case(m4_default([$1], [disable]),
-       [enable], [m4_define([am_maintainer_other], [disable])],
-       [disable], [m4_define([am_maintainer_other], [enable])],
-       [m4_define([am_maintainer_other], [enable])
-        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
-AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
-  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
-  AC_ARG_ENABLE([maintainer-mode],
-    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
-      am_maintainer_other[ make rules and dependencies not useful
-      (and sometimes confusing) to the casual installer])],
-    [USE_MAINTAINER_MODE=$enableval],
-    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
-  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
-  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
-  MAINT=$MAINTAINER_MODE_TRUE
-  AC_SUBST([MAINT])dnl
-]
-)
-
-# 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
-])
-
-# Fake the existence of programs that GNU maintainers use.  -*- 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_MISSING_PROG(NAME, PROGRAM)
-# ------------------------------
-AC_DEFUN([AM_MISSING_PROG],
-[AC_REQUIRE([AM_MISSING_HAS_RUN])
-$1=${$1-"${am_missing_run}$2"}
-AC_SUBST($1)])
-
-# AM_MISSING_HAS_RUN
-# ------------------
-# Define MISSING if not defined so far and test if it is modern enough.
-# If it is, set am_missing_run to use it, otherwise, to nothing.
-AC_DEFUN([AM_MISSING_HAS_RUN],
-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
-AC_REQUIRE_AUX_FILE([missing])dnl
-if test x"${MISSING+set}" != xset; then
-  case $am_aux_dir in
-  *\ * | *\	*)
-    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
-  *)
-    MISSING="\${SHELL} $am_aux_dir/missing" ;;
-  esac
-fi
-# Use eval to expand $SHELL
-if eval "$MISSING --is-lightweight"; then
-  am_missing_run="$MISSING "
-else
-  am_missing_run=
-  AC_MSG_WARN(['missing' script is too old or missing])
-fi
-])
-
-# 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])])
-
-# Check to make sure that the build environment is sane.    -*- 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.
-
-# AM_SANITY_CHECK
-# ---------------
-AC_DEFUN([AM_SANITY_CHECK],
-[AC_MSG_CHECKING([whether build environment is sane])
-# Reject unsafe characters in $srcdir or the absolute working directory
-# name.  Accept space and tab only in the latter.
-am_lf='
-'
-case `pwd` in
-  *[[\\\"\#\$\&\'\`$am_lf]]*)
-    AC_MSG_ERROR([unsafe absolute working directory name]);;
-esac
-case $srcdir in
-  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
-    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
-esac
-
-# Do 'set' in a subshell so we don't clobber the current shell's
-# arguments.  Must try -L first in case configure is actually a
-# symlink; some systems play weird games with the mod time of symlinks
-# (eg FreeBSD returns the mod time of the symlink's containing
-# directory).
-if (
-   am_has_slept=no
-   for am_try in 1 2; do
-     echo "timestamp, slept: $am_has_slept" > conftest.file
-     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
-     if test "$[*]" = "X"; then
-	# -L didn't work.
-	set X `ls -t "$srcdir/configure" conftest.file`
-     fi
-     if test "$[*]" != "X $srcdir/configure conftest.file" \
-	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
-
-	# If neither matched, then we have a broken ls.  This can happen
-	# if, for instance, CONFIG_SHELL is bash and it inherits a
-	# broken ls alias from the environment.  This has actually
-	# happened.  Such a system could not be considered "sane".
-	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
-  alias in your environment])
-     fi
-     if test "$[2]" = conftest.file || test $am_try -eq 2; then
-       break
-     fi
-     # Just in case.
-     sleep 1
-     am_has_slept=yes
-   done
-   test "$[2]" = conftest.file
-   )
-then
-   # Ok.
-   :
-else
-   AC_MSG_ERROR([newly created file is older than distributed files!
-Check your system clock])
-fi
-AC_MSG_RESULT([yes])
-# If we didn't sleep, we still need to ensure time stamps of config.status and
-# generated files are strictly newer.
-am_sleep_pid=
-if grep 'slept: no' conftest.file >/dev/null 2>&1; then
-  ( sleep 1 ) &
-  am_sleep_pid=$!
-fi
-AC_CONFIG_COMMANDS_PRE(
-  [AC_MSG_CHECKING([that generated files are newer than configure])
-   if test -n "$am_sleep_pid"; then
-     # Hide warnings about reused PIDs.
-     wait $am_sleep_pid 2>/dev/null
-   fi
-   AC_MSG_RESULT([done])])
-rm -f conftest.file
-])
-
-# Copyright (C) 2009-2017 Free Software Foundation, Inc.
-#
-# This file is free software; [...]

[diff truncated at 100000 bytes]


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-26  9:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-26  9:11 [newlib-cygwin] newlib: libc: merge machine/ configure scripts up a level Michael Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).