summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-18 16:48:50 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-18 16:48:50 +0000
commit33832856df0726c67b1ac783da9b7c20311196f6 (patch)
treec524fa35da268cf3b5fa48ebd9e51185693bb48c /configure
parentec56167e117122e379e1d19b121686dbf0b3dca3 (diff)
downloadmpv-33832856df0726c67b1ac783da9b7c20311196f6.tar.bz2
mpv-33832856df0726c67b1ac783da9b7c20311196f6.tar.xz
Replace preprocessor hacks to work around compilers not supporting named
assembler arguments with a proper configure check. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19894 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure b/configure
index fdd819753d..b1acf18c60 100755
--- a/configure
+++ b/configure
@@ -1536,6 +1536,18 @@ int main(void) { return 0; }
EOF
cc_check -pipe && _pipe="-pipe" && echores "yes" || echores "no"
+
+echocheck "compiler support of named assembler arguments"
+_named_asm_args=yes
+_def_named_asm_args="#define NAMED_ASM_ARGS 1"
+if test "$cc_vendor" = "gnu" && test "$_cc_major" -lt 3 \
+ -o "$_cc_major" -eq 3 -a "$_cc_minor" = 0 ; then
+ _named_asm_args=no
+ _def_named_asm_args="#undef NAMED_ASM_ARGS"
+fi
+echores $_named_asm_args
+
+
# Checking for CFLAGS
_stripbinaries=yes
if test "$_profile" != "" || test "$_debug" != "" ; then
@@ -7641,6 +7653,9 @@ $_def_builtin_expect
# define attribute_used
#endif
+/* compiler support for named assembler arguments */
+$_def_named_asm_args
+
#define PREFIX "$_prefix"
#define USE_OSD 1