aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2005-12-20 18:50:37 +0000
committerYang Tse <yangsita@gmail.com>2005-12-20 18:50:37 +0000
commit02c7cf6fa540351cbeb6eddad04dee2899158471 (patch)
treed8ddd09658f53c0b65a583e6fba388cdc326744c
parent60006ff9937a3f81ad36312765276c494c85cba3 (diff)
Fix, header checks must be done before using its results.
-rw-r--r--ares/configure.ac2
-rw-r--r--configure.ac24
2 files changed, 14 insertions, 12 deletions
diff --git a/ares/configure.ac b/ares/configure.ac
index b068d4c52..aa1fede91 100644
--- a/ares/configure.ac
+++ b/ares/configure.ac
@@ -64,7 +64,7 @@ dnl **********************************************************************
dnl Make sure that our checks for headers windows.h winsock.h winsock2.h
dnl and ws2tcpip.h take precedence over any other further checks which
dnl could be done later using AC_CHECK_HEADER or AC_CHECK_HEADERS for
-dnl this specific header files.
+dnl this specific header files. And do them before its results are used.
dnl **********************************************************************
CURL_CHECK_HEADER_WINDOWS
diff --git a/configure.ac b/configure.ac
index 4198a4fbc..ba436d8e3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -161,6 +161,19 @@ dnl The install stuff has already been taken care of by the automake stuff
dnl AC_PROG_INSTALL
AC_PROG_MAKE_SET
+dnl **********************************************************************
+dnl Make sure that our checks for headers windows.h winsock.h winsock2.h
+dnl and ws2tcpip.h take precedence over any other further checks which
+dnl could be done later using AC_CHECK_HEADER or AC_CHECK_HEADERS for
+dnl this specific header files. And do them before its results are used.
+dnl **********************************************************************
+
+CURL_CHECK_HEADER_WINDOWS
+CURL_CHECK_HEADER_WINSOCK
+CURL_CHECK_HEADER_WINSOCK2
+CURL_CHECK_HEADER_WS2TCPIP
+
+
dnl ************************************************************
dnl switch off particular protocols
dnl
@@ -1415,17 +1428,6 @@ dnl **********************************************************************
dnl Checks for header files.
AC_HEADER_STDC
-dnl **********************************************************************
-dnl Make sure that our checks for headers windows.h winsock.h winsock2.h
-dnl and ws2tcpip.h take precedence over any other further checks which
-dnl could be done later using AC_CHECK_HEADER or AC_CHECK_HEADERS for
-dnl this specific header files.
-dnl **********************************************************************
-
-CURL_CHECK_HEADER_WINDOWS
-CURL_CHECK_HEADER_WINSOCK
-CURL_CHECK_HEADER_WINSOCK2
-CURL_CHECK_HEADER_WS2TCPIP
dnl Now check for the very most basic headers. Then we can use these
dnl ones as default-headers when checking for the rest!