mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-23 16:00:07 +00:00
Check netinet/in.h. Disable AC_FUNC_MALLOC on cross-compiling.
Added AC_CANONICAL_{BUILD,HOST,TARGET}
This commit is contained in:
parent
9e716eb635
commit
54fbae7fe0
@ -30,6 +30,10 @@ AC_SUBST(LT_CURRENT, 0)
|
||||
AC_SUBST(LT_REVISION, 0)
|
||||
AC_SUBST(LT_AGE, 0)
|
||||
|
||||
AC_CANONICAL_BUILD
|
||||
AC_CANONICAL_HOST
|
||||
AC_CANONICAL_TARGET
|
||||
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
|
||||
AM_INIT_AUTOMAKE()
|
||||
@ -89,6 +93,7 @@ PKG_CHECK_MODULES([OPENSSL], [openssl >= 1.0.1])
|
||||
# Checks for header files.
|
||||
AC_CHECK_HEADERS([ \
|
||||
arpa/inet.h \
|
||||
netinet/in.h \
|
||||
stddef.h \
|
||||
stdint.h \
|
||||
stdlib.h \
|
||||
@ -108,7 +113,9 @@ AC_CHECK_TYPES([ptrdiff_t])
|
||||
AC_C_BIGENDIAN
|
||||
|
||||
# Checks for library functions.
|
||||
AC_FUNC_MALLOC
|
||||
if test "x$cross_compiling" != "xyes"; then
|
||||
AC_FUNC_MALLOC
|
||||
fi
|
||||
AC_CHECK_FUNCS([ \
|
||||
memmove \
|
||||
memset \
|
||||
|
Loading…
Reference in New Issue
Block a user