2 dnl Copyright (C) 2003, 2005, 2007 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 AC_DEFUN([gl_SYSEXITS],
9 AC_CHECK_HEADERS_ONCE([sysexits.h])
10 if test $ac_cv_header_sysexits_h = yes; then
12 gl_ABSOLUTE_HEADER([sysexits.h])
13 ABSOLUTE_SYSEXITS_H=\"$gl_cv_absolute_sysexits_h\"
14 AC_TRY_COMPILE([#include <sysexits.h>],
37 [SYSEXITS_H=sysexits.h])
42 AC_SUBST([HAVE_SYSEXITS_H])
43 AC_SUBST([ABSOLUTE_SYSEXITS_H])
44 AC_SUBST([SYSEXITS_H])