3 dnl Copyright (C) 2003, 2005, 2007, 2009-2024 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 AC_DEFUN([gl_SYSEXITS],
10 AC_CHECK_HEADERS_ONCE([sysexits.h])
11 if test $ac_cv_header_sysexits_h = yes; then
13 gl_CHECK_NEXT_HEADERS([sysexits.h])
14 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sysexits.h>]],
36 [GL_GENERATE_SYSEXITS_H=false],
37 [GL_GENERATE_SYSEXITS_H=true])
40 GL_GENERATE_SYSEXITS_H=true
42 AC_SUBST([HAVE_SYSEXITS_H])