2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([audiosum], [0.1], [alvarezp@alvarezp.ods.org])
6 AC_CONFIG_AUX_DIR([config])
7 AC_CONFIG_SRCDIR([src/audiosum.c])
8 AC_CONFIG_HEADER([config.h])
10 AM_INIT_AUTOMAKE([-Wall foreign])
12 # Checks for programs.
15 # Checks for libraries.
17 # Checks for header files.
19 AC_CHECK_HEADERS([string.h])
21 # Checks for typedefs, structures, and compiler characteristics.
24 # Checks for library functions.
25 AC_CHECK_LIB([mhash], [mhash_init], , [ERROR=1; ERROR_MSG=`printf "%s\n%s\n" "$ERROR_MSG" "Requirement missing: mhash library."`])
26 AC_CHECK_FUNCS([pow strstr])
28 AS_IF([test "$ERROR" = "1"], [echo; echo $ERROR_MSG; echo; exit])
30 AC_CONFIG_FILES([Makefile