-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
includes: remove curl/curlbuild.h and curl/curlrules.h
Rely entirely on curl/system.h now. Introduced in Aug 2008 with commit 14240e9. Now gone. Fixes curl#1456
- Loading branch information
Showing
46 changed files
with
390 additions
and
1,997 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
# | (__| |_| | _ <| |___ | ||
# \___|\___/|_| \_\_____| | ||
# | ||
# Copyright (C) 1998 - 2016, Daniel Stenberg, <[email protected]>, et al. | ||
# Copyright (C) 1998 - 2017, Daniel Stenberg, <[email protected]>, et al. | ||
# | ||
# This software is licensed as described in the file COPYING, which | ||
# you should have received as part of this distribution. The terms | ||
|
@@ -1111,7 +1111,7 @@ else() | |
set(CURL_SIZEOF_CURL_SOCKLEN_T ${SIZEOF_INT}) | ||
endif() | ||
|
||
# TODO test which of these headers are required for the typedefs used in curlbuild.h | ||
# TODO test which of these headers are required | ||
if(WIN32) | ||
set(CURL_PULL_WS2TCPIP_H ${HAVE_WS2TCPIP_H}) | ||
else() | ||
|
@@ -1297,16 +1297,10 @@ if(NOT CURL_CONFIG_HAS_BEEN_RUN_BEFORE) | |
set(CURL_CONFIG_HAS_BEEN_RUN_BEFORE 1 CACHE INTERNAL "Flag to track whether this is the first time running CMake or if CMake has been configured before") | ||
endif() | ||
|
||
# Installation. | ||
# First, install generated curlbuild.h | ||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/include/curl/curlbuild.h" | ||
DESTINATION include/curl ) | ||
# Next, install other headers excluding curlbuild.h | ||
# install headers | ||
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/curl" | ||
DESTINATION include | ||
FILES_MATCHING PATTERN "*.h" | ||
PATTERN "curlbuild.h" EXCLUDE) | ||
|
||
FILES_MATCHING PATTERN "*.h") | ||
|
||
# Workaround for MSVS10 to avoid the Dialog Hell | ||
# FIXME: This could be removed with future version of CMake. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
# | (__| |_| | _ <| |___ | ||
# \___|\___/|_| \_\_____| | ||
# | ||
# Copyright (C) 1998 - 2016, Daniel Stenberg, <[email protected]>, et al. | ||
# Copyright (C) 1998 - 2017, Daniel Stenberg, <[email protected]>, et al. | ||
# | ||
# This software is licensed as described in the file COPYING, which | ||
# you should have received as part of this distribution. The terms | ||
|
@@ -2079,10 +2079,7 @@ _EOF | |
dnl CURL_CONFIGURE_LONG | ||
dnl ------------------------------------------------- | ||
dnl Find out the size of long as reported by sizeof() and define | ||
dnl CURL_SIZEOF_LONG as appropriate to be used in template file | ||
dnl include/curl/curlbuild.h.in to properly configure the library. | ||
dnl The size of long is a build time characteristic and as such | ||
dnl must be recorded in curlbuild.h | ||
dnl CURL_SIZEOF_LONG. | ||
|
||
AC_DEFUN([CURL_CONFIGURE_LONG], [ | ||
if test -z "$ac_cv_sizeof_long" || | ||
|
@@ -2095,10 +2092,6 @@ AC_DEFUN([CURL_CONFIGURE_LONG], [ | |
|
||
dnl CURL_CONFIGURE_CURL_SOCKLEN_T | ||
dnl ------------------------------------------------- | ||
dnl Find out suitable curl_socklen_t data type definition and size, making | ||
dnl appropriate definitions for template file include/curl/curlbuild.h.in | ||
dnl to properly configure and use the library. | ||
dnl | ||
dnl The need for the curl_socklen_t definition arises mainly to properly | ||
dnl interface HP-UX systems which on one hand have a typedef'ed socklen_t | ||
dnl data type which is 32 or 64-Bit wide depending on the data model being | ||
|
@@ -2222,10 +2215,6 @@ AC_DEFUN([CURL_CONFIGURE_CURL_SOCKLEN_T], [ | |
|
||
dnl CURL_CONFIGURE_PULL_SYS_POLL | ||
dnl ------------------------------------------------- | ||
dnl Find out if system header file sys/poll.h must be included by the | ||
dnl external interface, making appropriate definitions for template file | ||
dnl include/curl/curlbuild.h.in to properly configure and use the library. | ||
dnl | ||
dnl The need for the sys/poll.h inclusion arises mainly to properly | ||
dnl interface AIX systems which define macros 'events' and 'revents'. | ||
|
||
|
@@ -2859,8 +2848,7 @@ AC_DEFUN([DO_CURL_OFF_T_SUFFIX_CHECK], [ | |
dnl CURL_CONFIGURE_CURL_OFF_T | ||
dnl ------------------------------------------------- | ||
dnl Find out suitable curl_off_t data type definition and associated | ||
dnl items, and make the appropriate definitions used in template file | ||
dnl include/curl/curlbuild.h.in to properly configure the library. | ||
dnl items | ||
|
||
AC_DEFUN([CURL_CONFIGURE_CURL_OFF_T], [ | ||
AC_REQUIRE([CURL_INCLUDES_INTTYPES])dnl | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ rem * / __| | | | |_) | | | |
rem * | (__| |_| | _ <| |___ | ||
rem * \___|\___/|_| \_\_____| | ||
rem * | ||
rem * Copyright (C) 1998 - 2016, Daniel Stenberg, <[email protected]>, et al. | ||
rem * Copyright (C) 1998 - 2017, Daniel Stenberg, <[email protected]>, et al. | ||
rem * | ||
rem * This software is licensed as described in the file COPYING, which | ||
rem * you should have received as part of this distribution. The terms | ||
|
@@ -73,7 +73,6 @@ rem | |
echo Generating prerequisite files | ||
|
||
call :generate | ||
if errorlevel 4 goto nogencurlbuild | ||
if errorlevel 3 goto nogenhugehelp | ||
if errorlevel 2 goto nogenmakefile | ||
if errorlevel 1 goto warning | ||
|
@@ -83,7 +82,6 @@ rem | |
echo Removing prerequisite files | ||
|
||
call :clean | ||
if errorlevel 3 goto nocleancurlbuild | ||
if errorlevel 2 goto nocleanhugehelp | ||
if errorlevel 1 goto nocleanmakefile | ||
) | ||
|
@@ -98,7 +96,6 @@ rem 0 - success | |
rem 1 - success with simplified tool_hugehelp.c | ||
rem 2 - failed to generate Makefile | ||
rem 3 - failed to generate tool_hugehelp.c | ||
rem 4 - failed to generate curlbuild.h | ||
rem | ||
:generate | ||
if "%OS%" == "Windows_NT" setlocal | ||
|
@@ -126,16 +123,6 @@ rem | |
) | ||
cmd /c exit 0 | ||
|
||
rem Create curlbuild.h | ||
echo * %CD%\include\curl\curlbuild.h | ||
if exist include\curl\curlbuild.h.dist ( | ||
copy /Y include\curl\curlbuild.h.dist include\curl\curlbuild.h 1>NUL 2>&1 | ||
if errorlevel 1 ( | ||
if "%OS%" == "Windows_NT" endlocal | ||
exit /B 4 | ||
) | ||
) | ||
|
||
rem Setup c-ares git tree | ||
if exist ares\buildconf.bat ( | ||
echo. | ||
|
@@ -160,7 +147,6 @@ rem | |
rem 0 - success | ||
rem 1 - failed to clean Makefile | ||
rem 2 - failed to clean tool_hugehelp.c | ||
rem 3 - failed to clean curlbuild.h | ||
rem | ||
:clean | ||
rem Remove Makefile | ||
|
@@ -181,15 +167,6 @@ rem | |
) | ||
) | ||
|
||
rem Remove curlbuild.h | ||
echo * %CD%\include\curl\curlbuild.h | ||
if exist include\curl\curlbuild.h ( | ||
del include\curl\curlbuild.h 2>NUL | ||
if exist include\curl\curlbuild.h ( | ||
exit /B 3 | ||
) | ||
) | ||
|
||
exit /B | ||
|
||
rem Function to generate src\tool_hugehelp.c | ||
|
@@ -304,11 +281,6 @@ rem | |
echo Error: Unable to generate src\tool_hugehelp.c | ||
goto error | ||
|
||
:nogencurlbuild | ||
echo. | ||
echo Error: Unable to generate include\curl\curlbuild.h | ||
goto error | ||
|
||
:nocleanmakefile | ||
echo. | ||
echo Error: Unable to clean Makefile | ||
|
@@ -319,11 +291,6 @@ rem | |
echo Error: Unable to clean src\tool_hugehelp.c | ||
goto error | ||
|
||
:nocleancurlbuild | ||
echo. | ||
echo Error: Unable to clean include\curl\curlbuild.h | ||
goto error | ||
|
||
:warning | ||
echo. | ||
echo Warning: The curl manual could not be integrated in the source. This means when | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
# | (__| |_| | _ <| |___ | ||
# \___|\___/|_| \_\_____| | ||
# | ||
# Copyright (C) 1998 - 2016, Daniel Stenberg, <[email protected]>, et al. | ||
# Copyright (C) 1998 - 2017, Daniel Stenberg, <[email protected]>, et al. | ||
# | ||
# This software is licensed as described in the file COPYING, which | ||
# you should have received as part of this distribution. The terms | ||
|
@@ -30,13 +30,9 @@ EXTRA_DIST = README Makefile.example Makefile.inc Makefile.m32 \ | |
# being currently built and tested are searched before the library which | ||
# might possibly already be installed in the system. | ||
# | ||
# $(top_builddir)/include/curl for generated curlbuild.h included from curl.h | ||
# $(top_builddir)/include for generated curlbuild.h inc. from lib/curl_setup.h | ||
# $(top_srcdir)/include is for libcurl's external include files | ||
|
||
AM_CPPFLAGS = -I$(top_builddir)/include/curl \ | ||
-I$(top_builddir)/include \ | ||
-I$(top_srcdir)/include | ||
AM_CPPFLAGS = -I$(top_srcdir)/include | ||
|
||
LIBDIR = $(top_builddir)/lib | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
curlbuild.h | ||
curlver.h.dist | ||
stamp-h2 | ||
stamp-h3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.