X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/dfcccf43766e22aec8793b0a3f963d5ec5a52b80..1ed63b5:/configure.ac diff --git a/configure.ac b/configure.ac index cef1d6b7..ed3e14e3 100644 --- a/configure.ac +++ b/configure.ac @@ -428,12 +428,13 @@ AC_REPLACE_FUNCS(strlcat strlcpy strdup strsep getservent getopt_long) AC_CHECK_FUNCS(fork vfork strftime) AC_CHECK_FUNCS(setlinebuf) -needsnprintf=no -AC_CHECK_FUNCS(vsnprintf snprintf,, - [needsnprintf=yes]) -if test $needsnprintf = yes; then - AC_LIBOBJ(snprintf) -fi +# +# Make sure we have vsnprintf() and snprintf(); we require them. +# +AC_CHECK_FUNC(vsnprintf,, + AC_MSG_ERROR([vsnprintf() is required but wasn't found])) +AC_CHECK_FUNC(snprintf,, + AC_MSG_ERROR([snprintf() is required but wasn't found])) AC_CHECK_LIB(rpc, main) dnl It's unclear why we might need -lrpc