summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-18 20:33:20 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-18 20:33:20 +0000
commit148dd284908288a87309cee063be4b04948a4eaf (patch)
tree2a483c49b710800fdfdf1db4969bce3229ac5adb /configure
parent078fda08bdc2d9463898be78a1aeeb66dace941a (diff)
downloadmpv-148dd284908288a87309cee063be4b04948a4eaf.tar.bz2
mpv-148dd284908288a87309cee063be4b04948a4eaf.tar.xz
Group (system-specific) CFLAGS settings together.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22727 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure80
1 files changed, 40 insertions, 40 deletions
diff --git a/configure b/configure
index c32392cde9..bed9dcd574 100755
--- a/configure
+++ b/configure
@@ -7188,35 +7188,6 @@ else
fi
echores "$_crash_debug"
-if darwin ; then
- CFLAGS="$CFLAGS -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc"
- if [ "$_cc_major" = 3 ] && [ "$_cc_minor" -lt 1 ]; then
- CFLAGS="$CFLAGS -no-cpp-precomp"
- fi
-fi
-if amigaos ; then
- CFLAGS="$CFLAGS -DNEWLIB -D__USE_INLINE__ -DSYS_AMIGAOS4"
-fi
-if hpux ; then
- # use flag for HPUX missing setenv()
- CFLAGS="$CFLAGS -DHPUX"
-fi
-# Thread support
-if linux ; then
- CFLAGS="$CFLAGS -D_REENTRANT"
-elif bsd ; then
- # FIXME bsd needs this so maybe other OS'es
- CFLAGS="$CFLAGS -D_THREAD_SAFE"
-fi
-# 64 bit file offsets?
-if test "$_largefiles" = yes || freebsd ; then
- CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
- if test "$_dvdread" = yes || test "$_libdvdcss_internal" = yes ; then
- # dvdread support requires this (for off64_t)
- CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
- fi
-fi
-
echocheck "compiler support for noexecstack"
cat > $TMPC <<EOF
int main(void) { return 0; }
@@ -7228,10 +7199,6 @@ else
echores "no"
fi
-if cc_check -Wdeclaration-after-statement ; then
- CFLAGS="-Wdeclaration-after-statement $CFLAGS"
-fi
-
echocheck "ftello()"
# if we don't have ftello use the osdep/ compatibility module
cat > $TMPC << EOF
@@ -7250,13 +7217,6 @@ else
fi
echores "$_ftello"
-# Determine OS dependent libs
-if cygwin ; then
- #CFLAGS="$CFLAGS -D__CYGWIN__ -D__CYGWIN_USE_BIG_TYPES__"
- # stat.st_size with BIG_TYPES is broken (not set) ::atmos
- CFLAGS="$CFLAGS -D__CYGWIN__"
-fi
-
# Dynamic linking flags
# (FIXME: 'echocheck "dynamic linking"' above and modify here accordingly)
_ld_dl_dynamic=''
@@ -7413,6 +7373,46 @@ for I in $_libs_mplayer ; do
done
_libs_mplayer=$_ld_tmp
+
+#############################################################################
+if darwin ; then
+ CFLAGS="$CFLAGS -mdynamic-no-pic -falign-loops=16 -DSYS_DARWIN -DCONFIG_DARWIN -shared-libgcc"
+ if [ "$_cc_major" = 3 ] && [ "$_cc_minor" -lt 1 ]; then
+ CFLAGS="$CFLAGS -no-cpp-precomp"
+ fi
+fi
+if amigaos ; then
+ CFLAGS="$CFLAGS -DNEWLIB -D__USE_INLINE__ -DSYS_AMIGAOS4"
+fi
+if hpux ; then
+ # use flag for HPUX missing setenv()
+ CFLAGS="$CFLAGS -DHPUX"
+fi
+# Thread support
+if linux ; then
+ CFLAGS="$CFLAGS -D_REENTRANT"
+elif bsd ; then
+ # FIXME bsd needs this so maybe other OS'es
+ CFLAGS="$CFLAGS -D_THREAD_SAFE"
+fi
+if cygwin ; then
+ #CFLAGS="$CFLAGS -D__CYGWIN__ -D__CYGWIN_USE_BIG_TYPES__"
+ # stat.st_size with BIG_TYPES is broken (not set) ::atmos
+ CFLAGS="$CFLAGS -D__CYGWIN__"
+fi
+# 64 bit file offsets?
+if test "$_largefiles" = yes || freebsd ; then
+ CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
+ if test "$_dvdread" = yes || test "$_libdvdcss_internal" = yes ; then
+ # dvdread support requires this (for off64_t)
+ CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
+ fi
+fi
+
+if cc_check -Wdeclaration-after-statement ; then
+ CFLAGS="-Wdeclaration-after-statement $CFLAGS"
+fi
+
#############################################################################
# Take care of ffmpeg dependencies
if test "$_zlib" = no ; then