diff options
author | Kevin Walzer <kw@codebykevin.com> | 2020-09-17 21:22:42 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2020-09-17 21:22:42 (GMT) |
commit | c54c00583327635be8479fd1ed484b5d48d6ef69 (patch) | |
tree | 95765b076937abdcfd05c7d21a5ac70e350b91cd /unix | |
parent | 31aef8c3ec4eb7586b974773140793a5e0c61ad8 (diff) | |
parent | 32168d08399e99c9efa0508a9d12e9a69d0acb4c (diff) | |
download | tk-c54c00583327635be8479fd1ed484b5d48d6ef69.zip tk-c54c00583327635be8479fd1ed484b5d48d6ef69.tar.gz tk-c54c00583327635be8479fd1ed484b5d48d6ef69.tar.bz2 |
Fixes for Apple Event execution on app startup and window display in IDLE/Tkinter
Diffstat (limited to 'unix')
-rw-r--r-- | unix/configure.ac | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/unix/configure.ac b/unix/configure.ac index b765f13..286e7e5 100644 --- a/unix/configure.ac +++ b/unix/configure.ac @@ -520,6 +520,43 @@ if test $tk_aqua = no; then fi #-------------------------------------------------------------------- +# Check for libnotify. +#-------------------------------------------------------------------- + +if test $tk_aqua = no; then + AC_MSG_CHECKING([whether to use libnotify]) + AC_ARG_ENABLE(libnotify, + AC_HELP_STRING([--enable-libnotify], + [use libnotify (default: on)]), + [enable_libnotify=$enableval], [enable_libfnotify="default"]) + LIBNOTIFY_CFLAGS="" + LIBNOTIFY_LIBS="" + if test "$enable_libnotify" = "no" ; then + AC_MSG_RESULT([$enable_libnotify]) + else + found_libnotify="yes" + dnl make sure pkg-config says that libnotify is present. + LIBNOTIFY_CFLAGS=`pkg-config --cflags libnotify 2>/dev/null` || found_libnotify="no" + LIBNOTIFY_LIBS=`pkg-config --libs libnotify 2>/dev/null` || found_libnotify="no" + if test "$found_libnotify" = "no" ; then + found_libnotify=yes + LIBNOTIFY_CFLAGS=`pkg-config --cflags libnotify 2>/dev/null` || found_libnotify="no" + LIBNOTIFY_LIBS=`pkg-config --libs libnotify 2>/dev/null` || found_libnotify="no" + fi + AC_MSG_RESULT([$found_libnotify]) + fi + if test $enable_libnotify = "yes" ; then + UNIX_LIBNOTIFY_OBJS=tkUnixSysNotify.o + AC_DEFINE(HAVE_LIBNOTIFY, 1, [Have we turned on libnotify?]) + else + UNIX_LIBNOTIFY_OBJS="" + fi + AC_SUBST(LIBNOTIFY_CFLAGS) + AC_SUBST(LIBNOTIFY_LIBS) + AC_SUBST(UNIX_LIBNOTIFY_OBJS) +fi + +#-------------------------------------------------------------------- # XXX Do this last. # It might modify XLIBSW which could affect other tests. # |