summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-12-28 16:59:07 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-12-28 16:59:07 +0000
commit982a25f6a7183705069d0accbcdb45cf21bdbc86 (patch)
treef516cb62c270cc0bf986c74a467f28abacd47a11
parentbb39111d683808ef4b392caee24b8f43ae6c3eeb (diff)
downloadneon-0.25.x.tar.gz
* macros/neon-test.m4 (NE_FORMAT_TIMET): Factor out.0.25.x
(NEON_TEST): Use it. git-svn-id: http://svn.webdav.org/repos/projects/neon/branches/0.25.x@1106 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
-rw-r--r--macros/neon-test.m415
1 files changed, 9 insertions, 6 deletions
diff --git a/macros/neon-test.m4 b/macros/neon-test.m4
index aec38dd..9fa511d 100644
--- a/macros/neon-test.m4
+++ b/macros/neon-test.m4
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2004 Joe Orton <joe@manyfish.co.uk> -*- autoconf -*-
+# Copyright (C) 2001-2006 Joe Orton <joe@manyfish.co.uk> -*- autoconf -*-
#
# This file is free software; you may copy and/or distribute it with
# or without modifications, as long as this notice is preserved.
@@ -17,9 +17,17 @@
# Tests needed for the neon-test common test code.
+AC_DEFUN([NE_FORMAT_TIMET], [
+NEON_FORMAT(time_t, [
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif])
+])
+
AC_DEFUN([NEON_TEST], [
AC_REQUIRE([NEON_COMMON_CHECKS])
+AC_REQUIRE([NE_FORMAT_TIMET])
AC_REQUIRE([AC_TYPE_PID_T])
AC_REQUIRE([AC_HEADER_TIME])
@@ -35,9 +43,4 @@ AC_CHECK_FUNCS(pipe isatty usleep shutdown)
AC_REQUIRE([NE_FIND_AR])
-NEON_FORMAT(time_t, [
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif])
-
])