if both "$CPP" (from parent) and "$CC -E" fail, try "cpp" (from $PATH) and

"/usr/libexec/cpp" and "/lib/cpp" last
This commit is contained in:
tg 2007-01-17 17:14:25 +00:00
parent 8211416e5a
commit f946d405f8
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $MirOS: src/bin/mksh/Build.sh,v 1.120 2007/01/17 17:12:43 tg Exp $
# $MirOS: src/bin/mksh/Build.sh,v 1.121 2007/01/17 17:14:25 tg Exp $
#-
# Environment: CC, CFLAGS, CPP, CPPFLAGS, LDFLAGS, LIBS, NOWARN, NROFF
# With -x (cross compile): TARGET_OS (default: uname -s)
@ -348,7 +348,7 @@ if test 1 = $NEED_MKSH_SIGNAME; then
$e "... checking how to run the C Preprocessor"
rm -f x
save_CPP=$CPP
for i in "$save_CPP" "$CC -E"; do
for i in "$save_CPP" "$CC -E" "cpp" "/usr/libexec/cpp" "/lib/cpp"; do
CPP=$i
test x"$CPP" = x"false" && continue
( ( echo '#if (23 * 2 - 2) == (fnord + 2)'