[Nagiosplug-checkins] CVS: nagiosplug configure.in,1.49,1.50

Ton Voon tonvoon at users.sourceforge.net
Sat Mar 8 03:45:03 CET 2003


Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1:/tmp/cvs-serv19728

Modified Files:
	configure.in 
Log Message:
snprintf checks in configure.in like samba


Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -r1.49 -r1.50
*** configure.in	7 Mar 2003 22:11:23 -0000	1.49
--- configure.in	8 Mar 2003 11:44:37 -0000	1.50
***************
*** 494,497 ****
--- 494,498 ----
  fi
  
+ AC_CHECK_FUNCS(vsnprintf snprintf asprintf vasprintf)
  AC_CACHE_CHECK([for C99 vsnprintf],ac_cv_HAVE_C99_VSNPRINTF,[
  AC_TRY_RUN([
***************
*** 522,547 ****
  if test x"$ac_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
      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
  
--- 523,526 ----





More information about the Commits mailing list