File: configure.ac

package info (click to toggle)
tnef 1.4.12-1.2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 19,252 kB
  • ctags: 379
  • sloc: ansic: 3,183; sh: 1,700; makefile: 197; perl: 60; awk: 58
file content (67 lines) | stat: -rw-r--r-- 1,598 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
AC_PREREQ(2.59)
AC_INIT([tnef],[1.4.12],[verdammelt@gmail.com])
AC_CONFIG_SRCDIR([src/tnef.c])
AM_INIT_AUTOMAKE
AC_CONFIG_HEADER([src/config.h])
AC_CONFIG_LIBOBJ_DIR(src/replace)

dnl check for programs
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_RANLIB

dnl check for libraries
AC_CHECK_LIB([intl],gettext)

dnl check for headers
AC_HEADER_STDC
AC_CHECK_HEADERS([libintl.h])
AC_CHECK_DECLS([basename])

dnl check for typedefs
AC_TYPE_SIZE_T
AC_HEADER_STAT

dnl check for structures 

dnl check for compiler characteristics.
AC_C_CONST
AC_CHECK_SIZEOF(int)

dnl check for library functions
AC_REPLACE_FUNCS(strdup getopt_long basename)
AC_CHECK_FUNCS(strrchr memmove memset strtoul)
AC_FUNC_VPRINTF
AC_FUNC_MALLOC

dnl do not use this, will try to add in lstat.c which is unnecessary
dnl AC_FUNC_STAT

dnl check for system services

dnl extra arguments:
AM_MAINTAINER_MODE
AC_ARG_ENABLE( warnings, 
               [ --enable-warnings	enable compile warnings],
               AC_COMPILE_WARNINGS)
AC_ARG_ENABLE( debug,
               [ --enable-debug  enable debug build],
               AC_DEBUG_COMPILE)

dnl output
AC_CONFIG_FILES([Makefile BUGS tnef.spec 
                 doc/Makefile doc/tnef.1 doc/www/Makefile 
                 doc/www/cgi-bin/Makefile doc/www/htdocs/Makefile
                 src/Makefile src/replace/Makefile
                 tests/Makefile 
                 tests/cmdline/Makefile 
                 tests/files/Makefile
                 tests/files/baselines/Makefile 
                 tests/files/datafiles/Makefile])

AC_OUTPUT