Do not build strlcpy.c when it will have no code.

This commit is contained in:
Nick Mathewson 2013-03-31 14:05:26 -04:00
parent 81ea0c4c7a
commit 4914620025
2 changed files with 4 additions and 1 deletions

View File

@ -156,6 +156,9 @@ SYS_INCLUDES =
endif
if STRLCPY_IMPL
SYS_SRC += strlcpy.c
endif
if SELECT_BACKEND
SYS_SRC += select.c
endif
@ -200,7 +203,6 @@ CORE_SRC = \
evutil_time.c \
listener.c \
log.c \
strlcpy.c \
$(SYS_SRC)
EXTRAS_SRC = \

View File

@ -362,6 +362,7 @@ AC_CHECK_FUNCS([ \
usleep \
vasprintf \
])
AM_CONDITIONAL(STRLCPY_IMPL, [test x"$ac_cv_func_strlcpy" = xno])
AC_CACHE_CHECK(
[for getaddrinfo],