6 test -z "$srcdir" && srcdir=.
7 test -z "$libs" && libs=.libs
11 if which ldd 2>/dev/null >/dev/null; then
15 if which otool 2>/dev/null >/dev/null; then
18 echo "check-libstdc++.sh: 'ldd' not found; skipping test"
24 # harfbuzz-icu links to libstdc++ because icu does.
25 # harfbuzz-subset uses libstdc++.
26 for soname in harfbuzz harfbuzz-gobject; do
27 for suffix in so dylib; do
28 so=$libs/lib$soname.$suffix
29 if ! test -f "$so"; then continue; fi
31 echo "Checking that we are not linking to libstdc++ or libc++ in $so"
32 if $LDD $so | grep 'libstdc[+][+]\|libc[+][+]'; then
33 echo "Ouch, linked to libstdc++ or libc++"
40 echo "check-libstdc++.sh: libharfbuzz shared library not found; skipping test"