1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
dnl (PD) 2001 The Bitzi Corporation
dnl Please see file COPYING or http://bitzi.com/publicdomain
dnl for more info.
dnl
dnl $Id: configure.in,v 1.8 2001/05/14 22:28:00 mayhemchaos Exp $
AC_INIT(src/bitcollider.c)
VERSION="0.3.1"
AM_INIT_AUTOMAKE(bitcollider, "$VERSION")
dnl AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
CFLAGS="-Wall -g -O3"
dnl Checks for programs.
AC_PROG_AWK
AC_PROG_CC
AM_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)
AC_PROG_INSTALL
AC_C_BIGENDIAN
AC_CHECK_SIZEOF(long)
dnl Checks for libraries.
dnl Checks for header files.
dnl Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_LIB(ogg, ogg_sync_init, have_ogg="yes", have_ogg="no")
AC_CHECK_LIB(vorbisfile, ov_info, have_vorbis="yes",have_vorbis="no",
-lvorbis -logg)
if test "$have_ogg" = "yes"; then
if test "$have_vorbis" = "yes"; then
AC_DEFINE(USE_VORBIS)
VORBIS_LIBS="-lvorbisfile -lvorbis -logg"
AC_SUBST(VORBIS_LIBS)
AC_MSG_RESULT([compiling ogg/vorbis support])
fi
fi
if test "${prefix}" = "NONE"; then
prefix="/usr/local"
fi
AC_SUBST(CFLAGS)
AC_DEFINE_UNQUOTED(PREFIX, "${prefix}")
AM_CONFIG_HEADER(config.h)
AC_OUTPUT(Makefile lib/Makefile src/Makefile vorbis/Makefile wav/Makefile, echo timestamp > stamp-h)
|