File: configure.in

package info (click to toggle)
nd 0.8.2-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge
  • size: 376 kB
  • ctags: 184
  • sloc: ansic: 2,585; sh: 717; makefile: 62
file content (44 lines) | stat: -rw-r--r-- 960 bytes parent folder | download | duplicates (6)
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
# Process this file with autoconf to produce a configure script.

AC_INIT(main.c)

PACKAGE=nd
MAJOR_VERSION=0
MINOR_VERSION=8
MICRO_VERSION=2
INTERFACE_AGE=6
BINARY_AGE=0

VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION

AM_INIT_AUTOMAKE(nd, $VERSION)

AM_CONFIG_HEADER(config.h)

# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL

# Checks for libraries.
dnl Check libxml2.
AC_PATH_PROG(XML_CONFIG, xml2-config, no)
if test "$XML_CONFIG" = "no"; then
  AC_MSG_ERROR([libxml2 not installed - please install first])
fi
CPPFLAGS="$CPPFLAGS `$XML_CONFIG --cflags`"
AC_CHECK_HEADERS(parser.h)
LIBS="$LIBS `$XML_CONFIG --libs`"

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([errno.h fcntl.h stdlib.h string.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

# Checks for library functions.
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([getpass memset strchr strerror strncasecmp])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT