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:
authorJon Turney <jon.turney@dronecode.org.uk>2020-10-14 18:49:45 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2020-10-18 16:55:14 +0300
commit78bfd7dbb96eae1d9541711578ff08e56ddbca5b (patch)
tree39937fb6018f97a4e46da438bef7ce40f5fe7a9a /winsup/cygserver
parentb55e3f1916edcb457bc4cc91d74e2c8dfa85e57e (diff)
Cygwin: Remove --with-windows-{libs,headers}
Diffstat (limited to 'winsup/cygserver')
-rw-r--r--winsup/cygserver/aclocal.m441
-rwxr-xr-xwinsup/cygserver/configure55
-rw-r--r--winsup/cygserver/configure.ac6
3 files changed, 0 insertions, 102 deletions
diff --git a/winsup/cygserver/aclocal.m4 b/winsup/cygserver/aclocal.m4
index 2a9d9c6db..26f51e234 100644
--- a/winsup/cygserver/aclocal.m4
+++ b/winsup/cygserver/aclocal.m4
@@ -15,33 +15,6 @@
dnl This provides configure definitions used by all the cygwin
dnl configure.in files.
-AC_DEFUN([AC_WINDOWS_HEADERS],[
-AC_ARG_WITH(
- [windows-headers],
- [AS_HELP_STRING([--with-windows-headers=DIR],
- [specify where the windows includes are located])],
- [test -z "$withval" && AC_MSG_ERROR([must specify value for --with-windows-headers])]
-)
-])
-
-AC_DEFUN([AC_WINDOWS_LIBS],[
-AC_ARG_WITH(
- [windows-libs],
- [AS_HELP_STRING([--with-windows-libs=DIR],
- [specify where the windows libraries are located])],
- [test -z "$withval" && AC_MSG_ERROR([must specify value for --with-windows-libs])]
-)
-windows_libdir=$(realdirpath "$with_windows_libs")
-if test -z "$windows_libdir"; then
- windows_libdir=$(realdirpath $(${ac_cv_prog_CC:-$CC} -xc /dev/null -Wl,--verbose=1 -lntdll 2>&1 | sed -rn 's%^.*\s(\S+)/libntdll\..*succeeded%\1%p'))
- if test -z "$windows_libdir"; then
- AC_MSG_ERROR([cannot find windows library files])
- fi
-fi
-AC_SUBST(windows_libdir)
-]
-)
-
AC_DEFUN([AC_CYGWIN_INCLUDES], [
: ${ac_cv_prog_CXX:=$CXX}
: ${ac_cv_prog_CC:=$CC}
@@ -57,25 +30,11 @@ if test -z "$newlib_headers"; then
fi
newlib_headers="$target_builddir/newlib/targ-include $newlib_headers"
-if test -n "$with_windows_headers"; then
- if test -e "$with_windows_headers/windef.h"; then
- windows_headers="$with_windows_headers"
- else
- AC_MSG_ERROR([cannot find windef.h in specified --with-windows-headers path: $saw_windows_headers]);
- fi
-else
- windows_headers=$(cd $($ac_cv_prog_CC -xc /dev/null -E -include windef.h 2>/dev/null | sed -n 's%^# 1 "\([^"]*\)/windef\.h".*$%\1%p' | head -n1) 2>/dev/null && pwd)
- if test -z "$windows_headers" -o ! -d "$windows_headers"; then
- AC_MSG_ERROR([cannot find windows header files])
- fi
-fi
-
INCLUDES="-I${srcdir}/../cygwin -I${target_builddir}/winsup/cygwin"
INCLUDES="${INCLUDES} -isystem ${cygwin_headers}"
for h in ${newlib_headers}; do
INCLUDES="${INCLUDES} -isystem $h"
done
-INCLUDES="${INCLUDES} -isystem ${windows_headers}"
AC_SUBST(INCLUDES)
])
diff --git a/winsup/cygserver/configure b/winsup/cygserver/configure
index 14d8deab8..4d1bb97d0 100755
--- a/winsup/cygserver/configure
+++ b/winsup/cygserver/configure
@@ -599,7 +599,6 @@ AR
install_host
all_host
INCLUDES
-windows_libdir
CPP
ac_ct_CXX
CXXFLAGS
@@ -669,8 +668,6 @@ target_builddir'
ac_subst_files=''
ac_user_opts='
enable_option_checking
-with_windows_headers
-with_windows_libs
enable_debugging
'
ac_precious_vars='build_alias
@@ -1301,13 +1298,6 @@ Optional Features:
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-debugging Build a cygwin DLL which has more consistency checking for debugging
-Optional Packages:
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --with-windows-headers=DIR
- specify where the windows includes are located
- --with-windows-libs=DIR specify where the windows libraries are located
-
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
@@ -3368,37 +3358,6 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-
-# Check whether --with-windows-headers was given.
-if test "${with_windows_headers+set}" = set; then :
- withval=$with_windows_headers; test -z "$withval" && as_fn_error $? "must specify value for --with-windows-headers" "$LINENO" 5
-
-fi
-
-
-if test "x$with_cross_bootstrap" != "xyes"; then
-
-
-# Check whether --with-windows-libs was given.
-if test "${with_windows_libs+set}" = set; then :
- withval=$with_windows_libs; test -z "$withval" && as_fn_error $? "must specify value for --with-windows-libs" "$LINENO" 5
-
-fi
-
-windows_libdir=$(realdirpath "$with_windows_libs")
-if test -z "$windows_libdir"; then
- windows_libdir=$(realdirpath $(${ac_cv_prog_CC:-$CC} -xc /dev/null -Wl,--verbose=1 -lntdll 2>&1 | sed -rn 's%^.*\s(\S+)/libntdll\..*succeeded%\1%p'))
- if test -z "$windows_libdir"; then
- as_fn_error $? "cannot find windows library files" "$LINENO" 5
- fi
-fi
-
-
-
-fi
-
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -3421,25 +3380,11 @@ if test -z "$newlib_headers"; then
fi
newlib_headers="$target_builddir/newlib/targ-include $newlib_headers"
-if test -n "$with_windows_headers"; then
- if test -e "$with_windows_headers/windef.h"; then
- windows_headers="$with_windows_headers"
- else
- as_fn_error $? "cannot find windef.h in specified --with-windows-headers path: $saw_windows_headers" "$LINENO" 5;
- fi
-else
- windows_headers=$(cd $($ac_cv_prog_CC -xc /dev/null -E -include windef.h 2>/dev/null | sed -n 's%^# 1 "\([^"]*\)/windef\.h".*$%\1%p' | head -n1) 2>/dev/null && pwd)
- if test -z "$windows_headers" -o ! -d "$windows_headers"; then
- as_fn_error $? "cannot find windows header files" "$LINENO" 5
- fi
-fi
-
INCLUDES="-I${srcdir}/../cygwin -I${target_builddir}/winsup/cygwin"
INCLUDES="${INCLUDES} -isystem ${cygwin_headers}"
for h in ${newlib_headers}; do
INCLUDES="${INCLUDES} -isystem $h"
done
-INCLUDES="${INCLUDES} -isystem ${windows_headers}"
diff --git a/winsup/cygserver/configure.ac b/winsup/cygserver/configure.ac
index d8b2a61fa..9a6baceb7 100644
--- a/winsup/cygserver/configure.ac
+++ b/winsup/cygserver/configure.ac
@@ -23,12 +23,6 @@ AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP
AC_LANG(C)
-
-AC_WINDOWS_HEADERS
-if test "x$with_cross_bootstrap" != "xyes"; then
- AC_WINDOWS_LIBS
-fi
-
AC_LANG(C++)
AC_CYGWIN_INCLUDES