Add _BSD_SOURCE #define for struct hostent and struct ip_mreq.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36001 b3059339-0415-0410-9bf9-f77b7e298cf2
configure: Drop _BSD_SOURCE from CPPFLAGS for non-gcc compilers.

The flag was added for old ICC versions and is unlikely to be a correct fix.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36002 b3059339-0415-0410-9bf9-f77b7e298cf2
configure: Set CPPFLAGS to enable commonly used system features

MPlayer relies on POSIX, XOPEN and C99 features being available. However,
the necessary CPPFLAGS to enable those features are not set explicitly;
they are just used in some configure tests.  Set flags for these features
explicitly in order to ensure they are always available.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36003 b3059339-0415-0410-9bf9-f77b7e298cf2
configure: Simplify some checks that set feature flags.

The flags are now set globally, no need to set them in each test.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36004 b3059339-0415-0410-9bf9-f77b7e298cf2
Revert r36004, r36003, r35995, r35994, r35992: Fix default compilation.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36005 b3059339-0415-0410-9bf9-f77b7e298cf2
Add strings.h #includes for strncasecmp().

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36006 b3059339-0415-0410-9bf9-f77b7e298cf2
build: Compile all codec-cfg* host tools with one generic rule.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36007 b3059339-0415-0410-9bf9-f77b7e298cf2
build: Split object files from link libraries in generic executable rule.

This avoids a host of problems when GNU Make starts mucking with -l flags.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36008 b3059339-0415-0410-9bf9-f77b7e298cf2
configure: Set CPPFLAGS to enable commonly used system features

MPlayer relies on POSIX, XOPEN and C99 features being available. However,
the necessary CPPFLAGS to enable those features are not set explicitly;
they are just used in some configure tests.  Set flags for these features
explicitly in order to ensure they are always available.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36009 b3059339-0415-0410-9bf9-f77b7e298cf2
configure: Simplify some checks that set feature flags.

The flags are now set globally, no need to set them in each test.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36010 b3059339-0415-0410-9bf9-f77b7e298cf2
build: Add proper conditional compilation for all tools.

Also add an SDL image library check to configure, which is required
for the bmovl test tool.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36011 b3059339-0415-0410-9bf9-f77b7e298cf2
build: Ensure that all test tools are removed on clean.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36012 b3059339-0415-0410-9bf9-f77b7e298cf2
build: Only build qtx tests if QTX_EMULATION is set.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36013 b3059339-0415-0410-9bf9-f77b7e298cf2
Revise doxygen comment.

The old one was meaningless.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36014 b3059339-0415-0410-9bf9-f77b7e298cf2
build: Only compile modify_reg tool if Win32 emulation is enabled.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36015 b3059339-0415-0410-9bf9-f77b7e298cf2
build: Only build subrip tool if the UnRAR executable is available.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36016 b3059339-0415-0410-9bf9-f77b7e298cf2
Move headers only required for the MGA code below MGA ifdef.

This allows compiling the tool on systems that do not support MGA.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36017 b3059339-0415-0410-9bf9-f77b7e298cf2
build: whitespace cosmetics; add two more section comments

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36018 b3059339-0415-0410-9bf9-f77b7e298cf2
Support mixed filename encodings.

This also supports falsely stated filename encodings.

Part 1 of 3: file selector file list.

In order for the filenames to look readable, it's necessary to
set G_FILENAME_ENCODING (for non-UTF8 or mixed encodings only).

Based on a patch by reimar.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36019 b3059339-0415-0410-9bf9-f77b7e298cf2
Support mixed filename encodings.

This also supports falsely stated filename encodings.

Part 2 of 3: file selector path list.

In order for the filenames to look readable, it's necessary to
set G_FILENAME_ENCODING (for non-UTF8 or mixed encodings only).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36020 b3059339-0415-0410-9bf9-f77b7e298cf2