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