Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
278985b2
Commit
278985b2
authored
Mar 19, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more fun with LOCALE and LANGINFO
git-svn-id:
https://svn.musicpd.org/mpd/trunk@299
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
e40c676d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
21 deletions
+13
-21
configure.ac
configure.ac
+7
-15
path.c
src/path.c
+6
-6
No files found.
configure.ac
View file @
278985b2
...
...
@@ -62,9 +62,11 @@ AC_CHECK_LIB(nsl,gethostbyname,MPD_LIBS="$MPD_LIBS -lnsl",)
AC_CHECK_LIB(m,exp,MPD_LIBS="$MPD_LIBS -lm",)
AM_ICONV
MPD_CFLAGS="$MPD_CFLAGS $INCICONV"
MPD_LIBS="$MPD_LIBS $LIBICONV"
AM_LANGINFO_CODESET
AM_LC_MESSAGES
AC_CHECK_HEADER(langinfo.h,AC_DEFINE(HAVE_LANGINFO,1,[Define if nl_langinfo.h is present]),)
AC_CHECK_HEADER(locale.h,AC_DEFINE(HAVE_LOCALE,1,[Define if locale.h is present]),)
if test x$enable_ipv6 = xyes; then
AC_MSG_CHECKING(for ipv6)
...
...
@@ -204,7 +206,7 @@ if test x$enable_aac = xyes; then
FAAD_LIBS="-L$libdir"
fi
FAAD_LIBS="$FAAD_LIBS -lfaad
-lmp4v2 -lstdc++
"
FAAD_LIBS="$FAAD_LIBS -lfaad"
if test "x$faad_includes" != "x" ; then
FAAD_CFLAGS="-I$faad_includes"
...
...
@@ -220,22 +222,12 @@ if test x$enable_aac = xyes; then
LIBS="$LIBS $MPD_LIBS $FAAD_LIBS"
AC_CHECK_HEADER(faad.h,,enable_aac=no)
if test x$enable_aac = xyes; then
AC_CHECK_HEADER(mp4.h,,[enable_aac=no;AC_MSG_WARN(
You need mp4v2 installed for AAC/MP4 decoding.
If mp4.h is present, be sure that mpeg4ip.h does not
include systems.h)])
fi
if test x$enable_aac = xyes; then
AC_CHECK_LIB(mp4v2, MP4Create,,[enable_aac=no;AC_MSG_WARN(You need mp4v2 installed for AAC/MP4 decoding)])
fi
if test x$enable_aac = xyes; then
AC_CHECK_LIB(mp4v2, MP4MetadataDelete,,[enable_aac=no;AC_MSG_WARN(You need mp4v2 installed for AAC/MP4 decoding)])
fi
if test x$enable_aac = xyes; then
AC_CHECK_LIB(faad, faacDecDecode,[MPD_LIBS="$MPD_LIBS $FAAD_LIBS";MPD_CFLAGS="$MPD_CFLAGS $FAAD_CFLAGS";MP4FF_SUBDIR="mp4ff";MP4FF_LIB="mp4ff/libmp4ff.la"],enable_aac=no)
fi
if test x$enable_aac = xyes; then
AC_DEFINE(HAVE_FAAD,1,[Define to use FAAD2 for AAC decoding])
else
AC_MSG_WARN([faad2 lib needed for MP4/AAC support -- disabling MP4/AAC support])
fi
CFLAGS=$oldcflags
LIBS=$oldlibs
...
...
src/path.c
View file @
278985b2
...
...
@@ -24,8 +24,8 @@
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_L
C_MESSAGES
#ifdef HAVE_LANGINFO
_CODESET
#ifdef HAVE_L
OCALE
#ifdef HAVE_LANGINFO
#include <locale.h>
#include <langinfo.h>
#endif
...
...
@@ -87,8 +87,8 @@ char * getFsCharset() {
}
void
initPaths
()
{
#ifdef HAVE_L
C_MESSAGES
#ifdef HAVE_LANGINFO
_CODESET
#ifdef HAVE_L
OCALE
#ifdef HAVE_LANGINFO
char
*
originalLocale
;
#endif
#endif
...
...
@@ -97,8 +97,8 @@ void initPaths() {
if
(
getConf
()[
CONF_FS_CHARSET
])
{
charset
=
strdup
(
getConf
()[
CONF_FS_CHARSET
]);
}
#ifdef HAVE_L
C_MESSAGES
#ifdef HAVE_LANGINFO
_CODESET
#ifdef HAVE_L
OCALE
#ifdef HAVE_LANGINFO
else
if
((
originalLocale
=
setlocale
(
LC_ALL
,
""
)))
{
char
*
temp
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment