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