2000-12-09 09:20:32 +08:00
|
|
|
dnl This is the newlib/libc/sys/linux configure.in file.
|
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
AC_PREREQ(2.5)
|
|
|
|
AC_INIT(linux.c)
|
|
|
|
|
|
|
|
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
|
|
|
|
AC_CONFIG_AUX_DIR(../../../..)
|
|
|
|
|
|
|
|
NEWLIB_CONFIGURE(../../..)
|
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
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.
|
|
|
|
|
|
|
|
if test "${use_libtool}" = "yes"; then
|
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
AC_PROG_AWK
|
|
|
|
fi
|
|
|
|
|
2002-04-04 06:46:21 +08:00
|
|
|
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)
|
|
|
|
|
2002-10-08 07:10:13 +08:00
|
|
|
EXTRA_SUBDIRS=
|
|
|
|
EXTRA_SUBLIBS=
|
|
|
|
AC_SUBST(EXTRA_SUBDIRS)
|
|
|
|
AC_SUBST(EXTRA_SUBLIBS)
|
2002-05-25 02:50:29 +08:00
|
|
|
|
2002-10-08 07:10:13 +08:00
|
|
|
AC_CONFIG_SUBDIRS(machine $EXTRA_CONFIG_DIRS)
|
2002-04-04 06:46:21 +08:00
|
|
|
|
2002-08-30 07:53:06 +08:00
|
|
|
AC_OUTPUT(Makefile cmath/Makefile argp/Makefile)
|