blob: b2bddb69a7df1131480f71150d5eb4aa842b857f (
plain)
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
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT(freedesktop.org.xml.in)
AM_INIT_AUTOMAKE(shared-mime-info, 0.14)
AC_PROG_INTLTOOL
AM_CONFIG_HEADER(config.h)
GETTEXT_PACKAGE=shared-mime-info
AC_SUBST(GETTEXT_PACKAGE)
ALL_LINGUAS="az cs cy de el fi fr hu ko nl nn no sv sr"
AM_GLIB_GNU_GETTEXT
dnl Check pkg-config is installed
if test -z "$PKG_CONFIG"; then
PKG_CONFIG=pkg-config
fi
AC_SUBST(PKG_CONFIG)
AC_MSG_CHECKING(that pkg-config runs)
if "$PKG_CONFIG" --version > /dev/null 2>&1 ; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
AC_MSG_ERROR([*** $PKG_CONFIG missing ***
\'$PKG_CONFIG --version\' failed to run - make sure it is inside one of the
directories in your PATH environment variable!
pkg-config is available from this web page:
http://www.freedesktop.org/software/pkgconfig
])
fi
AC_DEFUN(REQUIRE, [
AC_MSG_CHECKING(that $1 (version >= $2) is installed)
if "$PKG_CONFIG" --atleast-version=$2 $1 ; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
if "$PKG_CONFIG" --exists $1 ; then
AC_MSG_ERROR(Current version is only `"$PKG_CONFIG" "$1" --modversion`)
else
AC_MSG_ERROR(Package is not installed)
fi
fi
])
dnl Check for libxml and glib
REQUIRE(libxml-2.0, 2.4.0)
REQUIRE(glib-2.0, 2.0.0)
dnl Checks for programs.
AC_PROG_CC
dnl Use -Wall, etc if possible
[
if test "x$GCC" = "xyes"; then
case " $CFLAGS " in
*[\ \ ]-Wall[\ \ ]*) ;;
*) CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings" ;;
esac
fi
]
AC_ARG_ENABLE(update-mimedb,
AC_HELP_STRING([--disable-update-mimedb],
[disable the update-mime-database after install [default=no]]),,
enable_update_mimedb=yes)
AM_CONDITIONAL(ENABLE_UPDATE_MIMEDB, test x$enable_update_mimedb = xyes)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
mimedir=['${datadir}/mime']
AC_SUBST(mimedir)
AC_OUTPUT(
Makefile
shared-mime-info.pc
po/Makefile.in
)
|