Search
lxdream.org :: lxdream/configure.in
lxdream 0.9.1
released Jun 29
Download Now
filename configure.in
changeset 489:45c8ddcf52cb
prev487:b34abd796f5e
next503:36a668469e37
author nkeynes
date Sun Nov 04 05:07:49 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Test for presence of linux/cdrom.h at configure time, and only build the
linux driver if it's found successfully
file annotate diff log raw
nkeynes@1
     1
dnl Process this file with autoconf to produce a configure script.
nkeynes@1
     2
nkeynes@1
     3
AC_INIT(configure.in)
nkeynes@1
     4
AM_INIT_AUTOMAKE(dream, 0.1)
nkeynes@1
     5
AM_MAINTAINER_MODE
nkeynes@1
     6
AM_CONFIG_HEADER(config.h)
nkeynes@1
     7
nkeynes@1
     8
AC_ISC_POSIX
nkeynes@1
     9
AC_PROG_CC
nkeynes@1
    10
AM_PROG_CC_STDC
nkeynes@1
    11
AC_HEADER_STDC
nkeynes@1
    12
nkeynes@94
    13
PKG_CHECK_MODULES(PACKAGE, 
nkeynes@482
    14
   [ gtk+-2.0 dnl
nkeynes@471
    15
     esound dnl
nkeynes@471
    16
     libpng ])
nkeynes@1
    17
AC_SUBST(PACKAGE_CFLAGS)
nkeynes@1
    18
AC_SUBST(PACKAGE_LIBS)
nkeynes@1
    19
nkeynes@487
    20
AC_CHECK_LIB(z, uncompress, [], [
nkeynes@487
    21
    echo "Zlib (libz.so) could not be found, but is required."
nkeynes@487
    22
    exit 1])
nkeynes@487
    23
AC_CHECK_LIB(GL, glXQueryVersion, [], [
nkeynes@487
    24
    echo "The OpenGL library (libGL.so) could not be found, but is required."
nkeynes@487
    25
    exit 1])
nkeynes@94
    26
nkeynes@489
    27
dnl Check for cdrom device support
nkeynes@489
    28
AC_CHECK_HEADER([linux/cdrom.h], [HAVE_LINUX_CDROM_H=yes], [
nkeynes@489
    29
    echo "Linux CDROM support not found, building without it."]  )
nkeynes@489
    30
AM_CONDITIONAL(CDROM_LINUX, [test "$HAVE_LINUX_CDROM_H" = "yes"])
nkeynes@489
    31
nkeynes@1
    32
GETTEXT_PACKAGE=dream
nkeynes@1
    33
AC_SUBST(GETTEXT_PACKAGE)
nkeynes@1
    34
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
nkeynes@1
    35
nkeynes@1
    36
dnl Add the languages which your application supports here.
nkeynes@1
    37
ALL_LINGUAS=""
nkeynes@1
    38
AM_GLIB_GNU_GETTEXT
nkeynes@1
    39
nkeynes@1
    40
AC_OUTPUT([
nkeynes@1
    41
Makefile
nkeynes@1
    42
src/Makefile
nkeynes@1
    43
po/Makefile.in
nkeynes@1
    44
])
nkeynes@1
    45
.