blob: 99128f72729414f2fa170c782488075784beaf54 [file] [log] [blame]
Benny Prijonod9627842007-04-18 09:24:31 +00001# @configure_input@
2
3# Define the desired sound device backend
4# Valid values are:
5# - pa_unix: PortAudio on Unix (OSS or ALSA)
6# - pa_darwinos: PortAudio on MacOSX (CoreAudio)
7# - pa_old_darwinos: PortAudio on MacOSX (old CoreAudio, for OSX 10.2)
8# - pa_win32: PortAudio on Win32 (WMME)
9#
10# There are other values below, but these are handled by PJMEDIA's Makefile
11# - ds: Win32 DirectSound (dsound.c)
12# - null: Null sound device (nullsound.c)
13AC_PJMEDIA_SND=@ac_pjmedia_snd@
14
15# For Unix, specify if ALSA should be supported
16AC_PA_USE_ALSA=@ac_pa_use_alsa@
17
Benny Prijono0b462322008-03-12 22:44:24 +000018# For Unix, specify if OSS should be supported
19AC_PA_USE_OSS=@ac_pa_use_oss@
20
Benny Prijonod9627842007-04-18 09:24:31 +000021# Additional PortAudio CFLAGS are in @ac_pa_cflags@
22
23
24#
25# PortAudio on Unix
26#
27ifeq ($(AC_PJMEDIA_SND),pa_unix)
28# Host APIs and utils
29export PORTAUDIO_OBJS += pa_unix_hostapis.o pa_unix_util.o
30
31# Include ALSA?
32ifeq ($(AC_PA_USE_ALSA),1)
33export CFLAGS += -DPA_USE_ALSA=1
34export PORTAUDIO_OBJS += pa_linux_alsa.o
35endif
36
Benny Prijonod9627842007-04-18 09:24:31 +000037export CFLAGS += @ac_pa_cflags@
Benny Prijonod9627842007-04-18 09:24:31 +000038endif
39
Benny Prijono0b462322008-03-12 22:44:24 +000040# Include OSS?
41ifeq ($(AC_PA_USE_OSS),1)
42export CFLAGS += -DPA_USE_OSS=1
43export PORTAUDIO_OBJS += pa_unix_oss.o
44endif
Benny Prijonod9627842007-04-18 09:24:31 +000045
46#
47# PortAudio on MacOS X (using current PortAudio)
48#
49ifeq ($(AC_PJMEDIA_SND),pa_darwinos)
Benny Prijono3a3f0782008-03-25 10:09:20 +000050export PORTAUDIO_OBJS +=pa_mac_hostapis.o \
Benny Prijonod9627842007-04-18 09:24:31 +000051 pa_unix_util.o \
52 pa_mac_core.o \
53 pa_mac_core_blocking.o \
54 pa_mac_core_utilities.o \
55 pa_ringbuffer.o
56export CFLAGS += -DPA_USE_COREAUDIO=1
57export CFLAGS += @ac_pa_cflags@
58endif
59
60#
61# PortAudio on MacOS X (using old PortAudio, for MacOS X 10.2.x)
62#
63ifeq ($(AC_PJMEDIA_SND),pa_old_darwinos)
64export PORTAUDIO_OBJS +=pa_mac_hostapis.o \
65 pa_unix_util.o \
66 pa_mac_core_old.o
67export CFLAGS += -DPA_USE_COREAUDIO=1
68export CFLAGS += @ac_pa_cflags@
69endif
70
71#
72#
73# PortAudio on Win32 (WMME)
74#
75ifeq ($(AC_PJMEDIA_SND),pa_win32)
76export PORTAUDIO_OBJS += pa_win_hostapis.o pa_win_util.o \
Benny Prijonob4d107e2008-03-19 17:06:09 +000077 pa_win_wmme.o pa_win_waveformat.o
Benny Prijonod9627842007-04-18 09:24:31 +000078export CFLAGS += -DPA_NO_ASIO -DPA_NO_DS
79endif