xref: /PHP-8.4/ext/sysvmsg/config.m4 (revision 540b9f5b)
1PHP_ARG_ENABLE([sysvmsg],
2  [whether to enable System V IPC support],
3  [AS_HELP_STRING([--enable-sysvmsg],
4    [Enable sysvmsg support])])
5
6if test "$PHP_SYSVMSG" != "no"; then
7  AC_CHECK_HEADER([sys/msg.h],,
8    [AC_MSG_FAILURE(m4_text_wrap([
9      Cannot enable System V IPC support. Required <sys/msg.h> header file not
10      found.
11    ]))])
12
13  AC_DEFINE([HAVE_SYSVMSG], [1],
14    [Define to 1 if the PHP extension 'sysvmsg' is available.])
15  PHP_NEW_EXTENSION([sysvmsg], [sysvmsg.c], [$ext_shared])
16fi
17