+dnl check for OpenAL libraries
+case "${host}" in
+*-*-cygwin* | *-*-mingw32*)
+ dnl CygWin under Windoze.
+
+ LIBS="$LIBS -lalut -lopenal32 -lwinmm -ldsound -ldxguid -lole32"
+ ;;
+
+*-apple-darwin*)
+ dnl Mac OS X
+
+ LIBS="$LIBS -framework IOKit -framework OpenAL"
+ ;;
+
+*)
+ dnl default unix style machines
+
+ AC_SEARCH_LIBS(alGenBuffers, openal)
+ ;;
+
+esac
+
+openal_LIBS="$LIBS"
+LIBS="$base_LIBS"
+