summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2010-01-13 16:28:15 +0000
committerBenny Prijono <bennylp@teluu.com>2010-01-13 16:28:15 +0000
commit2c9bdd7e514a478d3dc17a6b85a12dec20c15fb0 (patch)
treec79aed89fc63fbc64c7b23d921caea30e0bed3a1 /aconfigure.ac
parent8cc7aef25ecc698b6fdfa620877f72e6b8dd536f (diff)
Ticket #1025: Support for using different PortAudio installation/path
- added --with-pa-path configure option - remove the use of PaUtil_SetDebugPrintFunction() since this is not always available across all PA versions (?) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3058 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'aconfigure.ac')
-rw-r--r--aconfigure.ac24
1 files changed, 24 insertions, 0 deletions
diff --git a/aconfigure.ac b/aconfigure.ac
index 0eedcfc6..8e476c06 100644
--- a/aconfigure.ac
+++ b/aconfigure.ac
@@ -388,6 +388,30 @@ AC_ARG_ENABLE(sound,
fi]
)
+dnl # PortAudio path. If ac_pa_path is not empty, we're using PortAudio
+dnl # in external location (not under third_party)
+AC_SUBST(ac_pa_path)
+AC_ARG_WITH(pa-path,
+ AC_HELP_STRING([--with-pa-path=DIR],
+ [Specify PortAudio alternate location (e.g. /usr). When this option is set, we will not use our copy of PortAudio in third_party directory.]),
+ [
+ if test "x$with_pa_path" != "xno"; then
+ ac_pa_path=$with_pa_path
+ # Remove trailing backslash
+ ac_pa_path=`echo $ac_pa_path | sed 's/\/$//'`
+ # Test the path
+ #if test ! -f $ac_pa_path/include/portaudio.h; then
+ # AC_MSG_ERROR([Wrong --with-pa-path value, $ac_pa_path/include/portaudio.h does not exist])
+ #fi
+ #if test ! -d $ac_pa_path/lib; then
+ # AC_MSG_ERROR([Wrong --with-pa-path value, $ac_pa_path/lib does not exist])
+ #fi
+ AC_MSG_RESULT([** Using PortAudio in $ac_pa_path **])
+ fi
+ ]
+ )
+
+
AC_SUBST(ac_pa_cflags)
AC_CHECK_HEADER(sys/soundcard.h,
[ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"])