Add Cygwin/MingW support for winmm library... (STR #1121)

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4707 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet
2005-12-14 02:27:23 +00:00
parent 4ba1119822
commit e73818789d
+15 -6
View File
@@ -426,13 +426,22 @@ AC_CHECK_FUNC(strtoll, AC_DEFINE(HAVE_STRTOLL))
dnl Check for audio libraries... dnl Check for audio libraries...
AUDIOLIBS="" AUDIOLIBS=""
AC_CHECK_HEADER(alsa/asoundlib.h, case $uname in
AC_DEFINE(HAVE_ALSA_ASOUNDLIB_H) CYGWIN* | MINGW*)
AUDIOLIBS="-lasound") dnl Cygwin environment...
AUDIOLIBS="-lwinmm"
;;
if test x$uname = xDarwin; then Darwin*)
AUDIOLIBS="-framework CoreAudio" AUDIOLIBS="-framework CoreAudio"
fi ;;
*)
AC_CHECK_HEADER(alsa/asoundlib.h,
AC_DEFINE(HAVE_ALSA_ASOUNDLIB_H)
AUDIOLIBS="-lasound")
;;
esac
AC_SUBST(AUDIOLIBS) AC_SUBST(AUDIOLIBS)