GCC_NEED_DECLARATION used to prevent (maintainer-only) GCC warnings.
[mdsms.git] / configure.in
index bb1e3b7..979a463 100644 (file)
@@ -1,18 +1,4 @@
 # $Id$
-#
-# $Log$
-# Revision 1.4  1999/07/28 10:47:15  short
-# Version bumped to 1.3.
-#
-# Revision 1.3  1999/07/14 01:02:51  short
-# Version bumped to 1.2.
-#
-# Revision 1.2  1999/06/03 11:48:18  short
-# Version bumped to 1.1.
-#
-# Revision 1.1.1.1  1999/05/26 13:06:26  short
-# First alpha release.
-#
 
 dnl Process this file with autoconf to produce a configure script.
 AC_INIT(mdsms.c)
@@ -166,6 +152,15 @@ AC_TRY_RUN([int main() { char s[100];
        return(!(strcmp(s,"m") && strcmp(s,"%m")));
        }],AC_DEFINE(PRINTF_WORKS_PM) AC_MSG_RESULT(yes),AC_MSG_RESULT(no),AC_MSG_RESULT(avoiding))
 
+GCC_NEED_DECLARATION(gethostname, [#include <unistd.h>])
+GCC_NEED_DECLARATION(kill,        [#include <sys/types.h>
+#include <signal.h>])
+GCC_NEED_DECLARATION(snprintf,    [#include <stdio.h>])
+GCC_NEED_DECLARATION(vsnprintf,   [#include <stdio.h>
+#include <stdarg.h>])
+GCC_NEED_DECLARATION(strdup,      [#include <string.h>])
+GCC_NEED_DECLARATION(usleep,      [#include <unistd.h>])
+
 # Final output.
 
 AC_SUBST(LIBOBJS)