diff configure @ 27341:e7c989f7a7c9

Start unifying names of internal preprocessor directives. Replace all USE_ prefixes by CONFIG_ prefixes to indicate options which are configurable.
author diego
date Wed, 30 Jul 2008 12:01:30 +0000
parents b23ce988b57b
children 3a174cb28d36
line wrap: on
line diff
--- a/configure	Wed Jul 30 11:48:01 2008 +0000
+++ b/configure	Wed Jul 30 12:01:30 2008 +0000
@@ -693,7 +693,7 @@
 _rpath=no
 _asmalign_pot=auto
 _stream_cache=yes
-_def_stream_cache="#define USE_STREAM_CACHE 1"
+_def_stream_cache="#define CONFIG_STREAM_CACHE 1"
 _need_shmem=yes
 for ac_option do
   case "$ac_option" in
@@ -1398,7 +1398,7 @@
   _select=no
   _sighandler=no
   _stream_cache=no
-  _def_stream_cache="#undef USE_STREAM_CACHE"
+  _def_stream_cache="#undef CONFIG_STREAM_CACHE"
 fi
 
 if qnx ; then
@@ -2598,9 +2598,9 @@
   cc_check && _langinfo=yes
 fi
 if test "$_langinfo" = yes ; then
-  _def_langinfo='#define USE_LANGINFO 1'
-else
-  _def_langinfo='#undef USE_LANGINFO'
+  _def_langinfo='#define CONFIG_LANGINFO 1'
+else
+  _def_langinfo='#undef CONFIG_LANGINFO'
 fi
 echores "$_langinfo"
 
@@ -2859,9 +2859,9 @@
   echores "$_use_aton"
 fi
 
-_def_use_aton='#undef USE_ATON'
+_def_use_aton='#undef CONFIG_ATON'
 if test "$_use_aton" = yes; then
-  _def_use_aton='#define USE_ATON 1'
+  _def_use_aton='#define CONFIG_ATON 1'
 fi
 
 
@@ -3166,9 +3166,9 @@
   done
 fi
 if test "$_iconv" = yes ; then
-  _def_iconv='#define USE_ICONV 1'
-else
-  _def_iconv='#undef USE_ICONV'
+  _def_iconv='#define CONFIG_ICONV 1'
+else
+  _def_iconv='#undef CONFIG_ICONV'
 fi
 echores "$_iconv"
 
@@ -3327,10 +3327,10 @@
   done
 fi
 if test "$_termcap" = yes ; then
-  _def_termcap='#define USE_TERMCAP 1'
+  _def_termcap='#define CONFIG_TERMCAP 1'
   _res_comment="using $_ld_tmp"
 else
-  _def_termcap='#undef USE_TERMCAP'
+  _def_termcap='#undef CONFIG_TERMCAP'
 fi
 echores "$_termcap"
 
@@ -5041,7 +5041,7 @@
   cc_check && _ossaudio=yes
 fi
 if test "$_ossaudio" = yes ; then
-  _def_ossaudio='#define USE_OSS_AUDIO 1'
+  _def_ossaudio='#define CONFIG_OSS_AUDIO 1'
   _aosrc="$_aosrc ao_oss.c"
   _aomodules="oss $_aomodules"
   if test "$_linux_devfs" = yes; then
@@ -5070,7 +5070,7 @@
     _def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/mixer"'
   fi
 else
-  _def_ossaudio='#undef USE_OSS_AUDIO'
+  _def_ossaudio='#undef CONFIG_OSS_AUDIO'
   _def_ossaudio_devdsp='#define PATH_DEV_DSP ""'
   _def_ossaudio_devmixer='#define PATH_DEV_MIXER ""'
   _noaomodules="oss $_noaomodules"
@@ -5093,7 +5093,7 @@
 fi
 
 if test "$_arts" = yes ; then
-  _def_arts='#define USE_ARTS 1'
+  _def_arts='#define CONFIG_ARTS 1'
   _aosrc="$_aosrc ao_arts.c"
   _aomodules="arts $_aomodules"
   _libs_mplayer="$_libs_mplayer `artsc-config --libs`"
@@ -5120,7 +5120,7 @@
 echores "$_esd"
 
 if test "$_esd" = yes ; then
