Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 47 lines (43 sloc) 1.383 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
dnl _GEANY_CHECK_VTE_PREREQ
AC_DEFUN([_GEANY_CHECK_VTE_PREREQ],
[
AC_ARG_ENABLE([vte],
[AS_HELP_STRING([--enable-vte],
[enable if you want virtual terminal support [default=yes]])],
[geany_enable_vte="$enableval"],
[geany_enable_vte="yes"])
AC_ARG_WITH([vte-module-path],
[AS_HELP_STRING([--with-vte-module-path=PATH],
[Path to a loadable libvte [default=None]])],
[AC_DEFINE_UNQUOTED([VTE_MODULE_PATH],
["$withval"], [Path to a loadable libvte])])
])

dnl GEANY_CHECK_VTE([enable])
AC_DEFUN([GEANY_CHECK_VTE],
[
AC_REQUIRE([_GEANY_CHECK_VTE_PREREQ])

dnl this way of calling once is a bit ugly, but we need to be able to
dnl call this from one or more locations, the first one maybe in a shell
dnl conditional.
dnl see geany-socket.m4
if test "x$_geany_enable_vte_done" = x; then
dnl This one gives precedence for user choice
dnl if test "x$geany_enable_vte" = xauto; then
dnl if test -n "$1"; then
dnl geany_enable_vte="$1"
dnl else
dnl geany_enable_vte=yes
dnl fi
dnl fi
if test -n "$1"; then
geany_enable_vte="$1"
elif test "x$geany_enable_vte" = xauto; then
geany_enable_vte=yes
fi

if test "x$geany_enable_vte" = xyes; then
AC_DEFINE([HAVE_VTE], [1], [Define if you want VTE support])
fi

GEANY_STATUS_ADD([Use virtual terminal support], [$geany_enable_vte])
_geany_enable_vte_done=yes
fi
])
Something went wrong with that request. Please try again.