check-libstdc++.sh revision 21d0fce3d5364c91e5582bd530210f03e054d1a4
1#!/bin/sh 2 3LC_ALL=C 4export LC_ALL 5 6if which ldd 2>/dev/null >/dev/null; then 7 : 8else 9 echo "check-libstdc++.sh: 'ldd' not found; skipping test" 10 exit 0 11fi 12 13test -z "$srcdir" && srcdir=. 14test -z "$MAKE" && MAKE=make 15stat=0 16 17so=.libs/libharfbuzz.so 18if test -f "$so"; then 19 echo "Checking that we are not linking to libstdc++" 20 if ldd $so | grep 'libstdc[+][+]'; then 21 echo "Ouch, linked to libstdc++" 22 stat=1 23 fi 24else 25 echo "check-libstdc++.sh: libharfbuzz.so not found; skipping test" 26fi 27 28exit $stat 29