2005-11-22 12:26:26 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2005-12-29 20:11:07 +00:00
|
|
|
dnl $Id$
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
AC_INIT(configure.in)
|
2005-12-29 20:11:07 +00:00
|
|
|
AM_INIT_AUTOMAKE(geany, 0.5)
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
dnl AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
AC_ISC_POSIX
|
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_CC_STDC
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_PROG_CXX
|
|
|
|
AC_PROG_CPP
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
|
|
|
|
# autoscan start
|
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_HEADER_DIRENT
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_HEADER_SYS_WAIT
|
2005-12-29 20:11:07 +00:00
|
|
|
AC_CHECK_HEADERS([fcntl.h fnmatch.h glob.h libintl.h limits.h stddef.h stdlib.h string.h sys/time.h unistd.h])
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_HEADER_STAT
|
|
|
|
AC_HEADER_STDBOOL
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_TYPE_OFF_T
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_HEADER_TIME
|
|
|
|
AC_STRUCT_TM
|
|
|
|
AC_C_VOLATILE
|
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_CLOSEDIR_VOID
|
|
|
|
AC_FUNC_ERROR_AT_LINE
|
|
|
|
AC_REPLACE_FNMATCH
|
|
|
|
AC_FUNC_LSTAT
|
|
|
|
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
|
|
|
|
AC_FUNC_MALLOC
|
|
|
|
AC_FUNC_MEMCMP
|
|
|
|
AC_FUNC_MMAP
|
|
|
|
AC_FUNC_REALLOC
|
|
|
|
AC_TYPE_SIGNAL
|
|
|
|
AC_FUNC_STAT
|
|
|
|
AC_FUNC_VPRINTF
|
2005-12-11 02:10:21 +00:00
|
|
|
AC_CHECK_FUNCS([gethostname ftruncate fgetpos getcwd gettimeofday isascii mblen memmove memset munmap putenv realpath regcomp setenv strcasecmp strchr strdup strerror strrchr strspn strstr strtol])
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
# autoscan end
|
|
|
|
|
2005-11-30 22:56:46 +00:00
|
|
|
pkg_modules="gtk+-2.0 >= 2.6.0"
|
2005-11-22 12:26:26 +00:00
|
|
|
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
|
|
|
|
AC_SUBST(PACKAGE_CFLAGS)
|
|
|
|
AC_SUBST(PACKAGE_LIBS)
|
|
|
|
|
2005-11-27 20:44:06 +00:00
|
|
|
want_vte=yes
|
|
|
|
AC_ARG_ENABLE(vte, [ --enable-vte enable if you want virtual termninal support [[default=yes]]],
|
|
|
|
[want_vte="$enableval"])
|
|
|
|
|
2006-01-06 18:33:47 +00:00
|
|
|
if test "$want_vte" = "yes"; then
|
|
|
|
AC_DEFINE(HAVE_VTE, 1, [Define if you want VTE support])
|
|
|
|
fi
|
2005-12-29 20:11:07 +00:00
|
|
|
# if test "$want_vte" = "yes"; then
|
|
|
|
# PKG_CHECK_MODULES(VTE, [vte],
|
|
|
|
# [AC_DEFINE(HAVE_VTE, 1, [Define if you want VTE support])],
|
|
|
|
# [AC_MSG_ERROR([VTE support enabled, but VTE not found])])
|
|
|
|
# AC_CHECK_LIB(vte, vte_terminal_new,
|
|
|
|
# [AC_DEFINE(HAVE_VTE, 1, [Define if you want VTE support])],
|
|
|
|
# [AC_MSG_ERROR([VTE support enabled, but VTE not found])], [])
|
|
|
|
# fi
|
|
|
|
|
|
|
|
dnl Check for random number paths
|
|
|
|
AC_CHECK_FILE([/dev/urandom], AC_DEFINE([HAVE_DEVURANDOM], [1], [Define that you found /dev/urandom]))
|
|
|
|
AC_CHECK_FILE([/dev/random], AC_DEFINE([HAVE_DEVRANDOM], [1], [Define that you found /dev/random]))
|
|
|
|
|
|
|
|
|
2005-11-27 20:44:06 +00:00
|
|
|
GTK_VERSION=`$PKG_CONFIG gtk+-2.0 --modversion`
|
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
GETTEXT_PACKAGE=geany
|
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
|
|
|
|
|
|
|
|
dnl Add the languages which your application supports here.
|
|
|
|
ALL_LINGUAS="de"
|
|
|
|
AM_GLIB_GNU_GETTEXT
|
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
|
|
|
tagmanager/Makefile
|
|
|
|
tagmanager/include/Makefile
|
|
|
|
scintilla/Makefile
|
|
|
|
scintilla/include/Makefile
|
|
|
|
src/Makefile
|
|
|
|
po/Makefile.in
|
|
|
|
doc/Makefile
|
|
|
|
geany.spec
|
|
|
|
])
|
|
|
|
|
|
|
|
echo "----------------------------------------"
|
2005-11-27 20:44:06 +00:00
|
|
|
echo "Install Geany in : ${prefix}"
|
|
|
|
echo "Using GTK version : $GTK_VERSION"
|
|
|
|
echo "Use virtual terminal support : ${want_vte}"
|
2005-11-22 12:26:26 +00:00
|
|
|
echo "Configuration is done OK."
|
|
|
|
echo ""
|