WITH_GTK=
WITH_QT=
WITH_ICONS=
-NOTIFY=yes
+NOTIFY=
INCLUDEDIR=
UI=
if [ -n "$WITH_GTK" -a "$WITH_GTK" != no ]; then
PKG="$WITH_GTK"
+ if [ "$NOTIFY" = yes -o -z "$NOTIFY" ]; then
+ if ! pkg-config --cflags libnotify >/dev/null 2>&3; then
+ echo "libnotify not found" >&2
+ [ "$NOTIFY" = yes ] && exit 1
+ NOTIFY=no
+ fi
+ NOTIFY=yes
+ fi
if [ "$NOTIFY" = yes ]; then
PKG="$PKG${PKG:+ }libnotify"
echo "NOTIFY= -DNOTIFY" >>$CONFIG_MK
+ echo "Building dhcpcd-gtk with notification support"
fi
GTK_CFLAGS=$(pkg-config --cflags $PKG)
[ $? != 0 -a "$WITH_GTK" = yes ] && exit 1