mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-26 00:57:22 +08:00
a100e80fc9
The newlib & libgloss dirs are already generated using autoconf-2.69. To avoid merging new code and/or accidental regeneration using diff versions, leverage config/override.m4 to pin to 2.69 exactly. This matches what gcc/binutils/gdb are already doing. The README file already says to use autoconf-2.69. To accomplish this, it's just as simple as adding -I flags to the top-level config/ dir when running aclocal. This is because the override.m4 file overrides AC_INIT to first require the specific autoconf version before calling the real AC_INIT.
54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
dnl This is the newlib/libc/sys/linux configure.in file.
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
AC_INIT([newlib],[NEWLIB_VERSION])
|
|
AC_CONFIG_SRCDIR([linux.c])
|
|
|
|
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
|
|
AC_CONFIG_AUX_DIR(../../../..)
|
|
|
|
NEWLIB_CONFIGURE(../../..)
|
|
|
|
dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and
|
|
dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
|
|
dnl line of the macro which fail because appropriate LDFLAGS are not set.
|
|
_LT_DECL_SED
|
|
_LT_PROG_ECHO_BACKSLASH
|
|
AC_PROG_AWK
|
|
if test "${use_libtool}" = "yes"; then
|
|
AC_LIBTOOL_WIN32_DLL
|
|
AM_PROG_LIBTOOL
|
|
fi
|
|
|
|
AC_CONFIG_SUBDIRS(machine)
|
|
|
|
if test "${newlib_multithread}" = "yes"; then
|
|
AC_CONFIG_SUBDIRS(linuxthreads)
|
|
fi
|
|
|
|
LINUX_MACH_LIB=
|
|
if test -n "${machine_dir}"; then
|
|
if test "${use_libtool}" = "yes"; then
|
|
LINUX_MACH_LIB=machine/${machine_dir}/liblinux${machine_dir}.${aext}
|
|
else
|
|
LINUX_MACH_LIB=machine/lib.${aext}
|
|
fi
|
|
fi
|
|
AC_SUBST(LINUX_MACH_LIB)
|
|
|
|
EXTRA_SUBDIRS=
|
|
EXTRA_SUBLIBS=
|
|
|
|
if test "x${newlib_elix_level}" = "x1"; then
|
|
EXTRA_SUBDIRS=linuxthreads net
|
|
else
|
|
EXTRA_SUBDIRS="linuxthreads net intl iconv dl"
|
|
EXTRA_SUBLIBS="net/libnet.la intl/libintl.la iconv/libiconv.la dl/libdl.la"
|
|
fi
|
|
|
|
AC_SUBST(EXTRA_SUBDIRS)
|
|
AC_SUBST(EXTRA_SUBLIBS)
|
|
|
|
AC_CONFIG_FILES([Makefile intl/Makefile net/Makefile iconv/Makefile dl/Makefile cmath/Makefile argp/Makefile])
|
|
AC_OUTPUT
|