summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2004-12-06 23:27:31 +0000
committerSteve Huston <shuston@riverace.com>2004-12-06 23:27:31 +0000
commitbf54c105615cda4f6cd015f02a459cbe5af904c8 (patch)
tree5cb3e303db19eb6fec02cc5946d928ab6b60c523 /m4
parent234aabe2da32189cf93579b30626c5d8600e0601 (diff)
downloadATCD-bf54c105615cda4f6cd015f02a459cbe5af904c8.tar.gz
ChangeLogTag:Mon Dec 6 18:16:39 2004 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'm4')
-rw-r--r--m4/aio.m484
-rw-r--r--m4/config_h.m43
2 files changed, 49 insertions, 38 deletions
diff --git a/m4/aio.m4 b/m4/aio.m4
index 63574e66ff3..5c8e79801da 100644
--- a/m4/aio.m4
+++ b/m4/aio.m4
@@ -275,10 +275,37 @@ main ()
return 0;
}
]])],[
- dnl Now try another test
+ ace_cv_feature_aio_calls=yes
+ ],[
+ ace_cv_feature_aio_calls=no
+ ],[
+ dnl Asynchronous IO test for cross-compiled platforms
+ dnl This test is weaker than the above run-time tests but it will
+ dnl have to do.
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM([[
+#include <aio.h>
+ ]],
+ [[
+ aiocb* aiocb_ptr (void);
+ ]])],
+ [
+ ace_cv_feature_aio_calls=yes
+ ],
+ [
+ ace_cv_feature_aio_calls=no
+ ])
+ ])
+ ],[AC_DEFINE([ACE_HAS_AIO_CALLS])],[LIBS="$ace_save_LIBS"])
+fi dnl test "$ace_has_aio_funcs" = yes
+
- dnl Create a file for the test program to read.
- cat > test_aiosig.txt <<EOF
+if test "$ace_cv_feature_aio_calls" = yes; then
+ ACE_CACHE_CHECK([for working POSIX realtime signals],
+ [ace_cv_feature_posix_rt_sigs],
+ [
+ dnl Create a file for the test program to read.
+ cat > test_aiosig.txt <<EOF
*******************************************************
FOO BAR FOO BAR FOO BAR FOO BAR FOO BAR FOO BAR FOO BAR
@@ -286,8 +313,8 @@ FOO BAR FOO BAR FOO BAR FOO BAR FOO BAR FOO BAR FOO BAR
EOF
- AC_RUN_IFELSE(
- [AC_LANG_SOURCE([[
+ AC_RUN_IFELSE(
+ [AC_LANG_SOURCE([[
#ifndef ACE_LACKS_UNISTD_H
#include <unistd.h>
#endif
@@ -583,41 +610,22 @@ main ()
return -1;
}
- ]])],
- [
- ace_cv_feature_aio_calls=yes
- ],
- [
- ace_cv_feature_aio_calls=no
- ],
- [
+ ]])],
+ [
+ ace_cv_feature_posix_rt_sigs=yes
+ ],
+ [
+ ace_cv_feature_posix_rt_sigs=no
+ ],
+ [
dnl Don't bother doing anything for cross-compiling here
- dnl since the outer run-time test will prevent this
- dnl inner run-time test from ever running when cross-compiling.
+ dnl since the basic aio run-time test will prevent this
+ dnl rt sig run-time test from ever running when cross-compiling.
dnl We just put something in here to prevent autoconf
dnl from complaining.
ace_just_a_place_holder=ignoreme
- ])
- ],[
- ace_cv_feature_aio_calls=no
- ],[
- dnl Asynchronous IO test for cross-compiled platforms
- dnl This test is weaker than the above run-time tests but it will
- dnl have to do.
- AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM([[
-#include <aio.h>
- ]],
- [[
- aiocb* aiocb_ptr (void);
- ]])],
- [
- ace_cv_feature_aio_calls=yes
- ],
- [
- ace_cv_feature_aio_calls=no
- ])
- ])
- ],[AC_DEFINE([ACE_HAS_AIO_CALLS])],[LIBS="$ace_save_LIBS"])
-fi dnl test "$ace_has_aio_funcs" = yes
+ ])
+ ],[AC_DEFINE([ACE_HAS_POSIX_REALTIME_SIGNALS])],[])
+fi dnl test "$ace_cv_feature_aio_calls" = yes
+
])
diff --git a/m4/config_h.m4 b/m4/config_h.m4
index b87330fd816..7b14538d619 100644
--- a/m4/config_h.m4
+++ b/m4/config_h.m4
@@ -542,6 +542,9 @@ AH_TEMPLATE([ACE_HAS_POSIX_GETPWNAM_R],
AH_TEMPLATE([ACE_HAS_POSIX_NONBLOCK],
[Platform supports POSIX O_NONBLOCK semantics])
+AH_TEMPLATE([ACE_HAS_POSIX_REALTIME_SIGNALS],
+[Platform supports POSIX realtime signals])
+
AH_TEMPLATE([ACE_HAS_POSIX_SEM],
[Platform supports POSIX real-time semaphores (e.g., VxWorks and
Solaris)])