Mercurial > mplayer.hg
changeset 22709:bd96254153f1
Group (system-specific) CFLAGS settings together.
author | diego |
---|---|
date | Sun, 18 Mar 2007 20:33:20 +0000 |
parents | 0d86320521b9 |
children | 8a10d878826d |
files | configure |
diffstat | 1 files changed, 40 insertions(+), 40 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Sun Mar 18 20:25:02 2007 +0000 +++ b/configure Sun Mar 18 20:33:20 2007 +0000 @@ -7188,35 +7188,6 @@ 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 @@ 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 @@ 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 @@ 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