Incorrect autoconf macro to test for these was leading to a large hack.
Using the right macro fixes this issue and links as needed.
srand48 \
srandom \
statfs \
- strsep \
- strtoll \
sysconf \
syslog \
timegm \
getaddrinfo \
getnameinfo \
strerror \
+ strsep \
+ strtoll \
tempnam \
)
AC_DEFINE(HAVE_STRNSTR,0,[Yay! A MacOS X brokenness. Its not good enough to know that strnstr() exists, because MacOSX 10.4 and earlier may have a buffer overrun.])
fi
-
-AM_CONDITIONAL(NEED_OWN_STRSEP, false)
-if test "$ac_cv_func_strsep" = "no" ; then
- AM_CONDITIONAL(NEED_OWN_STRSEP, true)
-fi
-
-AM_CONDITIONAL(NEED_OWN_STRTOLL, false)
-if test "$ac_cv_func_strtoll" = "no" ; then
- AM_CONDITIONAL(NEED_OWN_STRTOLL, true)
-fi
-
dnl
dnl Test for va_copy
dnl
XPROF_STATS_SOURCE =
endif
-if NEED_OWN_STRSEP
-STRSEPSOURCE=strsep.c
-else
-STRSEPSOURCE=
-endif
-if NEED_OWN_STRTOLL
-STRTOLLSOURCE=strtoll.c
-else
-STRTOLLSOURCE=
-endif
-
if ENABLE_WIN32SPECIFIC
LIBSSPWIN32=libsspwin32.a
WIN32SRC = win32lib.c
getopt.c \
md5.c \
Profiler.c \
- strsep.c \
- strtoll.c \
win32lib.c
libmiscutil_a_SOURCES = \
MemPool.cc \
$(SNPRINTFSOURCE) \
Splay.cc \
strnstr.cc \
- $(STRSEPSOURCE) \
- $(STRTOLLSOURCE) \
stub_memaccount.c \
util.c \
uudecode.c \