File: configure.in

package info (click to toggle)
lletters 0.1.95-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,152 kB
  • ctags: 502
  • sloc: sh: 9,985; ansic: 3,225; makefile: 230; sed: 93; perl: 50
file content (76 lines) | stat: -rw-r--r-- 1,793 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
dnl Process this file with autoconf to produce a configure script.
AC_INIT(lln_window.c)

VERSION=0.1.95
PACKAGE=lletters

AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)

dnl AM_ACLOCAL_INCLUDE(macros)

dnl Initialize libtool
AM_PROG_LIBTOOL

dnl Specify a configuration file
AM_CONFIG_HEADER(config.h)

dnl Enable maintainer mode
AM_MAINTAINER_MODE

dnl Load gettext languages
ALL_LINGUAS="nl fr es"

dnl Checks for headers
AC_CHECK_HEADERS(sys/soundcard.h soundcard.h,,check_sound=no)
if test "$check_sound" = "no"; then 

  AC_MSG_CHECKING(whether to enable OSS Sound)
  AC_ARG_ENABLE(sound,
	[  --enable-sound=(yes|no)   Enable OSS Sound support. Default = yes],,
	[enable_sound="yes"])
  if test "yes" = "$enable_sound"; then
	AM_CONDITIONAL(SOUND, true)
	AC_DEFINE(SOUND)
	AC_MSG_RESULT(Yes)
  else
	AM_CONDITIONAL(SOUND, false)
	AC_MSG_RESULT(No)
  fi
fi

dnl Check for libraries.
AC_CHECK_LIB(ossaudio, _oss_ioctl)

AM_PATH_GTK(1.0.0,,
   AC_MSG_ERROR(Cannot find correct version of GTK - is gtk-config in path?))

dnl Checks for GDK_IMLIB
AC_PATH_PROG(imlibpath, imlib-config)
AC_MSG_CHECKING(for gdk_imlib)
IMLIB_CFLAGS=`$imlibpath --cflags-gdk 2>/dev/null`
IMLIB_LDFLAGS=`$imlibpath --libs-gdk 2>/dev/null`
if test "_$IMLIB_CFLAGS" = _ ; then
   AC_MSG_ERROR([not found, GDK_IMLIB is required. Pleae consult the README for information.])
else
   AC_MSG_RESULT(ok)
   LIBS="$LIBS $IMLIB_LDFLAGS"
   CFLAGS="$CFLAGS $IMLIB_CFLAGS"
   HAVE_IMLIB=`$imlibpath --version`
fi

dnl Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_TIME

dnl Find the X11 include and library directories
AC_PATH_X
AC_PATH_XTRA

AM_GNU_GETTEXT

AC_OUTPUT( 	Makefile \
		images/Makefile \
		sounds/Makefile \
		libqdwav/Makefile \
		intl/Makefile \
		lang/Makefile \
		po/Makefile.in)