summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>2001-08-15 11:13:57 +0000
committerbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>2001-08-15 11:13:57 +0000
commitdd71ad34cabbbb0f7e73f203b134d1a7c7884250 (patch)
tree4929ccc50cc07923fc0087ba86e00cecbd14364c /configure.in
parent10c8c673df8f68eb458fef51e321e6cb96c9a621 (diff)
downloadlibapr-dd71ad34cabbbb0f7e73f203b134d1a7c7884250.tar.gz
Allow for OS/2 in shared memory type test.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62166 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index a126e5495..b08f74b28 100644
--- a/configure.in
+++ b/configure.in
@@ -391,6 +391,7 @@ AC_HAVE_HEADERS(sys/ipc.h sys/shm.h sys/file.h)
AC_HAVE_FUNCS(shmget shmat shmdt shmctl)
AC_HAVE_HEADERS(kernel/OS.h)
AC_HAVE_FUNCS(create_area)
+AC_HAVE_HEADERS(os2.h)
dnl Now we determine which one is our preference.
APR_BEGIN_DECISION([shared memory allocation method])
@@ -412,6 +413,8 @@ APR_IFALLYES(header:sys/mman.h func:mmap func:munmap,
[Classical mmap() on temporary file]))
APR_IFALLYES(header:kernel/OS.h func:create_area,
APR_DECIDE(USE_SHMEM_BEOS, [BeOS areas]))
+APR_IFALLYES(header:os2.h,
+ APR_DECIDE(USE_SHMEM_OS2, [OS/2 DosAllocSharedMem()]))
APR_END_DECISION
AC_DEFINE_UNQUOTED($ac_decision)
@@ -421,6 +424,7 @@ usemmapzero="0"
useshmget="0"
usemmapanon="0"
usebeosarea="0"
+useos2shm="0"
mem_based="0"
file_based="1"
@@ -449,10 +453,14 @@ case $ac_decision in
usebeosarea="1"
mem_based="1"
;;
+ USE_SHMEM_OS2 )
+ useos2shm="1"
+ file_based="0"
+ ;;
esac
dnl Do we have any shared memory support?
-if test "$usemmaptmp$usemmapshm$usemmapzero$useshmget$usemmapanon$usebeosarea" = "000000"; then
+if test "$usemmaptmp$usemmapshm$usemmapzero$useshmget$usemmapanon$usebeosarea$useos2shm" = "0000000"; then
sharedmem="0"
else
sharedmem="1"