diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-11-14 12:57:16 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-11-14 12:57:16 +0100 |
commit | e0ed8d655f76b1a856773ed2d5b4155d1d840211 (patch) | |
tree | c27eb410bde764220d88ca5e7e2e515b9fe7f510 /lib/m4 | |
parent | 6fc814cfbb0756231416e34d9c5146531277ed98 (diff) | |
download | gnutls-e0ed8d655f76b1a856773ed2d5b4155d1d840211.tar.gz |
Run AC_PROG_CXX only when needed.
Reported by Daniel Black <dragonheart@gentoo.org> in
<https://savannah.gnu.org/support/?106542>.
Diffstat (limited to 'lib/m4')
-rw-r--r-- | lib/m4/hooks.m4 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/m4/hooks.m4 b/lib/m4/hooks.m4 index 271919a663..b07fa2f007 100644 --- a/lib/m4/hooks.m4 +++ b/lib/m4/hooks.m4 @@ -34,13 +34,12 @@ AC_DEFUN([LIBGNUTLS_HOOKS], SOVERSION=`expr ${LT_CURRENT} - ${LT_AGE}` AC_SUBST(SOVERSION) - AC_PROG_CXX - AC_ARG_ENABLE(cxx, AS_HELP_STRING([--disable-cxx], [unconditionally disable the C++ library]), use_cxx=$enableval, use_cxx=yes) if test "$use_cxx" != "no"; then + AC_PROG_CXX AC_LANG_PUSH(C++) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], use_cxx=yes, use_cxx=no) AC_LANG_POP(C++) |