1 dnl Process this file with autoconf to produce a configure script.
4 AC_INIT([Geany], [1.22],
5 [https://sourceforge.net/tracker/?group_id=153444&atid=787791])
6 AC_CONFIG_SRCDIR([src/geany.h])
7 AC_CONFIG_AUX_DIR([build-aux])
8 AC_CONFIG_MACRO_DIR([m4])
10 AC_CONFIG_HEADERS([config.h])
12 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
17 GEANY_STATUS_ADD([Install Geany in], [${prefix}])
18 if test -n "${build}" -a -n "${target}"; then
19 GEANY_STATUS_ADD([Building Geany on], [${build}])
20 GEANY_STATUS_ADD([Building Geany for], [${target}])
24 AC_USE_SYSTEM_EXTENSIONS
29 # check for C++ compiler explicitly and fail if none is found, do this check
30 # after AC_PROG_CXX has set the CXX environment variable
31 if ! which $CXX >/dev/null 2>&1; then
32 AC_MSG_ERROR([No C++ compiler found. Please install a C++ compiler.])
40 # Checks for header files.
41 AC_CHECK_HEADERS([fcntl.h fnmatch.h glob.h stdlib.h sys/time.h])
43 # Checks for typedefs, structures, and compiler characteristics.
48 # Checks for library functions.
49 AC_CHECK_FUNCS([gethostname ftruncate fgetpos mkstemp strerror strstr])
54 # check for SVN revision
55 GEANY_CHECK_REVISION([dnl force debug mode for a SVN working copy
56 CFLAGS="-g -DGEANY_DEBUG $CFLAGS"])
60 gtk_modules="gtk+-2.0 >= 2.16 glib-2.0 >= 2.20"
61 gtk_modules_private="gio-2.0 >= 2.20 gmodule-2.0"
62 PKG_CHECK_MODULES([GTK], [$gtk_modules $gtk_modules_private])
63 AC_SUBST([DEPENDENCIES], [$gtk_modules])
64 AC_SUBST([GTK_CFLAGS])
66 GTK_VERSION=`$PKG_CONFIG --modversion gtk+-2.0`
67 GEANY_STATUS_ADD([Using GTK version], [${GTK_VERSION}])
69 gthread_modules="gthread-2.0"
70 PKG_CHECK_MODULES([GTHREAD], [$gthread_modules])
71 AC_SUBST([GTHREAD_CFLAGS])
72 AC_SUBST([GTHREAD_LIBS])
74 # --disable-deprecated switch for GTK2 purification
75 AC_ARG_ENABLE([deprecated],
76 [AS_HELP_STRING([--disable-deprecated], [Disable deprecated GTK functions.])],
77 [GTK_CFLAGS="$GTK_CFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"],
81 # Check for binary relocation support
83 # CTags source compatibility (we actually use GRegex instead of POSIX regcomp)
84 AC_DEFINE([HAVE_REGCOMP], [1], [Should always be 1, required for CTags.])
87 # check for mingw specific settings
92 GEANY_CHECK_THE_FORCE dnl hehe
97 GEANY_DATA_DIR=`eval echo ${datarootdir}/geany`
98 AC_SUBST([GEANY_DATA_DIR])
106 icons/scalable/Makefile
108 tagmanager/include/Makefile
109 tagmanager/mio/Makefile
111 scintilla/include/Makefile
126 echo "Configuration is done OK."