aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2006-09-04 13:34:48 +0000
committerJörg Mayer <jmayer@loplof.de>2006-09-04 13:34:48 +0000
commit56934c59cb84d17b19af45b3128d936bed2cc826 (patch)
tree3dc814c44c01d2a96e56a8b4cb00923ca8b9d515 /acinclude.m4
parent76192b1c6c0d1a4b48ae990c5a0cbecb810cff01 (diff)
Use portaudio if it's there. Check that we have the right version.
Note: This check is currently carried out by checking that the include defines PortAudioStream. If you know of any better check, please let me know. acinclude.m4: Replace sequences of 8 spaces by tab svn path=/trunk/; revision=19131
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m460
1 files changed, 44 insertions, 16 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 829857cf79..3f6bbd7465 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -605,7 +605,7 @@ AC_DEFUN([AC_WIRESHARK_ZLIB_CHECK],
# zlib there, or didn't find a zlib that
# contains gzgets there.
#
- CFLAGS="$wireshark_save_CFLAGS"
+ CFLAGS="$wireshark_save_CFLAGS"
CPPFLAGS="$wireshark_save_CPPFLAGS"
LIBS="$wireshark_save_LIBS"
fi
@@ -636,7 +636,7 @@ AC_DEFUN([AC_WIRESHARK_ZLIB_CHECK],
CFLAGS="$CFLAGS $GTK_CFLAGS"
LIBS="$GTK_LIBS -lz $LIBS"
AC_MSG_CHECKING([for gzgets missing when linking with X11])
- AC_TRY_LINK_FUNC(gzgets, AC_MSG_RESULT(no),
+ AC_TRY_LINK_FUNC(gzgets, AC_MSG_RESULT(no),
[
AC_MSG_RESULT(yes)
AC_MSG_ERROR(old zlib found when linking with X11 - get rid of old zlib.)
@@ -895,22 +895,22 @@ AC_DEFUN([AC_WIRESHARK_LIBLUA_CHECK],[
#
if test "x$lua_dir" != "x"
then
- #
- # Restore the versions of CFLAGS, CPPFLAGS,
- # LDFLAGS, and LIBS before we added the
- # "--with-lua=" directory, as we didn't
- # actually find lua there.
- #
- CFLAGS="$wireshark_save_CFLAGS"
- CPPFLAGS="$wireshark_save_CPPFLAGS"
- LDFLAGS="$wireshark_save_LDFLAGS"
- LIBS="$wireshark_save_LIBS"
- LUA_LIBS=""
+ #
+ # Restore the versions of CFLAGS, CPPFLAGS,
+ # LDFLAGS, and LIBS before we added the
+ # "--with-lua=" directory, as we didn't
+ # actually find lua there.
+ #
+ CFLAGS="$wireshark_save_CFLAGS"
+ CPPFLAGS="$wireshark_save_CPPFLAGS"
+ LDFLAGS="$wireshark_save_LDFLAGS"
+ LIBS="$wireshark_save_LIBS"
+ LUA_LIBS=""
fi
# User requested --with-lua but it isn't available
if test "x$want_lua" = "xyes"
then
- AC_MSG_ERROR(Linking with liblualib failed.)
+ AC_MSG_ERROR(Linking with liblualib failed.)
fi
want_lua=no
])
@@ -1016,6 +1016,11 @@ AC_DEFUN([AC_WIRESHARK_LIBPORTAUDIO_CHECK],[
#
AC_MSG_ERROR([libportaudio header not found in directory specified in --with-portaudio])
else
+ CFLAGS="$wireshark_save_CFLAGS"
+ CPPFLAGS="$wireshark_save_CPPFLAGS"
+ LDFLAGS="$wireshark_save_LDFLAGS"
+ LIBS="$wireshark_save_LIBS"
+ PORTAUDIO_LIBS=""
if test "x$want_portaudio" = "xyes"
then
#
@@ -1033,6 +1038,29 @@ AC_DEFUN([AC_WIRESHARK_LIBPORTAUDIO_CHECK],[
fi
])
+ #
+ # Check whether we have the right version of portaudio
+ #
+ if test "x$want_portaudio" != "xno"
+ then
+ AC_MSG_CHECKING(whether PortAudioStream is defined in portaudio.h)
+ AC_CHECK_TYPE(PortAudioStream,,
+ [
+ CFLAGS="$wireshark_save_CFLAGS"
+ CPPFLAGS="$wireshark_save_CPPFLAGS"
+ LDFLAGS="$wireshark_save_LDFLAGS"
+ LIBS="$wireshark_save_LIBS"
+ PORTAUDIO_LIBS=""
+ if test x$want_portaudio = xyes;
+ then
+ AC_MSG_ERROR(Wrong version of portaudio includes)
+ else
+ want_portaudio=no
+ fi
+ ],
+ [INCLUDES=portaudio.h])
+ fi
+
if test "x$want_portaudio" != "xno"
then
#
@@ -1100,9 +1128,9 @@ AC_DEFUN([AC_WIRESHARK_NETSNMP_CHECK],
#
AC_PATH_PROG(NETSNMPCONFIG, net-snmp-config)
else
- NETSNMPCONFIG=$netsnmpconfig
+ NETSNMPCNFIG=$netsnmpconfig
if test ! -x $NETSNMPCONFIG -o ! -f $NETSNMPCONFIG ; then
- NETSNMPCONFIG=$netsnmpconfig/bin/net-snmp-config
+ ETSNMPCONFIG=$netsnmpconfig/bin/net-snmp-config
if test ! -x $NETSNMPCONFIG -o ! -f $NETSNMPCONFIG ; then
AC_MSG_ERROR(Invalid net-snmp-config: $netsnmpconfig)
fi