-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in
100 lines (80 loc) · 3.28 KB
/
configure.in
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
dnl ===========================================================================
dnl
dnl Process this file with autoconf to produce a configure script.
dnl This is part of an XML patch library.
dnl
dnl Copyright (C) 2005 Nokia Corporation.
dnl
dnl Contact: Jari Urpalainen <[email protected]>
dnl
dnl This library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public
dnl License as published by the Free Software Foundation; either
dnl version 2.1 of the License, or (at your option) any later version.
dnl
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Lesser General Public License for more details.
dnl
dnl You should have received a copy of the GNU Lesser General Public
dnl License along with this library; if not, write to the Free Software
dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
dnl
dnl ===========================================================================
dnl ===========================================================================
dnl Process this file with autoconf to produce a configure script.
dnl ===========================================================================
AC_INIT([libxmlpatch], [0.4.0])
dnl ===========================================================================
dnl Get host, target and build variables filled with appropriate info.
dnl Validate cache.
dnl ===========================================================================
AC_CANONICAL_HOST
dnl ===========================================================================
dnl Init automake
dnl ===========================================================================
AM_INIT_AUTOMAKE([foreign])
AM_CONFIG_HEADER(config.h)
dnl ===========================================================================
dnl Accepted arguments to ./configure...
dnl ===========================================================================
dnl AC_PREFIX_DEFAULT(/usr/local)
dnl ===========================================================================
dnl Checks for programs.
dnl ===========================================================================
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_CHECK_PROG(RANLIB, ranlib, ranlib, echo)
AC_CHECK_PROG(AR, ar, ar, echo)
AC_CHECK_PROG(LD, ld, ld, echo)
AC_PROG_LIBTOOL
dnl ===========================================================================
dnl Checks for header files.
dnl ===========================================================================
AC_HEADER_STDC
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "$PKG_CONFIG" == "no" ; then
AC_MSG_ERROR([You should install pkg-config])
fi
PKG_CHECK_MODULES(DEPS_XML, libxml-2.0)
PKG_CHECK_MODULES(DEPS_GLIB, glib-2.0)
AC_SUBST(DEPS_XML_CFLAGS)
AC_SUBST(DEPS_XML_LIBS)
AC_SUBST(DEPS_GLIB_CFLAGS)
AC_SUBST(DEPS_GLIB_LIBS)
AM_MISSING_PROG(HELP2MAN, help2man)
dnl ===========================================================================
dnl Output files
dnl ===========================================================================
AC_OUTPUT([
Makefile
xml-patch.spec
src/Makefile
src/libxmlpatch.pc
diff/Makefile
diff/libxmldiff.pc
tests/Makefile
man/Makefile
])