* configure.ac: More complete check for portaudio

* Tools/gsnd/gsnd.m: Fix portaudio include


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21167 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2005-04-29 03:37:03 +00:00
parent cc5f3e4939
commit 9df5199aa1
6 changed files with 26 additions and 103 deletions

View file

@ -1,3 +1,8 @@
2005-04-28 Adam Fedor <fedor@gnu.org>
* configure.ac: More complete check for portaudio
* Tools/gsnd/gsnd.m: Fix portaudio include
2005-04-27 Adrian Robert <arobert@cogsci.ucsd.edu>
* Headers/AppKit/NSApplication.h: Add app_is_launched ivar.
* Source/NSApplication.m (-run): Only go through launch process

View file

@ -48,6 +48,9 @@
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have the <portaudio.h> header file. */
#undef HAVE_PORTAUDIO_H
/* Define to 1 if you have the `rint' function. */
#undef HAVE_RINT

View file

@ -21,7 +21,7 @@
*/
#include <Foundation/Foundation.h>
#include "portaudio/pa_common/portaudio.h"
#include <portaudio.h>
#include <math.h>
#include <unistd.h>
#include <fcntl.h>

View file

@ -1,89 +0,0 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Mozilla/4.79 [en] (Windows NT 5.0; U) [Netscape]">
<meta name="Author" content="Phil Burk">
<meta name="Description" content="PortAudio is a cross platform, open-source, audio I/O library.It provides a very simple API for recording and/or playing sound using a simple callback function.">
<meta name="KeyWords" content="audio, library, portable, open-source, DirectSound,sound, music, JSyn, synthesis,">
<title>PortAudio Implementations for DirectSound</title>
</head>
<body>
&nbsp;
<center><table COLS=1 WIDTH="100%" BGCOLOR="#FADA7A" >
<tr>
<td>
<center>
<h1>
PortAudio - Portable Audio Library</h1></center>
</td>
</tr>
</table></center>
<p>Last updated 5/6/02.
<p>PortAudio is a cross platform, <a href="#License">open-source</a>, audio
I/O library proposed by <b>Ross Bencina</b> to the <a href="http://shoko.calarts.edu/~glmrboy/musicdsp/music-dsp.html">music-dsp</a>
mailing list. It lets you write simple audio programs in 'C' that will
compile and run on <b>Windows, Macintosh, Unix, BeOS</b>. PortAudio is
intended to promote the exchange of audio synthesis software between developers
on different platforms.
<p>For complete information on PortAudio and to download the latest releases,
please visit "<b><font size=+2><a href="http://www.portaudio.com">http://www.portaudio.com</a></font></b>".
<br>&nbsp;
<br>&nbsp;
<center>
<h2>
<b><a href="docs/index.html">Click here for Documentation</a></b></h2></center>
<h2>
<b><font size=+2></font></b></h2>
<h2>
<b><font size=+2>Contacts and E-Mail List</font></b></h2>
<ul>
<li>
If you are using or implementing PortAudio then please join the <b><font size=+1><a href="http://techweb.rfa.org/mailman/listinfo/portaudio">PortAudio
mail list</a></font><font size=+2> </font></b>generously administered by
<b>Bill
Eldridge</b>.</li>
<li>
If you find bugs in one of these implementations, or have suggestions,
please e-mail them to <a href="mailto:philburk@softsynth.com">Phil Burk</a>.</li>
<li>
If you make improvements to the library, please send them to us so we can
incorporate the improvements.</li>
</ul>
<h2>
<a NAME="License"></a>License</h2>
PortAudio Portable Real-Time Audio Library
<br>Copyright (c) 1999-2000 Ross Bencina and Phil Burk
<p>Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following conditions:
<ul>
<li>
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.</li>
<li>
Any person wishing to distribute modifications to the Software is requested
to send the modifications to the original developer so that they can be
incorporated into the canonical version.</li>
</ul>
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND ON INFRINGEMENT.
<br>IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
THE USE OR OTHER DEALINGS IN THE SOFTWARE.
<br>&nbsp;
</body>
</html>

20
configure vendored
View file

@ -5643,10 +5643,10 @@ if test "${enable_gsnd+set}" = set; then
else
enable_gsnd=yes
fi;
audio_ok=no
BUILD_GSND=
# This is only for gsnd, so don't add it to LIBS
save_LIBS="$LIBS"
echo "$as_me:$LINENO: checking for main in -lportaudio" >&5
echo $ECHO_N "checking for main in -lportaudio... $ECHO_C" >&6
if test "${ac_cv_lib_portaudio_main+set}" = set; then
@ -5706,14 +5706,13 @@ fi
echo "$as_me:$LINENO: result: $ac_cv_lib_portaudio_main" >&5
echo "${ECHO_T}$ac_cv_lib_portaudio_main" >&6
if test $ac_cv_lib_portaudio_main = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPORTAUDIO 1
_ACEOF
LIBS="-lportaudio $LIBS"
have_portaudio=yes
else
have_portaudio=no
fi
LIBS="$save_LIBS"
echo "$as_me:$LINENO: checking for afGetVirtualFrameSize in -laudiofile" >&5
echo $ECHO_N "checking for afGetVirtualFrameSize in -laudiofile... $ECHO_C" >&6
@ -5789,7 +5788,8 @@ _ACEOF
fi
for ac_header in audiofile.h
for ac_header in portaudio.h audiofile.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
@ -5939,7 +5939,7 @@ fi
done
if test $ac_cv_lib_portaudio_main = yes -a $enable_gsnd = yes; then
if test $ac_cv_header_portaudio_h = yes -a $have_portaudio = yes -a $enable_gsnd = yes; then
BUILD_GSND=gsnd
fi

View file

@ -305,11 +305,15 @@ AC_ARG_ENABLE(gsnd,
enable_gsnd=yes)
BUILD_GSND=
# This is only for gsnd, so don't add it to LIBS
save_LIBS="$LIBS"
AC_CHECK_LIB(portaudio, main, have_portaudio=yes, have_portaudio=no)
AC_CHECK_LIB(audiofile, afGetVirtualFrameSize)
AC_CHECK_HEADERS(audiofile.h)
LIBS="$save_LIBS"
if test $have_portaudio = yes -a $enable_gsnd = yes; then
AC_CHECK_LIB(audiofile, afGetVirtualFrameSize)
AC_CHECK_HEADERS(portaudio.h audiofile.h)
if test $ac_cv_header_portaudio_h = yes -a $have_portaudio = yes -a $enable_gsnd = yes; then
BUILD_GSND=gsnd
fi
AC_SUBST(BUILD_GSND)