make the linux/solaris variant of CPP_NAME the default

This commit is contained in:
Bill Currie 2002-04-07 06:00:13 +00:00
parent e49672591a
commit bad8b0fcf2

View file

@ -101,18 +101,13 @@ AC_ARG_WITH(cpp,
if test "x$cpp_name" != xauto; then
CPP_NAME="$cpp_name"
else
CPP_NAME="cpp %d -o %o %i"
case "$target_os" in
*bsd*)
touch conftest.c
CPP_NAME="`(f=\`$CC -v -E -Dfoo conftest.c -o conftest.i 2>&1 | grep -e -Dfoo\`; set $f; echo "$1")` %d %i %o"
rm -f conftest.[ci]
;;
linux*)
CPP_NAME="cpp %d -o %o %i"
;;
solaris*)
CPP_NAME="cpp %d -o %o %i"
;;
esac
fi