File: configure.ac

package info (click to toggle)
debfoster 2.7-2.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,188 kB
  • sloc: sh: 4,243; ansic: 2,397; perl: 39; makefile: 26; sed: 16
file content (38 lines) | stat: -rw-r--r-- 905 bytes parent folder | download | duplicates (5)
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
dnl Process this file with autoconf to produce a configure script.

AC_INIT(src/debfoster.c)
AM_CONFIG_HEADER(src/config.h)
AM_INIT_AUTOMAKE(debfoster, 2.7)
AM_MAINTAINER_MODE

ISODATE=`date +%Y-%m-%d`
AC_SUBST(ISODATE)

AC_CANONICAL_HOST

dnl Checks for programs.
AC_PROG_INSTALL
AC_PROG_CC

dnl Add -Wall if we are using GCC.
if test "x$GCC" = xyes; then
   AM_CFLAGS=-Wall
fi
AC_SUBST(AM_CFLAGS)

AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.14.5])

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)
dnl AC_CHECK_HEADER(avl.h, , AC_MSG_ERROR([libavl >= 0.3.1 was not found on the system]))

dnl Checks for specific functions.
AC_FUNC_ALLOCA

dnl Checks for libraries.
dnl AC_CHECK_LIB(avl, avl_insert_node, , AC_MSG_ERROR([libavl >= 0.3.1 was not found on the system]))
AC_CHECK_LIB(gc, GC_malloc)

AC_OUTPUT(Makefile src/Makefile etc/Makefile doc/Makefile po/Makefile.in)