File: configure.ac

package info (click to toggle)
taningia 0.2.2-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,944 kB
  • ctags: 687
  • sloc: sh: 10,949; ansic: 5,443; makefile: 44
file content (53 lines) | stat: -rw-r--r-- 1,204 bytes parent folder | download | duplicates (2)
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
49
50
51
52
53
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.61])
AC_INIT([taningia], [0.2.2], [http://projects.comum.org/taningia])
AC_CONFIG_SRCDIR([src])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE(foreign)
LT_INIT

AM_SILENT_RULES([yes])

# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_LIBTOOL

# Checks for libraries.
AC_CHECK_LIB([pthread], [pthread_create])
AC_CHECK_LIB([resolv], [res_querydomain],
              enable_libresolv=yes,
              enable_libresolv=no)
AM_CONDITIONAL([ENABLE_LIBRESOLV], [test "$enable_libresolv" = "yes"])

# Checks for header files.
AC_CHECK_HEADERS([string.h])

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_MKTIME
AC_FUNC_REALLOC
AC_CHECK_FUNCS([strchr strdup strndup strrchr])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_C_INLINE

# Checks for .pc packages
PKG_CHECK_MODULES([IKSEMEL], [iksemel])
AC_SUBST([IKSEMEL_CFLAGS])
AC_SUBST([IKSEMEL_LIBS])

AC_CONFIG_FILES([
  Makefile
  include/Makefile
  include/taningia/Makefile
  src/Makefile
  examples/Makefile
  taningia.pc
])

AC_OUTPUT