$OpenBSD: patch-configure_in,v 1.3 2002/11/28 20:35:43 margarida Exp $ --- configure.in.orig Sat Jul 6 03:40:52 2002 +++ configure.in Tue Nov 12 15:39:46 2002 @@ -71,7 +71,7 @@ AC_LINK_FILES($nls_cv_header_libgt, $nls AC_CHECK_HEADERS(ctype.h) AC_CHECK_HEADERS(unistd.h string.h getopt.h) AC_CHECK_HEADERS(fcntl.h) -AC_CHECK_HEADERS(sys/soundcard.h linux/soundcard.h machine/soundcard.h) +AC_CHECK_HEADERS(soundcard.h sys/soundcard.h linux/soundcard.h machine/soundcard.h) AC_HEADER_STAT AC_HEADER_DIRENT AC_C_CONST @@ -126,6 +126,12 @@ AC_ARG_WITH(xpm, AC_CHECK_LIB(Xpm, XpmReadFileToXpmImage, , AC_MSG_ERROR(libXpm not found), $X_PRE_LIBS -lX11 $X_LIBS $X_EXTRA_LIBS) + +save_LIBS="$LIBS" +LIBS="" +AC_CHECK_LIB(ossaudio, _oss_ioctl, OSSAUDIO_LIBS="-lossaudio") +AC_SUBST(OSSAUDIO_LIBS) +LIBS="$save_LIBS" AC_CHECK_HEADER(X11/xpm.h, , AC_MSG_ERROR(X11/xpm.h not found))