From b8169cbeda3699f3c0159267815cf9a011149950 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sat, 13 Jul 2013 16:35:49 +0200 Subject: configure.ac: Simply check for asprintf and vasprintf --- configure.ac | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac index 57cd233..a0b038e 100644 --- a/configure.ac +++ b/configure.ac @@ -44,16 +44,7 @@ AC_TYPE_UINT32_T AC_TYPE_UINT8_T # Checks for library functions. -AC_CHECK_FUNCS([strcasecmp strdup strerror strndup]) - -AC_CHECK_FUNC(asprintf, [have_asprintf="yes"], [have_asprintf="no"]) -if test "x$have_asprintf" = "xyes"; then - AC_DEFINE(HAVE_ASPRINTF,1,[define if asprintf is available]) -fi -AC_CHECK_FUNC(vasprintf, [have_vasprintf="yes"], [have_vasprintf="no"]) -if test "x$have_vasprintf" = "xyes"; then - AC_DEFINE(HAVE_VASPRINTF,1,[define if vasprintf is available]) -fi +AC_CHECK_FUNCS([asprintf strcasecmp strdup strerror strndup stpcpy vasprintf]) AC_CHECK_HEADER(endian.h, [ac_cv_have_endian_h="yes"], [ac_cv_have_endian_h="no"]) if test "x$ac_cv_have_endian_h" = "xno"; then -- cgit v1.1-32-gdbae