# HG changeset patch # User John W. Eaton # Date 1338932942 14400 # Node ID 295bd3efc065dd6774bb4c349710a20ff3f06834 # Parent 4b8bfb4edf92604099c48bcfc2f8e64e830bbc1f fix configure test for bit functions * m4/acinclude.m4 (OCTAVE_CXX_BITWISE_OP_TEMPLATES): Use int in test, not double. diff -r 4b8bfb4edf92 -r 295bd3efc065 m4/acinclude.m4 --- a/m4/acinclude.m4 Tue Jun 05 17:46:40 2012 -0400 +++ b/m4/acinclude.m4 Tue Jun 05 17:49:02 2012 -0400 @@ -113,7 +113,11 @@ octave_cv_cxx_bitwise_op_templates, [AC_LANG_PUSH(C++) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], -[[double x = 0.0, y = 1.0; double z1 = bit_and (x, y); double z2 = bit_or (x, y); double z1 = bit_xor (x, y);]])], +[[int x = 0; +int y = 1; +int z1 = std::bit_and() (x, y); +int z2 = std::bit_or() (x, y); +int z3 = std::bit_xor() (x, y);]])], octave_cv_cxx_bitwise_op_templates=yes, octave_cv_cxx_bitwise_op_templates=no)]) if test $octave_cv_cxx_bitwise_op_templates = yes; then AC_DEFINE(HAVE_CXX_BITWISE_OP_TEMPLATES,1,[Define if C++ library has templated bitwise operators])