aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-10-13 18:21:34 +0100
committerMans Rullgard <mans@mansr.com>2012-11-18 12:00:18 +0000
commit3bd1eacd2a7dad1a01ab5ddad69aa4fb2a487312 (patch)
treea8faf6aad4c8358bbe1fd7e30a2362005b04eb7b /configure
parent5873b623a93cf5e314c6a11445a261b029921545 (diff)
downloadffmpeg-3bd1eacd2a7dad1a01ab5ddad69aa4fb2a487312.tar.gz
configure: Refactor CPPFLAGS settings for glibc/uclibc
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index 02391848a2..890ff93b3d 100755
--- a/configure
+++ b/configure
@@ -2855,7 +2855,6 @@ case $target_os in
add_cppflags -U__STRICT_ANSI__
;;
linux)
- add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
enable dv1394
;;
irix*)
@@ -2886,10 +2885,9 @@ case $target_os in
enable dos_paths
;;
gnu/kfreebsd)
- add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
+ add_cppflags -D_BSD_SOURCE
;;
gnu)
- add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
;;
qnx)
add_cppflags -D_QNX_SOURCE
@@ -2937,8 +2935,10 @@ esac
if check_cpp_condition features.h "defined __UCLIBC__"; then
libc_type=uclibc
+ add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
elif check_cpp_condition features.h "defined __GLIBC__"; then
libc_type=glibc
+ add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
elif check_header _mingw.h; then
libc_type=mingw
check_cpp_condition _mingw.h \