configure.in from Gdb at Krugle
Show configure.in syntax highlighted
dnl Process this file with autoconf to produce a configure script.
AC_INIT(Makefile.in)
AC_CONFIG_AUX_DIR(../../config)
AM_INIT_AUTOMAKE(sidcomp,0.1)
AM_CONFIG_HEADER(config.h:config.in)
dnl automake support
AM_MAINTAINER_MODE
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
AC_PROG_CXX
AC_PROG_CXXCPP
AC_EXEEXT
AC_LANG_CPLUSPLUS
dnl both varieties
AC_CHECK_LIB(m, main)
dnl pick hosts
case "$host" in
*-cygwin*)
AC_DEFINE(SOUND_CYGWIN, 1, [Define if Windows sound API should be used])
AC_CHECK_LIB(winmm, main)
AC_CHECK_LIB(kernel32, main)
AC_CHECK_HEADERS(mmsystem.h mmreg.h)
;;
*-solaris*)
AC_DEFINE(SOUND_SOLARIS, 1, [Define if Solaris sound API should be used])
AC_CHECK_HEADERS(sys/audioio.h)
;;
*-linux*)
AC_DEFINE(SOUND_LINUX, 1, [Define if Linux sound API should be used])
AC_CHECK_HEADERS(sys/ioctl.h sys/soundcard.h)
;;
*)
AC_DEFINE(SOUND_NONE, 1, [Define if no sound API is available])
AC_MSG_WARN(Audio is not supported on this host)
;;
esac
dnl building docs
RH_DOCBUILD_CHECK
dnl Outputs
AC_OUTPUT(Makefile)
See more files for this project here