X-Git-Url: https://git.distorted.org.uk/~mdw/jog/blobdiff_plain/2ec1e6937048636ec6761c3a76c5bf9544278601..HEAD:/configure.in diff --git a/configure.in b/configure.in index 67475a3..3f4f816 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl -*-fundamental-*- dnl -dnl $Id: configure.in,v 1.1 2002/01/25 19:34:45 mdw Exp $ +dnl $Id: configure.in,v 1.2 2002/02/02 19:20:36 mdw Exp $ dnl dnl Configuration script for jog dnl @@ -25,20 +25,15 @@ dnl You should have received a copy of the GNU General Public License dnl along with Jog; if not, write to the Free Software Foundation, dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -dnl ----- Revision history -------------------------------------------------- -dnl -dnl $Log: configure.in,v $ -dnl Revision 1.1 2002/01/25 19:34:45 mdw -dnl Initial revision -dnl - AC_INIT(rxglue.c) +AC_CANONICAL_TARGET AM_INIT_AUTOMAKE(jog, 1.0.0) AM_CONFIG_HEADER(config.h) AC_PROG_CC AC_PROG_CPP mdw_GCC_FLAGS +mdw_OPT_TRACE AC_CACHE_CHECK([where to find ], [mdw_cv_rexxsaa_path], [ bad=true @@ -64,6 +59,38 @@ case $mdw_cv_rexxsaa_path in *) AC_MSG_ERROR([Buggered!]) ;; esac +have_sdl=no +AM_PATH_SDL(1.1.0, have_sdl=yes) +AC_MSG_CHECKING([which audio subsystem to select]) +AC_ARG_WITH([ausys], +[ --with-ausys=[VARIANT] use VARIANT of the audio subsystem], +[AUSYS=$withval], +[case $host_os in + cygwin*) AUSYS=win32 ;; + *) AUSYS=sdl ;; +esac]) +AC_SUBST(AUSYS) +AC_MSG_RESULT($AUSYS) +test -f $srcdir/ausys-$AUSYS.c || + AC_MSG_ERROR([no support for audio subsystem \`$AUSYS']) +case $AUSYS in + sdl) + if test $have_sdl = yes; then + LIBS="$LIBS $SDL_LIBS" + CFLAGS="$CFLAGS $SDL_CFLAGS" + else + AC_MSG_ERROR([SDL library not found, or too old]) + fi + ;; +esac + +mdw_DEFINE_PATHS([ + mdw_DEFINE_PATH([JOGSOCKET], [$localstatedir/$PACKAGE/socket], + [Pathname to default socket for socket transport.]) + audiodir='${datadir}/${PACKAGE}/audio' AC_SUBST(audiodir) + mdw_DEFINE_PATH([AUDIODIR], [$audiodir], [Pathname to audio data.]) +]) + mdw_CHECK_MANYLIBS(crypt, crypt) mdw_CHECK_MANYLIBS(dlopen, dl) mdw_CHECK_MANYLIBS(RexxStart, regina rexx) @@ -73,6 +100,6 @@ mdw_MLIB(2.0.0pre4) mdw_TYPE_SSIZE_T -AC_OUTPUT(Makefile) +AC_OUTPUT(Makefile sounds/Makefile) dnl ----- That's all, folks -------------------------------------------------