summaryrefslogtreecommitdiff
path: root/m4
Commit message (Collapse)AuthorAgeFilesLines
* cmake/configure.ac: Enable -fstack-protector-strong by defaultNotTsunami2019-11-201-3/+3
| | | | | | | | | | | | | | | | This commit contains the following changes: - Drops -fstack-protector in favor of -fstack-protector-strong. Consequently, the ssp-buffer-size parameter has been removed as -fstack-protector-strong ignores array size. - Add new global opt-out for stack smash protection. This is enabled by default for both autotools and CMake builds. Users can opt out of stack smash protection by passing -DWITH_STACK_PROTECTOR=OFF to CMake or --disable-stack-smash-protection when running ./configure. - Renames HAVE_SSP_FLAG to HAVE_STACK_PROTECTOR_FLAG in CMakeLists.txt to be more readable.
* configure.ac: allow several compiler flags for clangsezero2019-10-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | The flac configury marked clang as 'not being gcc' and excluded a lot of compiler switches, most importantly the visibility flags, from being used with it. This was done possibly after a problem reported at: https://github.com/erikd/libsndfile/issues/49 . This patch does the following: - m4/gcc_version.m4 (XIPH_GCC_VERSION): set GCC_MAJOR_VERSION and GCC_MINOR_VERSION to 0 for non-gcc. Previously, they were left unset. - configure: the gcc version checks are, naturally, against non- zero values, so, allow many compiler switches to be used with clang without affecting real-gcc cases. - configure: When setting CFLAGS="-O3 -funroll-loops", also set CXXFLAGS="-O3". Prevents g++ warnings with _FORTIFY_SOURCE, i.e.: '_FORTIFY_SOURCE requires compiling with optimization (-O)' Tested compilation using gcc-7.3.1 and clang-5.0.2 on x86_64-linux, and gcc-4.4.7 and clang-3.4.2 on an i686-linux. Also tested cross- compiling for Mac OS X using clang-5.0.2.
* Add m4 macro to check for C __attribute__ featuresAmitay Isaacs2018-08-201-0/+18
| | | | Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
* Fix miscellaneous typos.luz.paz2018-05-243-4/+4
| | | | Found via `codespell -q 3`
* configure.ac: Clean up CFLAGS codeErik de Castro Lopo2017-02-061-0/+53
| | | | | | Also moves _FORTIFY_SOURCE detection to an M4 macro. Patchfrom: David Seifert <soap@gentoo.org>
* Do not override CFLAGS, as CFLAGS is a user flag.David Seifert2017-01-191-0/+124
| | | | | | | | | * Furthermore, use NDEBUG globally to detect the presence of building with more debug output information. AX_CHECK_ENABLE_DEBUG is easier to use, and nowadays Gnome has also switched to it from its own custom solution. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Another bulk update of copyright datesErik de Castro Lopo2016-12-052-2/+2
|
* Bulk update copyright datesErik de Castro Lopo2016-12-051-1/+1
|
* More date fixes.Erik de Castro Lopo2014-11-252-2/+2
|
* Update copyright years to include 2014.Erik de Castro Lopo2014-11-251-1/+1
|
* Fix indenting on the bswap32 autoconf macro.Ralph Giles2014-11-041-12/+12
| | | | | | We generally prefer spaces to tabs. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Clean up bswap32 autoconf macro.Ralph Giles2014-11-041-4/+4
| | | | | | Improve 'checking' message and don't hog the cache namespace. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Add autoconf macro to check for the bswap16 intrinsic.Ralph Giles2014-11-041-1/+28
| | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Detect Clang masquerading as GCC.Erik de Castro Lopo2013-11-222-0/+63
| | | | | | Autoconf detects the Clang compiler as GNU GCC (clang sets defines like __GNUC__ etc) but Clang is *not* completely compatible. If we detect Clang we set ac_vc_c_compiler_gnu to 'no'.
* Language fix: "difference licenses"Ulrich Klauer2013-05-271-1/+1
| | | | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Fix bootstrap on Mac OS XXiyue Deng2013-05-275-0/+1411
| | | | | | | | * Mac OS X has incomplete installations of gettext/iconv. So stop checking for gettext command on Darwin, and install some additional m4 scripts so it can be bootstrapped on Mac OS X. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
* Set version to 1.3.0 and update coyprights throughout.Erik de Castro Lopo2013-05-261-1/+2
|
* m4/ogg.m4 : Grab latest version from libogg-1.3.0.Erik de Castro Lopo2013-04-061-8/+22
|
* Add configure option to enable GNU GCC stack smash protection.Erik de Castro Lopo2013-03-132-0/+74
| | | | | | | | | This option is disabled by default because it is known not to work on FreeBSD 9.1 and for Linux -> Windows cross compiling using the Debian MinGW-w64 tool chain. It is known to work for native compiles in Debian testing and OpenBSD 5.2.
* gcc_version.m4 : Use cut instead of sed.Erik de Castro Lopo2013-03-103-5/+185
| | | | Add this and other macros to Makefile.am.
* m4/gcc_version.m4 : Fix XIPH_GCC_VERSION macro.Erik de Castro Lopo2013-03-091-1/+1
| | | | Macro was misbehaving with OpenBSD's sed.
* configure.ac : Add hardening compile options.Erik de Castro Lopo2013-03-062-0/+37
| | | | | | | | Extra compile options are detected at configure time with new XIPH_ADD_*FLAGS m4 macros. Options enabled include -Wextra, -D_FORTIFY_SOURCE=2 and stack protection.
* configure: replace XIPH_C_FIND_ENDIAN by AC_C_BIGENDIANMax Horn2012-12-131-177/+0
| | | | Signed-off-by: Max Horn <max@quendi.de>
* configure.ac : Report useful info at the end of configure.Erik de Castro Lopo2012-02-261-0/+33
|
* Add XIPH_BSWAP32 configure macro to detect __builtin_bswap32() intrinsic.Erik de Castro Lopo2012-02-061-0/+55
|
* Add m4/endian.m4 and use it in configure.ac.Erik de Castro Lopo2012-02-051-0/+177
|
* add 2009 copyrightJosh Coalson2009-01-071-1/+1
|
* update copyright for 2008Josh Coalson2008-02-281-1/+1
|
* add 2007 copyrightJosh Coalson2007-02-021-1/+1
|
* *** empty log message ***Josh Coalson2006-11-261-0/+20
|
* *** empty log message ***Josh Coalson2006-11-171-0/+102
|
* add xmms.m4 to new m4/ directory as backupJosh Coalson2005-09-021-0/+148