~ubuntu-branches/ubuntu/precise/rss-glx/precise

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Fabrice Coutadeur
  • Date: 2011-06-05 18:30:36 UTC
  • mfrom: (2.2.6 sid)
  • Revision ID: james.westby@ubuntu.com-20110605183036-8ht6gky7rzf0rw2b
Tags: 0.9.1-5ubuntu1
* Merge from Debian unstable. Remaining changes:
  - Added an apport package hook
  - Changed libgl1-mesa-swx11-dev to libgl1-mesa-dev in Build-Depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
AC_PROG_CC_C99
12
12
AC_C_BIGENDIAN
13
13
 
14
 
if test "x$GCC" = xyes; then
15
 
        CFLAGS="-O2"
16
 
fi
17
 
AC_ARG_ENABLE([debug], [AC_HELP_STRING([--enable-debug],
18
 
    [build with debugging information default=no])],
19
 
    [test "$enableval" = "yes" && CFLAGS="-g"])
20
 
if test "x$GCC" = xyes; then
21
 
        CFLAGS="$CFLAGS -Wall"
22
 
fi
23
 
 
24
14
AC_PROG_CXX
25
15
 
26
 
if test "x$GXX" = xyes; then
27
 
        CXXFLAGS="-O2"
28
 
fi
29
 
AC_ARG_ENABLE([debug], [AC_HELP_STRING([--enable-debug],
30
 
    [build with debugging information default=no])],
31
 
    [test "$enableval" = "yes" && CXXFLAGS="-g"])
32
 
if test "x$GXX" = xyes; then
33
 
        CXXFLAGS="$CXXFLAGS -Wall"
34
 
fi
35
 
 
36
16
AC_PROG_INSTALL
37
17
AM_DISABLE_SHARED
38
18
AC_PROG_LIBTOOL
48
28
 
49
29
# Checks for header files.
50
30
AC_HEADER_STDC
51
 
AC_PATH_XTRA 
52
31
 
53
 
if test "x${ac_cv_have_x:0:10}" != "xhave_x=yes"; then
54
 
        AC_MSG_ERROR([X11 is missing but required.])
55
 
fi
 
32
PKG_CHECK_MODULES(X, x11)
56
33
 
57
34
CFLAGS="$CFLAGS $X_CFLAGS"
58
35
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
59
 
LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
 
36
LIBS="$LIBS $X_LIBS"
60
37
 
61
38
# Checks for typedefs, structures, and compiler characteristics.
62
39
AC_C_CONST