Download M4 Source Macro History Category Index

etr_sysv_ipc

Synopsis

ETR_SYSV_IPC

Description

This macro checks for the SysV IPC header files. It only checks that you can compile a program with them, not whether the system actually implements working SysV IPC.

Author

Warren Young <warren@etr-usa.com>

Last Modified

2001-05-25

M4 Source Code

AC_DEFUN([ETR_SYSV_IPC],
[
AC_CACHE_CHECK([for System V IPC headers], ac_cv_sysv_ipc, [
        AC_TRY_COMPILE(
                [
                        #include <sys/types.h>
                        #include <sys/ipc.h>
                        #include <sys/msg.h>
                        #include <sys/sem.h>
                        #include <sys/shm.h>
                ],, ac_cv_sysv_ipc=yes, ac_cv_sysv_ipc=no)
])

        if test x"$ac_cv_sysv_ipc" = "xyes"
        then
                AC_DEFINE(HAVE_SYSV_IPC, 1, [ Define if you have System V IPC ])
        fi
]) dnl ETR_SYSV_IPC

License

Copyright © 2001 Warren Young <warren@etr-usa.com>

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.