newlib-cygwin/newlib/libc/sys/configure.in

61 lines
1.8 KiB
Plaintext
Raw Normal View History

2000-02-18 03:39:52 +08:00
dnl This is the newlib/libc/sys configure.in file.
dnl Process this file with autoconf to produce a configure script.
2006-04-13 Ralf Corsepius <ralf.corsepius@rtems.org> * acinclude.m4: New _NEWLIB_VERSION. * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION). Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM. Use new form of AC_INIT_AUTOMAKE. * configure.in: AC_PREREQ(2.59). Use autoconf-2.5.x version of AC_INIT. Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of autoconf-2.13's AC_OUTPUT. * libm/configure.in: Ditto. * libm/machine/configure.in: Ditto. * libm/machine/i386/configure.in: Ditto. * libc/configure.in: Ditto. * libc/machine/a29k/configure.in: Ditto. * libc/machine/arm/configure.in: Ditto. * libc/machine/configure.in: Ditto. * libc/machine/mn10300/configure.in: Ditto. * libc/machine/powerpc/configure.in: Ditto. * libc/machine/z8k/configure.in: Ditto. * libc/machine/h8300/configure.in: Ditto. * libc/machine/mips/configure.in: Ditto. * libc/machine/crx/configure.in: Ditto. * libc/machine/m68hc11/configure.in: Ditto. * libc/machine/h8500/configure.in: Ditto. * libc/machine/xscale/configure.in: Ditto. * libc/machine/d10v/configure.in: Ditto. * libc/machine/fr30/configure.in: Ditto. * libc/machine/sh/configure.in: Ditto. * libc/machine/tic80/configure.in: Ditto. * libc/machine/m32r/configure.in: Ditto. * libc/machine/xstormy16/configure.in: Ditto. * libc/machine/i386/configure.in: Ditto. * libc/machine/d30v/configure.in: Ditto. * libc/machine/mn10200/configure.in: Ditto. * libc/machine/frv/configure.in: Ditto. * libc/machine/mt/configure.in: Ditto. * libc/machine/i960/configure.in: Ditto. * libc/machine/v850/configure.in: Ditto. * libc/machine/necv70/configure.in: Ditto. * libc/machine/tic4x/configure.in: Ditto. * libc/machine/cris/configure.in: Ditto. * libc/machine/m68k/configure.in: Ditto. * libc/machine/m32c/configure.in: Ditto. * libc/machine/hppa/configure.in: Ditto. * libc/machine/w65/configure.in: Ditto. * libc/machine/iq2000/configure.in: Ditto. * libc/machine/sparc/configure.in: Ditto. * libc/machine/m88k/configure.in: Ditto. * libc/sys/linux/configure.in: Ditto. * libc/sys/linux/machine/configure.in: Ditto. * libc/sys/linux/machine/i386/configure.in: Ditto. * libc/sys/linux/linuxthreads/configure.in: Ditto. * libc/sys/linux/linuxthreads/machine/configure.in: Ditto. * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto. * libc/sys/arm/configure.in: Ditto. * libc/sys/configure.in: Ditto. * libc/sys/decstation/configure.in: Ditto. * libc/sys/a29khif/configure.in: Ditto. * libc/sys/sysnecv850/configure.in: Ditto. * libc/sys/d10v/configure.in: Ditto. * libc/sys/netware/configure.in: Ditto. * libc/sys/mmixware/configure.in: Ditto. * libc/sys/h8500hms/configure.in: Ditto. * libc/sys/sh/configure.in: Ditto. * libc/sys/tic80/configure.in: Ditto. * libc/sys/rdos/configure.in: Ditto. * libc/sys/sysmec/configure.in: Ditto. * libc/sys/sysvi386/configure.in: Ditto. * libc/sys/h8300hms/configure.in: Ditto. * libc/sys/sparc64/configure.in: Ditto. * libc/sys/arc/configure.in: Ditto. * libc/sys/sysnec810/configure.in: Ditto. * libc/sys/m88kbug/configure.in: Ditto. * libc/sys/sysvnecv70/configure.in: Ditto. * libc/sys/z8ksim/configure.in: Ditto. * libc/sys/rtems/configure.in: Ditto. * libc/sys/w65/configure.in: Ditto. * libc/sys/sun4/configure.in: Ditto. * doc/configure.in: Ditto. * iconvdata/configure.in: Ditto. * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
2006-04-14 03:56:32 +08:00
AC_PREREQ(2.59)
AC_INIT([newlib],[NEWLIB_VERSION])
AC_CONFIG_SRCDIR([a29khif])
2000-02-18 03:39:52 +08:00
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
AC_CONFIG_AUX_DIR(../../..)
NEWLIB_CONFIGURE(../..)
* Makefile.shared: New file. * libc/sys/linux/shared.ld: New file. * libm/machine/*: New files. * libm/machine/i386/*: New files. * Makefile.am: Add libtool support. Change math and mathfp references to variables. * configure.host: Add variables for libtool support. Add libm_machine_dir variable. * configure.in: Add objectlist variables, for libtool support. Add CC_FOR_BUILD tests. * libc/Makefile.am: Add libtool support. Change crt0.o reference to be a variable reference. * libc/configure.in: Add libtool support. Change sublib names to be lib${subdir}.la when using libtool. * libc/ctype/Makefile.am: Add libtool support. * libc/errno/Makefile.am: Likewise. * libc/locale/Makefile.am: Likewise. * libc/machine/Makefile.am: Likewise. * libc/machine/configure.in: Likewise. * libc/machine/i386/Makefile.am: Likewise. * libc/machine/i386/configure.in: Likewise. * libc/misc/Makefile.am: Likewise. * libc/posix/Makefile.am: Likewise. * libc/reent/Makefile.am: Likewise. * libc/signal/Makefile.am: Likewise. * libc/stdio/Makefile.am: Likewise. * libc/stdlib/Makefile.am: Likewise. * libc/string/Makefile.am: Likewise. * libc/sys/Makefile.am: Likewise. * libc/sys/configure.in: Likewise. * libc/sys/linux/Makefile.am: Add libtool support. Change awk reference to a variable reference. Change signal.h reference to a variable reference. * libc/sys/linux/configure.in: Add libtool support. * libc/syscalls/Makefile.am: Likewise. * libc/time/Makefile.am: Likewise. * libc/unix/Makefile.am: Likewise. * libm/Makefile.am: Add libtool support. Change math and mathfp references to variables. * libm/configure.in: Add libtool support. Add LIBM_MACHINE_LIB variable. * libm/common/Makefile.am: Add libtool support. * libm/math/Makefile.am: Likewise. * libm/mathfp/Makefile.am: Likewise. Regenerate all Makefile.in, aclocal.m4, and 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.
_LT_DECL_SED
* Makefile.shared: New file. * libc/sys/linux/shared.ld: New file. * libm/machine/*: New files. * libm/machine/i386/*: New files. * Makefile.am: Add libtool support. Change math and mathfp references to variables. * configure.host: Add variables for libtool support. Add libm_machine_dir variable. * configure.in: Add objectlist variables, for libtool support. Add CC_FOR_BUILD tests. * libc/Makefile.am: Add libtool support. Change crt0.o reference to be a variable reference. * libc/configure.in: Add libtool support. Change sublib names to be lib${subdir}.la when using libtool. * libc/ctype/Makefile.am: Add libtool support. * libc/errno/Makefile.am: Likewise. * libc/locale/Makefile.am: Likewise. * libc/machine/Makefile.am: Likewise. * libc/machine/configure.in: Likewise. * libc/machine/i386/Makefile.am: Likewise. * libc/machine/i386/configure.in: Likewise. * libc/misc/Makefile.am: Likewise. * libc/posix/Makefile.am: Likewise. * libc/reent/Makefile.am: Likewise. * libc/signal/Makefile.am: Likewise. * libc/stdio/Makefile.am: Likewise. * libc/stdlib/Makefile.am: Likewise. * libc/string/Makefile.am: Likewise. * libc/sys/Makefile.am: Likewise. * libc/sys/configure.in: Likewise. * libc/sys/linux/Makefile.am: Add libtool support. Change awk reference to a variable reference. Change signal.h reference to a variable reference. * libc/sys/linux/configure.in: Add libtool support. * libc/syscalls/Makefile.am: Likewise. * libc/time/Makefile.am: Likewise. * libc/unix/Makefile.am: Likewise. * libm/Makefile.am: Add libtool support. Change math and mathfp references to variables. * libm/configure.in: Add libtool support. Add LIBM_MACHINE_LIB variable. * libm/common/Makefile.am: Add libtool support. * libm/math/Makefile.am: Likewise. * libm/mathfp/Makefile.am: Likewise. Regenerate all Makefile.in, aclocal.m4, and configure.
2001-12-14 07:50:11 +08:00
if test "${use_libtool}" = "yes"; then
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
fi
2000-02-18 03:39:52 +08:00
if test -n "${sys_dir}"; then
2006-04-11 Jeff Johnston <jjohnstn@redhat.com> * acinclude.m4: Properly add square brackets for AC_DEFUN macros. Rewrite LIB_AC_PROG_CC to remove macros no longer available. Add LIB_AM_PROG_AS to remove prereq of AC_PROG_CC. Add LIB_AC_PROG_CC_GNU macro. Substitute lpfx (library object prefix). * configure.host: Set lpfx depending on whether libtool is used or not. * configure.in: Individually specify libc and libm to AC_CONFIG_SUBDIRS. Add square bracket quoting as necessary. * Makefile.am: Use $(lpfx) to get object names for math-library functions that should also be in libc. * libc/machine/configure.in: Use case statement to determine AC_CONFIG_SUBDIRS statement. * libc/sys/linux/linuxthreads/machine/configure.in: Ditto. * libc/sys/linux/machine/configure.in: Ditto. * libc/sys/configure.in: Ditto. * libm/machine/configure.in: Ditto. * libc/sys/linux/configure.in: Fix up AC_CONFIG_SUBDIRS. * libm/configure.in: Add AM_CONDITIONAL statement for HAVE_LIBM_MACHINE_DIR. * libc/machine/a29k/Makefile.am: Modified to work with latest automake. Change includes setting AM_CCASFLAGS so building .S files will properly pick up flags used to build C files. * libc/machine/arm/Makefile.am: Ditto. * libc/machine/crx/Makefile.am: Ditto. * libc/machine/d10v/Makefile.am: Ditto. * libc/machine/d30v/Makefile.am: Ditto. * libc/machine/fr30/Makefile.am: Ditto. * libc/machine/frv/Makefile.am: Ditto. * libc/machine/h8300/Makefile.am: Ditto. * libc/machine/h8500/Makefile.am: Ditto. * libc/machine/hppa/Makefile.am: Ditto. * libc/machine/i386/Makefile.am: Ditto. * libc/machine/iq2000/Makefile.am: Ditto. * libc/machine/m32c/Makefile.am: Ditto. * libc/machine/m32r/Makefile.am: Ditto. * libc/machine/m68hc11/Makefile.am: Ditto. * libc/machine/m68k/Makefile.am: Ditto. * libc/machine/m88k/Makefile.am: Ditto. * libc/machine/mips/Makefile.am: Ditto. * libc/machine/mn10200/Makefile.am: Ditto. * libc/machine/mn10300/Makefile.am: Ditto. * libc/machine/mt/Makefile.am: Ditto. * libc/machine/necv70/Makefile.am: Ditto. * libc/machine/powerpc/Makefile.am: Ditto. * libc/machine/sh/Makefile.am: Ditto. * libc/machine/sparc/Makefile.am: Ditto. * libc/machine/tic4x/Makefile.am: Ditto. * libc/machine/tic80/Makefile.am: Ditto. * libc/machine/v850/Makefile.am: Ditto. * libc/machine/w65/Makefile.am: Ditto. * libc/machine/xscale/Makefile.am: Ditto. * libc/machine/xstormy16/Makefile.am: Ditto. * libc/machine/z8k/Makefile.am: Ditto. * libc/sys/a29khif/Makefile.am: Ditto. * libc/sys/arc/Makefile.am: Ditto. * libc/sys/arm/Makefile.am: Ditto. * libc/sys/d10v/Makefile.am: Ditto. * libc/sys/decstation/Makefile.am: Ditto. * libc/sys/h8300hms/Makefile.am: Ditto. * libc/sys/h8500hms/Makefile.am: Ditto. * libc/sys/linux/linuxthreads/machine/i386/Makefile.am: Ditto. * libc/sys/linux/machine/i386/Makefile.am: Ditto. * libc/sys/m88kbug/Makefile.am: Ditto. * libc/sys/mmixware/Makefile.am: Ditto. * libc/sys/netware/Makefile.am: Ditto. * libc/sys/rdos/Makefile.am: Ditto. * libc/sys/rtems/Makefile.am: Ditto. * libc/sys/sh/Makefile.am: Ditto. * libc/sys/sparc64/Makefile.am: Ditto. * libc/sys/sysmec/Makefile.am: Ditto. * libc/sys/sysnec810/Makefile.am: Ditto. * libc/sys/sysnecv850/Makefile.am: Ditto. * libc/sys/sysvi386/Makefile.am: Ditto. * libc/sys/sysvnecv70/Makefile.am: Ditto. * libc/sys/tic80/Makefile.am: Ditto. * libc/sys/w65/Makefile.am: Ditto. * libc/sys/z8ksim/Makefile.am: Ditto. * libm/machine/i386/Makefile.am: Ditto. * libc/sys/arm/Makefile.am: Ditto plus add EXTRA sources including trap.S so that automake will generate a .S.o suffix rule. * libc/argz/Makefile.am: Modified to work with latest automake. Change includes adding lib_a_CFLAGS so automake doesn't complain about libtool and non-libtool libraries sharing objects. * libc/ctype/Makefile.am: Ditto. * libc/errno/Makefile.am: Ditto. * libc/iconv/ccs/Makefile.am: Ditto. * libc/iconv/ces/Makefile.am: Ditto. * libc/iconv/lib/Makefile.am: Ditto. * libc/locale/Makefile.am: Ditto. * libc/misc/Makefile.am: Ditto. * libc/posix/Makefile.am: Ditto. * libc/reent/Makefile.am: Ditto. * libc/search/Makefile.am: Ditto. * libc/signal/Makefile.am: Ditto. * libc/stdio/Makefile.am: Ditto. * libc/stdio64/Makefile.am: Ditto. * libc/stdlib/Makefile.am: Ditto. * libc/string/Makefile.am: Ditto. * libc/sys/linux/Makefile.am: Ditto. * libc/sys/linux/argp/Makefile.am: Ditto. * libc/sys/linux/cmath/Makefile.am: Ditto. * libc/sys/linux/dl/Makefile.am: Ditto. * libc/sys/linux/iconv/Makefile.am: Ditto. * libc/sys/linux/intl/Makefile.am: Ditto. * libc/sys/linux/linuxthreads/Makefile.am: Ditto. * libc/sys/linux/net/Makefile.am: Ditto. * libc/sys/linux/stdlib/Makefile.am: Ditto. * libc/syscalls/Makefile.am: Ditto. * libc/time/Makefile.am: Ditto. * libc/unix/Makefile.am: Ditto. * libm/Makefile.am: Ditto. * libm/common/Makefile.am: Ditto. * libm/math/Makefile.am: Ditto. * libm/mathfp/Makefile.am: Ditto. * Regenerate all aclocal.m4, Makefile.in, and configure files.
2006-04-12 03:02:16 +08:00
case ${sys_dir} in
a29khif) AC_CONFIG_SUBDIRS(a29khif) ;;
arc) AC_CONFIG_SUBDIRS(arc) ;;
arm) AC_CONFIG_SUBDIRS(arm) ;;
d10v) AC_CONFIG_SUBDIRS(d10v) ;;
decstation) AC_CONFIG_SUBDIRS(decstation) ;;
h8300hms) AC_CONFIG_SUBDIRS(h8300hms) ;;
h8500hms) AC_CONFIG_SUBDIRS(h8500hms) ;;
linux) AC_CONFIG_SUBDIRS(linux) ;;
m88kbug) AC_CONFIG_SUBDIRS(m88kbug) ;;
mmixware) AC_CONFIG_SUBDIRS(mmixware) ;;
netware) AC_CONFIG_SUBDIRS(netware) ;;
rdos) AC_CONFIG_SUBDIRS(rdos) ;;
rtems) AC_CONFIG_SUBDIRS(rtems) ;;
sh) AC_CONFIG_SUBDIRS(sh) ;;
sparc64) AC_CONFIG_SUBDIRS(sparc64) ;;
sun4) AC_CONFIG_SUBDIRS(sun4) ;;
sysmec) AC_CONFIG_SUBDIRS(sysmec) ;;
sysnec810) AC_CONFIG_SUBDIRS(sysnec810) ;;
sysnecv850) AC_CONFIG_SUBDIRS(sysnecv850) ;;
sysvi386) AC_CONFIG_SUBDIRS(sysvi386) ;;
sysvnecv70) AC_CONFIG_SUBDIRS(sysvnecv70) ;;
tic80) AC_CONFIG_SUBDIRS(tic80) ;;
w65) AC_CONFIG_SUBDIRS(w65) ;;
z8ksim) AC_CONFIG_SUBDIRS(z8ksim) ;;
esac;
2000-02-18 03:39:52 +08:00
fi
CRT0=
if test "x${have_crt0}" = "xyes"; then
2000-02-18 03:39:52 +08:00
CRT0=crt0.o
fi
AC_SUBST(CRT0)
AM_CONDITIONAL(HAVE_SYS_DIR, test x${sys_dir} != x)
2006-04-13 Ralf Corsepius <ralf.corsepius@rtems.org> * acinclude.m4: New _NEWLIB_VERSION. * acinclude.m4(NEWLIB_CONFIGURE): AC_REQUIRE(_NEWLIB_VERSION). Use AC_CANONICAL_HOST instead of AC_CANONICAL_SYSTEM. Use new form of AC_INIT_AUTOMAKE. * configure.in: AC_PREREQ(2.59). Use autoconf-2.5.x version of AC_INIT. Use AC_CONFIG_FILES and autoconf-2.5x AC_OUTPUT instead of autoconf-2.13's AC_OUTPUT. * libm/configure.in: Ditto. * libm/machine/configure.in: Ditto. * libm/machine/i386/configure.in: Ditto. * libc/configure.in: Ditto. * libc/machine/a29k/configure.in: Ditto. * libc/machine/arm/configure.in: Ditto. * libc/machine/configure.in: Ditto. * libc/machine/mn10300/configure.in: Ditto. * libc/machine/powerpc/configure.in: Ditto. * libc/machine/z8k/configure.in: Ditto. * libc/machine/h8300/configure.in: Ditto. * libc/machine/mips/configure.in: Ditto. * libc/machine/crx/configure.in: Ditto. * libc/machine/m68hc11/configure.in: Ditto. * libc/machine/h8500/configure.in: Ditto. * libc/machine/xscale/configure.in: Ditto. * libc/machine/d10v/configure.in: Ditto. * libc/machine/fr30/configure.in: Ditto. * libc/machine/sh/configure.in: Ditto. * libc/machine/tic80/configure.in: Ditto. * libc/machine/m32r/configure.in: Ditto. * libc/machine/xstormy16/configure.in: Ditto. * libc/machine/i386/configure.in: Ditto. * libc/machine/d30v/configure.in: Ditto. * libc/machine/mn10200/configure.in: Ditto. * libc/machine/frv/configure.in: Ditto. * libc/machine/mt/configure.in: Ditto. * libc/machine/i960/configure.in: Ditto. * libc/machine/v850/configure.in: Ditto. * libc/machine/necv70/configure.in: Ditto. * libc/machine/tic4x/configure.in: Ditto. * libc/machine/cris/configure.in: Ditto. * libc/machine/m68k/configure.in: Ditto. * libc/machine/m32c/configure.in: Ditto. * libc/machine/hppa/configure.in: Ditto. * libc/machine/w65/configure.in: Ditto. * libc/machine/iq2000/configure.in: Ditto. * libc/machine/sparc/configure.in: Ditto. * libc/machine/m88k/configure.in: Ditto. * libc/sys/linux/configure.in: Ditto. * libc/sys/linux/machine/configure.in: Ditto. * libc/sys/linux/machine/i386/configure.in: Ditto. * libc/sys/linux/linuxthreads/configure.in: Ditto. * libc/sys/linux/linuxthreads/machine/configure.in: Ditto. * libc/sys/linux/linuxthreads/machine/i386/configure.in: Ditto. * libc/sys/arm/configure.in: Ditto. * libc/sys/configure.in: Ditto. * libc/sys/decstation/configure.in: Ditto. * libc/sys/a29khif/configure.in: Ditto. * libc/sys/sysnecv850/configure.in: Ditto. * libc/sys/d10v/configure.in: Ditto. * libc/sys/netware/configure.in: Ditto. * libc/sys/mmixware/configure.in: Ditto. * libc/sys/h8500hms/configure.in: Ditto. * libc/sys/sh/configure.in: Ditto. * libc/sys/tic80/configure.in: Ditto. * libc/sys/rdos/configure.in: Ditto. * libc/sys/sysmec/configure.in: Ditto. * libc/sys/sysvi386/configure.in: Ditto. * libc/sys/h8300hms/configure.in: Ditto. * libc/sys/sparc64/configure.in: Ditto. * libc/sys/arc/configure.in: Ditto. * libc/sys/sysnec810/configure.in: Ditto. * libc/sys/m88kbug/configure.in: Ditto. * libc/sys/sysvnecv70/configure.in: Ditto. * libc/sys/z8ksim/configure.in: Ditto. * libc/sys/rtems/configure.in: Ditto. * libc/sys/w65/configure.in: Ditto. * libc/sys/sun4/configure.in: Ditto. * doc/configure.in: Ditto. * iconvdata/configure.in: Ditto. * configure.in: Use AC_CONFIG_HEADER instead of AM_CONFIG_HEADER.
2006-04-14 03:56:32 +08:00
AC_CONFIG_FILES([Makefile])
AC_OUTPUT