2015-11-09 19:47:11 +00:00
|
|
|
AC_INIT([rofi], [0.15.12-devel], [https://github.com/DaveDavenport/rofi/])
|
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])
|
|
|
|
|
2015-11-14 12:47:45 +00:00
|
|
|
dnl ---------------------------------------------------------------------
|
|
|
|
dnl Setup automake to be silent and in foreign mode.
|
|
|
|
dnl ---------------------------------------------------------------------
|
2015-03-02 21:23:55 +00:00
|
|
|
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects dist-xz])
|
2014-03-17 23:11:46 +00:00
|
|
|
AM_SILENT_RULES([yes])
|
2014-03-17 17:00:09 +00:00
|
|
|
|
2015-11-14 12:47:45 +00:00
|
|
|
dnl ---------------------------------------------------------------------
|
|
|
|
dnl Check for compiler
|
|
|
|
dnl ---------------------------------------------------------------------
|
2015-02-18 13:00:19 +00:00
|
|
|
AC_PROG_CC([clang gcc cc])
|
|
|
|
AC_PROG_CC_C99
|
2015-03-01 18:50:54 +00:00
|
|
|
AM_PROG_CC_C_O
|
2014-03-17 17:00:09 +00:00
|
|
|
|
2014-08-22 07:26:46 +00:00
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
|
|
|
|
2015-09-14 07:01:05 +00:00
|
|
|
dnl ---------------------------------------------------------------------
|
|
|
|
dnl Disable window mode
|
|
|
|
dnl ---------------------------------------------------------------------
|
2015-09-20 09:45:28 +00:00
|
|
|
AC_ARG_ENABLE([windowmode], AC_HELP_STRING([--disable-windowmode],[Disable window mode]))
|
|
|
|
AS_IF([ test "x$enable_windowmode" != "xno"], [AC_DEFINE([WINDOW_MODE],[1],[Enable the window mode])])
|
2015-09-14 06:57:10 +00:00
|
|
|
|
2015-11-14 12:47:45 +00:00
|
|
|
dnl ---------------------------------------------------------------------
|
|
|
|
dnl Output timing information
|
|
|
|
dnl ---------------------------------------------------------------------
|
|
|
|
AC_ARG_ENABLE([timings], AC_HELP_STRING([--enable-timings],[Enable timing output]))
|
|
|
|
AS_IF( [ test "x$enable_timings" = "xyes"], [AC_DEFINE([TIMINGS],[1], [Enable timings output])])
|
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------
|
|
|
|
dnl I3 check
|
|
|
|
dnl ---------------------------------------------------------------------
|
2015-09-20 09:45:28 +00:00
|
|
|
AC_ARG_ENABLE(i3support, [AS_HELP_STRING([--disable-i3support], [Disable check for i3 support])])
|
|
|
|
AS_IF([test "x$enable_i3support" != xno && test "x$enable_windowmode" != "xno"],[AC_CHECK_HEADERS([i3/ipc.h], [i3_header=yes; break;])])
|
2015-09-14 15:51:59 +00:00
|
|
|
|
2015-11-12 13:59:13 +00:00
|
|
|
|
2015-11-14 12:47:45 +00:00
|
|
|
dnl ---------------------------------------------------------------------
|
|
|
|
dnl Check for C functions.
|
|
|
|
dnl ---------------------------------------------------------------------
|
2015-11-12 13:59:13 +00:00
|
|
|
AC_CHECK_FUNC([getdelim],, AC_MSG_ERROR("Could not find getdelim in c library"))
|
2015-11-12 16:20:51 +00:00
|
|
|
AC_CHECK_FUNC([sysconf],, AC_MSG_ERROR("Could not find sysconf"))
|
2015-11-14 12:47:45 +00:00
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------
|
|
|
|
dnl Check dependencies
|
|
|
|
dnl ---------------------------------------------------------------------
|
2014-03-17 17:00:09 +00:00
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
|
2015-09-16 14:14:14 +00:00
|
|
|
PKG_CHECK_MODULES([x11], [x11])
|
2014-03-17 17:00:09 +00:00
|
|
|
PKG_CHECK_MODULES([xinerama], [xinerama])
|
2015-09-26 18:34:34 +00:00
|
|
|
PKG_CHECK_MODULES([pango], [pango pangocairo])
|
|
|
|
PKG_CHECK_MODULES([cairo], [cairo cairo-xlib])
|
2015-09-16 14:14:14 +00:00
|
|
|
PKG_CHECK_MODULES([libsn], [libstartup-notification-1.0])
|
2014-03-17 17:00:09 +00:00
|
|
|
|
2015-02-22 22:04:08 +00:00
|
|
|
AC_SUBST([EXTRA_CFLAGS], ["-Wall -Wextra -Wparentheses -Winline -pedantic"])
|
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
|
2015-03-24 15:02:03 +00:00
|
|
|
|
|
|
|
dnl -----------------------------------------------
|
|
|
|
dnl Some output to easily spot if I3 is enabled.
|
|
|
|
dnl -----------------------------------------------
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "-------------------------------------"
|
|
|
|
if test x$i3_header = xyes; then
|
|
|
|
echo "I3 support: Enabled"
|
|
|
|
else
|
|
|
|
echo "I3 support: Disabled"
|
|
|
|
fi
|
2015-11-14 12:47:45 +00:00
|
|
|
if test x$enable_timings = xyes; then
|
|
|
|
echo "Timing output: Enabled"
|
|
|
|
else
|
|
|
|
echo "Timing output: Disabled"
|
|
|
|
fi
|
2015-03-24 15:02:03 +00:00
|
|
|
echo "-------------------------------------"
|
|
|
|
echo "Now type 'make' to build"
|
|
|
|
echo ""
|