-  _def_esd='#define USE_ESD 1'
+  _def_esd='#define CONFIG_ESD 1'
   _aosrc="$_aosrc ao_esd.c"
   _aomodules="esd $_aomodules"
   _libs_mplayer="$_libs_mplayer `esd-config --libs`"
@@ -5134,7 +5134,7 @@
   cc_check `esd-config --libs` `esd-config --cflags` && _esd_latency=yes && _def_esd_latency='#define HAVE_ESD_LATENCY'
   echores "$_esd_latency"
 else
-  _def_esd='#undef USE_ESD'
+  _def_esd='#undef CONFIG_ESD'
   _def_esd_latency='#undef HAVE_ESD_LATENCY'
   _noaomodules="esd $_noaomodules"
 fi
@@ -5155,13 +5155,13 @@
 echores "$_pulse"
 
 if test "$_pulse" = yes ; then
-  _def_pulse='#define USE_PULSE 1'
+  _def_pulse='#define CONFIG_PULSE 1'
   _aosrc="$_aosrc ao_pulse.c"
   _aomodules="pulse $_aomodules"
   _libs_mplayer="$_libs_mplayer `$_pkg_config --libs libpulse`"
   _inc_extra="$_inc_extra `$_pkg_config --cflags libpulse`"
 else
-  _def_pulse='#undef USE_PULSE'
+  _def_pulse='#undef CONFIG_PULSE'
   _noaomodules="pulse $_noaomodules"
 fi
 
@@ -5185,7 +5185,7 @@
 fi
 
 if test "$_jack" = yes ; then
-  _def_jack='#define USE_JACK 1'
+  _def_jack='#define CONFIG_JACK 1'
   _aosrc="$_aosrc ao_jack.c"
   _aomodules="jack $_aomodules"
 else
@@ -5215,7 +5215,7 @@
   test "$_openal" = yes && _libs_mplayer="$_libs_mplayer $I"
 fi
 if test "$_openal" = yes ; then
-  _def_openal='#define USE_OPENAL 1'
+  _def_openal='#define CONFIG_OPENAL 1'
   _aosrc="$_aosrc ao_openal.c"
   _aomodules="openal $_aomodules"
 else
@@ -5342,11 +5342,11 @@
   cc_check && _sunaudio=yes
 fi
 if test "$_sunaudio" = yes ; then
-  _def_sunaudio='#define USE_SUN_AUDIO 1'
+  _def_sunaudio='#define CONFIG_SUN_AUDIO 1'
   _aosrc="$_aosrc ao_sun.c"
   _aomodules="sun $_aomodules"
 else
-  _def_sunaudio='#undef USE_SUN_AUDIO'
+  _def_sunaudio='#undef CONFIG_SUN_AUDIO'
   _noaomodules="sun $_noaomodules"
 fi
 echores "$_sunaudio"
@@ -5379,12 +5379,12 @@
   cc_check && _sgiaudio=yes
 fi
 if test "$_sgiaudio" = "yes" ; then
-  _def_sgiaudio='#define USE_SGI_AUDIO 1'
+  _def_sgiaudio='#define CONFIG_SGI_AUDIO 1'
   _libs_mplayer="$_libs_mplayer -laudio"
   _aosrc="$_aosrc ao_sgi.c"
   _aomodules="sgi $_aomodules"
 else
-  _def_sgiaudio='#undef USE_SGI_AUDIO'
+  _def_sgiaudio='#undef CONFIG_SGI_AUDIO'
   _noaomodules="sgi $_noaomodules"
 fi
 echores "$_sgiaudio"
@@ -5441,20 +5441,20 @@
 fi
 
 if test "$_dvdread_internal" = yes; then
-  _def_dvdread_internal="#define USE_DVDREAD_INTERNAL 1"
-  _def_dvdread='#define USE_DVDREAD 1'
+  _def_dvdread_internal="#define CONFIG_DVDREAD_INTERNAL 1"
+  _def_dvdread='#define CONFIG_DVDREAD 1'
   _inputmodules="dvdread(internal) $_inputmodules"
   _largefiles=yes
   _res_comment="internal"
 elif test "$_dvdread" = yes; then
