[xiph-cvs] cvs commit: theora configure.in

Ralph Giles giles at xiph.org
Tue Jun 10 03:15:57 PDT 2003



giles       03/06/10 06:15:57

  Modified:    .        configure.in
  Log:
  Generalize the autoconf check for portaudio.
  
  Portaudio requires libpthread and possibly libm on linux. Currently we
  just add -lpthead by rote, which may be incorrect on other systems.

Revision  Changes    Path
1.6       +11 -2     theora/configure.in

Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/theora/configure.in,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- configure.in	10 Jun 2003 09:28:51 -0000	1.5
+++ configure.in	10 Jun 2003 10:15:57 -0000	1.6
@@ -65,8 +65,7 @@
 dnl Check for headers
 dnl --------------------------------------------------
 
-AC_CHECK_FILE(/usr/local/include/portaudio.h,HAVE_PORTAUDIO=yes)
-AM_CONDITIONAL(HAVE_PORTAUDIO, test "$HAVE_PORTAUDIO" = "yes")
+dnl none here
 
 dnl --------------------------------------------------
 dnl Check for typedefs, structures, etc
@@ -83,6 +82,16 @@
         SDL_LIBS=`$SDL_CONFIG --static-libs`
 ],AC_MSG_WARN([*** Unable to find SDL -- Not compiling player_example ***]))
 AM_CONDITIONAL(HAVE_SDL, test "$HAVE_SDL" = "yes")
+
+HAVE_PORTAUDIO=no
+AC_CHECK_LIB(portaudio, Pa_OpenStream, [
+  AC_CHECK_HEADER(portaudio.h, [HAVE_PORTAUDIO=yes])
+  ],,[-lpthread]
+)
+if test "$HAVE_PORTAUDIO" = "no"; then
+  AC_MSG_WARN([portaudio not found -- not compiling splayer example])
+fi
+AM_CONDITIONAL(HAVE_PORTAUDIO, test "$HAVE_PORTAUDIO" = "yes")
 
 dnl --------------------------------------------------
 dnl Do substitutions

<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