File: configure.ac

package info (click to toggle)
morris 0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 952 kB
  • sloc: cpp: 6,382; xml: 137; makefile: 46; sh: 4
file content (89 lines) | stat: -rw-r--r-- 1,576 bytes parent folder | download
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

AC_PREREQ([2.63])
AC_INIT([morris],[0.3],[dirk.farin@gmail.com])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([src/morris.cc])
AC_CONFIG_HEADERS([config.h])

AM_INIT_AUTOMAKE([-Wall foreign dist-bzip2])

#AM_MAINTAINER_MODE
#AC_CONFIG_MACRO_DIR([m4])

# Checks for programs.
AC_PROG_CXX
AC_PROG_INTLTOOL
AC_PROG_LIBTOOL

# Checks for libraries.
PKG_CHECK_MODULES(GTK, [
glib-2.0
gthread-2.0
gtk+-2.0 >= 2.4
])

GLIB_GSETTINGS


# gdk-pixbuf-2.0
# libgnome-2.0 libgnomeui-2.0 

#ACLOCAL_AMFLAGS = -I build-aux

BOOST_REQUIRE
BOOST_SIGNALS2()


# Checks for header files.
AC_CHECK_HEADERS([libintl.h locale.h stdlib.h string.h sys/time.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T

# Checks for library functions.
AM_GNU_GETTEXT([external])

GETTEXT_PACKAGE=morris
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [The gettext package name])

AC_FUNC_MALLOC
AC_CHECK_FUNCS([dup2 gettimeofday memset])


# === target specific options ===

AC_MSG_CHECKING([for target architecture])
case x"$target" in
  xNONE | x)
    target_or_host="$host" ;;
  *)
    target_or_host="$target" ;;
esac
AC_MSG_RESULT([$target_or_host])

AC_MSG_CHECKING([for Win32 platform])
case "$target_or_host" in
  *-*-mingw* | *-*-cygwin*)
    os_win32=yes
    ;;
  *)
    os_win32=no
    ;;
esac
AC_MSG_RESULT([$os_win32])
AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")


#GNOME_COMPILE_WARNINGS

AC_CONFIG_FILES([po/Makefile.in
Makefile
src/Makefile
pixmaps/Makefile
])
AC_OUTPUT

# morris.spec