-  _def_dvdread='#define USE_DVDREAD 1'
+  _def_dvdread='#define CONFIG_DVDREAD 1'
   _largefiles=yes
   _ld_extra="$_ld_extra -ldvdread"
   _inputmodules="dvdread(external) $_inputmodules"
   _res_comment="external"
 else
-  _def_dvdread_internal="#undef USE_DVDREAD_INTERNAL"
-  _def_dvdread='#undef USE_DVDREAD'
+  _def_dvdread_internal="#undef CONFIG_DVDREAD_INTERNAL"
+  _def_dvdread='#undef CONFIG_DVDREAD'
   _noinputmodules="dvdread $_noinputmodules"
 fi
 echores "$_dvdread"
@@ -5692,9 +5692,9 @@
     fi
 fi
 if test "$_ass" = yes ; then
-    _def_ass='#define USE_ASS'
-else
-    _def_ass='#undef USE_ASS'
+    _def_ass='#define CONFIG_ASS'
+else
+    _def_ass='#undef CONFIG_ASS'
 fi
 echores "$_ass"
 
@@ -5722,11 +5722,11 @@
     fi
 fi
 if test "$_fribidi" = yes ; then
-    _def_fribidi='#define USE_FRIBIDI'
+    _def_fribidi='#define CONFIG_FRIBIDI'
     _inc_extra="$_inc_extra `$_fribidiconfig --cflags`"
     _ld_extra="$_ld_extra `$_fribidiconfig --libs`"
 else
-    _def_fribidi='#undef USE_FRIBIDI'
+    _def_fribidi='#undef CONFIG_FRIBIDI'
 fi
 echores "$_fribidi"
 
@@ -5763,10 +5763,10 @@
 _zlib=no
 cc_check -lz && _zlib=yes
 if test "$_zlib" = yes ; then
-  _def_zlib='#define HAVE_ZLIB 1'
+  _def_zlib='#define CONFIG_ZLIB 1'
   _ld_extra="$_ld_extra -lz"
 else
-  _def_zlib='#undef HAVE_ZLIB'
+  _def_zlib='#undef CONFIG_ZLIB'
   _libavdecoders=`echo $_libavdecoders | sed -e s/FLASHSV_DECODER// -e s/PNG_DECODER// -e s/ZMBV_DECODER// -e s/DXA_DECODER// `
   _libavencoders=`echo $_libavencoders | sed -e s/FLASHSV_ENCODER// -e s/PNG_ENCODER// -e s/ZMBV_ENCODER// `
 fi
@@ -5807,11 +5807,11 @@
   cc_check -llzo2 && _liblzo=yes
 fi
 if test "$_liblzo" = yes ; then
-  _def_liblzo='#define USE_LIBLZO 1'
+  _def_liblzo='#define CONFIG_LIBLZO 1'
   _ld_extra="$_ld_extra -llzo2"
   _codecmodules="liblzo $_codecmodules"
 else
-  _def_liblzo='#undef USE_LIBLZO'
+  _def_liblzo='#undef CONFIG_LIBLZO'
   _nocodecmodules="liblzo $_nocodecmodules"
 fi
 echores "$_liblzo"
@@ -5827,11 +5827,11 @@
   cc_check -lmad && _mad=yes
 fi
 if test "$_mad" = yes ; then
-  _def_mad='#define USE_LIBMAD 1'
+  _def_mad='#define CONFIG_LIBMAD 1'
   _ld_extra="$_ld_extra -lmad"
   _codecmodules="libmad $_codecmodules"
 else
-  _def_mad='#undef USE_LIBMAD'
+  _def_mad='#undef CONFIG_LIBMAD'
   _nocodecmodules="libmad $_nocodecmodules"
 fi
 echores "$_mad"
@@ -6009,20 +6009,20 @@
 
 echocheck "internal mp3lib support"
 if test "$_mp3lib" = yes ; then
-  _def_mp3lib='#define USE_MP3LIB 1'
+  _def_mp3lib='#define CONFIG_MP3LIB 1'
   _codecmodules="mp3lib $_codecmodules"
 else
