Mercurial > mplayer.hg
comparison configure @ 27402:0439868f668d
cosmetics: Rename some CFLAGS-related variables.
author | diego |
---|---|
date | Thu, 07 Aug 2008 21:03:14 +0000 |
parents | d47744b95b78 |
children | e44346d95663 |
comparison
equal
deleted
inserted
replaced
27401:9a33b25486a2 | 27402:0439868f668d |
---|---|
2323 # http://www.dribin.org/dave/blog/archives/2006/12/05/missing_third_param/ | 2323 # http://www.dribin.org/dave/blog/archives/2006/12/05/missing_third_param/ |
2324 cat > $TMPC << EOF | 2324 cat > $TMPC << EOF |
2325 __attribute__((noinline)) static int foo3(int i1, int i2, int i3) { return i3; } | 2325 __attribute__((noinline)) static int foo3(int i1, int i2, int i3) { return i3; } |
2326 int main(void) { return foo3(1,2,3) == 3 ? 0 : 1; } | 2326 int main(void) { return foo3(1,2,3) == 3 ? 0 : 1; } |
2327 EOF | 2327 EOF |
2328 cc_check -O4 -mstackrealign && tmp_run && _stackrealign=-mstackrealign | 2328 cc_check -O4 -mstackrealign && tmp_run && cflags_stackrealign=-mstackrealign |
2329 test -z "$_stackrealign" && cc_check -O4 -mstackrealign -fno-unit-at-a-time \ | 2329 test -z "$cflags_stackrealign" && cc_check -O4 -mstackrealign -fno-unit-at-a-time \ |
2330 && tmp_run && _stackrealign="-mstackrealign -fno-unit-at-a-time" | 2330 && tmp_run && cflags_stackrealign="-mstackrealign -fno-unit-at-a-time" |
2331 test -n "$_stackrealign" && echores "yes" || echores "no" | 2331 test -n "$cflags_stackrealign" && echores "yes" || echores "no" |
2332 fi # if darwin && test "$cc_vendor" = "gnu" ; then | 2332 fi # if darwin && test "$cc_vendor" = "gnu" ; then |
2333 | 2333 |
2334 | 2334 |
2335 # Checking for CFLAGS | 2335 # Checking for CFLAGS |
2336 _install_strip="-s" | 2336 _install_strip="-s" |
4322 else | 4322 else |
4323 _vidix_pcidb_val=0 | 4323 _vidix_pcidb_val=0 |
4324 fi | 4324 fi |
4325 | 4325 |
4326 echocheck "VIDIX dhahelper support" | 4326 echocheck "VIDIX dhahelper support" |
4327 test "$_dhahelper" = yes && cflag_dhahelper=-DCONFIG_DHAHELPER | 4327 test "$_dhahelper" = yes && cflags_dhahelper=-DCONFIG_DHAHELPER |
4328 echores "$_dhahelper" | 4328 echores "$_dhahelper" |
4329 | 4329 |
4330 echocheck "VIDIX svgalib_helper support" | 4330 echocheck "VIDIX svgalib_helper support" |
4331 test "$_svgalib_helper" = yes && cflag_svgalib_helper=-DCONFIG_SVGAHELPER | 4331 test "$_svgalib_helper" = yes && cflags_svgalib_helper=-DCONFIG_SVGAHELPER |
4332 echores "$_svgalib_helper" | 4332 echores "$_svgalib_helper" |
4333 | 4333 |
4334 else | 4334 else |
4335 _novomodules="cvidix $_novomodules" | 4335 _novomodules="cvidix $_novomodules" |
4336 fi | 4336 fi |
5498 elif beos ; then | 5498 elif beos ; then |
5499 CFLAGS="$CFLAGS -DSYS_BEOS" | 5499 CFLAGS="$CFLAGS -DSYS_BEOS" |
5500 elif os2 ; then | 5500 elif os2 ; then |
5501 CFLAGS="$CFLAGS -DSYS_OS2" | 5501 CFLAGS="$CFLAGS -DSYS_OS2" |
5502 fi | 5502 fi |
5503 _libdvdcss_dvdread_flags="-Ilibdvdcss -DHAVE_DVDCSS_DVDCSS_H" | 5503 cflags_libdvdcss_dvdread="-Ilibdvdcss -DHAVE_DVDCSS_DVDCSS_H" |
5504 _inputmodules="libdvdcss(internal) $_inputmodules" | 5504 _inputmodules="libdvdcss(internal) $_inputmodules" |
5505 _largefiles=yes | 5505 _largefiles=yes |
5506 else | 5506 else |
5507 _noinputmodules="libdvdcss(internal) $_noinputmodules" | 5507 _noinputmodules="libdvdcss(internal) $_noinputmodules" |
5508 fi | 5508 fi |
7716 cc_check -Wdeclaration-after-statement && CFLAGS="-Wdeclaration-after-statement $CFLAGS" | 7716 cc_check -Wdeclaration-after-statement && CFLAGS="-Wdeclaration-after-statement $CFLAGS" |
7717 cc_check -Wno-pointer-sign && CFLAGS="-Wno-pointer-sign $CFLAGS" | 7717 cc_check -Wno-pointer-sign && CFLAGS="-Wno-pointer-sign $CFLAGS" |
7718 cc_check -Wdisabled-optimization && CFLAGS="-Wdisabled-optimization $CFLAGS" | 7718 cc_check -Wdisabled-optimization && CFLAGS="-Wdisabled-optimization $CFLAGS" |
7719 fi | 7719 fi |
7720 | 7720 |
7721 cc_check -mno-omit-leaf-frame-pointer && CFLAG_NO_OMIT_LEAF_FRAME_POINTER="-mno-omit-leaf-frame-pointer" | 7721 cc_check -mno-omit-leaf-frame-pointer && cflags_no_omit_leaf_frame_pointer="-mno-omit-leaf-frame-pointer" |
7722 | 7722 |
7723 ############################################################################# | 7723 ############################################################################# |
7724 echo "Creating config.mak" | 7724 echo "Creating config.mak" |
7725 cat > config.mak << EOF | 7725 cat > config.mak << EOF |
7726 # -------- Generated by configure ----------- | 7726 # -------- Generated by configure ----------- |
7754 | 7754 |
7755 EXTRA_INC = $_inc_extra | 7755 EXTRA_INC = $_inc_extra |
7756 EXTRAXX_INC = $_inc_extra $_inc_extraxx | 7756 EXTRAXX_INC = $_inc_extra $_inc_extraxx |
7757 CFLAGS = $CFLAGS \$(EXTRA_INC) | 7757 CFLAGS = $CFLAGS \$(EXTRA_INC) |
7758 OPTFLAGS = $CFLAGS \$(EXTRA_INC) | 7758 OPTFLAGS = $CFLAGS \$(EXTRA_INC) |
7759 CFLAG_NO_OMIT_LEAF_FRAME_POINTER = $CFLAG_NO_OMIT_LEAF_FRAME_POINTER | |
7760 CXXFLAGS = $CXXFLAGS \$(EXTRAXX_INC) | 7759 CXXFLAGS = $CXXFLAGS \$(EXTRAXX_INC) |
7761 CFLAG_STACKREALIGN = $_stackrealign | 7760 CFLAGS_DHAHELPER = $cflags_dhahelper |
7762 LIBDVDCSS_DVDREAD_FLAGS = $_libdvdcss_dvdread_flags | 7761 CFLAGS_LIBDVDCSS_DVDREAD = $cflags_libdvdcss_dvdread |
7763 CFLAG_DHAHELPER = $cflag_dhahelper | 7762 CFLAGS_NO_OMIT_LEAF_FRAME_POINTER = $cflags_no_omit_leaf_frame_pointer |
7764 CFLAG_SVGALIB_HELPER = $cflag_svgalib_helper | 7763 CFLAGS_STACKREALIGN = $cflags_stackrealign |
7764 CFLAGS_SVGALIB_HELPER = $cflags_svgalib_helper | |
7765 | 7765 |
7766 EXTRALIBS = $_extra_libs | 7766 EXTRALIBS = $_extra_libs |
7767 EXTRA_LIB = $_ld_extra $_ld_static $_ld_lm | 7767 EXTRA_LIB = $_ld_extra $_ld_static $_ld_lm |
7768 EXTRALIBS_MPLAYER = $_libs_mplayer | 7768 EXTRALIBS_MPLAYER = $_libs_mplayer |
7769 EXTRALIBS_MENCODER = $_libs_mencoder | 7769 EXTRALIBS_MENCODER = $_libs_mencoder |