[FFmpeg-cvslog] configure: detect Solaris libc
Sean McGovern
git at videolan.org
Mon Dec 9 20:51:00 CET 2013
ffmpeg | branch: master | Sean McGovern <gseanmcg at gmail.com> | Sun Dec 8 17:17:12 2013 -0500| [61b203ffe6c71789acb14f51483d63fe9e516842] | committer: Diego Biurrun
configure: detect Solaris libc
Add preprocessor flags for API availability as necessary.
Signed-off-by: Diego Biurrun <diego at biurrun.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=61b203ffe6c71789acb14f51483d63fe9e516842
---
configure | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 32009a3..85d54a7 100755
--- a/configure
+++ b/configure
@@ -3179,7 +3179,6 @@ case $target_os in
SHFLAGS='-shared -Wl,-h,$$(@F)'
enabled x86 && SHFLAGS="-mimpure-text $SHFLAGS"
network_extralibs="-lsocket -lnsl"
- add_cppflags -D__EXTENSIONS__ -D_XOPEN_SOURCE=600
# When using suncc to build, the Solaris linker will mark
# an executable with each instruction set encountered by
# the Solaris assembler. As our libraries contain their own
@@ -3409,6 +3408,9 @@ elif check_cpp_condition stddef.h "defined __KLIBC__"; then
libc_type=klibc
elif check_cpp_condition sys/cdefs.h "defined __BIONIC__"; then
libc_type=bionic
+elif check_cpp_condition sys/brand.h "defined SOLARIS_BRAND_NAME"; then
+ libc_type=solaris
+ add_cppflags -D__EXTENSIONS__ -D_XOPEN_SOURCE=600
fi
test -n "$libc_type" && enable $libc_type
More information about the ffmpeg-cvslog
mailing list