newlib-cygwin/libgloss/configure.ac

384 lines
9.3 KiB
Plaintext
Raw Normal View History

2000-03-18 06:48:54 +08:00
dnl Process this file with autoconf to produce a configure script.
AC_INIT([libgloss],[LIBGLOSS_VERSION])
AC_CONFIG_HEADER(config.h)
2000-03-18 06:48:54 +08:00
if test "${enable_shared}" = "yes" ; then
AC_MSG_WARN([Shared libraries not supported for cross compiling, ignored])
2000-03-18 06:48:54 +08:00
fi
AC_CONFIG_AUX_DIR(..)
2000-03-18 06:48:54 +08:00
dnl Support --disable-newlib-supplied-syscalls
dnl NB: This is kept in sync with the newlib/acinclude.m4 option code.
AC_ARG_ENABLE(newlib-supplied-syscalls,
[ --disable-newlib-supplied-syscalls disable newlib from supplying syscalls],
[case "${enableval}" in
yes) newlib_may_supply_syscalls=yes ;;
no) newlib_may_supply_syscalls=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for newlib-supplied-syscalls option) ;;
esac], [newlib_may_supply_syscalls=yes])dnl
AM_CONDITIONAL(MAY_SUPPLY_SYSCALLS, test x[$]{newlib_may_supply_syscalls} = xyes)
2000-03-18 06:48:54 +08:00
AC_PROG_INSTALL
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([foreign no-dist no-define subdir-objects 1.15.1])
AM_MAINTAINER_MODE
AM_SILENT_RULES(yes)
2000-03-18 06:48:54 +08:00
if test -z "${with_multisubdir}"; then
have_multisubdir=no
else
have_multisubdir=yes
2000-03-18 06:48:54 +08:00
fi
AM_CONDITIONAL(HAVE_DOC, test x$have_multisubdir = xno)
AM_CONDITIONAL(HAVE_MULTISUBDIR, test x$have_multisubdir = xyes)
2000-03-18 06:48:54 +08:00
AC_NO_EXECUTABLES
dnl indicates whether to run configure within the testsuite subdirectory
config_testsuite=true
dnl indicates whether to run configure within the libnosys subdirectory
config_libnosys=true
host_makefile_frag=${srcdir}/config/default.mh
target_makefile_frag=${srcdir}/config/default.mt
2000-03-18 06:48:54 +08:00
case "${target}" in
aarch64*-*-*)
config_aarch64=true
config_testsuite=true
;;
arc*-*-*)
config_arc=true
;;
csky*-*-*)
config_csky=true
;;
epiphany-*-*)
AC_CONFIG_FILES([epiphany/Makefile])
subdirs="$subdirs epiphany"
config_testsuite=true
;;
i[[3456]]86-*-elf* | i[[3456]]86-*-coff*)
config_i386=true
2000-03-18 06:48:54 +08:00
;;
m32r-*-*)
config_m32r=true
2000-03-18 06:48:54 +08:00
;;
m68hc11-*-* | m6811-*-* | m68hc12-*-* | m6812-*-*)
AC_CONFIG_FILES([m68hc11/Makefile])
subdirs="$subdirs m68hc11"
;;
nds32*-*-*)
config_nds32=true
;;
fido-*-* | m68*-*-*)
AC_CONFIG_FILES([m68k/Makefile])
subdirs="$subdirs m68k"
2000-03-18 06:48:54 +08:00
;;
hppa*-*-pro*)
AC_CONFIG_FILES([pa/Makefile])
subdirs="$subdirs pa"
2000-03-18 06:48:54 +08:00
;;
i960-*-coff)
config_i960=true
2000-03-18 06:48:54 +08:00
;;
2011-12-15 Konrad Eisele <konrad@gaisler.com> * configure.in: Add SPARC LEON support. * configure: Regenerated. * sparc_leon/asm-leon/amba.h, sparc_leon/asm-leon/asmmacro.h, sparc_leon/asm-leon/clock.h, sparc_leon/asm-leon/contextswitch.h, sparc_leon/asm-leon/elfmacro.h, sparc_leon/asm-leon/head.h, sparc_leon/asm-leon/irq.h, sparc_leon/asm-leon/jiffies.h, sparc_leon/asm-leon/lambapp.h, sparc_leon/asm-leon/lambapp_devs.h, sparc_leon/asm-leon/leon.h, sparc_leon/asm-leon/leon3.h, sparc_leon/asm-leon/leonbare_debug.h, sparc_leon/asm-leon/leonbare_kernel.h, sparc_leon/asm-leon/leonbare_kernel_queue.h, sparc_leon/asm-leon/leoncompat.h, sparc_leon/asm-leon/leondbg.h, sparc_leon/asm-leon/leonstack.h, sparc_leon/asm-leon/liblocks.h, sparc_leon/asm-leon/linkage.h, sparc_leon/asm-leon/param.h, sparc_leon/asm-leon/queue.h, sparc_leon/asm-leon/spinlock.h, sparc_leon/asm-leon/stack.h, sparc_leon/asm-leon/time.h, sparc_leon/asm-leon/timer.h, sparc_leon/asm-leon/types.h, sparc_leon/asm-leon/winmacros.h: New file. * sparc_leon/Makefile.in, sparc_leon/_exit.c, sparc_leon/amba.c, sparc_leon/amba_dbg.c, sparc_leon/amba_driver.c, sparc_leon/amba_scan.c, sparc_leon/asm-leon, sparc_leon/bdinit.S, sparc_leon/busscan.S, sparc_leon/cacheA.S, sparc_leon/catch_interrupt.c, sparc_leon/catch_interrupt_mvt.c, sparc_leon/catch_interrupt_pending.c, sparc_leon/catch_interrupt_svt.c, sparc_leon/configure.in, sparc_leon/console.c, sparc_leon/console_dbg.c, sparc_leon/console_init.c, sparc_leon/contextswitch.c, sparc_leon/contextswitch_asm.S, sparc_leon/crt0.S, sparc_leon/crti.S, sparc_leon/crtn.S, sparc_leon/etrap.S, sparc_leon/etrap_fast.S, sparc_leon/fpu.S, sparc_leon/gettimeofday.c, sparc_leon/initcalls.c, sparc_leon/io.c, sparc_leon/irqinstall.S, sparc_leon/irqtrap.S, sparc_leon/irqtrap_fast.S, sparc_leon/jiffies.c, sparc_leon/kernel.c, sparc_leon/kernel_context.S, sparc_leon/kernel_debug.c, sparc_leon/kernel_debug_var.c, sparc_leon/kernel_mm.c, sparc_leon/kernel_mutex.c, sparc_leon/kernel_queue.c, sparc_leon/kernel_sched.c, sparc_leon/kernel_thread.c, sparc_leon/lcpuinit.S, sparc_leon/locore.S, sparc_leon/locore_atexit.c, sparc_leon/locore_clean.S, sparc_leon/locore_mvt.S, sparc_leon/locore_mvt_reset.S, sparc_leon/locore_svt.S, sparc_leon/locore_svt_reset.S, sparc_leon/locore_svtdisp.S, sparc_leon/locore_var.S, sparc_leon/locore_var_svt.S, sparc_leon/mmu_asm.S, sparc_leon/mutex.c, sparc_leon/nocache.S, sparc_leon/pnpinit.c, sparc_leon/pnpinit_malloc.c, sparc_leon/pnpinit_simple.c, sparc_leon/regwin.S, sparc_leon/regwin_patch.c, sparc_leon/regwin_slow.S, sparc_leon/regwinflush.S, sparc_leon/rtc.c, sparc_leon/rtrap.S, sparc_leon/rtrap_fast.S, sparc_leon/stop.S, sparc_leon/timer.c, sparc_leon/times.c: New file * sparc_leon/configure: Regenerate
2011-12-16 06:58:40 +08:00
sparc-*leon*-elf* | sparc-*leon*-none*)
AC_CONFIG_FILES([sparc_leon/Makefile])
subdirs="$subdirs sparc_leon"
;;
sparclet-*-aout* | sparc-*-elf* | sparc64-*-elf* | sparc86x-*-* | sparclite-*-*)
AC_CONFIG_FILES([sparc/Makefile])
subdirs="$subdirs sparc"
2000-03-18 06:48:54 +08:00
;;
sh*-*-pe | mips*-*-pe | *arm*-wince-pe)
config_wince=true
2000-03-18 06:48:54 +08:00
;;
mips*-*-*)
AC_CONFIG_FILES([mips/Makefile])
subdirs="$subdirs mips"
target_makefile_frag=${srcdir}/config/mips.mt
2000-03-18 06:48:54 +08:00
;;
riscv*-*-*)
config_riscv=true
;;
2000-03-18 06:48:54 +08:00
powerpc-*-*|powerpcle-*-*)
AC_CONFIG_FILES([rs6000/Makefile])
subdirs="$subdirs rs6000"
host_makefile_frag=${srcdir}/config/ppc.mh
2000-03-18 06:48:54 +08:00
;;
mn10200-*-*)
config_mn10200=true
2000-03-18 06:48:54 +08:00
;;
mn10300-*-*)
config_mn10300=true
2000-03-18 06:48:54 +08:00
;;
bfin-*-*)
config_bfin=true
;;
cr16-*-*)
AC_CONFIG_FILES([cr16/Makefile])
subdirs="$subdirs cr16"
;;
cris-*-* | crisv32-*-*)
AC_CONFIG_FILES([cris/Makefile])
subdirs="$subdirs cris"
;;
crx-*-*)
AC_CONFIG_FILES([crx/Makefile])
subdirs="$subdirs crx"
;;
2000-03-18 06:48:54 +08:00
d30v-*-*)
config_d30v=true
2000-03-18 06:48:54 +08:00
;;
fr30-*-*)
AC_CONFIG_FILES([fr30/Makefile])
subdirs="$subdirs fr30"
2000-03-18 06:48:54 +08:00
;;
frv*-*-*)
config_frv=true
2002-06-19 05:41:22 +08:00
;;
2015-09-05 01:07:00 +08:00
ft32*-*-*)
AC_CONFIG_FILES([ft32/Makefile])
subdirs="$subdirs ft32"
2015-09-05 01:07:00 +08:00
;;
lm32*-*-*)
config_lm32=true
;;
2000-03-18 06:48:54 +08:00
mcore-*-*)
config_mcore=true
2000-03-18 06:48:54 +08:00
;;
mep-*-*)
AC_CONFIG_FILES([mep/Makefile])
subdirs="$subdirs mep"
;;
moxie-*-*)
config_moxie=true
;;
microblaze*-*-*)
AC_CONFIG_FILES([microblaze/Makefile])
subdirs="$subdirs microblaze"
;;
Rename ms1 to mt, part 1 * config.sub: Replace ms1 arch with mt. Allow ms1 as alias. * configure.in: Replace ms1 arch with mt. * configure: Rebuilt. * bfd/Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace ms1 with mt. (cpu_mt.lo, elf32-mt.lo): Update target and dependency names. * bfd/Makefile.in: Rebuilt. * bfd/config.bfd: Replace ms1 arch with mt. * bfd/configure.in: Replace ms1 files with mt files. * bfd/configure: Rebuilt. * bfd/elf32-mt.c: Renamed from elf32-ms1.c. Update include files. * bfd/cpu-mt.c: Renamed from cpu-ms1.c. * cpu/mt.cpu: Rename from ms1.cpu. * cpu/mt.opc: Rename from ms1.opc. * binutils/Makefile.am: Replace ms1 files with mt files. * binutils/Makefile.in: Rebuilt. * binutils/readelf.c (elf/mt.h): Adjust #include. * gas/configure.in: Replace ms1 arch with mt arch. * gas/configure: Rebuilt. * gas/configure.tgt: Replace ms1 arch with mt arch. * gas/config/tc-mt.c: Renamed from tc-ms1.c: Update include files. * gas/doc/Makefile.am (CPU_DOCS): Replace ms1 files with mt files. * gas/doc/Makefile.in: Rebuilt. * gas/testsuite/gas/mt: Renamed from ms1 dir. Update file names as needed. * gas/testsuite/gas/mt/errors.exp: Replace ms1 arch with mt arch. * gas/testsuite/gas/mt/mt.exp: Replace ms1 arch with mt arch. * gas/testsuite/gas/mt/relocs.exp: Replace ms1 arch with mt arch. * gdb/configure.tgt: Replace ms1 arch with mt arch. * gdb/config/mt: Renamed from ms1 dir. Update file names as needed. * gdb/config/mt/mt.mt (TDEPFILES): Replace ms1 file with mt file. * include/elf/mt.h: Renamed from ms1.h * ld/Makefile.am (ALL_EMULATIONS): Replace ms1 files with mt files. (eelf32mt.c): Update target name and dependencies. * ld/Makefile.in: Rebuilt. * ld/configure.tgt: Replace ms1 arch with mt arch. * ld/emulparams/elf32mt.sh: Renamed from elf32ms1.sh. Update comment. * libgloss/configure.in: Replace ms1 arch with mt arch. * libgloss/configure: Rebuilt. * libgloss/mt: Renamed from ms1 dir. * newlib/configure.host: Replace ms1 arch with mt arch. * newlib/libc/machine/mt: Renamed from ms1 dir. * opcodes/Makefile.am (CLEANFILES, CGEN_CPUS, MT_DEPS): Replace ms1 with mt. * opcodes/Makefile.in: Rebuilt. * opcodes/configure.in: Replace ms1 files with mt files. * opcodes/configure: Rebuilt. * sid/component/cgen-cpu/mt: Renamed from ms1 dir. Update file names as appropriate. * sid/component/cgen-cpu/mt/Makefile.am: Replace ms1 files with mt files. * sid/component/cgen-cpu/mt/Makefile.in: Rebuilt.
2005-12-12 19:25:07 +08:00
mt-*-*)
AC_CONFIG_FILES([mt/Makefile])
subdirs="$subdirs mt"
;;
v850*-*-*)
config_v850=true
;;
visium-*-*)
AC_CONFIG_FILES([visium/Makefile])
subdirs="$subdirs visium"
config_testsuite=false
;;
xc16x-*-*)
AC_CONFIG_FILES([xc16x/Makefile])
subdirs="$subdirs xc16x"
target_makefile_frag=${srcdir}/config/xc16x.mt
;;
In newlib/: 2001-12-22 Geoffrey Keating <geoffk@redhat.com> Catherine Moore <clm@redhat.com> Richard Henderson <rth@redhat.com> Corinna Vinschen <vinschen@redhat.com> * configure.host: Add support for xstormy16. * libc/include/machine/ieeefp.h: Add support for xstormy16. * libc/include/machine/setjmp.h: Add support for xstormy16. * libc/include/sys/config.h: Add support for xstormy16. * libc/machine/xstormy16/Makefile.am: New file. * libc/machine/xstormy16/Makefile.in: New file. * libc/machine/xstormy16/aclocal.m4: New file. * libc/machine/xstormy16/configure: New file. * libc/machine/xstormy16/configure.in: New file. * libc/machine/xstormy16/setjmp.S: New file. In libgloss/: 2001-12-22 Geoffrey Keating <geoffk@redhat.com> Mark Salter <msalter@redhat.com> Catherine Moore <clm@redhat.com> Richard Henderson <rth@redhat.com> * configure.in: Add xstormy16. * libnosys/configure.in: Add xstormy16. * configure: Regenerated. * libnosys/configure: Regenerated. * xstormy16/Makefile.in: New file. * xstormy16/close.c: New file. * xstormy16/configure: New file. * xstormy16/configure.in: New file. * xstormy16/crt0.s: New file. * xstormy16/crt0_stub.s: New file. * xstormy16/crti.s: New file. * xstormy16/crtn.s: New file. * xstormy16/eva_app.c: New file. * xstormy16/eva_app.ld: New file. * xstormy16/eva_stub.ld: New file. * xstormy16/fstat.c: New file. * xstormy16/getpid.c: New file. * xstormy16/kill.c: New file. * xstormy16/lseek.c: New file. * xstormy16/open.c: New file. * xstormy16/sbrk.c: New file. * xstormy16/sim_high.ld: New file. * xstormy16/stat.c: New file. * xstormy16/syscalls.S: New file. * xstormy16/syscalls.m4: New file. * xstormy16/unlink.c: New file. * xstormy16/xstormy16_stub.c: New file.
2001-12-23 06:47:58 +08:00
xstormy16-*-*)
config_xstormy16=true
In newlib/: 2001-12-22 Geoffrey Keating <geoffk@redhat.com> Catherine Moore <clm@redhat.com> Richard Henderson <rth@redhat.com> Corinna Vinschen <vinschen@redhat.com> * configure.host: Add support for xstormy16. * libc/include/machine/ieeefp.h: Add support for xstormy16. * libc/include/machine/setjmp.h: Add support for xstormy16. * libc/include/sys/config.h: Add support for xstormy16. * libc/machine/xstormy16/Makefile.am: New file. * libc/machine/xstormy16/Makefile.in: New file. * libc/machine/xstormy16/aclocal.m4: New file. * libc/machine/xstormy16/configure: New file. * libc/machine/xstormy16/configure.in: New file. * libc/machine/xstormy16/setjmp.S: New file. In libgloss/: 2001-12-22 Geoffrey Keating <geoffk@redhat.com> Mark Salter <msalter@redhat.com> Catherine Moore <clm@redhat.com> Richard Henderson <rth@redhat.com> * configure.in: Add xstormy16. * libnosys/configure.in: Add xstormy16. * configure: Regenerated. * libnosys/configure: Regenerated. * xstormy16/Makefile.in: New file. * xstormy16/close.c: New file. * xstormy16/configure: New file. * xstormy16/configure.in: New file. * xstormy16/crt0.s: New file. * xstormy16/crt0_stub.s: New file. * xstormy16/crti.s: New file. * xstormy16/crtn.s: New file. * xstormy16/eva_app.c: New file. * xstormy16/eva_app.ld: New file. * xstormy16/eva_stub.ld: New file. * xstormy16/fstat.c: New file. * xstormy16/getpid.c: New file. * xstormy16/kill.c: New file. * xstormy16/lseek.c: New file. * xstormy16/open.c: New file. * xstormy16/sbrk.c: New file. * xstormy16/sim_high.ld: New file. * xstormy16/stat.c: New file. * xstormy16/syscalls.S: New file. * xstormy16/syscalls.m4: New file. * xstormy16/unlink.c: New file. * xstormy16/xstormy16_stub.c: New file.
2001-12-23 06:47:58 +08:00
;;
xtensa-*-*)
config_xtensa=true
;;
m32c-*-*)
AC_CONFIG_FILES([m32c/Makefile])
subdirs="$subdirs m32c"
;;
msp430-*-elf*)
config_msp430=true
config_libnosys=false
;;
rl78*-*-elf)
config_rl78=true
;;
rx*-*-elf)
config_rx=true
;;
arm*-*-elf | arm*-*-coff | arm*-*-*)
config_arm=true
2002-01-08 02:12:32 +08:00
;;
spu-*-elf)
AC_CONFIG_FILES([spu/Makefile])
subdirs="$subdirs spu"
host_makefile_frag=${srcdir}/config/ppc.mh
config_testsuite=false
config_libnosys=false
;;
tic6x-*-*)
AC_CONFIG_FILES([tic6x/Makefile])
subdirs="$subdirs tic6x"
config_testsuite=false
;;
2004-10-28 16:18:18 +08:00
iq2000-*-*)
config_iq2000=true
;;
or1k-*-* | or1knd-*-* )
AC_CONFIG_FILES([or1k/Makefile])
subdirs="$subdirs or1k"
;;
pru-*-*)
AC_CONFIG_FILES([pru/Makefile])
subdirs="$subdirs pru"
;;
nios2-*-*)
config_nios2=true
;;
2000-03-18 06:48:54 +08:00
esac
AC_SUBST(subdirs)
2000-03-18 06:48:54 +08:00
dnl These subdirs have converted to non-recursive make. Hopefully someday all
dnl the ports above will too!
m4_foreach_w([SUBDIR], [
aarch64 arc arm bfin csky d30v frv i386 i960 iq2000 libnosys lm32
m32r mcore mn10200 mn10300 moxie msp430
nds32 nios2 riscv rl78 rx v850 wince xstormy16 xtensa
], [dnl
AM_CONDITIONAL([CONFIG_]m4_toupper(SUBDIR), [test x$config_]SUBDIR = xtrue)
])
dnl For now, don't bother configuring testsuite
dnl
dnl if test "${config_testsuite}" = "true";
dnl then AC_CONFIG_SUBDIRS([testsuite])
dnl fi
AC_PROG_CC
AM_PROG_AS
AM_PROG_AR
2000-03-18 06:48:54 +08:00
LD=${LD-ld}
AC_SUBST(LD)
AC_PROG_RANLIB
AC_CHECK_TOOL(OBJCOPY, objcopy, :)
AC_CHECK_TOOL(OBJDUMP, objdump, :)
2000-03-18 06:48:54 +08:00
AC_DEFINE(HAVE_GNU_LD, 1, [Using GNU LD])
AC_CACHE_CHECK([if target is ELF], libc_cv_is_elf, [dnl
AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
[[#ifndef __ELF__
# error "not ELF"
#endif
]])], [libc_cv_is_elf=yes], [libc_cv_is_elf=no])
])
if test "x${libc_cv_is_elf}" = "xyes"; then
AC_DEFINE(HAVE_ELF, 1, [Using ELF format])
fi
AC_CACHE_CHECK([for .previous assembler directive],
libc_cv_asm_previous_directive, [dnl
libc_cv_asm_previous_directive=no
cat > conftest.s <<EOF
.section foo_section
.previous
EOF
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
libc_cv_asm_previous_directive=yes
fi
rm -f conftest*])
if test "x${libc_cv_asm_previous_directive}" = "xyes"; then
AC_DEFINE(HAVE_ASM_PREVIOUS_DIRECTIVE, 1, [.previous directive allowed])
fi
AC_CACHE_CHECK([for .popsection assembler directive],
libc_cv_asm_popsection_directive, [dnl
libc_cv_asm_popsection_directive=no
cat > conftest.s <<EOF
.pushsection foo_section
.popsection
EOF
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
libc_cv_asm_popsection_directive=yes
fi
rm -f conftest*])
if test "x${libc_cv_asm_popsection_directive}" = "xyes"; then
AC_DEFINE(HAVE_ASM_POPSECTION_DIRECTIVE, 1, [.pushsection/.popsection directives allowed])
fi
AC_CACHE_CHECK([for section attributes],
libc_cv_section_attributes, [dnl
libc_cv_section_attributes=no
cat > conftest.c <<EOF
int secttest __attribute__ ((section (".gnu.warning.secttest"))) = 10;
int main() {}
EOF
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.c 1>&AC_FD_CC); then
libc_cv_section_attributes=yes
fi
rm -f conftest*])
if test "x${libc_cv_section_attributes}" = "xyes"; then
AC_DEFINE(HAVE_SECTION_ATTRIBUTES, 1, [support for section attributes])
fi
AC_CACHE_CHECK([for symbol prefix], libc_cv_symbol_prefix, [dnl
cat > conftest.c <<\EOF
foo () { }
EOF
dnl
libc_cv_symbol_prefix=''
if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null]); then
libc_cv_symbol_prefix='$'
else
if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "_foo" > /dev/null]); then
libc_cv_symbol_prefix=_
fi
fi
rm -f conftest* ])
AC_DEFINE_UNQUOTED(__SYMBOL_PREFIX, "$libc_cv_symbol_prefix", [symbol prefix])
m4_include([aarch64/acinclude.m4])
m4_include([arm/acinclude.m4])
m4_include([i386/acinclude.m4])
m4_include([libnosys/acinclude.m4])
m4_include([m68k/acinclude.m4])
m4_include([mcore/acinclude.m4])
m4_include([mips/acinclude.m4])
m4_include([mn10300/acinclude.m4])
m4_include([moxie/acinclude.m4])
m4_include([sparc/acinclude.m4])
m4_include([xtensa/acinclude.m4])
AC_CACHE_CHECK([for compiler search settings], libc_cv_compiler_isystem, [dnl
for subdir in include include-fixed; do
AS_IF([dir=`$CC -print-file-name=$subdir`], [dnl
AS_IF([test -n "$dir"], [dnl
libc_cv_compiler_isystem="$libc_cv_compiler_isystem -isystem $dir"
])
])
done
])
CC="$CC -nostdinc $libc_cv_compiler_isystem"
2000-03-18 06:48:54 +08:00
dnl We have to assign the same value to other variables because autoconf
dnl doesn't provide a mechanism to substitute a replacement keyword with
dnl arbitrary data or pathnames.
dnl
host_makefile_frag_path=$host_makefile_frag
AC_SUBST(host_makefile_frag_path)
AC_SUBST_FILE(host_makefile_frag)
target_makefile_frag_path=$target_makefile_frag
AC_SUBST(target_makefile_frag_path)
AC_SUBST_FILE(target_makefile_frag)
2000-03-18 06:48:54 +08:00
dnl AM_ENABLE_MULTILIB only processes the top-level Makefile, but we want the
dnl multilib settings to propagate to all sub-Makefiles that we recurse into
dnl too. This can go away if we ever get rid of sub-Makefiles and only use
dnl Automake + makefile include fragments.
AC_OUTPUT_COMMANDS([
for subdir in $subdirs; do
case " $CONFIG_FILES " in
*" $subdir/Makefile "*)
ac_file=$subdir/Makefile . ${multi_basedir}/config-ml.in
;;
esac
done], [subdirs="$subdirs"])
AM_ENABLE_MULTILIB(, ..)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT