#if 0 currently unused code to avoid compiler warning
[geany-mirror.git] / m4 / geany-mac-integration.m4
blobe015e59bf82c2454622c214c27851cc7a6e94b9c
1 dnl GEANY_CHECK_MAC_INTEGRATION
2 dnl Check for gtk-mac-integration to enable improved OS X integration
3 dnl
4 AC_DEFUN([GEANY_CHECK_MAC_INTEGRATION],
6         AC_ARG_ENABLE([mac-integration],
7                         [AS_HELP_STRING([--enable-mac-integration],
8                                         [use gtk-mac-integration to enable improved OS X integration [default=no]])],
9                         [geany_enable_mac_integration="$enableval"],
10                         [geany_enable_mac_integration="no"])
12         AM_CONDITIONAL(ENABLE_MAC_INTEGRATION, [test "x$geany_enable_mac_integration" = "xyes"])
13         AM_COND_IF(ENABLE_MAC_INTEGRATION,
14         [
15                 AS_IF([test "x$enable_gtk3" = xyes],
16                         [PKG_CHECK_MODULES(MAC_INTEGRATION, gtk-mac-integration-gtk3)], 
17                         [PKG_CHECK_MODULES(MAC_INTEGRATION, gtk-mac-integration-gtk2)])
18         ])