2000-02-18 03:39:52 +08:00
|
|
|
dnl This is the newlib/libc configure.in file.
|
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
2006-04-14 03:56:32 +08:00
|
|
|
AC_PREREQ(2.59)
|
|
|
|
AC_INIT([newlib],[NEWLIB_VERSION])
|
|
|
|
AC_CONFIG_SRCDIR([sys.tex])
|
2000-02-18 03:39:52 +08:00
|
|
|
|
|
|
|
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
|
|
|
|
AC_CONFIG_AUX_DIR(../..)
|
|
|
|
|
2002-08-10 05:12:09 +08:00
|
|
|
dnl Support --enable-newlib-io-pos-args used by libc/stdio
|
|
|
|
AC_ARG_ENABLE(newlib-io-pos-args,
|
|
|
|
[ --enable-newlib-io-pos-args enable printf-family positional arg support],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) newlib_io_pos_args=yes ;;
|
|
|
|
no) newlib_io_pos_args=no ;;
|
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} for newlib-io-pos-args option) ;;
|
|
|
|
esac], [newlib_io_pos_args=no])dnl
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
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
|
|
|
|
fi
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
AC_CONFIG_SUBDIRS(machine sys)
|
|
|
|
|
|
|
|
CRT0=
|
2005-09-01 04:39:43 +08:00
|
|
|
if test "x${have_crt0}" = "xyes"; then
|
2000-02-18 03:39:52 +08:00
|
|
|
CRT0=crt0.o
|
|
|
|
fi
|
|
|
|
AC_SUBST(CRT0)
|
|
|
|
|
|
|
|
dnl For each directory which we may or may not want, we define a name
|
|
|
|
dnl for the library and an automake conditional for whether we should
|
|
|
|
dnl build the library.
|
|
|
|
|
|
|
|
LIBC_POSIX_LIB=
|
|
|
|
if test -n "${posix_dir}"; then
|
2001-12-14 07:50:11 +08:00
|
|
|
if test "${use_libtool}" = "yes"; then
|
|
|
|
LIBC_POSIX_LIB=${posix_dir}/lib${posix_dir}.${aext}
|
|
|
|
else
|
|
|
|
LIBC_POSIX_LIB=${posix_dir}/lib.${aext}
|
|
|
|
fi
|
2000-02-18 03:39:52 +08:00
|
|
|
fi
|
|
|
|
AC_SUBST(LIBC_POSIX_LIB)
|
|
|
|
AM_CONDITIONAL(HAVE_POSIX_DIR, test x${posix_dir} != x)
|
|
|
|
|
|
|
|
LIBC_SIGNAL_LIB=
|
|
|
|
LIBC_SIGNAL_DEF=
|
|
|
|
if test -n "${signal_dir}"; then
|
2001-12-14 07:50:11 +08:00
|
|
|
if test "${use_libtool}" = "yes"; then
|
|
|
|
LIBC_SIGNAL_LIB=${signal_dir}/lib${signal_dir}.${aext}
|
|
|
|
else
|
|
|
|
LIBC_SIGNAL_LIB=${signal_dir}/lib.${aext}
|
|
|
|
fi
|
2000-02-18 03:39:52 +08:00
|
|
|
LIBC_SIGNAL_DEF=${signal_dir}/stmp-def
|
|
|
|
fi
|
|
|
|
AC_SUBST(LIBC_SIGNAL_LIB)
|
|
|
|
AC_SUBST(LIBC_SIGNAL_DEF)
|
|
|
|
AM_CONDITIONAL(HAVE_SIGNAL_DIR, test x${signal_dir} != x)
|
|
|
|
|
2007-02-01 03:34:38 +08:00
|
|
|
LIBC_STDIO_LIB=
|
|
|
|
LIBC_STDIO_DEF=
|
|
|
|
if test -n "${stdio_dir}"; then
|
|
|
|
if test "${use_libtool}" = "yes"; then
|
|
|
|
LIBC_STDIO_LIB=${stdio_dir}/lib${stdio_dir}.${aext}
|
|
|
|
else
|
|
|
|
LIBC_STDIO_LIB=${stdio_dir}/lib.${aext}
|
|
|
|
fi
|
|
|
|
LIBC_STDIO_DEF=${stdio_dir}/stmp-def
|
|
|
|
fi
|
|
|
|
AC_SUBST(LIBC_STDIO_LIB)
|
|
|
|
AC_SUBST(LIBC_STDIO_DEF)
|
|
|
|
AM_CONDITIONAL(HAVE_STDIO_DIR, test x${stdio_dir} != x)
|
|
|
|
|
2002-07-18 07:25:44 +08:00
|
|
|
LIBC_STDIO64_LIB=
|
|
|
|
LIBC_STDIO64_DEF=
|
|
|
|
if test -n "${stdio64_dir}"; then
|
|
|
|
if test "${use_libtool}" = "yes"; then
|
|
|
|
LIBC_STDIO64_LIB=${stdio64_dir}/lib${stdio64_dir}.${aext}
|
|
|
|
else
|
|
|
|
LIBC_STDIO64_LIB=${stdio64_dir}/lib.${aext}
|
|
|
|
fi
|
|
|
|
LIBC_STDIO64_DEF=${stdio64_dir}/stmp-def
|
|
|
|
fi
|
|
|
|
AC_SUBST(LIBC_STDIO64_LIB)
|
|
|
|
AC_SUBST(LIBC_STDIO64_DEF)
|
|
|
|
AM_CONDITIONAL(HAVE_STDIO64_DIR, test x${stdio64_dir} != x)
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
LIBC_SYSCALL_LIB=
|
|
|
|
if test -n "${syscall_dir}"; then
|
2001-12-14 07:50:11 +08:00
|
|
|
if test "${use_libtool}" = "yes"; then
|
|
|
|
LIBC_SYSCALL_LIB=${syscall_dir}/lib${syscall_dir}.${aext}
|
|
|
|
else
|
|
|
|
LIBC_SYSCALL_LIB=${syscall_dir}/lib.${aext}
|
|
|
|
fi
|
2000-02-18 03:39:52 +08:00
|
|
|
fi
|
|
|
|
AC_SUBST(LIBC_SYSCALL_LIB)
|
|
|
|
AM_CONDITIONAL(HAVE_SYSCALL_DIR, test x${syscall_dir} != x)
|
|
|
|
|
|
|
|
LIBC_UNIX_LIB=
|
|
|
|
if test -n "${unix_dir}"; then
|
2001-12-14 07:50:11 +08:00
|
|
|
if test "${use_libtool}" = "yes"; then
|
|
|
|
LIBC_UNIX_LIB=${unix_dir}/lib${unix_dir}.${aext}
|
|
|
|
else
|
|
|
|
LIBC_UNIX_LIB=${unix_dir}/lib.${aext}
|
|
|
|
fi
|
2000-02-18 03:39:52 +08:00
|
|
|
fi
|
|
|
|
AC_SUBST(LIBC_UNIX_LIB)
|
|
|
|
AM_CONDITIONAL(HAVE_UNIX_DIR, test x${unix_dir} != x)
|
|
|
|
|
2002-05-02 02:44:13 +08:00
|
|
|
LIBC_EXTRA_LIB=
|
|
|
|
LIBC_EXTRA_DEF=
|
|
|
|
extra_dir=
|
|
|
|
|
|
|
|
AC_SUBST(LIBC_EXTRA_LIB)
|
|
|
|
AC_SUBST(LIBC_EXTRA_DEF)
|
|
|
|
AC_SUBST(extra_dir)
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
dnl We always recur into sys and machine, and let them decide what to
|
|
|
|
dnl do. However, we do need to know whether they will produce a library.
|
|
|
|
|
|
|
|
LIBC_SYS_LIB=
|
|
|
|
if test -n "${sys_dir}"; then
|
2001-12-14 07:50:11 +08:00
|
|
|
if test "${use_libtool}" = "yes"; then
|
|
|
|
LIBC_SYS_LIB=sys/${sys_dir}/lib${sys_dir}.${aext}
|
|
|
|
else
|
|
|
|
LIBC_SYS_LIB=sys/lib.${aext}
|
|
|
|
fi
|
2000-02-18 03:39:52 +08:00
|
|
|
fi
|
|
|
|
AC_SUBST(LIBC_SYS_LIB)
|
2001-12-14 07:50:11 +08:00
|
|
|
AC_SUBST(sys_dir)
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2004-01-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
* acinclude.m4 (--enable-newlib-iconv): New configuration option.
(--enable-newlib-builtin-converters): Ditto.
* configure.in: Add code to set _ICONV_ENABLED flag.
Set _MB_LEN_MAX to 1 if not mb enabled.
* configure: Regenerated.
* aclocal.m4: Ditto.
* Makefile.in: Ditto.
* newlib.hin: Add _ICONV_ENABLED flag.
* libc/Makefile.am: Add support for iconv.
* libc/configure.in: Ditto.
* libc/Makefile.in: Regenerated.
* libc/aclocal.m4: Ditto.
* libc/configure: Ditto.
* libc/libc.texinfo: Add iconv documentation.
* libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
libc/iconv/README.TODO, libc/iconv/charset.aliases,
libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
libc/iconv/ccs/binary/big5.cct,
libc/iconv/ccs/binary/cns11643_plane1.cct,
libc/iconv/ccs/binary/cns11643_plane14.cct,
libc/iconv/ccs/binary/cns11643_plane2.cct,
libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
libc/iconv/ccs/binary/iso_8859_1.cct,
libc/iconv/ccs/binary/iso_8859_15.cct,
libc/iconv/ccs/binary/iso_8859_2.cct,
libc/iconv/ccs/binary/iso_8859_4.cct,
libc/iconv/ccs/binary/iso_8859_5.cct,
libc/iconv/ccs/binary/jis_x0201.cct,
libc/iconv/ccs/binary/jis_x0208_1983.cct,
libc/iconv/ccs/binary/jis_x0212_1990.cct,
libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
libc/iconv/ccs/binary/ksx1001.cct,
libc/iconv/ccs/binary/shift_jis.cct,
libc/iconv/ccs/binary/us_ascii.cct,
libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
libc/iconv/lib/local.h, libc/include/iconv.h: New files.
* libc/sys/linux/include/iconv.h: Ditto.
* libc/include/sys/_types.h (_iconv_t): Added.
* doc/aclocal.m4: Regenerated.
* doc/configure: Ditto.
* doc/Makefile.in: Ditto.
* iconvdata/Makefile.in: Ditto.
* iconvdata/aclocal.m4: Ditto.
* iconvdata/configure: Ditto.
* libc/*aclocal.m4: Ditto.
* libc/*Makefile.in: Ditto.
* libc/*configure: Ditto.
* libm/*aclocal.m4: Ditto.
* libm/*Makefile.in: Ditto.
* libm/*configure: Ditto.
2004-01-24 05:37:46 +08:00
|
|
|
dnl iconv library will be compiled if --enable-newlib-iconv option is enabled
|
2004-01-28 07:26:26 +08:00
|
|
|
AM_CONDITIONAL(ENABLE_NEWLIB_ICONV, test x${newlib_iconv} != x)
|
2004-01-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
* acinclude.m4 (--enable-newlib-iconv): New configuration option.
(--enable-newlib-builtin-converters): Ditto.
* configure.in: Add code to set _ICONV_ENABLED flag.
Set _MB_LEN_MAX to 1 if not mb enabled.
* configure: Regenerated.
* aclocal.m4: Ditto.
* Makefile.in: Ditto.
* newlib.hin: Add _ICONV_ENABLED flag.
* libc/Makefile.am: Add support for iconv.
* libc/configure.in: Ditto.
* libc/Makefile.in: Regenerated.
* libc/aclocal.m4: Ditto.
* libc/configure: Ditto.
* libc/libc.texinfo: Add iconv documentation.
* libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
libc/iconv/README.TODO, libc/iconv/charset.aliases,
libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
libc/iconv/ccs/binary/big5.cct,
libc/iconv/ccs/binary/cns11643_plane1.cct,
libc/iconv/ccs/binary/cns11643_plane14.cct,
libc/iconv/ccs/binary/cns11643_plane2.cct,
libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
libc/iconv/ccs/binary/iso_8859_1.cct,
libc/iconv/ccs/binary/iso_8859_15.cct,
libc/iconv/ccs/binary/iso_8859_2.cct,
libc/iconv/ccs/binary/iso_8859_4.cct,
libc/iconv/ccs/binary/iso_8859_5.cct,
libc/iconv/ccs/binary/jis_x0201.cct,
libc/iconv/ccs/binary/jis_x0208_1983.cct,
libc/iconv/ccs/binary/jis_x0212_1990.cct,
libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
libc/iconv/ccs/binary/ksx1001.cct,
libc/iconv/ccs/binary/shift_jis.cct,
libc/iconv/ccs/binary/us_ascii.cct,
libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
libc/iconv/lib/local.h, libc/include/iconv.h: New files.
* libc/sys/linux/include/iconv.h: Ditto.
* libc/include/sys/_types.h (_iconv_t): Added.
* doc/aclocal.m4: Regenerated.
* doc/configure: Ditto.
* doc/Makefile.in: Ditto.
* iconvdata/Makefile.in: Ditto.
* iconvdata/aclocal.m4: Ditto.
* iconvdata/configure: Ditto.
* libc/*aclocal.m4: Ditto.
* libc/*Makefile.in: Ditto.
* libc/*configure: Ditto.
* libm/*aclocal.m4: Ditto.
* libm/*Makefile.in: Ditto.
* libm/*configure: Ditto.
2004-01-24 05:37:46 +08:00
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
if test -n "${machine_dir}"; then
|
2001-12-14 07:50:11 +08:00
|
|
|
if test "${use_libtool}" = "yes"; then
|
|
|
|
LIBC_MACHINE_LIB=machine/${machine_dir}/lib${machine_dir}.${aext}
|
|
|
|
else
|
|
|
|
LIBC_MACHINE_LIB=machine/lib.${aext}
|
|
|
|
fi
|
2000-02-18 03:39:52 +08:00
|
|
|
fi
|
|
|
|
AC_SUBST(LIBC_MACHINE_LIB)
|
2001-12-14 07:50:11 +08:00
|
|
|
AC_SUBST(machine_dir)
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2006-04-14 03:56:32 +08:00
|
|
|
AC_CONFIG_FILES([Makefile argz/Makefile ctype/Makefile errno/Makefile locale/Makefile misc/Makefile reent/Makefile search/Makefile stdio/Makefile stdio64/Makefile stdlib/Makefile string/Makefile time/Makefile posix/Makefile signal/Makefile syscalls/Makefile unix/Makefile iconv/Makefile iconv/ces/Makefile iconv/ccs/Makefile iconv/ccs/binary/Makefile iconv/lib/Makefile])
|
|
|
|
AC_OUTPUT
|