Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
90f5bf79
Commit
90f5bf79
authored
9 years ago
by
Peter Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: check more headers and sizeof
parent
2b639807
master
asio_threading
boringssl-tls13
cache-digest
gh-actions
http-parser-unknown-method
nghttpx-http3
nghttpx-usr2-graceful-shutdown
nproc
quic
tls13-early-data-strike-reg
v1.11.x
v1.14.x
v1.16.x
v1.18.x
v1.21.x
v1.23.x
v1.31.x
v1.32.x
v1.35.x
v1.39.x
v1.45.x
v1.9.x
ws
v1.46.0
v1.45.1
v1.45.0
v1.44.0
v1.43.0
v1.42.0
v1.41.0
v1.40.0
v1.39.2
v1.39.1
v1.39.0
v1.38.0
v1.37.0
v1.36.0
v1.35.1
v1.35.0
v1.34.0
v1.33.0
v1.32.1
v1.32.0
v1.31.1
v1.31.0
v1.30.0
v1.29.0
v1.28.0
v1.27.0
v1.26.0
v1.25.0
v1.24.0
v1.23.1
v1.23.0
v1.22.0
v1.21.1
v1.21.0
v1.20.0
v1.19.0
v1.18.1
v1.18.0
v1.17.0
v1.16.1
v1.16.0
v1.15.0
v1.14.1
v1.14.0
v1.13.0
v1.12.0
v1.11.1
v1.11.0
v1.10.0
v1.9.2
v1.9.1
v1.9.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
37 deletions
+35
-37
CMakeLists.txt
CMakeLists.txt
+29
-37
cmakeconfig.h.in
cmakeconfig.h.in
+6
-0
No files found.
CMakeLists.txt
View file @
90f5bf79
...
@@ -270,28 +270,26 @@ if(ENABLE_PYTHON_BINDINGS AND NOT CYTHON AND NOT PYTHONLIBS_FOUND)
...
@@ -270,28 +270,26 @@ if(ENABLE_PYTHON_BINDINGS AND NOT CYTHON AND NOT PYTHONLIBS_FOUND)
message
(
FATAL_ERROR
"python bindings were requested (ENABLE_PYTHON_BINDINGS=1) but dependencies are not met."
)
message
(
FATAL_ERROR
"python bindings were requested (ENABLE_PYTHON_BINDINGS=1) but dependencies are not met."
)
endif
()
endif
()
# # Checks for header files.
# Checks for header files.
# AC_HEADER_ASSERT
# XXX AC_HEADER_ASSERT adds --disable-assert which sets -DNDEBUG
# AC_CHECK_HEADERS([ \
check_include_file
(
"arpa/inet.h"
HAVE_ARPA_INET_H
)
# arpa/inet.h \
check_include_file
(
"fcntl.h"
HAVE_FCNTL_H
)
# fcntl.h \
check_include_file
(
"inttypes.h"
HAVE_INTTYPES_H
)
# inttypes.h \
check_include_file
(
"limits.h"
HAVE_LIMITS_H
)
# limits.h \
check_include_file
(
"netdb.h"
HAVE_NETDB_H
)
# netdb.h \
check_include_file
(
"netinet/in.h"
HAVE_NETINET_IN_H
)
# netinet/in.h \
check_include_file
(
"pwd.h"
HAVE_PWD_H
)
# pwd.h \
check_include_file
(
"stddef.h"
HAVE_STDDEF_H
)
# stddef.h \
check_include_file
(
"stdint.h"
HAVE_STDINT_H
)
# stdint.h \
check_include_file
(
"stdlib.h"
HAVE_STDLIB_H
)
# stdlib.h \
check_include_file
(
"string.h"
HAVE_STRING_H
)
# string.h \
check_include_file
(
"sys/socket.h"
HAVE_SYS_SOCKET_H
)
# sys/socket.h \
check_include_file
(
"sys/time.h"
HAVE_SYS_TIME_H
)
# sys/time.h \
check_include_file
(
"syslog.h"
HAVE_SYSLOG_H
)
# syslog.h \
check_include_file
(
"time.h"
HAVE_TIME_H
)
# time.h \
check_include_file
(
"unistd.h"
HAVE_UNISTD_H
)
# unistd.h \
# ])
# Checks for typedefs, structures, and compiler characteristics.
#
# # Checks for typedefs, structures, and compiler characteristics.
# AC_TYPE_SIZE_T
# AC_TYPE_SIZE_T
# AC_TYPE_SSIZE_T
# AC_TYPE_SSIZE_T
# AC_TYPE_UINT8_T
# AC_TYPE_UINT8_T
...
@@ -309,21 +307,15 @@ endif()
...
@@ -309,21 +307,15 @@ endif()
# AC_C_BIGENDIAN
# AC_C_BIGENDIAN
# AC_C_INLINE
# AC_C_INLINE
# AC_SYS_LARGEFILE
# AC_SYS_LARGEFILE
#
# AC_CHECK_MEMBER([struct tm.tm_gmtoff], [have_struct_tm_tm_gmtoff=yes],
include
(
CheckStructHasMember
)
# [have_struct_tm_tm_gmtoff=no], [[#include <time.h>]])
CHECK_STRUCT_HAS_MEMBER
(
"struct tm"
tm_gmtoff time.h HAVE_STRUCT_TM_TM_GMTOFF
)
#
# if test "x$have_struct_tm_tm_gmtoff" = "xyes"; then
# Check size of pointer to decide we need 8 bytes alignment adjustment.
# AC_DEFINE([HAVE_STRUCT_TM_TM_GMTOFF], [1],
include
(
CheckTypeSize
)
# [Define to 1 if you have `struct tm.tm_gmtoff` member.])
check_type_size
(
"int *"
SIZEOF_INT_P
)
# fi
check_type_size
(
"time_t"
SIZEOF_TIME_T
)
#
# # Check size of pointer to decide we need 8 bytes alignment
# # adjustment.
# AC_CHECK_SIZEOF([int *])
#
# AC_CHECK_SIZEOF([time_t])
#
# # Checks for library functions.
# # Checks for library functions.
#
#
# # Don't check malloc, since it does not play nicely with C++ stdlib
# # Don't check malloc, since it does not play nicely with C++ stdlib
...
...
This diff is collapsed.
Click to expand it.
cmakeconfig.h.in
View file @
90f5bf79
...
@@ -16,3 +16,9 @@
...
@@ -16,3 +16,9 @@
/* Define to 1 if you have `neverbleed` library. */
/* Define to 1 if you have `neverbleed` library. */
#cmakedefine HAVE_NEVERBLEED 1
#cmakedefine HAVE_NEVERBLEED 1
/* sizeof(int *) */
#cmakedefine SIZEOF_INT_P @SIZEOF_INT_P@
/* sizeof(time_t) */
#cmakedefine SIZEOF_TIME_T @SIZEOF_TIME_T@
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment