test for sys/soundcard.h was failing because of missing sys/ioctl.h

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-08-05 13:24:02 +00:00
parent f2c88494b6
commit 31714590f3
2 changed files with 11 additions and 7 deletions

10
configure vendored
View File

@ -40881,8 +40881,8 @@ _ACEOF
fi
if test "$USE_UNIX" = "1" ; then
echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
if test "${ac_cv_header_sys_soundcard+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
@ -40894,13 +40894,14 @@ cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/ioctl.h>
#include <sys/soundcard.h>
int
main ()
{
ioctl(0, SNDCTL_DSP_SYNC, 0);
ioctl(0, SNDCTL_DSP_SPEED, 0);
;
return 0;
@ -40942,13 +40943,14 @@ cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/ioctl.h>
#include <sys/soundcard.h>
int
main ()
{
ioctl(0, SNDCTL_DSP_SYNC, 0);
ioctl(0, SNDCTL_DSP_SPEED, 0);
;
return 0;

View File

@ -5423,22 +5423,24 @@ if test "$USE_UNIX" = "1" ; then
dnl it's not enough to check for just the header because OSS under NetBSD
dnl redefines ioctl as oss_ioctrl inside it and so we also need to test
dnl whether we need -lossaudio at link-time
AC_CACHE_CHECK([for ioctl() in sys/soundcard.h], ac_cv_header_sys_soundcard, [
AC_CACHE_CHECK([for SNDCTL_DSP_SPEED in sys/soundcard.h], ac_cv_header_sys_soundcard, [
AC_TRY_LINK([
#include <sys/ioctl.h>
#include <sys/soundcard.h>
],
[
ioctl(0, SNDCTL_DSP_SYNC, 0);
ioctl(0, SNDCTL_DSP_SPEED, 0);
],
ac_cv_header_sys_soundcard=yes,
[
saveLibs="$LIBS"
LIBS="$saveLibs -lossaudio"
AC_TRY_LINK([
#include <sys/ioctl.h>
#include <sys/soundcard.h>
],
[
ioctl(0, SNDCTL_DSP_SYNC, 0);
ioctl(0, SNDCTL_DSP_SPEED, 0);
],
ac_cv_header_sys_soundcard=yes,
[