summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-15 22:52:52 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-15 22:52:52 +0000
commit4d5b4f9422e8a4a4a5a41f69806a65ea45555964 (patch)
tree25986a2fa8687b744532ad746193102d6e89e296 /configure
parent729505d31a6ddd5c2dccd0a3d309e9ca6641126a (diff)
downloadmpv-4d5b4f9422e8a4a4a5a41f69806a65ea45555964.tar.bz2
mpv-4d5b4f9422e8a4a4a5a41f69806a65ea45555964.tar.xz
fix (?) cmd line handling
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7020 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure27
1 files changed, 27 insertions, 0 deletions
diff --git a/configure b/configure
index 2afceab9b1..b180f32735 100755
--- a/configure
+++ b/configure
@@ -160,6 +160,7 @@ Optional features:
--disable-new-input disable new input system [enable]
--enable-joystick enable joystick support in new input [disable]
--enable-i18n GNU internationalisation [disable]
+ --disable-setlocale disable setlocale using in mplayer [autodetect]
--enable-runtime-cpudetection Enable runtime CPU detection [disable]
--disable-dvdnav Disable dvdnav support [autodetect]
--disable-dvdread Disable libdvdread support [autodetect]
@@ -975,6 +976,7 @@ _language=en
_shm=auto
_linux_devfs=no
_i18n=no
+_setlocale=auto
_sighandler=yes
_libdv=auto
_cdparanoia=auto
@@ -1000,6 +1002,8 @@ for ac_option do
--disable-mencoder) _mencoder=no ;;
--enable-i18n) _i18n=yes ;;
--disable-i18n) _i18n=no ;;
+ --enable-setlocale) _setlocale=yes ;;
+ --disable-setlocale) _setlocale=no ;;
--enable-x11) _x11=yes ;;
--disable-x11) _x11=no ;;
--enable-xv) _xv=yes ;;
@@ -1427,6 +1431,26 @@ fi
echores "$_i18n"
+# Checking for setlocale() ...
+# CSAK EGY MARADHAT - A HEGYLAKO
+# Nemnem. a TV Maci !
+echocheck "setlocale()"
+if test "$_setlocale" = auto ; then
+ cat > $TMPC <<EOF
+#include <locale.h>
+int main(void) { setlocale( LC_ALL,"" ); return 0; }
+EOF
+ _setlocale=no
+ cc_check && _setlocale=yes
+fi
+if test "$_setlocale" = yes ; then
+ _def_setlocale='#define USE_SETLOCALE 1'
+else
+ _def_setlocale='#undef USE_SETLOCALE'
+fi
+echores "$_setlocale"
+
+
echocheck "language"
test -z "$LINGUAS" && LINGUAS="en"
if test -f "help_mp-${LINGUAS}.h" ; then
@@ -4257,6 +4281,9 @@ cat > config.h << EOF
/* use GNU internationalization */
$_def_i18n
+/* use setlocale() function */
+$_def_setlocale
+
/* Runtime CPU detection */
$_def_runtime_cpudetection