annotate m4/sysexits.m4 @ 400:573ed4940625 3.0-beta1 3.0-beta1

Fixed inclusion of documentation in make dist
author lost@l-w.ca
date Fri, 23 Jul 2010 17:32:29 -0600
parents 7987ee447833
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
398
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
1 # sysexits.m4 serial 5
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
2 dnl Copyright (C) 2003, 2005, 2007, 2009, 2010 Free Software Foundation, Inc.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
6
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
7 AC_DEFUN([gl_SYSEXITS],
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
8 [
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
9 AC_CHECK_HEADERS_ONCE([sysexits.h])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
10 if test $ac_cv_header_sysexits_h = yes; then
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
11 HAVE_SYSEXITS_H=1
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
12 gl_CHECK_NEXT_HEADERS([sysexits.h])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
13 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sysexits.h>]],
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
14 [[switch (0)
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
15 {
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
16 case EX_OK:
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
17 case EX_USAGE:
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
18 case EX_DATAERR:
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
19 case EX_NOINPUT:
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
20 case EX_NOUSER:
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
21 case EX_NOHOST:
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
22 case EX_UNAVAILABLE:
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
23 case EX_SOFTWARE:
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
24 case EX_OSERR:
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
25 case EX_OSFILE:
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
26 case EX_CANTCREAT:
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
27 case EX_IOERR:
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
28 case EX_TEMPFAIL:
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
29 case EX_PROTOCOL:
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
30 case EX_NOPERM:
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
31 case EX_CONFIG:
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
32 break;
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
33 }
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
34 ]])],
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
35 [SYSEXITS_H=],
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
36 [SYSEXITS_H=sysexits.h])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
37 else
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
38 HAVE_SYSEXITS_H=0
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
39 SYSEXITS_H=sysexits.h
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
40 fi
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
41 AC_SUBST([HAVE_SYSEXITS_H])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
42 AC_SUBST([SYSEXITS_H])
7987ee447833 Added generated files for release
lost@l-w.ca
parents:
diff changeset
43 ])