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
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT([autoproject], [0.20])
AC_CONFIG_SRCDIR([autoproject.in])
dnl Every other copy of the package version number gets its value from here
AM_INIT_AUTOMAKE
AC_SUBST(VERSION)
ISODATE=`date +%Y-%m-%d`
AC_SUBST(ISODATE)
dnl Checks for programs.
AC_PROG_INSTALL
AC_PROG_CC
AC_PROG_AWK
dnl maybe bash is not in /bin on this system
AC_PATH_PROG(bash, bash, FAIL)
if test "$bash" = "FAIL"; then
AC_MSG_ERROR(Cannot continue: bash not found)
fi
AC_PATH_PROG(autoconf, autoconf, FAIL)
if test "$autoconf" = "FAIL"; then
AC_MSG_ERROR(Cannot continue: autoconf not found)
fi
AC_PATH_PROG(automake, automake, FAIL)
if test "$automake" = "FAIL"; then
AC_MSG_ERROR(Cannot continue: automake not found)
fi
dnl Checks for libraries.
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for library functions.
AC_OUTPUT(Makefile autoproject.lsm autoproject)
|