4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-11 11:39:31 +08:00
Mike Frysinger 6746e06043 newlib: avoid duplicate awk checks
Since AM_INIT_AUTOMAKE calls AC_PROG_AWK, and some configure.ac
scripts call it too, we end up testing for awk multiple times.  If
we change NEWLIB_CONFIGURE to require the macro instead, then it
makes sure it's always expanded, but only once.

While we're here, do the same thing with AC_PROG_INSTALL since it
is also called by AM_INIT_AUTOMAKE, although it doesn't currently
result in duplicate configure checks.
2022-01-18 19:25:18 -05:00

32 lines
919 B
Plaintext

dnl This is the newlib/libc/sys/linux/linuxthreads configure.in file.
dnl Process this file with autoconf to produce a configure script.
AC_INIT([newlib],[NEWLIB_VERSION])
AC_CONFIG_SRCDIR([attr.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
if test "${use_libtool}" = "yes"; then
LT_INIT([win32-dll])
fi
if test -n "${machine_dir}"; then
MACHINE_OBJLIST=machine/${machine_dir}/objectlist.awk.in
MACHINE_LIB=machine/${machine_dir}/lib.a
fi
AC_SUBST(MACHINE_OBJLIST)
AC_SUBST(MACHINE_LIB)
AC_CONFIG_SUBDIRS(machine)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT