mirbsd: add some more support
authorEric Blake <eblake@redhat.com>
Fri, 17 Sep 2010 22:36:08 +0000 (16:36 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 17 Sep 2010 22:40:40 +0000 (16:40 -0600)
* m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
in BSD family.
* m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
devices as OpenBSD.
* m4/host-os.m4 (mirbsd): Add MirBSD.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
m4/c-stack.m4
m4/gc-random.m4
m4/host-os.m4

index 4a4f733f4c8a26114c9eada144bc37dea5f4492f..9f180a0d03ec61aebb59dd41717fae76756adc15 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2010-09-17  Eric Blake  <eblake@redhat.com>
 
+       mirbsd: add some more support
+       * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
+       in BSD family.
+       * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
+       devices as OpenBSD.
+       * m4/host-os.m4 (mirbsd): Add MirBSD.
+
        tests: fix unportable assumption on sys/wait.h
        * tests/test-sys_wait.c (main): Relax test.
        * tests/test-stdlib.c (main): Likewise.
index 634f4440540dc9237f23f0b833af6fb3e371e942..f2b9cc38d11e8f98011508f2cc7a417f5cdcace0 100644 (file)
@@ -8,7 +8,7 @@
 
 # Written by Paul Eggert.
 
-# serial 10
+# serial 11
 
 AC_DEFUN([AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC],
   [# for STACK_DIRECTION
@@ -21,7 +21,7 @@ AC_DEFUN([AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC],
    dnl is accessed, or when the stack overflows.
    dnl Either { SIGSEGV } or { SIGSEGV, SIGBUS }.
    case "$host_os" in
-     sunos4* | freebsd* | dragonfly* | openbsd* | netbsd* | kfreebsd* | knetbsd*) # BSD systems
+     sunos4* | freebsd* | dragonfly* | openbsd* | mirbsd* | netbsd* | kfreebsd* | knetbsd*) # BSD systems
        FAULT_YIELDS_SIGBUS=1 ;;
      hpux*) # HP-UX
        FAULT_YIELDS_SIGBUS=1 ;;
index bd41183b834e4ea2df67a4ff5e190e7a1720b93b..91ff667e8044df1a35ab5a58d0df221c43d8a284 100644 (file)
@@ -1,4 +1,4 @@
-# gc-random.m4 serial 4
+# gc-random.m4 serial 5
 dnl Copyright (C) 2005-2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -12,7 +12,7 @@ AC_DEFUN([gl_GC_RANDOM],
   AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
   case "$host_os" in
-    *openbsd*)
+    *openbsd* | *mirbsd*)
       NAME_OF_RANDOM_DEVICE="/dev/srandom"
       NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/prandom"
       NAME_OF_NONCE_DEVICE="/dev/urandom"
index 0f6241404081f9657ef593eecbb652777fd04e77..739c2077a4780e58463f8edc1383e13d46f0d2b7 100644 (file)
@@ -1,4 +1,4 @@
-# serial 7
+# serial 8
 
 # Copyright (C) 2001, 2003-2004, 2006, 2009-2010 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -40,6 +40,7 @@ AC_DEFUN([gl_HOST_OS],
        nonstopux*)      os='NonStop-UX';;
        netbsd*-gnu*)    os='GNU/NetBSD';; # NetBSD kernel+libc, GNU userland
        netbsd*)         os='NetBSD';;
+       mirbsd*)         os='MirBSD';;
        knetbsd*-gnu)    os='GNU/kNetBSD';; # NetBSD kernel, GNU libc+userland
        kfreebsd*-gnu)   os='GNU/kFreeBSD';; # FreeBSD kernel, GNU libc+userland
        msdosdjgpp*)     os='DJGPP';;