-  _def_mp3lib='#undef USE_MP3LIB'
+  _def_mp3lib='#undef CONFIG_MP3LIB'
   _nocodecmodules="mp3lib $_nocodecmodules"
 fi
 echores "$_mp3lib"
 
 echocheck "internal liba52 support"
 if test "$_liba52" = yes ; then
-  _def_liba52='#define USE_LIBA52 1'
+  _def_liba52='#define CONFIG_LIBA52 1'
   _codecmodules="liba52 $_codecmodules"
 else
-  _def_liba52='#undef USE_LIBA52'
+  _def_liba52='#undef CONFIG_LIBA52'
   _nocodecmodules="liba52 $_nocodecmodules"
 fi
 echores "$_liba52"
@@ -6040,10 +6040,10 @@
   fi
 fi
 if test "$_libmpeg2" = yes ; then
-  _def_libmpeg2='#define USE_LIBMPEG2 1'
+  _def_libmpeg2='#define CONFIG_LIBMPEG2 1'
   _codecmodules="libmpeg2 $_codecmodules"
 else
-  _def_libmpeg2='#undef USE_LIBMPEG2'
+  _def_libmpeg2='#undef CONFIG_LIBMPEG2'
   _nocodecmodules="libmpeg2 $_nocodecmodules"
 fi
 echores "$_libmpeg2"
@@ -6062,10 +6062,10 @@
   done
 fi
 if test "$_libdca" = yes ; then
-  _def_libdca='#define USE_LIBDCA 1'
+  _def_libdca='#define CONFIG_LIBDCA 1'
   _codecmodules="libdca $_codecmodules"
 else
-  _def_libdca='#undef USE_LIBDCA'
+  _def_libdca='#undef CONFIG_LIBDCA'
   _nocodecmodules="libdca $_nocodecmodules"
 fi
 echores "$_libdca"
@@ -6157,7 +6157,7 @@
 fi
 
 if test "$_faad_internal" = yes ; then
-  _def_faad_internal="#define USE_FAAD_INTERNAL 1"
+  _def_faad_internal="#define CONFIG_FAAD_INTERNAL 1"
   _faad=yes
   _res_comment="internal floating-point"
   if test "$_faad_fixed" = yes ; then
@@ -6170,7 +6170,7 @@
   _faad=yes
   _ld_extra="$_ld_extra -lfaad"
 else
-  _def_faad_internal="#undef USE_FAAD_INTERNAL"
+  _def_faad_internal="#undef CONFIG_FAAD_INTERNAL"
   _faad=no
 fi
 
@@ -6230,7 +6230,7 @@
   fi
 fi
 if test "$_win32dll" = yes ; then
-  _def_win32dll='#define USE_WIN32DLL 1'
+  _def_win32dll='#define CONFIG_WIN32DLL 1'
   test -z "$_win32codecsdir" && _win32codecsdir=$_codecsdir
   _res_comment="using $_win32codecsdir"
   if ! win32 ; then
@@ -6242,7 +6242,7 @@
   fi
   _codecmodules="win32 $_codecmodules"
 else
-  _def_win32dll='#undef USE_WIN32DLL'
+  _def_win32dll='#undef CONFIG_WIN32DLL'
   _def_win32_loader='#undef WIN32_LOADER'
   _nocodecmodules="win32 $_nocodecmodules"
 fi
@@ -6259,12 +6259,12 @@
 fi
 if test "$_xanim" = yes ; then
   test -z "$_xanimcodecsdir" && _xanimcodecsdir=$_codecsdir
-  _def_xanim='#define USE_XANIM 1'
+  _def_xanim='#define CONFIG_XANIM 1'
   _def_xanim_path="#define XACODEC_PATH \"$_xanimcodecsdir\""
   _codecmodules="xanim $_codecmodules"
   _res_comment="using $_xanimcodecsdir"
 else
-  _def_xanim='#undef USE_XANIM'
+  _def_xanim='#undef CONFIG_XANIM'
   _def_xanim_path='#undef XACODEC_PATH'
   _nocodecmodules="xanim $_nocodecmodules"
 fi
@@ -6282,12 +6282,12 @@
 fi
 if test "$_real" = yes ; then
   test -z "$_realcodecsdir" && _realcodecsdir="$_codecsdir"
