ref: 812d1bc90dc85d41edff08628e15b29a67edb165
parent: 704f4d75cdfae502cc0b70e3413c26ad996b1ac2
author: suzuki toshiya <[email protected]>
date: Sat Sep 12 22:12:44 EDT 2009
Improve configure.raw for cross build.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,14 @@
-2009-09-11 suzuki toshiya <[email protected]>
+2009-09-12 suzuki toshiya <[email protected]>
+
+ Improve configure.raw for cross build.
+
+ * builds/unix/configure.raw: Remove temporal files created by
+ the suffix checking for CC_BUILD. Set XX_ANSIFLAGS and
+ XX_CFLAGS when cross compiler is GCC. AC_PROG_CC checks
+ whether the cross compiler is GCC, its result is stored in
+ GCC.
+
+2009-09-12 suzuki toshiya <[email protected]>
[BDF] Modify hash API to take size_t value instead of void *.
--- a/builds/unix/configure.raw
+++ b/builds/unix/configure.raw
@@ -55,6 +55,7 @@
elif test -x conftest.* ; then
EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\././'`
fi
+ rm -f a.* b.* a_out.exe conftest.*
AC_MSG_RESULT($EXEEXT_BUILD)
else
CC_BUILD=${CC}
@@ -68,7 +69,7 @@
# get compiler flags right
-if test "x$CC" = xgcc; then
+if test "x$GCC" = xyes; then
XX_CFLAGS="-Wall"
XX_ANSIFLAGS="-pedantic -ansi"
else