Cross Reference: sysexits.m4
xref
: /
osnet-11
/
usr
/
src
/
grub
/
grub2
/
m4
/
sysexits.m4
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
2
N/A
#
sysexits.m4
serial 5
2
N/A
dnl Copyright (C) 2003, 2005, 2007, 2009, 2010 Free Software Foundation, Inc.
2
N/A
dnl This file is free software; the Free Software Foundation
2
N/A
dnl gives unlimited permission to copy
and/or
distribute it,
2
N/A
dnl with or without modifications, as long as this notice is preserved.
2
N/A
2
N/A
AC_DEFUN([gl_SYSEXITS],
2
N/A
[
2
N/A
AC_CHECK_HEADERS_ONCE([
sysexits.h
])
2
N/A
if test $ac_cv_header_sysexits_h = yes; then
2
N/A
HAVE_SYSEXITS_H=1
2
N/A
gl_CHECK_NEXT_HEADERS([
sysexits.h
])
2
N/A
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <
sysexits.h
>]],
2
N/A
[[switch (0)
2
N/A
{
2
N/A
case EX_OK:
2
N/A
case EX_USAGE:
2
N/A
case EX_DATAERR:
2
N/A
case EX_NOINPUT:
2
N/A
case EX_NOUSER:
2
N/A
case EX_NOHOST:
2
N/A
case EX_UNAVAILABLE:
2
N/A
case EX_SOFTWARE:
2
N/A
case EX_OSERR:
2
N/A
case EX_OSFILE:
2
N/A
case EX_CANTCREAT:
2
N/A
case EX_IOERR:
2
N/A
case EX_TEMPFAIL:
2
N/A
case EX_PROTOCOL:
2
N/A
case EX_NOPERM:
2
N/A
case EX_CONFIG:
2
N/A
break;
2
N/A
}
2
N/A
]])],
2
N/A
[SYSEXITS_H=],
2
N/A
[SYSEXITS_H=
sysexits.h
])
2
N/A
else
2
N/A
HAVE_SYSEXITS_H=0
2
N/A
SYSEXITS_H=
sysexits.h
2
N/A
fi
2
N/A
AC_SUBST([HAVE_SYSEXITS_H])
2
N/A
AC_SUBST([SYSEXITS_H])
2
N/A
])