1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-25 23:44:13 +02:00

fix bug compiling on Linux/gcc-4.9 with wxwidgets 3.0.2

This commit is contained in:
Darrell Walisser
2017-07-28 15:42:16 -04:00
committed by James Crook
parent 5dfff70f5b
commit 651957f8c2
4 changed files with 56 additions and 2 deletions

View File

@@ -58,6 +58,13 @@ dnl Gather wx arguments
wxconfigargs="$wx_preference"
WX_CXXFLAGS=$($WX_CONFIG $wxconfigargs --cxxflags)
WX_LIBS=""
dnl Enable C++ 11 support. Use gnu++11 on GCC since wxWidgets uses extensions
if "${CXX}" -v 2>&1 | grep -q '^gcc version'; then
WX_CXXFLAGS="${WX_CXXFLAGS} --std=gnu++11"
else
WX_CXXFLAGS="${WX_CXXFLAGS} --std=c++11"
fi
AC_SUBST([WX_CXXFLAGS])
AC_SUBST([WX_LIBS])
@@ -88,6 +95,7 @@ else
AC_MSG_RESULT([no])
fi
AC_SUBST(HAVE_GTK)
PKG_CHECK_MODULES(GTK, $gtk_version, have_gtk="yes", have_gtk="no")