Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@pefoley.com>2016-03-23 16:34:10 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-03-30 14:50:16 +0300
commitcf41355aba481fdd94195654bf15b71f41b24469 (patch)
treeacff3b34cd7e405612f1b209c6a4e8714b9aa297 /winsup/configure.ac
parent279aaeb5c7511cacd5496603a6dbd2901bc8e9af (diff)
Add option to not build mingw programs when cross compiling.
Add an option to not require a mingw compiler when bootstrapping a cross toolchain. Defaults to existing behavior. Also update some obsolete macros. winsup/ChangeLog configure.ac: Add option to skip building programs that require mingw. configure: Regenerate. Signed-off-by: Peter Foley <pefoley2@pefoley.com>
Diffstat (limited to 'winsup/configure.ac')
-rw-r--r--[-rwxr-xr-x]winsup/configure.ac17
1 files changed, 11 insertions, 6 deletions
diff --git a/winsup/configure.ac b/winsup/configure.ac
index 43b95c5ce..b04f0444e 100755..100644
--- a/winsup/configure.ac
+++ b/winsup/configure.ac
@@ -10,9 +10,8 @@ dnl details.
dnl
dnl Process this file with autoconf to produce a configure script.
-AC_PREREQ(2.59)dnl
-AC_INIT([Cygwin toplevel], 0,
- cygwin@cygwin.com, cygwin, https://cygwin.com)
+AC_PREREQ([2.59])
+AC_INIT([Cygwin toplevel],[0],[cygwin@cygwin.com],[cygwin],[https://cygwin.com])
AC_CONFIG_SRCDIR(Makefile.in)
AC_CONFIG_AUX_DIR(..)
@@ -20,12 +19,13 @@ AC_CONFIG_AUX_DIR(..)
AC_PROG_INSTALL
AC_NO_EXECUTABLES
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP
AC_LANG(C)
+AC_ARG_WITH([mingw-progs],[AS_HELP_STRING([--without-mingw-progs],[do not build programs using the mingw toolchain (useful for cross-compiling)])],[],[with_mingw_progs=yes])
AC_WINDOWS_HEADERS
AC_WINDOWS_LIBS
@@ -34,11 +34,16 @@ AC_LANG(C++)
AC_CYGWIN_INCLUDES
-AC_CONFIG_SUBDIRS(cygwin utils cygserver lsaauth doc)
+AC_CONFIG_SUBDIRS(cygwin cygserver doc)
+if test "x$with_mingw_progs" != xno; then
+ AC_CONFIG_SUBDIRS([utils lsaauth])
+fi
+
INSTALL_LICENSE="install-license"
AC_SUBST(INSTALL_LICENSE)
AC_PROG_MAKE_SET
-AC_OUTPUT(Makefile)
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT