[PATCH] Fix PR 40800, failure to build i386-unknown-freebsd8.0
Jerry Quinn
jlquinn@optonline.net
Sun Jul 19 23:36:00 GMT 2009
I was unaware that the stricter test was required for some platforms. I
had pulled the test template from other configure scripts.
This fixes the problem on i386-unknown-freebsd8.0, and builds on
x86_64-unknown-linux-gnu.
Jerry
2009-07-19 Jerry Quinn <jlquinn@optonline.net>
PR regression/40800
* configure.ac: Use = instead of == for testing
ENABLE_BUILD_WITH_CXX.
* configure: Rebuild.
Index: configure.ac
===================================================================
--- configure.ac (revision 149777)
+++ configure.ac (working copy)
@@ -42,7 +42,7 @@
# Dependency checking.
ZW_CREATE_DEPDIR
-if test "$ENABLE_BUILD_WITH_CXX" == "no"; then
+if test "$ENABLE_BUILD_WITH_CXX" = "no"; then
ZW_PROG_COMPILER_DEPENDENCIES([CC])
else
ZW_PROG_COMPILER_DEPENDENCIES([CXX])
@@ -55,7 +55,7 @@
# AC_CHECK_HEADERS is repeated to work around apparent autoconf 2.59
bug. If
# AC_CHECK_HEADERS comes after the if clause, the last AC_LANG call
gets used,
# no matter which branch is taken.
-if test "$ENABLE_BUILD_WITH_CXX" == "no"; then
+if test "$ENABLE_BUILD_WITH_CXX" = "no"; then
AC_LANG(C)
AC_CHECK_HEADERS(locale.h fcntl.h limits.h stddef.h \
stdlib.h strings.h string.h sys/file.h unistd.h)
Index: configure
===================================================================
--- configure (revision 149793)
+++ configure (working copy)
@@ -3342,7 +3342,7 @@
ac_config_commands="$ac_config_commands depdir"
-if test "$ENABLE_BUILD_WITH_CXX" == "no"; then
+if test "$ENABLE_BUILD_WITH_CXX" = "no"; then
depcc="$CC" am_compiler_list=
am_depcomp=$ac_aux_dir/depcomp
@@ -3674,7 +3674,7 @@
# AC_CHECK_HEADERS is repeated to work around apparent autoconf 2.59
bug. If
# AC_CHECK_HEADERS comes after the if clause, the last AC_LANG call
gets used,
# no matter which branch is taken.
-if test "$ENABLE_BUILD_WITH_CXX" == "no"; then
+if test "$ENABLE_BUILD_WITH_CXX" = "no"; then
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
More information about the Gcc-patches
mailing list