# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. #AC_PREREQ(2.57) AC_INIT(src/mac.cpp) #AC_PREFIX_DEFAULT("/usr") PACKAGE=audacious-mac MAJOR_VERSION=0 MINOR_VERSION=2 MICRO_VERSION=0 EXTRA_VERSION= VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION dnl AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION, AC_PACKAGE_BUGREPORT) AM_INIT_AUTOMAKE($PACKAGE, $VERSION, joker@netswarm.net) AM_CONFIG_HEADER(config.h) AM_DISABLE_STATIC AC_SUBST(PACKAGE) AC_SUBST(VERSION) AC_SUBST(EMAIL) AM_MAINTAINER_MODE # Checks for programs. AC_PROG_CXX AC_PROG_CC AM_PROG_LIBTOOL AC_PROG_MAKE_SET PKG_CHECK_MODULES(AUDACIOUS, audacious >= 1.3) AC_ARG_ENABLE(local, [ --enable-local Install Audacious plugin to ~/.audacious/Plugins instead of system location], [case "${enableval}" in yes) install_audacious_plugin_locally=yes ;; no) install_audacious_plugin_locally=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-local-audacious-plugin) ;; esac],[install_audacious_plugin_locally=no]) AM_CONDITIONAL(MAC_INSTALL_AUDACIOUS_PLUGIN_LOCALLY, [test x$install_audacious_plugin_locally = xyes]) LOCAL_AUDACIOUS_INPUT_PLUGIN_DIR="${HOME}/.config/audacious/Plugins/Input" AC_SUBST(LOCAL_AUDACIOUS_INPUT_PLUGIN_DIR) AUDACIOUS_INPUT_PLUGIN_DIR=`$PKG_CONFIG --variable=input_plugin_dir audacious` AC_SUBST(AUDACIOUS_INPUT_PLUGIN_DIR) # Checks for header files. AC_CHECK_HEADER(wchar.h) AC_CHECK_HEADERS([mac/config.h mac/NoWindows.h],,AC_MSG_ERROR([*** MAC lib headers not installed - please install first ***])) AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed - please install first ***])) # Checks for libraries. AC_CHECK_LIB(mac, DecompressFile, []) #MAC_LIBS="-lmac" #MAC_INCLUDES="-I/usr/include/mac" MAC_CXXFLAGS="-g -Wall -pedantic -DBUILD_CROSS_PLATFORM" AC_SUBST(MAC_LIBS) AC_SUBST(MAC_CXXFLAGS) AC_SUBST(MAC_INCLUDES) # Checks for typedefs, structures, and compiler characteristics. # Checks for library functions. AC_CONFIG_FILES([ Makefile src/Makefile src/version.h ]) AC_OUTPUT AC_MSG_RESULT([ Build options: $PACKAGE $VERSION enable-local $install_audacious_plugin_locally ])