~ubuntu-branches/ubuntu/hardy/libcm/hardy

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Matthew Garrett
  • Date: 2006-02-17 14:28:18 UTC
  • Revision ID: james.westby@ubuntu.com-20060217142818-1ho3qr7jbh2m400r
Tags: upstream-0.0.16
ImportĀ upstreamĀ versionĀ 0.0.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl  Copyright 2005 Red Hat, Inc.
 
2
dnl 
 
3
dnl  Permission to use, copy, modify, distribute, and sell this software and its
 
4
dnl  documentation for any purpose is hereby granted without fee, provided that
 
5
dnl  the above copyright notice appear in all copies and that both that
 
6
dnl  copyright notice and this permission notice appear in supporting
 
7
dnl  documentation, and that the name of Red Hat not be used in
 
8
dnl  advertising or publicity pertaining to distribution of the software without
 
9
dnl  specific, written prior permission.  Red Hat makes no
 
10
dnl  representations about the suitability of this software for any purpose.  It
 
11
dnl  is provided "as is" without express or implied warranty.
 
12
dnl 
 
13
dnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 
14
dnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
 
15
dnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 
16
dnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
 
17
dnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 
18
dnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 
19
dnl  PERFORMANCE OF THIS SOFTWARE.
 
20
dnl
 
21
dnl Process this file with autoconf to create configure.
 
22
 
 
23
AC_PREREQ([2.57])
 
24
 
 
25
AC_INIT(libcm, 0.0.16, [sandmann@redhat.com], libcm)
 
26
AM_INIT_AUTOMAKE([dist-bzip2])
 
27
AM_MAINTAINER_MODE
 
28
 
 
29
AM_CONFIG_HEADER(config.h)
 
30
 
 
31
# Check for progs
 
32
AC_PROG_CC
 
33
AC_PROG_LIBTOOL
 
34
 
 
35
changequote(,)dnl
 
36
if test "x$GCC" = "xyes"; then
 
37
  case " $CFLAGS " in
 
38
  *[\ \ ]-Wall[\ \      ]*) ;;
 
39
  *) CFLAGS="$CFLAGS -Wall" ;;
 
40
  esac
 
41
fi
 
42
changequote([,])dnl
 
43
 
 
44
# Check for dependencies
 
45
PKG_CHECK_MODULES(DEP, glib-2.0 gobject-2.0 x11 xcomposite xdamage xtst)
 
46
 
 
47
# AC_CHECK_LIB(libGL.so, glXCreateContext
 
48
 
 
49
AC_CHECK_LIB(GL, glXCreateContext, HAVE_LIBGL=yes, HAVE_LIBGL=no)
 
50
 
 
51
if test "x$HAVE_LIBGL" = "xno"; then
 
52
   AC_MSG_ERROR(libGL not found);
 
53
else
 
54
   DEP_LIBS="$DEP_LIBS -lGL"
 
55
fi
 
56
 
 
57
AC_CHECK_LIB(GLU, gluOrtho2D, HAVE_LIBGLU=yes, HAVE_LIBGLU=no)
 
58
 
 
59
if test "x$HAVE_LIBGLU" = "xno"; then
 
60
   AC_MSG_ERROR(libGLU not found);
 
61
else
 
62
   DEP_LIBS="$DEP_LIBS -lGLU"
 
63
fi
 
64
 
 
65
AC_CHECK_LIB(GL, glXBindTexImageEXT, [AC_DEFINE([HAVE_TFD], [], [Define if we have TFD extension])])
 
66
 
 
67
if test "x$HAVE_TBD" = "xyes"; then
 
68
   AC_MSG_ERROR([Texture from drawable extension is needed])
 
69
fi
 
70
 
 
71
AC_SUBST(DEP_CFLAGS)
 
72
AC_SUBST(DEP_LIBS)
 
73
                  
 
74
AC_OUTPUT([Makefile
 
75
           src/Makefile
 
76
           cm.pc])