summaryrefslogtreecommitdiff
path: root/m4
AgeCommit message (Collapse)Author
2008-06-17Remove macro files that are handled by gettext.Diego 'Flameeyes' Pettenò
2008-06-17Don't use C++ for socklen_t tests.Diego 'Flameeyes' Pettenò
I think socklen_t was being tested with C++ to improve the warnings, but as we don't need a C++ compiler, it's not a good idea to use it. Also, with libtool 2.2 the C++ compiler is not tested by default anymore, so the macro would simply fail. On GNU/Linux and FreeBSD the test should work just as fine as it is. If you have problems on any other operating systems, please report and we'll see to fix it.
2008-05-24Rewrite CC_PTHREAD_RECURSIVE_MUTEX to use M4sh and AC_CACHE_CHECK.Diego 'Flameeyes' Pettenò
2008-05-24Backport pthreads.m4 from 1.2.Diego 'Flameeyes' Pettenò
Both attributes.m4 and pthread.m4 are two reusable M4 macro files, which can eaily be shared between different projects. For this reason it's better if they are kept identical between branches.
2008-05-24Backport CC_CHECK_LDFLAGS macro from 1.2 branch.Diego 'Flameeyes' Pettenò
2008-05-24Use M4sh AS_IF rather than sh if statements for common macros.Diego 'Flameeyes' Pettenò
Instead of using directly the sh if statement, use AS_IF, which makes it possible for autotools to identify conditionally-called macros, and allows to avoid M4 ifelse macros.
2008-05-23Check for MIN/MAX macro and include the header for them if found.Diego 'Flameeyes' Pettenò
The MIN/MAX macro are quite often used on the source code to find the minimum or maximum value between two, instead of defining it per-unit, check if the system provides them include the right header, otherwise define them during configure run.
2008-05-20Add check for const attribute (for mathematical functions).Diego 'Flameeyes' Pettenò
Add CC_ATTRIBUTE_CONST macro to the attributes.h. Run CC_ATTRIBUTE_CONST in configure. Define SUPPORT_ATTRIBUTE_CONST for GCC 3. Define XINE_CONST to __attribute__((__const__)) if supported. --HG-- extra : transplant_source : /26%26%DF%C0%3C%AC%27%5C%B7%B1y%FEQ%8Ay%EE%F1%BD
2008-05-22Merge fix for 54ad8b80e6fc.Diego 'Flameeyes' Pettenò
2008-05-22Don't leak -Werror into the build system.Diego 'Flameeyes' Pettenò
Using the same variable name to save and restore CFLAGS between macros is a bad idea.
2008-05-22Create a backend macro CC_CHECK_FLAGS_SILENT for specific flag macros, and ↵Diego 'Flameeyes' Pettenò
use it for checking -fvisibility=hidden. --HG-- extra : transplant_source : %7B%9AW%E8%B4u%06%18%E4%25K%80d%CF%B2z%EA%0C%ECA
2008-05-22Announce check for -Werror (and equivalent) flags and its result.Diego 'Flameeyes' Pettenò
--HG-- extra : transplant_source : %F0n%9C%FB%F9%B3%1E%A5P%D6%20%01%EF%83k8%7D%8A%D4%5B
2008-05-22Set the cc_cv_cflags_* cached values to no when the flag is not supported.Diego 'Flameeyes' Pettenò
--HG-- extra : transplant_source : %D0hU%99%0D%1F%7D%0D%86s%7B%B2%CB%19_%13%153%86%84
2008-05-22Add support for Sun Studio compiler even when building on Linux.Diego 'Flameeyes' Pettenò
--HG-- extra : transplant_source : tu6%0Bb%F5I%A0V%B7%BF%5BM%8E_%86gt%06%1C
2008-05-22Remove libtool15.m4 macro file.Diego 'Flameeyes' Pettenò
libtool is needed to actually complete autotools run, so there is no reason to provide a local copy of the file. This also removes the warnings thrown by autoconf 2.62. --HG-- extra : transplant_source : /%7F%B7A%F6a%CD%BA%C8%9FQ%A4h%2ADAKVI%B5
2008-05-09Cleanup handling of packed attribute.Diego 'Flameeyes' Pettenò
- Add a configure test for the attribute, during xine build process. - Define the attribute as supported when using GCC 2.95 or later outside xine build process. - Use the new XINE_PACKED define instead of the attribute directly. - Check for SUPPORT_ATTRIBUTE_PACKED rather than doing strange subdefines.
2008-05-05CFLAGS are saved and changed inside the check cache.Diego 'Flameeyes' Pettenò
2008-05-05Check for malloc attribute and define XINE_MALLOC for use in xineutils.h, ↵Diego 'Flameeyes' Pettenò
rather than just checking for GCC 3.
2008-05-05Generalise attributes checking, so that the same code is not copy-pasted for ↵Diego 'Flameeyes' Pettenò
all attributes.
2008-05-03Fix configure when -Wunused-parameter is used.Diego 'Flameeyes' Pettenò
2008-05-03Add support for "deprecated" attribute.Darren Salt
2008-04-06Add a tool to list MIME types & filetype extns known to xine-lib plugins.Darren Salt
This is expected to see most use in updating MIME type lists in front ends' desktop files.
2008-02-09Make xine-config --version parsing more robustVille Skyttä
I think there's quite a bit more room for improvement in the sed expression: 1) The expression is not bound to start/end of line, and will thus pass possible leading/trailing garbage through. 2) It uses plain "." (== any character as far as sed is concerned) where it appears to search for the literal ".". 3) The whole "xine-config --version" output is assigned to all xine_config_*_version vars if there's no match. I think more intuitive would be them to be empty if parsing fails. 4) It uses * (0 or more) for matching digit sequences, where I think + (1 or more) would be desirable. This patch should fix issues 1 to 3. I suppose for 4) it would additionally take only replacing the first three "*" with "\+" but IIRC there are some portability issues related to "+" between different sed versions.
2007-09-16Correct a reported typo in the DirectX support check. [Bug 1795665]Darren Salt
2007-06-13Clean up solaris PTHREAD_CFLAGS/PTHREAD_LIBSBen Taylor
2007-06-10Added Solaris support for gcc and studio to pthreads.m4Ben Taylor
2007-04-12Set xv_path before rewriting X_LIBS if we're not using pkg-config to ↵Diego 'Flameeyes' Pettenò
discover X libraries.
2007-04-11Return NULL to avoid 'control reaches end of non-void function' warning from ↵Ville Skyttä
throwing off the test.
2007-04-11Try linking the program for Pthread support, and feed proper parameters to ↵Diego 'Flameeyes' Pettenò
pthread_create. The link is needed to make sure that the LIBS variable is set correctly, otherwise it might just be finding the definition but using the wrong link-time parameter. Also, feed proper parameters to pthread_create to avoid -Wnonnull to cause a test failure (GCC/GLIBC).
2007-04-09format_arg attribute requires the function to return char*.Diego 'Flameeyes' Pettenò
2007-04-03Rationalise use of .hgignore, removes a bunch of files that only ignored ↵Diego 'Flameeyes' Pettenò
automake-related files.
2007-04-02Never udnefine m4_foreach_w, after all if it's defined it is because it ↵Diego 'Flameeyes' Pettenò
never was.
2007-04-02Use LT_AC_PROG_SED rather than AC_PROG_SED.Diego 'Flameeyes' Pettenò
The latter is only available on 2.60 and later, so use the first one, provided by libtool, until we move further on to the newer versions.
2007-04-02Add a m4_foreach_w macro when autoconf does not provide it.Diego 'Flameeyes' Pettenò
This allows to get AC_CHECK_SYMBOLS macro working on autoconf 2.59.
2007-04-02Migrate all .cvsignore files to .hgignore.Diego 'Flameeyes' Pettenò
--HG-- rename : .cvsignore => .hgignore rename : doc/.cvsignore => doc/.hgignore rename : doc/faq/.cvsignore => doc/faq/.hgignore rename : doc/hackersguide/.cvsignore => doc/hackersguide/.hgignore rename : doc/man/.cvsignore => doc/man/.hgignore rename : doc/man/en/.cvsignore => doc/man/en/.hgignore rename : include/.cvsignore => include/.hgignore rename : intl/.cvsignore => intl/.hgignore rename : lib/.cvsignore => lib/.hgignore rename : m4/.cvsignore => m4/.hgignore rename : misc/.cvsignore => misc/.hgignore rename : misc/fonts/.cvsignore => misc/fonts/.hgignore rename : po/.cvsignore => po/.hgignore rename : src/.cvsignore => src/.hgignore rename : src/audio_out/.cvsignore => src/audio_out/.hgignore rename : src/combined/.cvsignore => src/combined/.hgignore rename : src/demuxers/.cvsignore => src/demuxers/.hgignore rename : src/dxr3/.cvsignore => src/dxr3/.hgignore rename : src/input/.cvsignore => src/input/.hgignore rename : src/input/dvb/.cvsignore => src/input/dvb/.hgignore rename : src/input/libdvdnav/.cvsignore => src/input/libdvdnav/.hgignore rename : src/input/libreal/.cvsignore => src/input/libreal/.hgignore rename : src/input/librtsp/.cvsignore => src/input/librtsp/.hgignore rename : src/input/vcd/.cvsignore => src/input/vcd/.hgignore rename : src/input/vcd/libcdio/.cvsignore => src/input/vcd/libcdio/.hgignore rename : src/input/vcd/libcdio/MSWindows/.cvsignore => src/input/vcd/libcdio/MSWindows/.hgignore rename : src/input/vcd/libcdio/cdio/.cvsignore => src/input/vcd/libcdio/cdio/.hgignore rename : src/input/vcd/libcdio/image/.cvsignore => src/input/vcd/libcdio/image/.hgignore rename : src/input/vcd/libvcd/.cvsignore => src/input/vcd/libvcd/.hgignore rename : src/input/vcd/libvcd/libvcd/.cvsignore => src/input/vcd/libvcd/libvcd/.hgignore rename : src/liba52/.cvsignore => src/liba52/.hgignore rename : src/libdts/.cvsignore => src/libdts/.hgignore rename : src/libfaad/.cvsignore => src/libfaad/.hgignore rename : src/libfaad/codebook/.cvsignore => src/libfaad/codebook/.hgignore rename : src/libffmpeg/.cvsignore => src/libffmpeg/.hgignore rename : src/libffmpeg/libavcodec/.cvsignore => src/libffmpeg/libavcodec/.hgignore rename : src/libffmpeg/libavcodec/alpha/.cvsignore => src/libffmpeg/libavcodec/alpha/.hgignore rename : src/libffmpeg/libavcodec/armv4l/.cvsignore => src/libffmpeg/libavcodec/armv4l/.hgignore rename : src/libffmpeg/libavcodec/i386/.cvsignore => src/libffmpeg/libavcodec/i386/.hgignore rename : src/libffmpeg/libavcodec/libpostproc/.cvsignore => src/libffmpeg/libavcodec/libpostproc/.hgignore rename : src/libffmpeg/libavcodec/mlib/.cvsignore => src/libffmpeg/libavcodec/mlib/.hgignore rename : src/libffmpeg/libavcodec/ppc/.cvsignore => src/libffmpeg/libavcodec/ppc/.hgignore rename : src/libffmpeg/libavcodec/sparc/.cvsignore => src/libffmpeg/libavcodec/sparc/.hgignore rename : src/libffmpeg/libavutil/.cvsignore => src/libffmpeg/libavutil/.hgignore rename : src/libflac/.cvsignore => src/libflac/.hgignore rename : src/liblpcm/.cvsignore => src/liblpcm/.hgignore rename : src/libmad/.cvsignore => src/libmad/.hgignore rename : src/libmpeg2/.cvsignore => src/libmpeg2/.hgignore rename : src/libmpeg2new/.cvsignore => src/libmpeg2new/.hgignore rename : src/libmpeg2new/include/.cvsignore => src/libmpeg2new/include/.hgignore rename : src/libmpeg2new/libmpeg2/.cvsignore => src/libmpeg2new/libmpeg2/.hgignore rename : src/libmusepack/.cvsignore => src/libmusepack/.hgignore rename : src/libmusepack/musepack/.cvsignore => src/libmusepack/musepack/.hgignore rename : src/libreal/.cvsignore => src/libreal/.hgignore rename : src/libspeex/.cvsignore => src/libspeex/.hgignore rename : src/libspucc/.cvsignore => src/libspucc/.hgignore rename : src/libspucmml/.cvsignore => src/libspucmml/.hgignore rename : src/libspudec/.cvsignore => src/libspudec/.hgignore rename : src/libspudvb/.cvsignore => src/libspudvb/.hgignore rename : src/libsputext/.cvsignore => src/libsputext/.hgignore rename : src/libtheora/.cvsignore => src/libtheora/.hgignore rename : src/libvorbis/.cvsignore => src/libvorbis/.hgignore rename : src/libw32dll/.cvsignore => src/libw32dll/.hgignore rename : src/libw32dll/DirectShow/.cvsignore => src/libw32dll/DirectShow/.hgignore rename : src/libw32dll/dmo/.cvsignore => src/libw32dll/dmo/.hgignore rename : src/libw32dll/qtx/.cvsignore => src/libw32dll/qtx/.hgignore rename : src/libw32dll/qtx/qtxsdk/.cvsignore => src/libw32dll/qtx/qtxsdk/.hgignore rename : src/libw32dll/wine/.cvsignore => src/libw32dll/wine/.hgignore rename : src/libxineadec/.cvsignore => src/libxineadec/.hgignore rename : src/libxineadec/gsm610/.cvsignore => src/libxineadec/gsm610/.hgignore rename : src/libxineadec/nosefart/.cvsignore => src/libxineadec/nosefart/.hgignore rename : src/libxinevdec/.cvsignore => src/libxinevdec/.hgignore rename : src/post/.cvsignore => src/post/.hgignore rename : src/post/audio/.cvsignore => src/post/audio/.hgignore rename : src/post/deinterlace/.cvsignore => src/post/deinterlace/.hgignore rename : src/post/deinterlace/plugins/.cvsignore => src/post/deinterlace/plugins/.hgignore rename : src/post/goom/.cvsignore => src/post/goom/.hgignore rename : src/post/mosaico/.cvsignore => src/post/mosaico/.hgignore rename : src/post/planar/.cvsignore => src/post/planar/.hgignore rename : src/post/visualizations/.cvsignore => src/post/visualizations/.hgignore rename : src/video_out/.cvsignore => src/video_out/.hgignore rename : src/video_out/libdha/.cvsignore => src/video_out/libdha/.hgignore rename : src/video_out/libdha/bin/.cvsignore => src/video_out/libdha/bin/.hgignore rename : src/video_out/libdha/kernelhelper/.cvsignore => src/video_out/libdha/kernelhelper/.hgignore rename : src/video_out/libdha/oth/.cvsignore => src/video_out/libdha/oth/.hgignore rename : src/video_out/libdha/sysdep/.cvsignore => src/video_out/libdha/sysdep/.hgignore rename : src/video_out/macosx/.cvsignore => src/video_out/macosx/.hgignore rename : src/video_out/vidix/.cvsignore => src/video_out/vidix/.hgignore rename : src/video_out/vidix/drivers/.cvsignore => src/video_out/vidix/drivers/.hgignore rename : src/xine-engine/.cvsignore => src/xine-engine/.hgignore rename : src/xine-utils/.cvsignore => src/xine-utils/.hgignore rename : win32/.cvsignore => win32/.hgignore rename : win32/include/.cvsignore => win32/include/.hgignore
2007-04-01Fix test for visibility attributes. Patch thanks to Matt Messier.Diego 'Flameeyes' Pettenò
CVS patchset: 8782 CVS date: 2007/04/01 21:56:35
2007-03-29Replace obsolete macros (processing done by autoupdate).Darren Salt
Some tests were rearranged (AC_TRY_LINK moved out of AC_TRY_RUN cross-compilation case, with arrangements to maintain the semantics) to avoid autoupdate errors. Factored out common (duplicate) code in aa.m4. Tested with autoconf 2.61; needs testing with 2.60. CVS patchset: 8767 CVS date: 2007/03/29 18:23:36
2007-03-26Use AS_HELP_STRING instead of the deprecated AC_HELP_STRING.Darren Salt
CVS patchset: 8751 CVS date: 2007/03/26 14:21:10
2007-03-24Improve tests for visibility attribute support; Mach-O supports default ↵Diego 'Flameeyes' Pettenò
visibility but not protected (as the default is actually kinda like protected), thanks to Matt Messier in bug #1686194 for pointing me at that. CVS patchset: 8744 CVS date: 2007/03/24 02:36:52
2007-03-22Add the gas.m4 macro file, at least :)Diego 'Flameeyes' Pettenò
CVS patchset: 8741 CVS date: 2007/03/22 22:34:28
2007-03-22Move handling of Win32 codecs all in a single point of configure.ac rather ↵Diego 'Flameeyes' Pettenò
than split in two. Check for GNU as (macro adapted from libtool's check for GNU ld), as for instance Apple's assembler is not going to compile the Win32 wrappers. When GNU as is not found and user hasn't requested win32 codecs support explicitely, skip over it; if user requested win32 codecs and GNU as is not found, bail out. CVS patchset: 8740 CVS date: 2007/03/22 22:31:48
2007-03-22Fix crosscompile to use build and host definition from autoconf, rather than ↵Diego 'Flameeyes' Pettenò
using hacksaround. Also replace the whole pthread check with an improved macro originally written for XCB, this way it's not going to try linking the fake -lpthread on Darwin, and it also does not force a -I/usr/local/include on FreeBSD. The new macro respects the same variables set by ports, so that it's even more transparent to FreeBSD users. CVS patchset: 8739 CVS date: 2007/03/22 20:44:58
2007-03-20The AC_C_ATTRIBUTE_ALIGNED macro is broken, it always reports maximum ↵Diego 'Flameeyes' Pettenò
aligned available as 64 even on Darwin where the maximum is 16, as it does not use -Werror, and the wrong alignment is considered only a warning. Rewrite it as CC_ATTRIBUTE_ALIGNED (in attributes.m4, where other similar macros are located). Also reverse the order of the checks, so that the highest version is tried first; this way you can avoid five compile tests on systems where 64 is the highest alignment available. CVS patchset: 8726 CVS date: 2007/03/20 00:30:55
2007-03-19Make CC_CHECK_CFLAGS report the name of the compiler, like AC_TRY_CFLAGS ↵Diego 'Flameeyes' Pettenò
used to. CVS patchset: 8722 CVS date: 2007/03/19 23:41:49
2007-03-19Rewrite the CC_CHECK_CFLAGS macro, to be more in style with Autoconf macros, ↵Diego 'Flameeyes' Pettenò
and cache the value. Rewrite also CC_CHECK_WERROR, caching there too. Rename the final variable with the werror flag ($werror -> $cc_cv_werror). CVS patchset: 8714 CVS date: 2007/03/19 23:02:16
2007-03-17Fix obvious and stupid mistake in the symbol check, both if-found and ↵Diego 'Flameeyes' Pettenò
if-not-found conditions were going to be executed, always. CVS patchset: 8698 CVS date: 2007/03/17 07:25:37
2007-03-17Clean up configure checks for OSS support. Check for the various soundcard.h ↵Diego 'Flameeyes' Pettenò
headers, and then include the best one that has been found on the system. Check for definition of SNDCTL_DSP_SETFRAGMENT in those headers. Check for the correct request parameter type for ioctl(), as also modern Linux uses unsigned long. Don't list all the big endian machines (as they aren't reliable to list anyway, some of them might work with both endians), use WORDS_BIGENDIAN instead. CVS patchset: 8697 CVS date: 2007/03/17 06:59:31
2007-03-17Instead of relying on FreeBSD being the only system not having __environ ↵Diego 'Flameeyes' Pettenò
stderr ___brk_addr and __ctype_b, look for them during ./configure stage. Also check for alternatives, and check for compiler's weak aliasing support only if it's actually going to be used. CVS patchset: 8696 CVS date: 2007/03/17 06:11:30
2007-03-16Add a check if the compiler supports weak aliases, to add FreeBSD support to ↵Diego 'Flameeyes' Pettenò
Real codecs. CVS patchset: 8680 CVS date: 2007/03/16 20:12:41
2007-03-09Use a simpler and more portable awk command. Patch by Albert Lee.Diego 'Flameeyes' Pettenò
CVS patchset: 8647 CVS date: 2007/03/09 23:43:33