* Removed old makefile system
This commit is contained in:
parent
26a91507a0
commit
be94a2d1dc
287
Makefile.am
287
Makefile.am
|
@ -1,287 +0,0 @@
|
|||
BUILT_SOURCES =
|
||||
CLEANFILES =
|
||||
EXTRA_DIST =
|
||||
SUFFIXES =
|
||||
bin_PROGRAMS =
|
||||
doc_DATA =
|
||||
man_MANS =
|
||||
etcdir = $(sysconfdir)/awesome
|
||||
etc_DATA =
|
||||
iconsdir = $(pkgdatadir)/icons
|
||||
dist_icons_DATA =
|
||||
iconslayoutsdir = $(iconsdir)/layouts
|
||||
dist_iconslayouts_DATA =
|
||||
awesomelibdir = $(pkgdatadir)/lib
|
||||
dist_awesomelib_DATA =
|
||||
|
||||
LAYOUTS =
|
||||
|
||||
LAYOUTS += layouts/tile.c
|
||||
LAYOUTS += layouts/tile.h
|
||||
|
||||
LAYOUTS += layouts/floating.c
|
||||
LAYOUTS += layouts/floating.h
|
||||
|
||||
LAYOUTS += layouts/max.c
|
||||
LAYOUTS += layouts/max.h
|
||||
|
||||
LAYOUTS += layouts/fibonacci.c
|
||||
LAYOUTS += layouts/fibonacci.h
|
||||
|
||||
LAYOUTS += layouts/magnifier.c
|
||||
LAYOUTS += layouts/magnifier.h
|
||||
|
||||
WIDGETS =
|
||||
WIDGETS += widgets/taglist.c
|
||||
WIDGETS += widgets/textbox.c
|
||||
WIDGETS += widgets/iconbox.c
|
||||
WIDGETS += widgets/progressbar.c
|
||||
WIDGETS += widgets/tasklist.c
|
||||
WIDGETS += widgets/graph.c
|
||||
WIDGETS += widgets/systray.c
|
||||
|
||||
|
||||
doc_DATA += README
|
||||
|
||||
EXTRA_DIST += LICENSE
|
||||
|
||||
EXTRA_DIST += STYLE
|
||||
doc_DATA += STYLE
|
||||
|
||||
EXTRA_DIST += build-utils/gendoc.lua
|
||||
|
||||
EXTRA_DIST += lib/awful.lua
|
||||
EXTRA_DIST += lib/tabulous.lua
|
||||
dist_awesomelib_DATA += lib/awful.lua
|
||||
dist_awesomelib_DATA += lib/tabulous.lua
|
||||
dist_awesomelib_DATA += lib/awful.luac
|
||||
dist_awesomelib_DATA += lib/tabulous.luac
|
||||
CLEANFILES += lib/awful.luac
|
||||
CLEANFILES += lib/tabulous.luac
|
||||
|
||||
EXTRA_DIST += awesomerc.lua.in
|
||||
CLEANFILES += awesomerc.lua
|
||||
BUILT_SOURCES += awesomerc.lua
|
||||
doc_DATA += awesomerc.lua
|
||||
etc_DATA += awesomerc.lua
|
||||
|
||||
SUFFIXES += .lua .luac
|
||||
.lua.luac:
|
||||
$(LUAC) -s -o $@ $<
|
||||
|
||||
awesomerc.lua: $(srcdir)/awesomerc.lua.in
|
||||
$(SED) -e "s|[@]iconslayoutsdir@|$(iconslayoutsdir)|;s|[@]iconsdir@|$(iconsdir)|" \
|
||||
< $(srcdir)/awesomerc.lua.in > awesomerc.lua
|
||||
|
||||
CLEANFILES += layoutgen.h
|
||||
BUILT_SOURCES += layoutgen.h
|
||||
EXTRA_DIST += build-utils/layoutgen.sh
|
||||
layoutgen.h: $(awesome_SOURCES)
|
||||
@echo "generating layoutgen.h from layouts headers file"
|
||||
$(top_srcdir)/build-utils/layoutgen.sh "$(top_srcdir)" > layoutgen.h
|
||||
|
||||
CLEANFILES += widgetgen.h
|
||||
BUILT_SOURCES += widgetgen.h
|
||||
EXTRA_DIST += build-utils/widgetgen.sh
|
||||
widgetgen.h: widget.h
|
||||
@echo "generating widgetgen.h from widget.h"
|
||||
$(top_srcdir)/build-utils/widgetgen.sh "$(top_srcdir)" > widgetgen.h
|
||||
|
||||
A_V = awesome-version-internal
|
||||
CLEANFILES += $(A_V).h
|
||||
BUILT_SOURCES += $(A_V).h.stamp
|
||||
$(A_V).h.stamp:
|
||||
@current_ver=`$(SHELL) $(top_srcdir)/build-utils/package-version $(top_srcdir) version-stamp`; \
|
||||
{ echo '#ifndef AWESOME_VERSION_INTERNAL'; \
|
||||
echo "#define AWESOME_VERSION_INTERNAL \"$${current_ver}\""; \
|
||||
echo "#endif"; } > "$(A_V).h.new"
|
||||
@if test -f "$(A_V).h" \
|
||||
&& cmp "$(A_V).h.new" "$(A_V).h"; then :; \
|
||||
else cat "$(A_V).h.new" > "$(A_V).h"; fi; \
|
||||
rm -f "$(A_V).h.new"
|
||||
|
||||
if USING_GCC
|
||||
# If you are using gcc, and want to deactivate this default set of
|
||||
# compile flags, run make with AWESOME_CFLAGS="".
|
||||
AWESOME_CFLAGS = -std=gnu99 -pipe \
|
||||
-Wall -Wextra \
|
||||
-Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare \
|
||||
-Wunused -Wno-unused-parameter -Winit-self -Wpointer-arith -Wredundant-decls \
|
||||
-Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn \
|
||||
-fno-strict-aliasing
|
||||
endif
|
||||
AM_CPPFLAGS = $(pangocairo_CFLAGS) $(AWESOME_CFLAGS) \
|
||||
$(GdkPixbuf_CFLAGS) $(GDK_CFLAGS) $(imlib2_CFLAGS) \
|
||||
$(xcb_CFLAGS) $(xcb_event_CFLAGS) \
|
||||
$(xcb_randr_CFLAGS) $(xcb_xinerama_CFLAGS) \
|
||||
$(xcb_aux_CFLAGS) $(xcb_atom_CFLAGS) $(xcb_keysyms_CFLAGS) \
|
||||
$(xcb_icccm_CFLAGS) $(dbus_CFLAGS) $(Lua_CFLAGS)
|
||||
|
||||
bin_PROGRAMS += awesome
|
||||
awesome_SOURCES = \
|
||||
common/socket.c common/socket.h \
|
||||
common/swindow.c common/swindow.h \
|
||||
common/version.c common/version.h \
|
||||
common/util.c common/util.h \
|
||||
common/xutil.c common/xutil.h \
|
||||
common/xembed.c common/xembed.h \
|
||||
common/configopts.h common/configopts.c \
|
||||
common/xscreen.h common/xscreen.c \
|
||||
common/draw.c common/draw.h \
|
||||
common/markup.c common/markup.h \
|
||||
common/list.h common/refcount.h \
|
||||
structs.h \
|
||||
client.c client.h \
|
||||
systray.c systray.h \
|
||||
titlebar.c titlebar.h \
|
||||
placement.c placement.h \
|
||||
focus.c focus.h \
|
||||
stack.c stack.h \
|
||||
cnode.c cnode.h \
|
||||
event.c event.h \
|
||||
layout.c layout.h \
|
||||
keybinding.c \
|
||||
keygrabber.c keygrabber.h \
|
||||
awesome.c \
|
||||
tag.c tag.h \
|
||||
lua.c lua.h \
|
||||
screen.c screen.h \
|
||||
statusbar.c statusbar.h \
|
||||
window.c window.h \
|
||||
mouse.c mouse.h \
|
||||
widget.c widget.h \
|
||||
ewmh.c ewmh.h \
|
||||
dbus.c dbus.h
|
||||
awesome_SOURCES += $(LAYOUTS)
|
||||
awesome_SOURCES += $(WIDGETS)
|
||||
awesome_LDADD = $(pangocairo_LIBS) $(xcb_LIBS) $(xcb_event_LIBS) \
|
||||
$(xcb_randr_LIBS) $(xcb_xinerama_LIBS) $(xcb_aux_LIBS) \
|
||||
$(xcb_atom_LIBS) $(xcb_keysyms_LIBS) $(xcb_icccm_LIBS) $(dbus_LIBS)\
|
||||
$(imlib2_LIBS) $(GdkPixbuf_LIBS) $(GDK_LIBS) $(Lua_LIBS) $(ev_LIBS)
|
||||
|
||||
bin_PROGRAMS += awesome-client
|
||||
awesome_client_SOURCES = \
|
||||
awesome-client.c \
|
||||
common/socket.c common/socket.h \
|
||||
common/version.c common/version.h \
|
||||
common/util.c common/util.h
|
||||
awesome_client_LDADD = $(readline_LIBS)
|
||||
|
||||
if HAVE_XMLTO
|
||||
if HAVE_ASCIIDOC
|
||||
if XMLTO_MAN_WORKS
|
||||
man_MANS += awesome.1
|
||||
man_MANS += awesome-client.1
|
||||
man_MANS += awesomerc.5
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
EXTRA_DIST += awesome.1.txt
|
||||
EXTRA_DIST += awesome-client.1.txt
|
||||
EXTRA_DIST += awesomerc.5.txt
|
||||
|
||||
dist_icons_DATA += icons/awesome16.png
|
||||
dist_icons_DATA += icons/awesome32.png
|
||||
dist_icons_DATA += icons/awesome48.png
|
||||
dist_icons_DATA += icons/awesome64.png
|
||||
dist_iconslayouts_DATA += icons/layouts/dwindle.png
|
||||
dist_iconslayouts_DATA += icons/layouts/dwindlew.png
|
||||
dist_iconslayouts_DATA += icons/layouts/floating.png
|
||||
dist_iconslayouts_DATA += icons/layouts/floatingw.png
|
||||
dist_iconslayouts_DATA += icons/layouts/max.png
|
||||
dist_iconslayouts_DATA += icons/layouts/maxw.png
|
||||
dist_iconslayouts_DATA += icons/layouts/spiral.png
|
||||
dist_iconslayouts_DATA += icons/layouts/spiralw.png
|
||||
dist_iconslayouts_DATA += icons/layouts/tile.png
|
||||
dist_iconslayouts_DATA += icons/layouts/tilew.png
|
||||
dist_iconslayouts_DATA += icons/layouts/tilebottom.png
|
||||
dist_iconslayouts_DATA += icons/layouts/tilebottomw.png
|
||||
dist_iconslayouts_DATA += icons/layouts/tileleft.png
|
||||
dist_iconslayouts_DATA += icons/layouts/tileleftw.png
|
||||
dist_iconslayouts_DATA += icons/layouts/tiletop.png
|
||||
dist_iconslayouts_DATA += icons/layouts/tiletopw.png
|
||||
dist_iconslayouts_DATA += icons/layouts/magnifier.png
|
||||
dist_iconslayouts_DATA += icons/layouts/magnifierw.png
|
||||
|
||||
clean-local:
|
||||
rm -f awesome*.1 awesome*.1.xml awesome*.5 awesome*.5.xml
|
||||
|
||||
SUFFIXES += .1.xml .1
|
||||
SUFFIXES += .5.xml .5
|
||||
if HAVE_XMLTO
|
||||
.1.xml.1:
|
||||
$(XMLTO) man $<
|
||||
.5.xml.5:
|
||||
$(XMLTO) man $<
|
||||
endif
|
||||
|
||||
SUFFIXES += .1.txt .1.xml
|
||||
SUFFIXES += .5.txt .5.xml
|
||||
if HAVE_ASCIIDOC
|
||||
CLEANFILES += apidocgen.txt
|
||||
BUILT_SOURCES += apidocgen.txt
|
||||
APIDOCSOURCES=$(shell grep -l 'const struct luaL_reg' $(awesome_SOURCES))
|
||||
apidocgen.txt: $(APIDOCSOURCES) build-utils/gendoc.lua
|
||||
cat $(APIDOCSOURCES) | $(LUA) $(top_srcdir)/build-utils/gendoc.lua > apidocgen.txt
|
||||
.1.txt.1.xml:
|
||||
$(ASCIIDOC) -d manpage -b docbook -o $@ $<
|
||||
awesomerc.5.xml: apidocgen.txt
|
||||
.5.txt.5.xml:
|
||||
$(ASCIIDOC) -d manpage -b docbook -o $@ $<
|
||||
endif
|
||||
|
||||
|
||||
# Check that package version matches git version before creating dist tarballs
|
||||
dist-hook: git-version-check
|
||||
distcheck-hook: git-version-check
|
||||
|
||||
# Note: We cannot run autogen.sh from here, because we would need some way to
|
||||
# restart the whole dist process from the start and there is none.
|
||||
EXTRA_DIST += build-utils/package-version
|
||||
git-version-check:
|
||||
@git_ver=`$(top_srcdir)/build-utils/package-version $(top_srcdir) version-stamp`; \
|
||||
if test "x$${git_ver}" = "x$(PACKAGE_VERSION)"; then :; else \
|
||||
echo "ERROR: PACKAGE_VERSION and 'git describe' version do not match:"; \
|
||||
echo " current 'git describe' version: $${git_ver}"; \
|
||||
echo " current PACKAGE_VERSION: $(PACKAGE_VERSION)"; \
|
||||
echo "Update PACKAGE_VERSION by running $(top_srcdir)/autogen.sh."; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
# Version stamp files can only exist in tarball source trees.
|
||||
#
|
||||
# So there is no need to generate them anywhere else or to clean them
|
||||
# up anywhere.
|
||||
dist-hook:
|
||||
echo "$(PACKAGE_VERSION)" > "$(distdir)/version-stamp"
|
||||
|
||||
EXTRA_DIST += awesome.doxygen.in
|
||||
|
||||
# Workaround for buggy pre-1.5.3 doxygen.
|
||||
#
|
||||
# Some pre-1.5.3 versions of doxygen segfault on reading these lines.
|
||||
# Call make with DOXYGEN_SEGFAULT=-segfault as a workaround.
|
||||
CLEANFILES += awesome.doxygen-segfault
|
||||
awesome.doxygen-segfault: awesome.doxygen
|
||||
$(SED) '/^QT_AUTOBRIEF/d; /^EXTRACT_ANON_NSPACES/d; /^HTML_DYNAMIC_SECTIONS/d' \
|
||||
< awesome.doxygen > awesome.doxygen-segfault
|
||||
|
||||
if HAVE_DOXYGEN
|
||||
doc: doc/html/index.html
|
||||
|
||||
doc/html/index.html: awesome.doxygen$(DOXYGEN_SEGFAULT) $(awesome_SOURCES) $(awesome_client_SOURCES)
|
||||
$(DOXYGEN) awesome.doxygen$(DOXYGEN_SEGFAULT)
|
||||
endif
|
||||
|
||||
|
||||
# Presuming we are running awesome on this screen, and this is screen 0, ...
|
||||
# ...we replace the running awesome instance by a freshly compiled one.
|
||||
restart-uninstalled: awesome awesome-client
|
||||
echo "awesome.restart()" | "$${PWD}/awesome-client"
|
||||
|
||||
# ...we replace the running awesome instance by the last installed one.
|
||||
restart-installed:
|
||||
screen=`echo "$${DISPLAY}" | sed 's/.*:[0-9]\.\([0-9]*\)$$/\1/; s/.*:\([0-9]*\)$$/0/'`; \
|
||||
echo "awesome.restart()" | "$(DESTDIR)$(bindir)/awesome-client"
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
dnl as-ac-expand.m4 0.2.0
|
||||
dnl dnl autostars m4 macro for expanding directories using configure's prefix
|
||||
dnl dnl thomas@apestaart.org
|
||||
dnl
|
||||
dnl dnl AS_AC_EXPAND(VAR, CONFIGURE_VAR)
|
||||
dnl dnl example
|
||||
dnl dnl AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
|
||||
dnl dnl will set SYSCONFDIR to /usr/local/etc if prefix=/usr/local
|
||||
dnl
|
||||
AC_DEFUN([AS_AC_EXPAND],
|
||||
[
|
||||
EXP_VAR=[$1]
|
||||
FROM_VAR=[$2]
|
||||
|
||||
dnl first expand prefix and exec_prefix if necessary
|
||||
prefix_save=$prefix
|
||||
exec_prefix_save=$exec_prefix
|
||||
|
||||
dnl if no prefix given, then use /usr/local, the default prefix
|
||||
if test "x$prefix" = "xNONE"; then
|
||||
prefix="$ac_default_prefix"
|
||||
fi
|
||||
dnl if no exec_prefix given, then use prefix
|
||||
if test "x$exec_prefix" = "xNONE"; then
|
||||
exec_prefix=$prefix
|
||||
fi
|
||||
|
||||
full_var="$FROM_VAR"
|
||||
dnl loop until it doesn't change anymore
|
||||
while true; do
|
||||
new_full_var="`eval echo $full_var`"
|
||||
if test "x$new_full_var" = "x$full_var"; then break; fi
|
||||
full_var=$new_full_var
|
||||
done
|
||||
|
||||
dnl clean up
|
||||
full_var=$new_full_var
|
||||
AC_SUBST([$1], "$full_var")
|
||||
|
||||
dnl restore prefix and exec_prefix
|
||||
prefix=$prefix_save
|
||||
exec_prefix=$exec_prefix_save
|
||||
])
|
||||
|
37
autogen.sh
37
autogen.sh
|
@ -1,37 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Change to source tree
|
||||
srcdir=`dirname "$0"`
|
||||
[ -z "$srcdir" ] || cd "$srcdir"
|
||||
|
||||
# sed program
|
||||
SED=${SED-sed}
|
||||
|
||||
# If GIT_DIR is set, use it. If not, try ".git".
|
||||
if test -n "$GIT_DIR"; then :;
|
||||
else GIT_DIR=".git"; export GIT_DIR
|
||||
fi
|
||||
|
||||
# Check whether the version needs to be updated from VCS/version-stamp
|
||||
if [ -d "$GIT_DIR" ] && [ -d "autom4te.cache" ]; then
|
||||
git_describe=`./build-utils/package-version . version-stamp`
|
||||
for f in autom4te.cache/output.*; do
|
||||
[ -f "$f" ] || continue
|
||||
pkg_ver=`${SED} -n "s/^PACKAGE_VERSION='\(.*\)'\$/\1/p" "$f"`
|
||||
if [ "x$pkg_ver" = "x$git_describe" ]
|
||||
then :
|
||||
else
|
||||
echo "Cleaning out autom4te.cache (${pkg_ver} -> ${git_describe})"
|
||||
rm -rf "autom4te.cache"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
echo "Generating configure files... may take a while."
|
||||
|
||||
autoreconf --install --force && \
|
||||
echo "Preparing was successful if there was no error messages above." && \
|
||||
echo "Now type:" && \
|
||||
echo " ./configure && make" && \
|
||||
echo "Run './configure --help' for more information"
|
201
configure.ac
201
configure.ac
|
@ -1,201 +0,0 @@
|
|||
# -*- Autoconf -*-
|
||||
# Process this file with autoreconf to produce a configure script.
|
||||
|
||||
m4_include(as_ac_expand.m4)
|
||||
|
||||
AC_PREREQ(2.61)
|
||||
dnl Each time you want an updated version number for your build, you need to
|
||||
dnl (re-)run autoreconf.
|
||||
AC_INIT([awesome window manager],
|
||||
[m4_esyscmd([./build-utils/package-version . version-stamp])],
|
||||
[http://awesome.naquadah.org/bugs/],
|
||||
[awesome])
|
||||
AC_CONFIG_AUX_DIR([auto-aux])
|
||||
AC_CONFIG_SRCDIR([awesome.c])
|
||||
dnl The AC_CONFIG_HEADER and awesome's own config.h are different beasts
|
||||
dnl AC_CONFIG_HEADER([config.h])
|
||||
dnl Other options:
|
||||
dnl check-news to check that NEWS has been adapted to current version
|
||||
AM_INIT_AUTOMAKE([
|
||||
-Wall -Werror
|
||||
1.10
|
||||
dist-bzip2
|
||||
filename-length-max=99
|
||||
foreign
|
||||
std-options
|
||||
subdir-objects
|
||||
])
|
||||
AC_CONFIG_HEADER([config.h])
|
||||
|
||||
AC_DEFINE_UNQUOTED([AWESOME_RELEASE], [m4_esyscmd([./build-utils/package-codename . codename-stamp])], [release code name])
|
||||
|
||||
AC_MSG_CHECKING([package version according to autoconf])
|
||||
AC_MSG_RESULT([${PACKAGE_VERSION}])
|
||||
AC_MSG_CHECKING([package version according to version script])
|
||||
version_script=`"${srcdir}/build-utils/package-version" "${srcdir}" version-stamp`
|
||||
AC_MSG_RESULT([${version_script}])
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_SED
|
||||
AC_PROG_CC
|
||||
AM_PROG_CC_C_O
|
||||
AC_PROG_INSTALL
|
||||
|
||||
AC_ARG_VAR([ASCIIDOC], [asciidoc doc generation tool])
|
||||
AC_ARG_VAR([XMLTO], [xmlto converter from xml to other formats])
|
||||
AC_ARG_VAR([DOXYGEN], [doxygen source documentation system])
|
||||
|
||||
test "x$ASCIIDOC" = "x" && AC_PATH_PROG([ASCIIDOC], [asciidoc], [:])
|
||||
test "x$XMLTO" = "x" && AC_PATH_PROG([XMLTO], [xmlto], [:])
|
||||
test "x$DOXYGEN" = "x" && AC_PATH_PROG([DOXYGEN], [doxygen], [:])
|
||||
|
||||
test "x$ASCIIDOC" = "x:" && AC_MSG_WARN([awesome man page generation requires asciidoc])
|
||||
test "x$XMLTO" = "x:" && AC_MSG_WARN([awesome man page generation requires xmlto])
|
||||
test "x$DOXYGEN" = "x:" && AC_MSG_WARN([awesome developer doc generation requires doxygen])
|
||||
|
||||
AM_CONDITIONAL([HAVE_ASCIIDOC], [test "x$ASCIIDOC" != "x:"])
|
||||
AM_CONDITIONAL([HAVE_XMLTO], [test "x$XMLTO" != "x:"])
|
||||
AM_CONDITIONAL([HAVE_DOXYGEN], [test "x$DOXYGEN" != "x:"])
|
||||
|
||||
xmlto_man_works=no
|
||||
if test ="x$XMLTO" != "x:"; then dnl try generating an example man page
|
||||
rm -f conf-example.1
|
||||
cat>conf-example.1.xml<<MANEOF
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||
<refentry>
|
||||
<refmeta>
|
||||
<refentrytitle>conf-example</refentrytitle>
|
||||
<manvolnum>1</manvolnum>
|
||||
</refmeta>
|
||||
<refnamediv>
|
||||
<refname>conf-example</refname>
|
||||
<refpurpose>'configure' time test for working 'xmlto man'</refpurpose>
|
||||
</refnamediv>
|
||||
<refsynopsisdiv>
|
||||
<simpara>foo</simpara>
|
||||
</refsynopsisdiv>
|
||||
<refsect1>
|
||||
<title>DESCRIPTION</title>
|
||||
<simpara>bar</simpara>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
MANEOF
|
||||
AC_MSG_CHECKING([whether xmlto can create a man page])
|
||||
if ${XMLTO} man conf-example.1.xml >/dev/null 2>&1 && test -s conf-example.1; then
|
||||
xmlto_man_works=yes
|
||||
AC_MSG_RESULT([yes])
|
||||
rm -f conf-example.1 conf-example.1.xml
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_WARN([awesome man page generation requires 'xmlto man', but it does not work.
|
||||
Do you need to (properly) install http://docbook.sourceforge.net/projects/xsl/?])
|
||||
fi
|
||||
fi
|
||||
AM_CONDITIONAL([XMLTO_MAN_WORKS], [test "x$xmlto_man_works" = "xyes"])
|
||||
|
||||
AM_CONDITIONAL([USING_GCC], [test "x$GCC" = "xyes"])
|
||||
|
||||
AC_CANONICAL_HOST
|
||||
AC_DEFINE_UNQUOTED([AWESOME_COMPILE_MACHINE], ["$host"], [build for this machine])
|
||||
|
||||
AC_DEFINE_UNQUOTED([AWESOME_COMPILE_HOSTNAME], ["${ac_hostname}"], [build host])
|
||||
|
||||
AC_ARG_VAR([WHOAMI], [whoami(1) command])
|
||||
AC_PATH_PROG([WHOAMI], [whoami], [false])
|
||||
AS_IF([test "x$WHOAMI" = "xfalse"], [aw_whoami="???"], [aw_whoami=`$WHOAMI`])
|
||||
AC_DEFINE_UNQUOTED([AWESOME_COMPILE_BY], ["$aw_whoami"], [build user])
|
||||
|
||||
AC_ARG_VAR([LUA], [Lua interpreter])
|
||||
AC_PATH_PROG([LUA], [lua], [:])
|
||||
test "x$LUA" = "x" && AC_MSG_WARN([awesome compilation requires lua])
|
||||
|
||||
AC_ARG_VAR([LUAC], [Lua compiler])
|
||||
AC_PATH_PROG([LUAC], [luac], [:])
|
||||
test "x$LUAC" = "x" && AC_MSG_WARN([awesome compilation requires luac])
|
||||
|
||||
AS_AC_EXPAND(awesomelibdir, "$datarootdir/awesome/lib")
|
||||
AC_DEFINE_UNQUOTED([AWESOME_LUA_LIB_PATH], "${awesomelibdir}", [awesome lib path])
|
||||
AS_AC_EXPAND(awesomesysconfdir, "$sysconfdir/awesome")
|
||||
AC_DEFINE_UNQUOTED([AWESOME_CONF_PATH], "${awesomesysconfdir}", [awesome conf path])
|
||||
|
||||
# Checks for libraries.
|
||||
AC_PATH_XTRA
|
||||
PKG_CHECK_MODULES([pangocairo], [pangocairo],,
|
||||
[AC_MSG_ERROR([awesome requires pangocairo.])])
|
||||
PKG_CHECK_MODULES([Lua], [lua >= 5.1],,
|
||||
[PKG_CHECK_MODULES([Lua], [lua5.1],,
|
||||
[AC_MSG_ERROR([awesome requires Lua >= 5.1.])])])
|
||||
PKG_CHECK_MODULES([glib], [glib-2.0],,
|
||||
[AC_MSG_ERROR([awesome requires glib-2.0.])])
|
||||
|
||||
AC_ARG_WITH([dbus], AS_HELP_STRING([--with-dbus], [Build with D-BUS (default: enabled)]), [], [with_dbus=yes])
|
||||
if test "x$with_dbus" == "xyes"; then
|
||||
PKG_CHECK_MODULES([dbus], [dbus-1],,
|
||||
[AC_MSG_ERROR([awesome requires dbus-1.])])
|
||||
AC_DEFINE([WITH_DBUS],1,[Defined to use D-BUS])
|
||||
fi
|
||||
|
||||
AC_ARG_WITH([imlib2], AS_HELP_STRING([--with-imlib2], [Build with Imlib2 (default: disabled)]))
|
||||
|
||||
if test "x$with_imlib2" == "xyes"; then
|
||||
PKG_CHECK_MODULES([imlib2], [imlib2],,
|
||||
[AC_MSG_ERROR([Cannot find Imlib2.])])
|
||||
AC_DEFINE([WITH_IMLIB2],1,[Defined to use Imlib2])
|
||||
else
|
||||
PKG_CHECK_MODULES([GdkPixbuf], [gdk-pixbuf-2.0 >= 2.2],,
|
||||
[AC_MSG_ERROR([Cannot find gdk-pixbuf-2.0 >= 2.2])])
|
||||
PKG_CHECK_MODULES([GDK], [gdk-2.0 >= 2.2],,
|
||||
[AC_MSG_ERROR([Cannot find gdk-2.0 >= 2.2])])
|
||||
fi
|
||||
PKG_CHECK_MODULES([xcb], [xcb],,
|
||||
[AC_MSG_ERROR([awesome requires xcb.])])
|
||||
PKG_CHECK_MODULES([xcb_event], [xcb-event],,
|
||||
[AC_MSG_ERROR([awesome requires xcb-event.])])
|
||||
PKG_CHECK_MODULES([xcb_randr], [xcb-randr],,
|
||||
[AC_MSG_ERROR([awesome requires xcb-randr.])])
|
||||
PKG_CHECK_MODULES([xcb_xinerama], [xcb-xinerama],,
|
||||
[AC_MSG_ERROR([awesome requires xcb-xinerama.])])
|
||||
PKG_CHECK_MODULES([xcb_aux], [xcb-aux],,
|
||||
[AC_MSG_ERROR([awesome requires xcb-aux.])])
|
||||
PKG_CHECK_MODULES([xcb_atom], [xcb-atom],,
|
||||
[AC_MSG_ERROR([awesome requires xcb-atom.])])
|
||||
PKG_CHECK_MODULES([xcb_keysyms], [xcb-keysyms],,
|
||||
[AC_MSG_ERROR([awesome requires xcb-keysyms.])])
|
||||
PKG_CHECK_MODULES([xcb_render], [xcb-render],,
|
||||
[AC_MSG_ERROR([awesome requires xcb-render.])])
|
||||
PKG_CHECK_MODULES([xcb_icccm], [xcb-icccm],,
|
||||
[AC_MSG_ERROR([awesome requires xcb-icccm.])])
|
||||
PKG_CHECK_MODULES([cairo_xcb], [cairo-xcb],,
|
||||
[AC_MSG_ERROR([awesome requires cairo-xcb.])])
|
||||
AC_CHECK_LIB(readline, readline,
|
||||
[AC_SUBST([readline_LIBS], ["-lreadline -lncurses"])],
|
||||
[AC_MSG_FAILURE([awesome needs readline])], -lncurses)
|
||||
AC_CHECK_LIB(ev, ev_loop,
|
||||
[AC_SUBST([ev_LIBS], ["-lev"])],
|
||||
[AC_MSG_FAILURE([awesome needs libev])])
|
||||
|
||||
# Checks for header files.
|
||||
AC_PATH_X
|
||||
AC_HEADER_STDC
|
||||
AC_HEADER_SYS_WAIT
|
||||
AC_CHECK_HEADERS([fcntl.h limits.h locale.h stdlib.h string.h sys/socket.h unistd.h])
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_CONST
|
||||
AC_C_INLINE
|
||||
AC_TYPE_SIZE_T
|
||||
AC_TYPE_SSIZE_T
|
||||
|
||||
# Checks for library functions.
|
||||
AC_FUNC_FORK
|
||||
AC_FUNC_REALLOC
|
||||
AC_FUNC_SELECT_ARGTYPES
|
||||
AC_TYPE_SIGNAL
|
||||
AC_FUNC_VPRINTF
|
||||
AC_CHECK_FUNCS([getline memchr regcomp select setenv socket strchr strrchr strstr])
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_CONFIG_FILES([awesome.doxygen])
|
||||
AC_OUTPUT
|
Loading…
Reference in New Issue