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
|
# Process this file with autoconf to produce a configure script.
# Sets up package and initializes build system.
AC_INIT([MP3FS], [0.31])
AC_CONFIG_SRCDIR([src/mp3fs.c])
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE([foreign])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
AC_CHECK_LIB([mp3lame], [lame_init],, [AC_MSG_ERROR([You must have liblame-dev installed to build mp3fs.])])
# Checks for header files.
AC_CHECK_HEADER([lame/lame.h],, [AC_MSG_ERROR([You must have liblame-dev installed to build mp3fs.])])
# Checks for packages which use pkg-config.
PKG_CHECK_MODULES([fuse], [fuse >= 2.6.0])
PKG_CHECK_MODULES([id3tag], [id3tag])
PKG_CHECK_MODULES([flac], [flac >= 1.1.4])
# Large file support
AC_SYS_LARGEFILE
# Outputs resulting files.
AC_CONFIG_FILES([Makefile
src/Makefile
test/Makefile])
AC_OUTPUT
|