File: configure.in

package info (click to toggle)
gnome-chess 0.3.2-0.5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,756 kB
  • ctags: 1,481
  • sloc: ansic: 10,228; sh: 482; makefile: 332; sed: 93; lex: 82
file content (85 lines) | stat: -rw-r--r-- 2,209 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
AC_INIT(src/engine.h)

AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(gnome-chess,0.3.2)
AM_MAINTAINER_MODE
AM_ACLOCAL_INCLUDE(macros)

AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
AC_ARG_PROGRAM
AM_PROG_LEX

GNOME_INIT

## this should come after `AC_PROG_CC'
GNOME_X_CHECKS
GNOME_XML_CHECK

AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)

dnl **************************************************
dnl * internationalization support
dnl **************************************************
ALL_LINGUAS="az ca da de el es fr ga gl it ja lt nl no pl pt_BR ro ru sv tr uk zh_TW.Big5"
AM_GNOME_GETTEXT

dnl ******************************
dnl LibGlade checking
dnl ******************************
AC_MSG_CHECKING(for Glade libraries)
if gnome-config --libs libglade > /dev/null 2>&1; then 
    AC_MSG_RESULT(found)
else
    AC_MSG_ERROR(Did not find libGlade installed)
fi

dnl ******************************
dnl GnomeCanvasPixbuf checking
dnl ******************************
AC_MSG_CHECKING(for GnomeCanvasPixbuf libraries >= 0.8.0)
if gnome-config --libs gnomecanvaspixbuf > /dev/null 2>&1; then 
    vers=`gnome-config --modversion print | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
    if test "$vers" -ge 8000; then
        AC_MSG_RESULT(found)
    else
        AC_MSG_ERROR(You need at least GNOME Canvas Pixbuf 0.8.0)
    fi
else
    AC_MSG_ERROR(Did not find GnomeCanvasPixbuf installed)
fi

dnl ***************************************
dnl Check for gnome-libs which supports wm icons
dnl ***************************************
CFLAGS_save=$CFLAGS
LIBS_save=$LIBS
CFLAGS=`gnome-config --cflags gnomeui`
LIBS=`gnome-config --libs gnomeui`
use_wm_icons=false
AC_CHECK_LIB(gnomeui, gnome_window_icon_set_default_from_file, use_wm_icons=true)
if test x$use_wm_icons = xtrue; then
	AC_DEFINE(USE_WM_ICONS)
fi
CFLAGS=$CFLAGS_save
LIBS=$LIBS_save

EXTRA_GNOME_LIBS=`gnome-config --libs gnomeui libglade gnomecanvaspixbuf`
EXTRA_GNOME_CFLAGS=`gnome-config --cflags gnomeui libglade gnomecanvaspixbuf`
AC_SUBST(EXTRA_GNOME_LIBS)
AC_SUBST(EXTRA_GNOME_CFLAGS)

AC_OUTPUT(
gnome-chess.spec
Makefile
src/Makefile
src/dialogs/Makefile
macros/Makefile
Sets/Makefile
po/Makefile.in
intl/Makefile
)