From e98179c80e6aa992088ce67ea641a9460844b054 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 16 Jan 2009 23:54:56 +0000 Subject: [PATCH] cygwin hack --- configure | 6 ++++-- configure.in | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/configure b/configure index c11bef69b1..43275a4815 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.675 2009/01/16 22:28:31 kurt Exp . +# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.676 2009/01/16 22:45:25 kurt Exp . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61. # @@ -14782,7 +14782,9 @@ fi done -if test "$ac_cv_mingw32" = yes ; then +if test "$ac_cv_mingw32" = yes -o \ + ( "$ac_cv_cygwin32" = yes -a $GCC = no ) +then for ac_header in winsock.h winsock2.h diff --git a/configure.in b/configure.in index 1b4b8f65de..da3b5b1ce6 100644 --- a/configure.in +++ b/configure.in @@ -842,7 +842,9 @@ AC_CHECK_HEADERS( \ ) dnl Only check Winsock on MinGW -if test "$ac_cv_mingw32" = yes ; then +if test "$ac_cv_mingw32" = yes -o \ + ( "$ac_cv_cygwin32" = yes -a $GCC = no ) +then AC_CHECK_HEADERS( winsock.h winsock2.h ) fi -- 2.39.5