diff configure @ 3005:37c5f3dcc651

arghh, fixed shm :(
author alex
date Mon, 19 Nov 2001 16:06:33 +0000
parents cb81a27b00c6
children b3b423a03921
line wrap: on
line diff
--- a/configure	Mon Nov 19 15:54:43 2001 +0000
+++ b/configure	Mon Nov 19 16:06:33 2001 +0000
@@ -1136,11 +1136,14 @@
 
 
 echocheck "shm"
-cat > $TMPC << EOF
+if test "$_shm" = auto ; then
+  _shm=no
+  cat > $TMPC << EOF
 #include <sys/shm.h>
 int main(void) { shmget(0, 0, 0); shmat(0, 0, 0); shmctl(0, 0, 0); return 0; }
 EOF
-cc_check && _shm=yes
+  cc_check && _shm=yes
+fi
 if test "$_shm" = yes ; then
   _def_shm='#define HAVE_SHM 1'
 else