diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-04 22:26:42 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-04 22:26:42 +0000 |
commit | cc37c6c56486f353d6b16c9bff212fc8cff44284 (patch) | |
tree | 26e36be6b360fb7bde559bbba001ab1df4e2e436 | |
parent | 01b9ae45c62cd142c157f2f9766264eb7da5a549 (diff) | |
download | coreutils-cc37c6c56486f353d6b16c9bff212fc8cff44284.tar.xz |
Add copyright notice.
(GNULIB_BOOT_TIME): Include sys/param.h before testing
for sys/sysctl.h; needed for OpenBSD 3.4.
-rw-r--r-- | m4/boottime.m4 | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/m4/boottime.m4 b/m4/boottime.m4 index e4f405483..f7acb08d4 100644 --- a/m4/boottime.m4 +++ b/m4/boottime.m4 @@ -1,11 +1,33 @@ +# boottime.m4 serial 2 # Determine whether this system has infrastructure for obtaining the boot time. +# Copyright (C) 1996, 2000, 2002, 2003, 2004 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + # GNULIB_BOOT_TIME([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) * ---------------------------------------------------------- AC_DEFUN([GNULIB_BOOT_TIME], [ AC_CHECK_FUNCS(sysctl) - AC_CHECK_HEADERS(sys/sysctl.h) + AC_CHECK_HEADERS_ONCE(sys/param.h) + AC_CHECK_HEADERS(sys/sysctl.h, [], [], + [AC_INCLUDES_DEFAULT + [#if HAVE_SYS_PARAM_H + #include <sys/param.h> + #endif]]) AC_CACHE_CHECK( [whether we can get the system boot time], [gnulib_cv_have_boot_time], @@ -14,7 +36,9 @@ AC_DEFUN([GNULIB_BOOT_TIME], [AC_LANG_PROGRAM( [AC_INCLUDES_DEFAULT #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H -# include <sys/param.h> /* needed for OpenBSD 3.0 */ +# if HAVE_SYS_PARAM_H +# include <sys/param.h> /* needed for OpenBSD 3.0 */ +# endif # include <sys/sysctl.h> #endif #ifdef HAVE_UTMPX_H |