-  _def_real='#define USE_REALCODECS 1'
+  _def_real='#define CONFIG_REALCODECS 1'
   _def_real_path="#define REALCODEC_PATH \"$_realcodecsdir\""
   _codecmodules="real $_codecmodules"
   _res_comment="using $_realcodecsdir"
 else
-  _def_real='#undef USE_REALCODECS'
+  _def_real='#undef CONFIG_REALCODECS'
   _def_real_path="#undef REALCODEC_PATH"
   _nocodecmodules="real $_nocodecmodules"
 fi
@@ -6296,17 +6296,17 @@
 
 echocheck "QuickTime codecs"
 _qtx_emulation=no
-_def_qtx_win32='#undef USE_QTX_CODECS_WIN32'
+_def_qtx_win32='#undef CONFIG_QTX_CODECS_WIN32'
 if test "$_qtx" = auto ; then
   test "$_win32dll" = yes || darwin && _qtx=yes
 fi
 if test "$_qtx" = yes ; then
-    _def_qtx='#define USE_QTX_CODECS 1'
-    win32 && _qtx_codecs_win32=yes && _def_qtx_win32='#define USE_QTX_CODECS_WIN32 1'
+    _def_qtx='#define CONFIG_QTX_CODECS 1'
+    win32 && _qtx_codecs_win32=yes && _def_qtx_win32='#define CONFIG_QTX_CODECS_WIN32 1'
     _codecmodules="qtx $_codecmodules"
     darwin || win32 || _qtx_emulation=yes
 else
-    _def_qtx='#undef USE_QTX_CODECS'
+    _def_qtx='#undef CONFIG_QTX_CODECS'
     _nocodecmodules="qtx $_nocodecmodules"
 fi
 echores "$_qtx"
@@ -6409,13 +6409,13 @@
   fi
 fi
 _libavutil=no
-_def_libavutil='#undef USE_LIBAVUTIL'
-_def_libavutil_a='#undef USE_LIBAVUTIL_A'
-_def_libavutil_so='#undef USE_LIBAVUTIL_SO'
+_def_libavutil='#undef CONFIG_LIBAVUTIL'
+_def_libavutil_a='#undef CONFIG_LIBAVUTIL_A'
+_def_libavutil_so='#undef CONFIG_LIBAVUTIL_SO'
 test "$_libavutil_a" = yes || test "$_libavutil_so" = yes && _libavutil=yes
-test "$_libavutil"    = yes && _def_libavutil='#define USE_LIBAVUTIL 1'
-test "$_libavutil_a"  = yes && _def_libavutil_a='#define USE_LIBAVUTIL_A 1'
-test "$_libavutil_so" = yes && _def_libavutil_so='#define USE_LIBAVUTIL_SO 1'
+test "$_libavutil"    = yes && _def_libavutil='#define CONFIG_LIBAVUTIL 1'
+test "$_libavutil_a"  = yes && _def_libavutil_a='#define CONFIG_LIBAVUTIL_A 1'
+test "$_libavutil_so" = yes && _def_libavutil_so='#define CONFIG_LIBAVUTIL_SO 1'
 # neither static nor shared libavutil is available, but it is mandatory ...
 if test "$_libavutil" = no ; then
   die "You need static or shared libavutil, MPlayer will not compile without!"
@@ -6448,13 +6448,13 @@
   fi
 fi
 _libavcodec=no
-_def_libavcodec='#undef USE_LIBAVCODEC'
-_def_libavcodec_a='#undef USE_LIBAVCODEC_A'
-_def_libavcodec_so='#undef USE_LIBAVCODEC_SO'
+_def_libavcodec='#undef CONFIG_LIBAVCODEC'
+_def_libavcodec_a='#undef CONFIG_LIBAVCODEC_A'
+_def_libavcodec_so='#undef CONFIG_LIBAVCODEC_SO'
 test "$_libavcodec_a" = yes || test "$_libavcodec_so" = yes && _libavcodec=yes
