diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2014-04-18 06:35:32 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2014-04-18 06:35:32 +0000 |
commit | 631b56e652342cf6b8955ed60a5ee3eacfd00ee4 (patch) | |
tree | b83202723324dca70733f126f19dfbfd880dad88 /configure.in | |
parent | 26b2f9567dc0bd7b70e6cc66eee800a1e0d89b73 (diff) |
configure.in: added -lgtkmacintegration check.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3387 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 1b233e9b..18c73e70 100644 --- a/configure.in +++ b/configure.in @@ -74,9 +74,11 @@ AM_PROG_LIBTOOL SYLPHEED_ACLOCAL_INCLUDE(ac) native_win32=no +os_osx=no case "$target" in *-darwin*) + os_osx=yes CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" LIBSYLPH_CFLAGS="$LIBSYLPH_CFLAGS -xobjective-c" ;; @@ -92,7 +94,6 @@ esac AC_SUBST(LIBSYLPH_CFLAGS) AC_SUBST(LIBSYLPH_LIBS) -AC_SUBST(SYLPHEED_LIBS) AM_CONDITIONAL(NATIVE_WIN32, test "$native_win32" = "yes") @@ -110,6 +111,18 @@ AC_ARG_ENABLE(deprecated, [ --disable-deprecated Disable deprecated GTK func AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) +if test "$os_osx" == yes; then + AC_CHECK_LIB(gtkmacintegration, gtkosx_application_ready, [ ac_have_gtkmacintegration=yes ], [ ac_have_gtkmacintegration=no ]) + AC_MSG_CHECKING([if gtkmacintegration is available]) + AC_MSG_RESULT($ac_have_gtkmacintegration) + if test "$ac_have_gtkmacintegration" = yes; then + SYLPHEED_LIBS="$SYLPHEED_LIBS -lgtkmacintegration" + AC_DEFINE(USE_GTKMACINTEGRATION, 1, Define if you use gtkmacintegration library.) + fi +fi + +AC_SUBST(SYLPHEED_LIBS) + dnl checks for iconv AM_ICONV |