2015-02-04 00:27:34 +01:00
|
|
|
dnl GEANY_CHECK_MAC_INTEGRATION
|
|
|
|
dnl Check for gtk-mac-integration to enable improved OS X integration
|
|
|
|
dnl
|
|
|
|
AC_DEFUN([GEANY_CHECK_MAC_INTEGRATION],
|
|
|
|
[
|
|
|
|
AC_ARG_ENABLE([mac-integration],
|
|
|
|
[AS_HELP_STRING([--enable-mac-integration],
|
|
|
|
[use gtk-mac-integration to enable improved OS X integration [default=no]])],
|
|
|
|
[geany_enable_mac_integration="$enableval"],
|
|
|
|
[geany_enable_mac_integration="no"])
|
|
|
|
|
2015-04-14 22:21:34 +02:00
|
|
|
AM_CONDITIONAL(ENABLE_MAC_INTEGRATION, [test "x$geany_enable_mac_integration" = "xyes"])
|
|
|
|
AM_COND_IF(ENABLE_MAC_INTEGRATION,
|
2015-02-04 00:27:34 +01:00
|
|
|
[
|
|
|
|
AS_IF([test "x$enable_gtk3" = xyes],
|
|
|
|
[PKG_CHECK_MODULES(MAC_INTEGRATION, gtk-mac-integration-gtk3)],
|
|
|
|
[PKG_CHECK_MODULES(MAC_INTEGRATION, gtk-mac-integration-gtk2)])
|
|
|
|
])
|
|
|
|
])
|