configure: fix test so it works with FreeBSD's /bin/sh
authorKoop Mast <kwm@FreeBSD.org>
Sat, 4 Dec 2010 13:14:39 +0000 (13:14 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 4 Dec 2010 13:14:39 +0000 (13:14 +0000)
Use '=' instead of '=='. Fixes:

configure: working c++ compiler found: yes
test: xyes: unexpected operator

http://bugzilla-attachments.gnome.org/attachment.cgi?id=175692

configure.ac

index 7a1d69f..7d0dd5c 100644 (file)
@@ -236,7 +236,7 @@ AC_LANG_PUSH([C++])
 AC_TRY_COMPILE([ class Foo { int bar; };], , working_cxx=yes, working_cxx=no)
 AC_LANG_POP([C++])
 AC_MSG_NOTICE([working c++ compiler found: $working_cxx])
-AM_CONDITIONAL(HAVE_CXX, test "x$working_cxx" == "xyes")
+AM_CONDITIONAL(HAVE_CXX, test "x$working_cxx" = "xyes")
 
 dnl Perl is used in building documentation and in the version checks
 AC_PATH_PROG(PERL_PATH, perl, no)