[MPlayer-cvslog] r36022 - trunk/configure

diego subversion at mplayerhq.hu
Wed Mar 20 13:18:37 CET 2013


Author: diego
Date: Wed Mar 20 13:18:37 2013
New Revision: 36022

Log:
configure: Only add _POSIX_C_SOURCE and _XOPEN_SOURCE to CFLAGS for glibc.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Mar 19 18:23:41 2013	(r36021)
+++ trunk/configure	Wed Mar 20 13:18:37 2013	(r36022)
@@ -2721,7 +2721,10 @@ else
   warn_cflags=yes
 fi
 
-CFLAGS="-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $CFLAGS"
+CFLAGS="-D_ISOC99_SOURCE $CFLAGS"
+
+cpp_condition_check features.h "defined __GLIBC__" &&
+  CFLAGS="-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $CFLAGS"
 
 if test "$cc_vendor" = "gnu" ; then
   cflag_check -fno-tree-vectorize && CFLAGS="$CFLAGS -fno-tree-vectorize"


More information about the MPlayer-cvslog mailing list