-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathconfigure.ac
42 lines (40 loc) · 999 Bytes
/
configure.ac
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
AC_PREREQ(2.59)
AC_INIT(omweather-gismeteo-ru-source, 0.5)
AM_INIT_AUTOMAKE(omweather-gismeteo-ru-source, 0.5)
AC_CONFIG_HEADER([src/config.h:src/config.h.in])
AC_CONFIG_SRCDIR([src/main.c])
AC_CANONICAL_HOST
AC_GNU_SOURCE
dnl Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_LN_S
AC_PROG_RANLIB
AC_PROG_LIBTOOL
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h])
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_STRUCT_TM
dnl Checks for library functions.
AC_CHECK_FUNCS([memset])
AC_CHECK_FUNCS([strrchr])
AC_CHECK_FUNCS([strstr])
AC_FUNC_STRFTIME
dnl glibc2 needs this
AC_DEFINE([_XOPEN_SOURCE], [1], [glibc2 needs this])
dnl check packages
PKG_CHECK_MODULES(GTK, [gtk+-2.0])
AC_SUBST(GTK_LIBS)
AC_SUBST(GTK_CFLAGS)
PKG_CHECK_MODULES(LIBXML2, [libxml-2.0 >= 2.6.16])
AC_SUBST(LIBXML2_LIBS)
AC_SUBST(LIBXML2_CFLAGS)
dnl Config files
AC_CONFIG_FILES([Makefile
src/Makefile
data/Makefile])
dnl Produce output files
AC_OUTPUT