~ubuntu-branches/ubuntu/lucid/xprintmon/lucid

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Bernhard R. Link
  • Date: 2008-06-26 11:35:38 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080626113538-16q2fusepq086mpf
Tags: 0.0.3-1
* new minor version
- enable 3D look of buttons
* bump Standards-Version to 3.8.0
- update debian/rules to new DEB_BUILD_OPTIONS

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
dnl Process this file with autoconf to produce a configure script
3
3
dnl
4
4
 
5
 
AC_INIT(xprintmon.c)
 
5
AC_INIT(xprintmon, 0.0.3, brlink@debian.org)
 
6
AC_CONFIG_SRCDIR(xprintmon.c)
6
7
AM_CONFIG_HEADER(config.h)
7
 
AM_INIT_AUTOMAKE(xprintmon,0.0.2)
 
8
AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability])
8
9
 
9
10
AM_MAINTAINER_MODE
10
11
 
11
12
AC_PROG_CC
12
13
AC_PROG_INSTALL
 
14
AM_PROG_MKDIR_P
13
15
 
14
16
AC_DEFINE([_GNU_SOURCE],[1],[Tell glibc to make glibc extensions visible])
15
17
 
27
29
AC_CHECK_HEADER(X11/Xaw/AsciiText.h,[],[AC_MSG_ERROR([Could not find X11/Xaw/AsciiText.h])])
28
30
AC_CHECK_HEADER(X11/xpm.h,[],[AC_MSG_ERROR([Could not find X11/xpm.h])])
29
31
 
30
 
unset ac_cv_lib_X11_XSetWMProtocols
 
32
XLDFLAGS=""
31
33
AC_CHECK_LIB(X11, XSetWMProtocols,
32
 
        [XLDFLAGS="-L/usr/X11R6/lib -lX11"], [
33
 
        AC_MSG_WARN([Could not find/link libX11, retrying with -L/usr/X11R6/lib])
34
 
        unset ac_cv_lib_X11_XSetWMProtocols
35
 
        AC_CHECK_LIB(X11, XSetWMProtocols,
36
 
                [XLDFLAGS="-L/usr/X11R6/lib -lX11"],
37
 
                [AC_MSG_ERROR([Could not find/link libX11, please specify LDFLAGS])],
38
 
                [-L/usr/X11R6/lib])
 
34
        [XLDFLAGS="-lX11"], [
 
35
        AC_MSG_ERROR([Could not find/link libX11, please specify LDFLAGS])
39
36
],[])
40
37
AC_CHECK_LIB(Xt, XtOpenApplication,
41
38
        [XLDFLAGS="-lXt $XLDFLAGS"],