File: configure.in

package info (click to toggle)
gdancer 1%3A0.4.4-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,300 kB
  • ctags: 164
  • sloc: sh: 7,925; ansic: 1,193; makefile: 61
file content (74 lines) | stat: -rw-r--r-- 2,449 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
dnl Process this file with autoconf to produce a configure script
AC_INIT(src/main.c)
AM_CONFIG_HEADER(config.h)

GDANCER_MAJOR_VERSION=0
GDANCER_MINOR_VERSION=4
GDANCER_MICRO_VERSION=4
GDANCER_VERSION=${GDANCER_MAJOR_VERSION}.${GDANCER_MINOR_VERSION}.${GDANCER_MICRO_VERSION}

RELEASE=1

AM_INIT_AUTOMAKE([gdancer], [${GDANCER_VERSION}])

AC_PROG_CC
AC_DISABLE_STATIC
AM_PROG_LIBTOOL
AC_PROG_INSTALL

dnl Check and set headings
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h unistd.h sys/stat.h sys/types.h string.h time.h)
AC_C_CONST
AC_CHECK_FUNCS(mkdir)

dnl Available arguments
AC_ARG_ENABLE(pixbuf, [ --enable-pixbuf        try and compile with GdkPixbuf support (probably won't work)],,enable_pixbuf=no)
debugging=no
AC_ARG_ENABLE(debugging, [ --enable-debugging	turn on debuggin messages],,enable_debugging=no)


dnl Check for XMMS
AM_PATH_XMMS(1.0.0,, AC_MSG_ERROR(Test for XMMS failed.  XMMS 1.0.0 or better is required to compile gdancer.  If you are using packages of XMMS and have the latest version, please make sure you also have the dev or devel version also installed, it is needed to compile.))
dnl Check for GTK
AM_PATH_GTK(1.2.0,, AC_MSG_ERROR(Test for GTK failed.  GTK 1.2.0 or better is required to compile gdancer.  If you are using packages of GTK and have the latest version, please make sure you also have the dev or devel version installed, it is needed to compile.))

dnl Check for GdkPixbuf
use_pixbuf=no
if test "x$enable_pixbuf" = "xyes"; then
	AC_PATH_PROG(pixbufcfg, gdk-pixbuf-config)
	if test "x$pixbufcfg" != "x"; then
		GDK_PIXBUF_CFLAGS=`$pixbufcfg --cflags`
		GDK_PIXBUF_LIBS=`$pixbufcfg --libs`
		GDK_PIXBUF_CONFIG="$pixbufcfg"
		AC_SUBST(GDK_PIXBUF_CONFIG)
		AC_SUBST(GDK_PIXBUF_CFLAGS)
		AC_SUBST(GDK_PIXBUF_LIBS)
		AC_DEFINE(USE_PIXBUF)
		use_pixbuf=yes
	else
		echo Couldn't find gdk-pixbuf-config, make sure it's in
		echo your path if you have it.  If you have gdk-pixbuf
		echo installed via RPM or DEB make sure you also have the 
		echo development package for it installed too.
	fi
fi
use_debugging=no
if test "x$enable_debugging" = "xyes"; then
	AC_DEFINE(DEBUGGING)
	use_debugging=yes
fi

AC_OUTPUT([
Makefile
src/Makefile
gdancer.spec
])

echo
echo $PACKAGE $VERSION
echo
echo Install to the directory.................... : $XMMS_VISUALIZATION_PLUGIN_DIR
echo Use GdkPixbuf for image loading............. : $use_pixbuf
echo Turn on Debugging messages.................. : $use_debugging