When finding SIZE_TYPE, cd to ${LIB} to run cc.
authorRichard Stallman <rms@gnu.org>
Sun, 9 May 1993 21:55:04 +0000 (21:55 +0000)
committerRichard Stallman <rms@gnu.org>
Sun, 9 May 1993 21:55:04 +0000 (21:55 +0000)
From-SVN: r4400

gcc/fixincludes

index 4773729b377e8a6669485e80b8dba29d88b48845..254bd64059d63d51384c0d028065188a9a9fec6d 100755 (executable)
@@ -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