File: configure.ac

package info (click to toggle)
unrtf 0.21.5-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 4,940 kB
  • sloc: ansic: 5,022; sh: 4,279; makefile: 112
file content (58 lines) | stat: -rw-r--r-- 1,697 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
49
50
51
52
53
54
55
56
57
58
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)
AC_INIT([unrtf], [0.21.5], [bug-unrtf@gnu.org])
AC_CONFIG_SRCDIR([src/attr.c])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_HEADER([config.h])

# Initialize automake

AM_INIT_AUTOMAKE

# AM_MAINTAINER_MODE is a controversial macro.
# I suggest you read this to understand what is going on:
#
# http://www.gnu.org/software/automake/manual/html_mono/automake.html#maintainer-mode
#
# when acting as a maintainer (writing code, preparing distributions, ...),
# turn the maintainer mode on by using ./configure --enable-maintainer-mode
#
# your users will not see maintainer rules, and so their (potentially
# incompatible) autotools do not have any chance to trigger and mess up things.

AM_MAINTAINER_MODE

# Checks for programs (compiler and installation program)
AC_PROG_CC
AC_PROG_INSTALL

# Checks for header files.
AC_HEADER_STDC

# following is not really necessary, since it is already done by preceding
# macro, but it shows how to extend HAVE_ macros to other headers.
AC_CHECK_HEADERS([stdlib.h stdio.h ctype.h string.h])

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset strchr strstr])

AC_CANONICAL_HOST
case $host in
    *-*-cygwin*)	AC_SUBST(LIBS, ["-liconv"]);;
    *aix*)		AC_SUBST(LIBS, ["-liconv"]);;
    *-*-darwin*)	AC_SUBST(LIBS, ["-liconv"]);;
esac

AC_CONFIG_FILES([Makefile
                 doc/Makefile
                 outputs/Makefile
                 patches/Makefile
                 src/Makefile
                 tests/Makefile])
AC_OUTPUT