# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Mon Apr 11 12:33:25 CEST 2005 [metaconfig 3.0 PL70]
+# Generated on Sun Apr 24 14:17:04 CEST 2005 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >c1$$ <<EOF
?*) echo " "
echo "Checking if your compiler accepts -pipe" 2>&1
echo 'int main(void) { return 0; }' > gcctest.c
- if $cc -O2 -pipe -o gcctest gcctest.c; then
+ if $cc -pipe -o gcctest gcctest.c; then
echo "Yes, it does." 2>&1
case "$ccflags" in
*-pipe*)
else
echo "Nope, it doesn't, but that's ok." 2>&1
fi
+
+ echo "Checking if your compiler accepts -Wdeclaration-after-statement" 2>&1
+ echo 'int main(void) { return 0; }' > gcctest.c
+ if $cc -Wdeclaration-after-statement -o gcctest gcctest.c; then
+ echo "Yes, it does." 2>&1
+ case "$ccflags" in
+ *-Wdeclaration-after-statement*)
+ echo "Leaving current flags $ccflags alone." 2>&1
+ ;;
+ *) dflt="$dflt -Wdeclaration-after-statement" ;;
+ esac
+ else
+ echo "Nope, it doesn't, but that's ok." 2>&1
+ fi
;;
esac
;;