2015-01-24 16:12:04 +00:00
|
|
|
AC_INIT([rofi], [0.15.1], [qball@gmpclient.org])
|
2014-03-17 17:00:09 +00:00
|
|
|
|
2014-03-18 07:59:42 +00:00
|
|
|
AC_CONFIG_SRCDIR([source/rofi.c])
|
2014-03-17 17:00:09 +00:00
|
|
|
AC_CONFIG_HEADER([config.h])
|
|
|
|
|
2014-03-18 07:59:42 +00:00
|
|
|
##
|
|
|
|
# Setup automake to be silent and in foreign mode.
|
|
|
|
##
|
2014-03-17 18:15:42 +00:00
|
|
|
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
|
2014-03-17 23:11:46 +00:00
|
|
|
AM_SILENT_RULES([yes])
|
2014-03-17 17:00:09 +00:00
|
|
|
|
2014-03-18 07:59:42 +00:00
|
|
|
##
|
|
|
|
# Check for compiler
|
|
|
|
##
|
2014-03-17 17:00:09 +00:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CC_STDC
|
|
|
|
AM_PROG_CC_C_O
|
|
|
|
|
2014-08-22 07:26:46 +00:00
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
|
|
|
|
2014-03-17 22:57:49 +00:00
|
|
|
##
|
|
|
|
# I3 check
|
|
|
|
##
|
2015-02-02 13:49:19 +00:00
|
|
|
AC_ARG_ENABLE(i3support,
|
|
|
|
[AS_HELP_STRING([--disable-i3support], [Disable check for i3 support])])
|
|
|
|
if test "x$enable_i3support" != xno;
|
|
|
|
then
|
|
|
|
AC_CHECK_HEADERS([i3/ipc.h],
|
|
|
|
[i3_header=yes; break;])
|
|
|
|
fi
|
2014-03-17 22:57:49 +00:00
|
|
|
|
2014-08-28 22:01:36 +00:00
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------
|
|
|
|
dnl Enable source code coverage reporting for GCC
|
|
|
|
dnl ---------------------------------------------------------------------
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(gcov,
|
|
|
|
[ --enable-gcov Enable source code coverage testing using gcov],
|
|
|
|
[CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"])
|
|
|
|
|
2014-11-06 16:21:55 +00:00
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Enable timing debug output.
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(timings,
|
|
|
|
[ --enable-timings Enable debug information about timings],
|
|
|
|
[CFLAGS="$CFLAGS -DTIMING"])
|
|
|
|
|
2014-03-17 18:15:42 +00:00
|
|
|
##
|
|
|
|
# Check dependencies
|
|
|
|
##
|
2014-03-17 17:00:09 +00:00
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES([xft], [xft])
|
|
|
|
PKG_CHECK_MODULES([x11], [x11])
|
|
|
|
PKG_CHECK_MODULES([xinerama], [xinerama])
|
2014-08-02 18:02:37 +00:00
|
|
|
PKG_CHECK_MODULES([pango], [pango pangoxft])
|
2014-03-17 17:00:09 +00:00
|
|
|
|
2015-02-01 14:12:29 +00:00
|
|
|
AC_SUBST([EXTRA_CFLAGS], ["-Wall -Wextra"])
|
2014-03-17 17:00:09 +00:00
|
|
|
|
2014-11-26 18:40:49 +00:00
|
|
|
AC_CONFIG_FILES([Makefile ])
|
2014-03-17 17:00:09 +00:00
|
|
|
AC_OUTPUT
|