-
Notifications
You must be signed in to change notification settings - Fork 29
/
configure
executable file
·26 lines (23 loc) · 1 KB
/
configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env sh
UNAME=`uname`
if [ "$UNAME" = "Darwin" ]; then
echo "PKG_LIBS=-framework Security" > src/Makevars
else
if which pkg-config >/dev/null 2>/dev/null && pkg-config libsecret-1; then
echo "PKG_CFLAGS=-DHAS_LIBSECRET $(pkg-config --cflags libsecret-1)" > src/Makevars
echo "PKG_LIBS=$(pkg-config --libs libsecret-1)" >> src/Makevars
else
if [ -n "$LIBSECRET_CFLAGS" && -n "$LIBSECRET_LIBS" ]; then
echo "PKG_CFLAGS=-DHAS_LIBSECRET $LIBSECRET_CFLAGS" > src/Makevars
echo "PKG_LIBS=$LIBSECRET_LIBS" >> src/Makevars
else
echo "Could not find libsecret headers or libs."
echo "On Ubuntu, you need to install libsecret-1-dev via apt."
echo "On RedHat, Fedora, and CentOS, you need to install libsecret-devel via yum or dnf."
echo "Note that in addition to libsecret, you either need pkg-config or set the"
echo "LIBSECRET_CFLAGS and LIBSECRET_LIBS environment variables."
echo
echo "This keyring build will not support the libsecret backend."
fi
fi
fi