[xiph-cvs] cvs commit: icecast acinclude.m4 configure.in

Karl Heyes karl at xiph.org
Mon Apr 21 10:52:12 PDT 2003



karl        03/04/21 13:52:12

  Modified:    .        acinclude.m4 configure.in
  Log:
  autoconf updates. Now builds on OpenBSD

Revision  Changes    Path
1.4       +1 -1      icecast/acinclude.m4

Index: acinclude.m4
===================================================================
RCS file: /usr/local/cvsroot/icecast/acinclude.m4,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- acinclude.m4	14 Mar 2003 00:45:49 -0000	1.3
+++ acinclude.m4	21 Apr 2003 17:52:12 -0000	1.4
@@ -465,7 +465,7 @@
         if test "x$flag" != xno; then
                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
         fi
-        AC_CHECK_TYPES(pthread_rwlock_t)
+        AC_CHECK_TYPES(pthread_rwlock_t,,,[#include <pthread.h>])
 
         LIBS="$save_LIBS"
         CFLAGS="$save_CFLAGS"

<p><p>1.28      +18 -18    icecast/configure.in

Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/icecast/configure.in,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- configure.in	27 Mar 2003 17:09:33 -0000	1.27
+++ configure.in	21 Apr 2003 17:52:12 -0000	1.28
@@ -12,7 +12,12 @@
 
 SOCKET_LIBS=
 
-AC_DEFINE(_XOPEN_SOURCE, 500, [Define if you have POSIX and XPG specifications])
+case "$ac_cv_host" in
+    *openbsd*)
+    ;;
+    *) AC_DEFINE(_XOPEN_SOURCE, 500, [Define if you have POSIX and XPG specifications])
+    ;;
+esac
 if test -z "$GCC"; then
         case $host in 
         *-*-irix*)
@@ -24,7 +29,7 @@
                 DEBUG="-v -g -D_REENTRANT"
                 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92 -D_REENTRANT"
                 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc -D_REENTRANT"
-		SOCKET_LIBS="-lnsl -lsocket -lresolv"
+                SOCKET_LIBS="-lnsl -lsocket -lresolv"
                 ;;
         *)
                 DEBUG="-g -D_REENTRANT"
@@ -38,35 +43,30 @@
                 DEBUG="-g -Wall -fsigned-char -D_REENTRANT -D_GNU_SOURCE"
                 CFLAGS="-O20 -ffast-math -fsigned-char -D_REENTRANT -D_GNU_SOURCE"
                 PROFILE="-Wall -W -pg -g -O20 -ffast-math -fsigned-char -D_REENTRANT -D_GNU_SOURCE"
-        		LIBS=" $LIBS -lpthread"
                 ;;
         sparc-sun-solaris*)
                 DEBUG="-g -Wall -fsigned-char -mv8 -D_REENTRANT"
                 CFLAGS="-O20 -ffast-math -fsigned-char -mv8 -D_REENTRANT"
                 PROFILE="-pg -g -O20 -fsigned-char -mv8 -D_REENTRANT" 
-		        SOCKET_LIBS="-lnsl -lsocket -lresolv"
-        		LIBS=" $LIBS -lpthread"
+                SOCKET_LIBS="-lnsl -lsocket -lresolv"
                 ;;
-	*-pc-solaris*)
+	    *-pc-solaris*)
                 DEBUG="-g -Wall -fsigned-char -D_REENTRANT"
                 CFLAGS="-O20 -ffast-math -fsigned-char -D_REENTRANT"
                 PROFILE="-pg -g -O20 -fsigned-char -D_REENTRANT" 
-		        SOCKET_LIBS="-lnsl -lsocket -lresolv"
-        		LIBS=" $LIBS -lpthread"
+                SOCKET_LIBS="-lnsl -lsocket -lresolv"
                 ;;
         *freebsd*)
-                DEBUG="-g -Wall -fsigned-char -D_REENTRANT"
-                CFLAGS="-O20 -fsigned-char -D_REENTRANT"
-                PROFILE="-O20 -g -pg -fsigned-char -D_REENTRANT" 
-        		LIBS=" $LIBS -pthread"
-		ogg_prefix="/usr/local"
-		vorbis_prefix="/usr/local"
+                DEBUG="-g -Wall -fsigned-char"
+                CFLAGS="-O20 -fsigned-char"
+                PROFILE="-O20 -g -pg -fsigned-char" 
+                ogg_prefix="/usr/local"
+                vorbis_prefix="/usr/local"
                 ;;
         *)
-                DEBUG="-g -Wall -fsigned-char -D_REENTRANT"
-                CFLAGS="-O20 -fsigned-char -D_REENTRANT"
-                PROFILE="-O20 -g -pg -fsigned-char -D_REENTRANT" 
-		        LIBS=" $LIBS -lpthread"
+                DEBUG="-g -Wall -fsigned-char"
+                CFLAGS="-O20 -Wall -fsigned-char"
+                PROFILE="-O20 -g -pg -Wall -fsigned-char" 
                 ;;
         esac
 fi

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list