]> code.delx.au - pulseaudio/commit
Replace the CFLAGS-checking code with a common macro from xine-lib.
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>
Fri, 8 Aug 2008 11:29:53 +0000 (13:29 +0200)
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>
Fri, 8 Aug 2008 13:09:37 +0000 (15:09 +0200)
commit81969a73a494a36356e764cf3576aa48c101bffb
tree9e70f3986169acf266dada2a19507a529e26ed88
parenta6e4507a4b9f48379e69748e7c4a0374dd11b13d
Replace the CFLAGS-checking code with a common macro from xine-lib.

Instead of writing custom code to check for cflags checking, import a
copy of attributes.m4 from xine-lib's repository and use the
CC_CHECK_CFLAGS macro.

The advantage lies not only in being able to reduce the custom code in
configure.ac, but also in the fact that the CC_CHECK_CFLAGS macro
caches the results, making ./configure -C quite faster on second run.

Check for the CFLAGS for any compiler and not just GCC, if the
compiler does support the flag it is better to u se it anyway,
otherwise it will be skipped.
configure.ac
m4/attributes.m4 [new file with mode: 0644]