-test "$_libavcodec"    = yes && _def_libavcodec='#define USE_LIBAVCODEC 1'
-test "$_libavcodec_a"  = yes && _def_libavcodec_a='#define USE_LIBAVCODEC_A 1'
-test "$_libavcodec_so" = yes && _def_libavcodec_so='#define USE_LIBAVCODEC_SO 1'
+test "$_libavcodec"    = yes && _def_libavcodec='#define CONFIG_LIBAVCODEC 1'
+test "$_libavcodec_a"  = yes && _def_libavcodec_a='#define CONFIG_LIBAVCODEC_A 1'
+test "$_libavcodec_so" = yes && _def_libavcodec_so='#define CONFIG_LIBAVCODEC_SO 1'
 test "$_libavcodec_mpegaudio_hp" = yes \
   && _def_libavcodec_mpegaudio_hp='#define CONFIG_MPEGAUDIO_HP 1'
 if test "$_libavcodec_a" = yes ; then
@@ -6492,14 +6492,14 @@
   fi
 fi
 _libavformat=no
-_def_libavformat='#undef USE_LIBAVFORMAT'
-_def_libavformat_a='#undef USE_LIBAVFORMAT_A'
-_def_libavformat_so='#undef USE_LIBAVFORMAT_SO'
+_def_libavformat='#undef CONFIG_LIBAVFORMAT'
+_def_libavformat_a='#undef CONFIG_LIBAVFORMAT_A'
+_def_libavformat_so='#undef CONFIG_LIBAVFORMAT_SO'
 test "$_libavformat_a" = yes || test "$_libavformat_so" = yes && _libavformat=yes
-test "$_libavformat"    = yes && _def_libavformat='#define USE_LIBAVFORMAT 1'
-test "$_libavformat_a"  = yes && _def_libavformat_a='#define USE_LIBAVFORMAT_A 1'
+test "$_libavformat"    = yes && _def_libavformat='#define CONFIG_LIBAVFORMAT 1'
+test "$_libavformat_a"  = yes && _def_libavformat_a='#define CONFIG_LIBAVFORMAT_A 1'
 test "$_libavformat_so" = yes \
-  && _def_libavformat_so='#define USE_LIBAVFORMAT_SO 1'
+  && _def_libavformat_so='#define CONFIG_LIBAVFORMAT_SO 1'
 echores "$_libavformat"
 
 echocheck "FFmpeg libpostproc"
@@ -6512,7 +6512,7 @@
 elif test "$_libpostproc_so" = auto ; then
   _libpostproc_so=no
   cat > $TMPC << EOF
-  #define USE_LIBPOSTPROC 1
+  #define CONFIG_LIBPOSTPROC 1
   #include <inttypes.h>
   #include <libpostproc/postprocess.h>
   int main(void) { pp_get_mode_by_name_and_quality("de", 0); return 0; }
@@ -6524,14 +6524,14 @@
   fi
 fi
 _libpostproc=no
-_def_libpostproc='#undef USE_LIBPOSTPROC'
-_def_libpostproc_a='#undef USE_LIBPOSTPROC_A'
-_def_libpostproc_so='#undef USE_LIBPOSTPROC_SO'
+_def_libpostproc='#undef CONFIG_LIBPOSTPROC'
+_def_libpostproc_a='#undef CONFIG_LIBPOSTPROC_A'
+_def_libpostproc_so='#undef CONFIG_LIBPOSTPROC_SO'
 test "$_libpostproc_a" = yes || test "$_libpostproc_so" = yes && _libpostproc=yes
-test "$_libpostproc"    = yes && _def_libpostproc='#define USE_LIBPOSTPROC 1'
-test "$_libpostproc_a"  = yes && _def_libpostproc_a='#define USE_LIBPOSTPROC_A 1'
+test "$_libpostproc"    = yes && _def_libpostproc='#define CONFIG_LIBPOSTPROC 1'
+test "$_libpostproc_a"  = yes && _def_libpostproc_a='#define CONFIG_LIBPOSTPROC_A 1'
 test "$_libpostproc_so" = yes \
-  && _def_libpostproc_so='#define USE_LIBPOSTPROC_SO 1'
+  && _def_libpostproc_so='#define CONFIG_LIBPOSTPROC_SO 1'
 echores "$_libpostproc"
 
 
@@ -6866,9 +6866,9 @@
 echocheck "fastmemcpy"
 # fastmemcpy check is done earlier with tests of CPU & binutils features
 if test "$_fastmemcpy" = yes ; then
