File: acinclude.m4

package info (click to toggle)
visualos 1.0.3.cvs20011122-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,276 kB
  • ctags: 2,014
  • sloc: ansic: 13,526; sh: 3,291; makefile: 693; yacc: 439
file content (31 lines) | stat: -rw-r--r-- 652 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#
# Check to make sure that we have O_ASYNC flags in fcntl.h and other wise
# try to use FASYNC.
#

AC_DEFUN(CHECK_O_ASYNC_IN_FCNTL_H,
[
AC_MSG_CHECKING([whether fcntl.h defines O_ASYNC flag])
AC_EGREP_CPP(yes,
[#include <fcntl.h>
 #ifdef O_ASYNC
  yes
 #endif
],AC_MSG_RESULT(yes)
have_O_ASYNC=yes,
AC_MSG_RESULT(no)
have_O_ASYNC=no)
if test "x$have_O_ASYNC" = "xno"; then
	AC_MSG_CHECKING([whether fcntl.h defines FASYNC flag])
	AC_EGREP_CPP(yes,
	[#include <fcntl.h>
	 #ifdef FASYNC
	  yes
	 #endif
	],AC_MSG_RESULT(yes)
	AC_DEFINE(O_ASYNC, FASYNC),
	AC_MSG_RESULT(no)
	echo "***** the program will not compile on this system ******"
	exit 1)
fi
])