mirror of
https://github.com/obgm/libcoap.git
synced 2026-10-28 13:35:47 +03:00
Now, PKG_CONFIG_PATH is not set to local version, hoping that the installed version works without version check. Added more debug output instead.
17 lines
598 B
Bash
Executable File
17 lines
598 B
Bash
Executable File
#! /bin/sh
|
|
|
|
# only continue if `pkgconfig cunit` fails
|
|
pkg-config cunit && exit 0
|
|
|
|
# Check if the system has a cunit.pc.
|
|
# If not, exit with success (the configure script will raise
|
|
# a more descriptive error).
|
|
CUNIT_PC=`dpkg -L libcunit1-dev 2>/dev/null|grep cunit.pc`
|
|
if test "x$CUNIT_PC" != "x"; then
|
|
grep -q Version: $CUNIT_PC || (dpkg -l|sed -ne 's/^ii\s\+libcunit1-dev\s\+\([0-9]\+.[0-9]\+-[0-9]\+\).*$/Version: \1/p; T; q'|cat - $CUNIT_PC |sed -e 's/={exec_prefix/=${exec_prefix/' `pwd`/cunit.pc)
|
|
fi
|
|
|
|
# output location of generated cunit.pc
|
|
echo PKG_CONFIG_PATH=`pwd`
|
|
cat `pwd`/cunit.pc
|