Browse Source

Add support for 10.11 SDK so PortAudio can compile on Mac.

Also allow deprecated APIs until we can remove them.

Note that this commit only includes the source files that were changed.
The next commit will include the files that are generated by autoreconf.
So look at this commit to see what really changed.
tags/pa_stable_v190600_20161030
philburk 3 years ago
parent
commit
6e9b37491a
2 changed files with 23 additions and 4 deletions
  1. 12
    2
      README.configure.txt
  2. 11
    2
      configure.in

+ 12
- 2
README.configure.txt View File

@@ -1,16 +1,26 @@
1 1
 PortAudio uses "autoconf" tools to generate Makefiles for Linux and Mac platforms.
2 2
 The source for these are configure.in and Makefile.in
3 3
 If you modify either of these files then please run this command before
4
-testing and checking in your changes.
4
+testing and checking in your changes. I run this command on Linux.
5 5
 
6 6
    autoreconf -if
7 7
 
8
+If you do not have autoreconf then do:
9
+   sudo apt-get install autoconf
10
+
11
+If you get error like "possibly undefined macro: AC_LIBTOOL_WIN32_DLL"
12
+then you try installing some more packages and then try again.
13
+
14
+   sudo apt-get install build-essential
15
+   sudo apt-get install pkg-config
16
+   sudo apt-get install libtool
17
+   autoreconf -if
18
+
8 19
 Then test a build by doing:
9 20
    
10 21
    ./configure
11 22
    make clean
12 23
    make
13
-   sudo make install
14 24
 
15 25
 then check in the related files that are modified.
16 26
 These might include files like:

+ 11
- 2
configure.in View File

@@ -204,7 +204,7 @@ case "${host_os}" in
204 204
 
205 205
         AC_DEFINE(PA_USE_COREAUDIO,1)
206 206
 
207
-        CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix -Werror"
207
+        CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix -Wno-deprecated -Werror"
208 208
         LIBS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon"
209 209
 
210 210
         if test "x$enable_mac_universal" = "xyes" ; then
@@ -249,8 +249,17 @@ case "${host_os}" in
249 249
               elif xcodebuild -version -sdk macosx10.9 Path >/dev/null 2>&1 ; then
250 250
                  mac_version_min="-mmacosx-version-min=10.4"
251 251
                  mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.9 Path`"
252
+              elif xcodebuild -version -sdk macosx10.10 Path >/dev/null 2>&1 ; then
253
+                 mac_version_min="-mmacosx-version-min=10.4"
254
+                 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.10 Path`"
255
+              elif xcodebuild -version -sdk macosx10.11 Path >/dev/null 2>&1 ; then
256
+                 mac_version_min="-mmacosx-version-min=10.4"
257
+                 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.11 Path`"
258
+              elif xcodebuild -version -sdk macosx10.12 Path >/dev/null 2>&1 ; then
259
+                 mac_version_min="-mmacosx-version-min=10.4"
260
+                 mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.12 Path`"
252 261
               else
253
-                 AC_MSG_ERROR([Couldn't find 10.5, 10.6, 10.7, 10.8 or 10.9 SDK])
262
+                 AC_MSG_ERROR([Could not find 10.5 to 10.12 SDK.])
254 263
               fi
255 264
            esac
256 265
 

Loading…
Cancel
Save