summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: af8af43)
raw | patch | inline | side by side (parent: af8af43)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Sat, 8 Mar 2003 11:44:37 +0000 (11:44 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Sat, 8 Mar 2003 11:44:37 +0000 (11:44 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@386 f882894a-f735-0410-b71e-b25c423dba1c
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index 7fccb98dba53b6a2260408b12eb2a452cfa2a10e..029b583c0bc1d51f0e79e588b76d051dfcf0689f 100644 (file)
--- a/configure.in
+++ b/configure.in
AC_DEFINE(HAVE_VA_COPY,1,[Define if system has va_copy])
fi
+AC_CHECK_FUNCS(vsnprintf snprintf asprintf vasprintf)
AC_CACHE_CHECK([for C99 vsnprintf],ac_cv_HAVE_C99_VSNPRINTF,[
AC_TRY_RUN([
#include <sys/types.h>
AC_DEFINE(HAVE_C99_VSNPRINTF,1,[Define if system has C99 compatible vsnprintf])
fi
-#AC_HAVE_DECL(asprintf, [#include <stdio.h>])
-#AC_HAVE_DECL(vasprintf, [#include <stdio.h>])
-#AC_HAVE_DECL(vsnprintf, [#include <stdio.h>])
-#AC_HAVE_DECL(snprintf, [#include <stdio.h>])
-
-AC_CHECK_FUNC(snprintf,
- AC_DEFINE(HAVE_SNPRINTF,1,[Define if snprintf is present]),
- LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a")
-AC_CHECK_FUNC(vsnprintf,
- AC_DEFINE(HAVE_VSNPRINTF,1,[Define if vsnprintf is present]),
- LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a")
-AC_CHECK_FUNC(vasprintf,
- AC_DEFINE(HAVE_VASPRINTF,1,[Define if vasprintf is present]),
- LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a")
-AC_CHECK_FUNC(asprintf,
- AC_DEFINE(HAVE_ASPRINTF,1,[Define if asprintf is present]),
- LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a")
-
-if test x"$ac_cv_HAVE_SNPRINTF" = x"no" -o x"$ac_cv_HAVE_VSNPRINTF" = x"no" -o x"$ac_cv_HAVE_VASPRINTF" = x"no" -o x"$ac_cv_HAVE_ASPRINTF" = x"no"; then
- LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a"
-fi
-
AC_TRY_COMPILE([#include <sys/time.h>],
[struct timeval *tv;
struct timezone *tz;],