# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.61) AC_INIT AM_INIT_AUTOMAKE(retro_clock, 1.0) AC_CONFIG_SRCDIR([src/main.c]) AC_CONFIG_HEADER([config.h]) # Checks for programs. AC_PROG_CC AC_PROG_INSTALL AC_ARG_WITH(xynth-prefix, AC_HELP_STRING([--with-xynth-prefix=DIR], [Prefix where xynth is installed (optional)]), [ if test "$withval" != "no" -a "$withval" != "yes" -a -d "$withval"; then export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${withval}/lib/pkgconfig" fi ]) # Checks for libraries. PKG_CHECK_MODULES([xynth], [xynth >= 0.10]) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([string.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_HEADER_TIME AC_STRUCT_TM # Checks for library functions. AC_FUNC_ERROR_AT_LINE AC_FUNC_STRFTIME AC_CONFIG_FILES([Makefile src/Makefile]) AC_OUTPUT