-  _def_fastmemcpy='#define USE_FASTMEMCPY 1'
-else
-  _def_fastmemcpy='#undef USE_FASTMEMCPY'
+  _def_fastmemcpy='#define CONFIG_FASTMEMCPY 1'
+else
+  _def_fastmemcpy='#undef CONFIG_FASTMEMCPY'
 fi
 echores "$_fastmemcpy"
 
@@ -6879,19 +6879,19 @@
     mingw32 && _unrar_exec="no"
 fi
 if test "$_unrar_exec" = yes ; then
-    _def_unrar_exec='#define USE_UNRAR_EXEC 1'
-else
-    _def_unrar_exec='#undef USE_UNRAR_EXEC'
+    _def_unrar_exec='#define CONFIG_UNRAR_EXEC 1'
+else
+    _def_unrar_exec='#undef CONFIG_UNRAR_EXEC'
 fi
 echores "$_unrar_exec"
 
 echocheck "TV interface"
 if test "$_tv" = yes ; then
-  _def_tv='#define USE_TV 1'
+  _def_tv='#define CONFIG_TV 1'
   _inputmodules="tv $_inputmodules"
 else
   _noinputmodules="tv $_noinputmodules"
-  _def_tv='#undef USE_TV'
+  _def_tv='#undef CONFIG_TV'
 fi
 echores "$_tv"
 
@@ -7079,21 +7079,21 @@
 
 echocheck "Radio interface"
 if test "$_radio" = yes ; then
-  _def_radio='#define USE_RADIO 1'
+  _def_radio='#define CONFIG_RADIO 1'
   _inputmodules="radio $_inputmodules"
   if test "$_alsa9" != yes -a "$_alsa1x" != yes -a "$_ossaudio" != yes ; then
     _radio_capture=no
   fi
   if test "$_radio_capture" = yes ; then
     _audio_input=yes
-    _def_radio_capture="#define USE_RADIO_CAPTURE 1"
+    _def_radio_capture="#define CONFIG_RADIO_CAPTURE 1"
   else
-    _def_radio_capture="#undef USE_RADIO_CAPTURE"
+    _def_radio_capture="#undef CONFIG_RADIO_CAPTURE"
   fi
 else
   _noinputmodules="radio $_noinputmodules"
-  _def_radio='#undef USE_RADIO'
-  _def_radio_capture="#undef USE_RADIO_CAPTURE"
+  _def_radio='#undef CONFIG_RADIO'
+  _def_radio_capture="#undef CONFIG_RADIO_CAPTURE"
   _radio_capture=no
 fi
 echores "$_radio"
@@ -7269,9 +7269,9 @@
 
 echocheck "Subtitles sorting"
 if test "$_sortsub" = yes ; then
-    _def_sortsub='#define USE_SORTSUB 1'
-else
-    _def_sortsub='#undef USE_SORTSUB'
+    _def_sortsub='#define CONFIG_SORTSUB 1'
+else
+    _def_sortsub='#undef CONFIG_SORTSUB'
 fi
 echores "$_sortsub"
 
@@ -7630,12 +7630,12 @@
 fi
 if test "$_dvdnav" = yes ; then
   _largefiles=yes
-  _def_dvdnav='#define USE_DVDNAV 1'
+  _def_dvdnav='#define CONFIG_DVDNAV 1'
   _inc_extra="$_inc_extra `$_dvdnavconfig --cflags`"
   _ld_extra="$_ld_extra `$_dvdnavconfig --minilibs`"
   _inputmodules="dvdnav $_inputmodules"
 else
-  _def_dvdnav='#undef USE_DVDNAV'
+  _def_dvdnav='#undef CONFIG_DVDNAV'
   _noinputmodules="dvdnav $_noinputmodules"
 fi
 echores "$_dvdnav"
@@ -8105,7 +8105,7 @@
    -stereo has three possible values (0 for stereo, 1 for left-only, 2 for
    right-only), with 0 being the default.
    */
-#define USE_FAKE_MONO 1
+#define CONFIG_FAKE_MONO 1
 
 /* Undefine this if your sound card driver has no working select().
    If you have kernel Oops, player hangups, or just no audio, you should