Torque3D/Engine/lib/flac/m4/add_cxxflags.m4
marauder2k7 a745fc3757 Initial commit
added libraries:
opus
flac
libsndfile

updated:
libvorbis
libogg
openal

- Everything works as expected for now. Bare in mind libsndfile needed the check for whether or not it could find the xiph libraries removed in order for this to work.
2024-03-21 17:33:47 +00:00

16 lines
521 B
Text

dnl @synopsis XIPH_ADD_CXXFLAGS
dnl
dnl Add the given option to CXXFLAGS, if it doesn't break the compiler
AC_DEFUN([XIPH_ADD_CXXFLAGS],
[AC_MSG_CHECKING([if $CXX accepts $1])
AC_LANG_ASSERT([C++])
ac_add_cxxflags__old_cxxflags="$CXXFLAGS"
CXXFLAGS="$1"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <cstdio>
]], [[puts("Hello, World!"); return 0;]])],[AC_MSG_RESULT(yes)
CXXFLAGS="$ac_add_cxxflags__old_cxxflags $1"],[AC_MSG_RESULT(no)
CXXFLAGS="$ac_add_cxxflags__old_cxxflags"
])
])# XIPH_ADD_CXXFLAGS