# HG changeset patch # User alex # Date 1006185283 0 # Node ID cb81a27b00c6f9002e46a7b62c3e476076d5ea34 # Parent 16a593a1e6edbb2ca5d2909a113e89a1f59d2c55 added shm detection diff -r 16a593a1e6ed -r cb81a27b00c6 configure --- a/configure Mon Nov 19 15:51:17 2001 +0000 +++ b/configure Mon Nov 19 15:54:43 2001 +0000 @@ -671,6 +671,7 @@ _largefiles=no _vo2=no _language=en +_shm=auto for ac_option do @@ -767,6 +768,8 @@ --disable-largefiles) _largefiles=no ;; --enable-vo2) _vo2=yes ;; --disable-vo2) _vo2=no ;; + --enable-shm) _shm=yes ;; + --disable-shm) _shm=no ;; --enable-select) _def_select='#define HAVE_AUDIO_SELECT' ;; --disable-select) _def_select='#undef HAVE_AUDIO_SELECT' ;; @@ -1080,6 +1083,7 @@ fi echores "$_dl" + echocheck "pthread" cat > $TMPC << EOF #include @@ -1131,6 +1135,20 @@ echores "$_termcap" +echocheck "shm" +cat > $TMPC << EOF +#include +int main(void) { shmget(0, 0, 0); shmat(0, 0, 0); shmctl(0, 0, 0); return 0; } +EOF +cc_check && _shm=yes +if test "$_shm" = yes ; then + _def_shm='#define HAVE_SHM 1' +else + _def_shm='#undef HAVE_SHM' +fi +echores "$_shm" + + echocheck "3dfx" if test "$_3dfx" = yes ; then _def_3dfx='#define HAVE_3DFX 1' @@ -2441,6 +2459,9 @@ /* Define this if you have zlib */ $_def_zlib +/* Define this if you have shm support */ +$_def_shm + /* Define this if your system has vsscanf */ $_def_vsscanf