Release 1.6.0.
[xtoys] / configure.ac
CommitLineData
f6795c17 1dnl -*-autoconf-*-
90b2c5d4 2dnl
3dnl Configuration script for X tools
4dnl
5dnl (c) 1998 Straylight/Edgeware
6dnl
7
8dnl ----- Licensing notice --------------------------------------------------
9dnl
10dnl This file is part of the Edgeware X tools collection.
11dnl
12dnl X tools is free software; you can redistribute it and/or modify
13dnl it under the terms of the GNU General Public License as published by
14dnl the Free Software Foundation; either version 2 of the License, or
15dnl (at your option) any later version.
c1c9f4d2 16dnl
90b2c5d4 17dnl X tools is distributed in the hope that it will be useful,
18dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
19dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20dnl GNU General Public License for more details.
c1c9f4d2 21dnl
90b2c5d4 22dnl You should have received a copy of the GNU General Public License
23dnl along with X tools; if not, write to the Free Software Foundation,
24dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
f6795c17
MW
26dnl--------------------------------------------------------------------------
27dnl Initialization.
90b2c5d4 28
f6795c17
MW
29mdw_AUTO_VERSION
30AC_INIT([xtoys], AUTO_VERSION, [mdw@distorted.org.uk])
31AC_CONFIG_SRCDIR([xscsize.c])
32AC_CONFIG_AUX_DIR([config])
33AM_INIT_AUTOMAKE([foreign])
23a4d5f7 34mdw_SILENT_RULES
90b2c5d4 35
f6795c17
MW
36dnl--------------------------------------------------------------------------
37dnl C programming environment.
d5419f6c 38
f6795c17
MW
39AC_PROG_CC
40AX_CFLAGS_WARN_ALL
90b2c5d4 41AC_PATH_XTRA
90b2c5d4 42
243654c4
MW
43mdw_LIBS=$LIBS LIBS= mdw_have_xrandr_p=nil
44AC_SEARCH_LIBS([XRRGetScreenInfo], [Xrandr], [mdw_have_xrandr_p=t])
45case $mdw_have_xrandr_p in
46 t)
47 AC_CHECK_HEADERS([X11/extensions/Xrandr.h], [], [mdw_have_xrandr_p=nil])
48 ;;
49esac
50case $mdw_have_xrandr_p in
51 t)
52 XRANDR_LIBS=$LIBS
53 AC_DEFINE([HAVE_XRANDR], [1], [Define if libXrandr is installed.])
54 ;;
55esac
56LIBS=$mdw_LIBS
57AC_SUBST([XRANDR_LIBS])
58
f6795c17
MW
59PKG_CHECK_MODULES([mLib], [mLib >= 2.0.4])
60CFLAGS="$CFLAGS $mLib_CFLAGS"
61LIBS="$LIBS $mLib_LIBS"
62
63dnl--------------------------------------------------------------------------
bce8c6ee
MW
64dnl Python programming environment.
65
66AM_PATH_PYTHON([2.4], [python=yes], [python=no])
67AM_CONDITIONAL([HAVE_PYTHON], [test $python = yes])
68
69if test $python = yes; then
70 AC_PYTHON_MODULE([pygtk])
71fi
72AM_CONDITIONAL([HAVE_PYGTK], [test ${HAVE_PYMOD_PYGTK-no} = yes])
73
74dnl--------------------------------------------------------------------------
f6795c17
MW
75dnl Output.
76
77AC_CONFIG_FILES(
78 [Makefile])
79AC_OUTPUT
90b2c5d4 80
81dnl ----- That's all, folks -------------------------------------------------