|
6 | 6 | trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15 |
7 | 7 | find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print | |
8 | 8 | grep -v '\./postgres.h' | |
| 9 | +grep -v '\./postgres_fe.h' | |
9 | 10 | grep -v '\./pg_config.h' | |
10 | 11 | grep -v '\./c.h' | |
11 | 12 | while read FILE |
12 | 13 | do |
| 14 | + # Skip files with #if and #ifdef blocks because the blocks |
| 15 | + # might contain code that is not compiled on this platform. |
| 16 | +grep -q '^if' "$FILE" && continue |
| 17 | + |
13 | 18 | if [ `expr $FILE : '.*\.h$'` -ne 0 ] |
14 | 19 | thenIS_INCLUDE="Y" |
15 | 20 | elseIS_INCLUDE="N" |
|
27 | 32 | [ -s /usr/include/$INCLUDE ] && continue |
28 | 33 | [ "$INCLUDE" = postgres.h ] && continue |
29 | 34 | [ "$INCLUDE" = postgres_fe.h ] && continue |
30 | | -[ "$INCLUDE" =config.h ] && continue |
| 35 | +[ "$INCLUDE" =pg_config.h ] && continue |
31 | 36 | [ "$INCLUDE" = c.h ] && continue |
32 | 37 |
|
33 | 38 | # preserve configure-specific includes |
|