mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 16:26:12 +08:00
2012-11-12 Christopher Faylor <me.cygwin2012@cgf.cx> * Makefile.common: Revamp for new configury. Add default compilation targets, include .E processing. Add magic for allowing "CFLAGS" to control optimization options in "CXXFLAGS". * configure.cygwin: New include for Cygwin configure.in's. * acinclude.m4: Delete old definitions. Implement AC_WINDOWS_HEADERS, AC_WINDOWS_LIBS, AC_CYGWIN_INCLUDES, target_builddir, winsup_srcdir. * aclocal.m4: Regenerate. * autogen.sh: New file. * ccwrap: New script. * c++wrap: New script. * config.guess: New script. * config.sub: New script. * configure: Regenerate. * configure.in: Eliminate LIB_AC_PROG_* calls in favor of standard. Delete ancient target test. * install-sh: New script. cygserver/ChangeLog: 2012-11-12 Christopher Faylor <me.cygwin2012@cgf.cx> * Makefile.in: Revamp for new configury. * configure.in: Revamp for new configury. * aclocal.m4: Regenerate. * configure: Ditto. * autogen.sh: New script. cygwin/ChangeLog: 2012-11-22 Christopher Faylor <me.cygwin2012@cgf.cx> * select.cc (select): Don't return -1 when we've timed out after looping. 2012-11-22 Christopher Faylor <me.cygwin2012@cgf.cx> * Makefile.in: Revamp for new configury. (datarootdir): Add variable setting. (winver_stamp): Accommodate changes to mkvers.sh setting. (libc.a): Fix race when libm.a might not have been built yet. * configure.in: Revamp for new configury. * aclocal.m4: Regenerate. * configure: Ditto. * autogen.sh: New script. * mkvers.sh: Find include directives via CFLAGS and friends rather than assuming that w32api lives nearby. utils/ChangeLog: 2012-11-12 Christopher Faylor <me.cygwin2012@cgf.cx> * aclocal.m4: Regenerate. * configure: Ditto. * autogen.sh: New script. * configure.in: Revamp for new configury. * Makefile.in: Revamp for new configury. Rename ALL_* to just *. Always use "VERBOSE" setting. (MINGW_CXX): Don't include CFLAGS in definition. (all): Define target first, before everything else so that it is the default. (ps.exe): Don't add useless -lcygwin. (ldh.exe): For consistency, add to existing MINGW_LDFLAGS rather than redefining them. (cygcheck.exe): Always include -lz for MINGW_LDFLAGS. Don't try to figure out where to find it. (dumper.exe): Simplify check. Assume libraries are installed rather than trying to retrieve from source tree. (install): Just use /bin/mkdir to create directories. (Makefile): Regenerate when standard dependencies change. * dump_setup.cc: Always include zlib.h. Remove accommodations for it possibly not existing. * parse_pe.cc: Add define which allows building with installed binutils package. * dumper.cc: Ditto.
90 lines
1.9 KiB
Plaintext
90 lines
1.9 KiB
Plaintext
AC_PREREQ(2.59)dnl
|
|
AC_INIT(Makefile.in)
|
|
AC_CONFIG_HEADER(config.h)
|
|
AC_CONFIG_AUX_DIR(..)
|
|
|
|
. ${srcdir}/../configure.cygwin
|
|
|
|
AC_WINDOWS_HEADERS
|
|
AC_WINDOWS_LIBS
|
|
|
|
AC_PROG_INSTALL
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
AC_PROG_CC
|
|
AC_PROG_CXX
|
|
AC_PROG_CPP
|
|
AC_LANG(C)
|
|
AC_LANG(C++)
|
|
|
|
AC_CYGWIN_INCLUDES
|
|
|
|
case "$with_cross_host" in
|
|
""|*cygwin*)
|
|
all_host="all_host"
|
|
install_host="install_host"
|
|
;;
|
|
*)
|
|
all_host=
|
|
install_host=
|
|
;;
|
|
esac
|
|
|
|
AC_SUBST(all_host)
|
|
AC_SUBST(install_host)
|
|
|
|
AC_CHECK_TOOL(AR, ar, ar)
|
|
AC_CHECK_TOOL(AS, as, as)
|
|
AC_CHECK_TOOL(DLLTOOL, dlltool, dlltool)
|
|
AC_CHECK_TOOL(LD, ld, ld)
|
|
AC_CHECK_TOOL(NM, nm, nm)
|
|
AC_CHECK_TOOL(OBJCOPY, objcopy, objcopy)
|
|
AC_CHECK_TOOL(OBJDUMP, objdump, objdump)
|
|
AC_CHECK_TOOL(RANLIB, ranlib, ranlib)
|
|
AC_CHECK_TOOL(STRIP, strip, strip)
|
|
AC_CHECK_TOOL(WINDRES, windres, windres)
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_ARG_ENABLE(debugging,
|
|
[ --enable-debugging Build a cygwin DLL which has more consistency checking for debugging],
|
|
[case "${enableval}" in
|
|
yes) AC_DEFINE(DEBUGGING) ;;
|
|
no) ;;
|
|
esac
|
|
])
|
|
|
|
MALLOC_OFILES=malloc.o
|
|
|
|
dnl The only time we might want to transform the install names
|
|
dnl is for unix x cygwin. Otherwise we don't. For now we don't
|
|
dnl transform names.
|
|
|
|
dnl if test "x$cross_compiling" = "xno" -a ; then
|
|
dnl if test "x$program_transform_name" = "xs,x,x,"; then
|
|
dnl program_transform_name=""
|
|
dnl fi
|
|
dnl if test "x$program_transform_name" = "x"; then
|
|
dnl program_transform_name="s,^,$target_alias-,"
|
|
dnl else
|
|
dnl program_transform_name="$program_transform_name -e s,^,$target_alias-,"
|
|
dnl fi
|
|
dnl fi
|
|
|
|
case "$target_cpu" in
|
|
i?86) DLL_ENTRY="_dll_entry@12"
|
|
DEF_DLL_ENTRY="dll_entry@12"
|
|
ALLOCA="_alloca"
|
|
CONFIG_DIR="i386" ;;
|
|
*) AC_MSG_ERROR(Invalid target processor \"$target_cpu\") ;;
|
|
esac
|
|
|
|
AC_CONFIGURE_ARGS
|
|
AC_SUBST(MALLOC_OFILES)
|
|
AC_SUBST(LIBSERVER)
|
|
AC_SUBST(DLL_ENTRY)
|
|
AC_SUBST(DEF_DLL_ENTRY)
|
|
AC_SUBST(ALLOCA)
|
|
AC_SUBST(CONFIG_DIR)
|
|
AC_OUTPUT(Makefile)
|