File: configure.ac

package info (click to toggle)
ldm 2:2.0.6-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,012 kB
  • ctags: 144
  • sloc: sh: 3,813; ansic: 1,648; makefile: 105; sed: 16
file content (51 lines) | stat: -rw-r--r-- 1,037 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
AC_INIT([src/ldm.c],[gtkgreet/ldmgtkgreeter.c])
AC_CONFIG_HEADER(config.h)

PACKAGE=ldm
VERSION=2.0.6
AUTHOR=sbalneav@ltsp.org

AM_INIT_AUTOMAKE([$PACKAGE],[$VERSION],[$AUTHOR])

AM_MAINTAINER_MODE

AC_PROG_CC
AC_PROG_INSTALL
AC_STDC_HEADERS

AC_HEADER_STDC
AC_CHECK_HEADERS([syslog.h sys/wait.h fcntl.h],,AC_MSG_ERROR(Required header missing))

AC_CHECK_LIB([util],[main],[],AC_MSG_ERROR(ldm requires libutil))

PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6.0)
PKG_CHECK_MODULES(GOBJECT, gobject-2.0 >= 2.6.0)
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.2)

AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
AC_SUBST(GOBJECT_CFLAGS)
AC_SUBST(GOBJECT_LIBS)
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)

IT_PROG_INTLTOOL([0.35.0])

AC_SUBST(ALL_LINGUAS)
AM_GLIB_GNU_GETTEXT
GETTEXT_PACKAGE=$PACKAGE
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
AC_SUBST(GETTEXT_PACKAGE)

AC_OUTPUT([
Makefile
src/Makefile
share/Makefile
man/Makefile
po/Makefile.in
gtkgreet/Makefile
themes/Makefile
screen.d/Makefile
rc.d/Makefile
share/ldm-script
])