|
43 | 43 | # preserve configure-specific includes
|
44 | 44 | # these includes are surrounded by #ifdef's
|
45 | 45 | grep -B1 '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" |
|
46 |
| - egrep -q '^#if|^#else' && continue |
| 46 | + egrep -q '^#if|^#else|^#elif' && continue |
47 | 47 | grep -A1 '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" |
|
48 |
| - egrep -q '^#else|^#endif' && continue |
| 48 | + egrep -q '^#else|^#elif|^#endif' && continue |
49 | 49 |
|
50 | 50 | # Remove all #if and #ifdef blocks because the blocks
|
51 | 51 | # might contain code that is not compiled on this platform.
|
52 | 52 | cat "$FILE" |
|
53 | 53 | grep -v "^#if" |
|
54 | 54 | grep -v "^#else" |
|
| 55 | +grep -v "^#elif" | |
55 | 56 | grep -v "^#endif" >/tmp/$$a
|
56 | 57 |
|
57 | 58 | # set up initial file contents
|
|