configure: Fix notify for gtk
authorRoy Marples <roy@marples.name>
Sat, 8 Aug 2020 10:47:57 +0000 (11:47 +0100)
committerRoy Marples <roy@marples.name>
Sat, 8 Aug 2020 10:47:57 +0000 (11:47 +0100)
configure

index ed8322196ca613afe30e838fcc142cbd28e67d57..57b68e53e24f7a34bf58f138bdbc74f2d039a2e9 100755 (executable)
--- a/configure
+++ b/configure
@@ -389,8 +389,9 @@ if [ -n "$WITH_GTK" -a "$WITH_GTK" != no ]; then
                if ! pkg-config --cflags libnotify >/dev/null 2>&3; then
                        echo "libnotify not found" >&2
                        [ "$NOTIFY" = yes -a -n "$_WITH_GTK" ] && exit 1
                if ! pkg-config --cflags libnotify >/dev/null 2>&3; then
                        echo "libnotify not found" >&2
                        [ "$NOTIFY" = yes -a -n "$_WITH_GTK" ] && exit 1
+               else
+                       NOTIFY=yes
                fi
                fi
-               NOTIFY=yes
        fi
        if [ "$NOTIFY" = yes ]; then
                PKG="$PKG${PKG:+ }libnotify"
        fi
        if [ "$NOTIFY" = yes ]; then
                PKG="$PKG${PKG:+ }libnotify"