Remove feature test for HAVE_EXPLICIT

This commit is contained in:
ARATA Mizuki
2016-09-09 20:20:59 +09:00
parent 8cfc74491a
commit 32666e8d4f
7 changed files with 1 additions and 142 deletions

80
configure vendored
View File

@@ -18988,86 +18988,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler supports the explicit keyword" >&5
$as_echo_n "checking if C++ compiler supports the explicit keyword... " >&6; }
if ${wx_cv_explicit+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
class Foo { public: explicit Foo(int) {} };
int
main ()
{
return 0;
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
class Foo { public: explicit Foo(int) {} };
static void TakeFoo(const Foo& foo) { }
int
main ()
{
TakeFoo(17);
return 0;
;
return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
wx_cv_explicit=no
else
wx_cv_explicit=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
wx_cv_explicit=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_explicit" >&5
$as_echo "$wx_cv_explicit" >&6; }
if test "$wx_cv_explicit" = "yes"; then
$as_echo "#define HAVE_EXPLICIT 1" >>confdefs.h
fi
ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'