1 # sys_utsname_h.m4 serial 1
2 dnl Copyright (C) 2009 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 dnl Written by Bruno Haible.
9 AC_DEFUN([gl_SYS_UTSNAME_H],
11 dnl Use AC_REQUIRE here, so that the default behavior below is expanded
12 dnl once only, before all statements that occur in other macros.
13 AC_REQUIRE([gl_SYS_UTSNAME_H_DEFAULTS])
15 AC_CHECK_HEADERS_ONCE([sys/utsname.h])
16 if test $ac_cv_header_sys_utsname_h != yes; then
17 SYS_UTSNAME_H='sys/utsname.h'
21 AC_DEFUN([gl_SYS_UTSNAME_MODULE_INDICATOR],
23 dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
24 AC_REQUIRE([gl_SYS_UTSNAME_H_DEFAULTS])
25 GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
28 AC_DEFUN([gl_SYS_UTSNAME_H_DEFAULTS],
30 GNULIB_UNAME=0; AC_SUBST([GNULIB_UNAME])
31 dnl Assume proper GNU behavior unless another module says otherwise.
32 HAVE_UNAME=1; AC_SUBST([HAVE_UNAME])
33 SYS_UTSNAME_H=''; AC_SUBST([SYS_UTSNAME_H])