blob: dd237948179ff74ff0d431719a162ea733b58445 (
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
|
AC_INIT([shared-mime-info],[0.20],[https://bugs.freedesktop.org/enter_bug.cgi?product=shared-mime-info])
AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-bzip2])
AC_CONFIG_HEADERS([config.h])
dnl Checks for programs.
AC_PROG_CC
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
IT_PROG_INTLTOOL([0.35.0])
GETTEXT_PACKAGE=shared-mime-info
AC_SUBST(GETTEXT_PACKAGE)
AM_GLIB_GNU_GETTEXT
dnl Check pkg-config is installed
PKG_CHECK_MODULES(ALL, \
libxml-2.0 >= 2.4 \
glib-2.0 >= 2.2.0)
AC_SUBST(ALL_CFLAGS)
AC_SUBST(ALL_LIBS)
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)
AC_CONFIG_FILES([
Makefile
shared-mime-info.pc
po/Makefile.in
])
AC_OUTPUT
|