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
Feb 11, 2016
by
Peter Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: check more headers and sizeof
parent
2b639807
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)
message
(
FATAL_ERROR
"python bindings were requested (ENABLE_PYTHON_BINDINGS=1) but dependencies are not met."
)
endif
()
# # Checks for header files.
# AC_HEADER_ASSERT
# AC_CHECK_HEADERS([ \
# arpa/inet.h \
# fcntl.h \
# inttypes.h \
# limits.h \
# netdb.h \
# netinet/in.h \
# pwd.h \
# stddef.h \
# stdint.h \
# stdlib.h \
# string.h \
# sys/socket.h \
# sys/time.h \
# syslog.h \
# time.h \
# unistd.h \
# ])
#
# # Checks for typedefs, structures, and compiler characteristics.
# Checks for header files.
# XXX AC_HEADER_ASSERT adds --disable-assert which sets -DNDEBUG
check_include_file
(
"arpa/inet.h"
HAVE_ARPA_INET_H
)
check_include_file
(
"fcntl.h"
HAVE_FCNTL_H
)
check_include_file
(
"inttypes.h"
HAVE_INTTYPES_H
)
check_include_file
(
"limits.h"
HAVE_LIMITS_H
)
check_include_file
(
"netdb.h"
HAVE_NETDB_H
)
check_include_file
(
"netinet/in.h"
HAVE_NETINET_IN_H
)
check_include_file
(
"pwd.h"
HAVE_PWD_H
)
check_include_file
(
"stddef.h"
HAVE_STDDEF_H
)
check_include_file
(
"stdint.h"
HAVE_STDINT_H
)
check_include_file
(
"stdlib.h"
HAVE_STDLIB_H
)
check_include_file
(
"string.h"
HAVE_STRING_H
)
check_include_file
(
"sys/socket.h"
HAVE_SYS_SOCKET_H
)
check_include_file
(
"sys/time.h"
HAVE_SYS_TIME_H
)
check_include_file
(
"syslog.h"
HAVE_SYSLOG_H
)
check_include_file
(
"time.h"
HAVE_TIME_H
)
check_include_file
(
"unistd.h"
HAVE_UNISTD_H
)
# Checks for typedefs, structures, and compiler characteristics.
# AC_TYPE_SIZE_T
# AC_TYPE_SSIZE_T
# AC_TYPE_UINT8_T
...
...
@@ -309,21 +307,15 @@ endif()
# AC_C_BIGENDIAN
# AC_C_INLINE
# AC_SYS_LARGEFILE
#
# AC_CHECK_MEMBER([struct tm.tm_gmtoff], [have_struct_tm_tm_gmtoff=yes],
# [have_struct_tm_tm_gmtoff=no], [[#include <time.h>]])
#
# if test "x$have_struct_tm_tm_gmtoff" = "xyes"; then
# AC_DEFINE([HAVE_STRUCT_TM_TM_GMTOFF], [1],
# [Define to 1 if you have `struct tm.tm_gmtoff` member.])
# fi
#
# # Check size of pointer to decide we need 8 bytes alignment
# # adjustment.
# AC_CHECK_SIZEOF([int *])
#
# AC_CHECK_SIZEOF([time_t])
#
include
(
CheckStructHasMember
)
CHECK_STRUCT_HAS_MEMBER
(
"struct tm"
tm_gmtoff time.h HAVE_STRUCT_TM_TM_GMTOFF
)
# Check size of pointer to decide we need 8 bytes alignment adjustment.
include
(
CheckTypeSize
)
check_type_size
(
"int *"
SIZEOF_INT_P
)
check_type_size
(
"time_t"
SIZEOF_TIME_T
)
# # Checks for library functions.
#
# # Don't check malloc, since it does not play nicely with C++ stdlib
...
...
cmakeconfig.h.in
View file @
90f5bf79
...
...
@@ -16,3 +16,9 @@
/* Define to 1 if you have `neverbleed` library. */
#cmakedefine HAVE_NEVERBLEED 1
/* sizeof(int *) */
#cmakedefine SIZEOF_INT_P @SIZEOF_INT_P@
/* sizeof(time_t) */
#cmakedefine SIZEOF_TIME_T @SIZEOF_TIME_T@
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