aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-07-07 08:41:27 +0000
committerOmar Polo <op@omarpolo.com>2021-07-07 08:41:27 +0000
commit1a572d422159b247922d8b22c58e7b60c35d6fc6 (patch)
tree7f52e4c7da4b986d41e83e9a251791970f1daed9
parentaf15474448e4ccafd4c05d2963d2131db33d92bb (diff)
check libimsg too
patch from Anna "CyberTailor"
-rwxr-xr-xconfigure7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure b/configure
index 4e1bccd..81f3c3b 100755
--- a/configure
+++ b/configure
@@ -83,13 +83,18 @@ if which pkg-config 2>/dev/null 1>&2; then
case "$(uname)" in
OpenBSD)
- # use libevent in base
+ # use libevent and imsg in base
;;
*)
if pkg-config libevent; then
add_cflags "$(pkg-config --cflags libevent)"
add_ldflags "$(pkg-config --libs libevent)"
fi
+
+ if pkg-config libimsg; then
+ add_cflags "$(pkg-config --cflags libimsg)"
+ add_ldflags "$(pkg-config --libs libimsg)"
+ fi
;;
esac
fi