summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Kostylev <michael.kostylev@gmail.com>2009-10-28 14:24:04 +0000
committerDiego Biurrun <diego@biurrun.de>2009-10-28 14:24:04 +0000
commit2a472e9c5d217aabbc8396fa88c4a57a63fd34d3 (patch)
treec2a5d03506bd49e395a8081c6c8f1c0b6b2386f1 /configure
parent4f99c31c3935a8a56b78af26ee0650c8d86d8a5b (diff)
Detect Sun Studio compiler and set appropriate variables.
Add dependency generation commands compatible with Sun Studio. patch by Michael Kostylev, michael.kostylev gmail com Originally committed as revision 20397 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index b3d99a135b..1eb3ba95ff 100755
--- a/configure
+++ b/configure
@@ -1594,6 +1594,11 @@ elif $cc -v 2>&1 | grep -q clang; then
cc_version=__VERSION__
CC_DEPFLAGS='-MMD'
AS_DEPFLAGS='-MMD'
+elif $cc -V 2>&1 | grep -q Sun; then
+ cc_type=suncc
+ cc_version="AV_STRINGIFY(__SUNPRO_C)"
+ DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | sed -e "1s,^.*: ,$@: ," -e "\$$!s,\$$, \\\\\\," -e "1!s,^.*: , ," > $(@:.o=.d)'
+ DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -xM1'
fi
test -n "$cc_type" && enable $cc_type || echolog "Unknown C compiler $cc"