Commit 5ec88efd by Richard Stallman

When finding SIZE_TYPE, cd to ${LIB} to run cc.

From-SVN: r4400
parent 322dce45
......@@ -333,7 +333,7 @@ do
# (This file must be called something.c).
echo "#include \"tm.h\"
gobblegobble SIZE_TYPE" > ${LIB}/types.c
foo=`cc -E -I${ORIGDIR} -I${SRCDIR} -I${SRCDIR}/config ${LIB}/types.c | grep gobblegobble | sed -e "s/gobblegobble[ ]*//"`
foo=`cd ${LIB}; cc -E -I${ORIGDIR} -I${SRCDIR} -I${SRCDIR}/config types.c | grep gobblegobble | sed -e "s/gobblegobble[ ]*//"`
rm -f ${LIB}/types.c
# Default to our preferred type.
if [ "$foo" = SIZE_TYPE ]; then foo="unsigned long int"; else foo=`echo $foo | sed -e 's/^.*"\(.*\)".*$/\1/'`; fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment