2005-11-22 12:26:26 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
2011-10-06 00:42:48 +00:00
|
|
|
AC_PREREQ([2.60])
|
2014-04-13 19:33:23 +02:00
|
|
|
AC_INIT([Geany], [1.25],
|
2011-10-06 00:42:48 +00:00
|
|
|
[https://sourceforge.net/tracker/?group_id=153444&atid=787791])
|
|
|
|
AC_CONFIG_SRCDIR([src/geany.h])
|
|
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
2010-08-23 12:37:17 +00:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2013-12-17 15:42:34 +01:00
|
|
|
AM_INIT_AUTOMAKE([1.11 -Wall parallel-tests subdir-objects])
|
2011-10-06 00:42:48 +00:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
2006-07-25 17:45:34 +00:00
|
|
|
|
2009-09-21 21:14:03 +00:00
|
|
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
|
|
|
|
2011-10-06 00:45:49 +00:00
|
|
|
GEANY_PREFIX
|
|
|
|
GEANY_DOCDIR
|
|
|
|
|
|
|
|
GEANY_STATUS_ADD([Install Geany in], [${prefix}])
|
|
|
|
if test -n "${build}" -a -n "${target}"; then
|
|
|
|
GEANY_STATUS_ADD([Building Geany on], [${build}])
|
|
|
|
GEANY_STATUS_ADD([Building Geany for], [${target}])
|
|
|
|
fi
|
|
|
|
|
2011-10-06 00:42:48 +00:00
|
|
|
# why do we use this?
|
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2013-12-17 15:41:22 +01:00
|
|
|
m4_ifdef([AM_PROG_AR],[AM_PROG_AR])
|
2005-11-22 12:26:26 +00:00
|
|
|
AC_PROG_CC
|
2013-10-20 15:19:56 +02:00
|
|
|
AC_PROG_CC_C99
|
2013-12-17 15:42:34 +01:00
|
|
|
AM_PROG_CC_C_O
|
2007-07-11 15:27:57 +00:00
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
AC_PROG_CXX
|
2008-04-09 16:08:34 +00:00
|
|
|
# check for C++ compiler explicitly and fail if none is found, do this check
|
|
|
|
# after AC_PROG_CXX has set the CXX environment variable
|
2011-10-06 00:42:48 +00:00
|
|
|
if ! which $CXX >/dev/null 2>&1; then
|
2009-09-27 11:20:12 +00:00
|
|
|
AC_MSG_ERROR([No C++ compiler found. Please install a C++ compiler.])
|
2008-04-09 16:08:34 +00:00
|
|
|
fi
|
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
|
|
|
|
|
|
|
# autoscan start
|
|
|
|
|
|
|
|
# Checks for header files.
|
2012-01-01 17:57:18 +00:00
|
|
|
AC_CHECK_HEADERS([fcntl.h fnmatch.h glob.h stdlib.h sys/time.h])
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_TYPE_OFF_T
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_STRUCT_TM
|
|
|
|
|
|
|
|
# Checks for library functions.
|
2013-08-18 00:29:04 +02:00
|
|
|
AC_CHECK_FUNCS([ftruncate fgetpos mkstemp strerror strstr])
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
# autoscan end
|
|
|
|
|
2011-10-06 00:45:33 +00:00
|
|
|
|
2011-10-06 00:42:48 +00:00
|
|
|
# check for SVN revision
|
2011-10-06 00:43:09 +00:00
|
|
|
GEANY_CHECK_REVISION([dnl force debug mode for a SVN working copy
|
|
|
|
CFLAGS="-g -DGEANY_DEBUG $CFLAGS"])
|
2006-05-21 17:51:22 +00:00
|
|
|
|
2007-12-12 20:04:45 +00:00
|
|
|
|
2012-09-15 13:41:46 +02:00
|
|
|
AC_ARG_ENABLE([gtk3],
|
|
|
|
[AS_HELP_STRING([--enable-gtk3],
|
|
|
|
[compile with GTK3 support (experimental) [default=no]])],
|
|
|
|
[enable_gtk3=$enableval],
|
|
|
|
[enable_gtk3=no])
|
|
|
|
|
|
|
|
AS_IF([test "x$enable_gtk3" = xyes],
|
|
|
|
[gtk_package=gtk+-3.0
|
|
|
|
gtk_min_version=3.0],
|
|
|
|
[gtk_package=gtk+-2.0
|
|
|
|
gtk_min_version=2.16])
|
2012-09-28 04:30:57 +02:00
|
|
|
AM_CONDITIONAL([GTK3], [test "x$gtk_package" = "xgtk+-3.0"])
|
2012-09-15 13:41:46 +02:00
|
|
|
|
2011-06-13 18:41:15 +00:00
|
|
|
# GTK/GLib/GIO checks
|
2012-09-15 13:41:46 +02:00
|
|
|
gtk_modules="$gtk_package >= $gtk_min_version glib-2.0 >= 2.20"
|
2012-04-12 17:39:10 +02:00
|
|
|
gtk_modules_private="gio-2.0 >= 2.20 gmodule-2.0"
|
|
|
|
PKG_CHECK_MODULES([GTK], [$gtk_modules $gtk_modules_private])
|
|
|
|
AC_SUBST([DEPENDENCIES], [$gtk_modules])
|
2011-10-06 00:42:48 +00:00
|
|
|
AC_SUBST([GTK_CFLAGS])
|
|
|
|
AC_SUBST([GTK_LIBS])
|
2012-09-15 13:41:46 +02:00
|
|
|
GTK_VERSION=`$PKG_CONFIG --modversion $gtk_package`
|
2011-10-06 00:45:33 +00:00
|
|
|
GEANY_STATUS_ADD([Using GTK version], [${GTK_VERSION}])
|
2011-03-27 15:04:58 +00:00
|
|
|
# GTHREAD checks
|
|
|
|
gthread_modules="gthread-2.0"
|
2011-10-06 00:42:48 +00:00
|
|
|
PKG_CHECK_MODULES([GTHREAD], [$gthread_modules])
|
|
|
|
AC_SUBST([GTHREAD_CFLAGS])
|
|
|
|
AC_SUBST([GTHREAD_LIBS])
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2007-07-17 08:21:19 +00:00
|
|
|
# --disable-deprecated switch for GTK2 purification
|
2011-10-06 00:42:48 +00:00
|
|
|
AC_ARG_ENABLE([deprecated],
|
|
|
|
[AS_HELP_STRING([--disable-deprecated], [Disable deprecated GTK functions.])],
|
|
|
|
[GTK_CFLAGS="$GTK_CFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"],
|
|
|
|
[])
|
|
|
|
|
2007-07-17 08:21:19 +00:00
|
|
|
|
2011-10-06 00:45:49 +00:00
|
|
|
# Check for binary relocation support
|
|
|
|
GEANY_CHECK_BINRELOC
|
2012-01-01 17:57:18 +00:00
|
|
|
# CTags source compatibility (we actually use GRegex instead of POSIX regcomp)
|
|
|
|
AC_DEFINE([HAVE_REGCOMP], [1], [Should always be 1, required for CTags.])
|
2007-06-26 16:17:16 +00:00
|
|
|
# Plugins support
|
2011-10-06 00:44:06 +00:00
|
|
|
GEANY_CHECK_PLUGINS
|
2011-10-06 00:42:48 +00:00
|
|
|
# check for mingw specific settings
|
2011-10-06 00:44:48 +00:00
|
|
|
GEANY_CHECK_MINGW
|
2006-07-25 17:45:34 +00:00
|
|
|
|
2011-10-06 00:44:48 +00:00
|
|
|
GEANY_CHECK_SOCKET
|
|
|
|
GEANY_CHECK_VTE
|
2011-10-06 00:46:09 +00:00
|
|
|
GEANY_CHECK_THE_FORCE dnl hehe
|
2006-05-14 16:07:30 +00:00
|
|
|
|
|
|
|
# i18n
|
2011-10-06 00:44:25 +00:00
|
|
|
GEANY_I18N
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-10-01 17:28:45 +00:00
|
|
|
GEANY_DATA_DIR=`eval echo ${datarootdir}/geany`
|
2011-10-06 00:42:48 +00:00
|
|
|
AC_SUBST([GEANY_DATA_DIR])
|
2006-01-15 18:44:38 +00:00
|
|
|
|
2011-10-06 00:42:48 +00:00
|
|
|
# Output
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
icons/Makefile
|
|
|
|
icons/16x16/Makefile
|
2012-10-17 22:18:54 +02:00
|
|
|
icons/24x24/Makefile
|
|
|
|
icons/32x32/Makefile
|
2011-10-06 00:42:48 +00:00
|
|
|
icons/48x48/Makefile
|
|
|
|
icons/scalable/Makefile
|
2012-10-17 22:18:54 +02:00
|
|
|
icons/tango/Makefile
|
|
|
|
icons/tango/16x16/Makefile
|
|
|
|
icons/tango/24x24/Makefile
|
|
|
|
icons/tango/32x32/Makefile
|
|
|
|
icons/tango/48x48/Makefile
|
|
|
|
icons/tango/scalable/Makefile
|
2011-10-06 00:42:48 +00:00
|
|
|
tagmanager/Makefile
|
2012-05-08 22:14:29 +02:00
|
|
|
tagmanager/ctags/Makefile
|
2011-10-06 00:42:48 +00:00
|
|
|
tagmanager/mio/Makefile
|
2012-05-08 22:14:29 +02:00
|
|
|
tagmanager/src/Makefile
|
2011-10-06 00:42:48 +00:00
|
|
|
scintilla/Makefile
|
|
|
|
scintilla/include/Makefile
|
|
|
|
src/Makefile
|
|
|
|
plugins/Makefile
|
|
|
|
po/Makefile.in
|
2014-04-15 14:30:00 +02:00
|
|
|
data/Makefile
|
2011-10-06 00:42:48 +00:00
|
|
|
doc/Makefile
|
|
|
|
doc/geany.1
|
|
|
|
geany.spec
|
|
|
|
geany.pc
|
|
|
|
doc/Doxyfile
|
2013-06-23 15:08:27 +02:00
|
|
|
tests/Makefile
|
|
|
|
tests/ctags/Makefile
|
2005-11-22 12:26:26 +00:00
|
|
|
])
|
2011-10-06 00:42:48 +00:00
|
|
|
AC_OUTPUT
|
|
|
|
|
|
|
|
# Summary
|
2011-10-06 00:45:33 +00:00
|
|
|
GEANY_STATUS_OUTPUT
|
2006-02-14 22:17:36 +00:00
|
|
|
echo ""
|
2005-11-22 12:26:26 +00:00
|
|
|
echo "Configuration is done OK."
|
|
|
|
echo ""
|