File: configure.in

package info (click to toggle)
nd 0.8.2-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,164 kB
  • ctags: 377
  • sloc: ansic: 7,810; sh: 717; makefile: 392
file content (48 lines) | stat: -rw-r--r-- 1,045 bytes parent folder | download | duplicates (3)
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
46
47
48
# 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`"

dnl Check for libmhash2.
AC_CHECK_HEADERS(mhash.h)
LIBS="$LIBS -lmhash"

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([errno.h fcntl.h stdlib.h string.h unistd.h time.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 time])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT