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
53f5a137
Commit
53f5a137
authored
Nov 10, 2008
by
Led
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0.8.3
parent
d94eaf58
Hide whitespace changes
Inline
Side-by-side
Showing
69 changed files
with
3835 additions
and
2439 deletions
+3835
-2439
COMMANDS
COMMANDS
+8
-0
ChangeLog
ChangeLog
+11
-0
INSTALL
INSTALL
+2
-2
Makefile.am
Makefile.am
+4
-2
Makefile.in
Makefile.in
+106
-189
README
README
+1
-1
aclocal.m4
aclocal.m4
+310
-146
audio.c
audio.c
+94
-2
audio.h
audio.h
+10
-1
buffer.c
buffer.c
+1
-1
buffer.h
buffer.h
+1
-1
buffer2array.c
buffer2array.c
+2
-2
buffer2array.h
buffer2array.h
+1
-1
command.c
command.c
+12
-2
command.h
command.h
+1
-1
conf.c
conf.c
+33
-14
conf.h
conf.h
+18
-14
config.guess
config.guess
+305
-231
config.sub
config.sub
+183
-101
configure
configure
+239
-100
configure.in
configure.in
+1
-1
directory.c
directory.c
+4
-1
directory.h
directory.h
+1
-1
flac_decode.c
flac_decode.c
+4
-4
flac_decode.h
flac_decode.h
+1
-1
install-sh
install-sh
+70
-77
interface.c
interface.c
+9
-4
interface.h
interface.h
+1
-1
Makefile.in
libid3tag/Makefile.in
+84
-192
aclocal.m4
libid3tag/aclocal.m4
+362
-145
compat.c
libid3tag/compat.c
+209
-119
configure
libid3tag/configure
+246
-109
frametype.c
libid3tag/frametype.c
+221
-139
Makefile.in
libmad/Makefile.in
+83
-182
aclocal.m4
libmad/aclocal.m4
+362
-145
configure
libmad/configure
+246
-109
list.c
list.c
+1
-1
list.h
list.h
+1
-1
listen.c
listen.c
+18
-4
listen.h
listen.h
+1
-1
ls.c
ls.c
+1
-1
ls.h
ls.h
+1
-1
ltmain.sh
ltmain.sh
+237
-228
main.c
main.c
+13
-5
mkinstalldirs
mkinstalldirs
+58
-70
mp3_decode.c
mp3_decode.c
+4
-4
mp3_decode.h
mp3_decode.h
+1
-1
mpd.1
mpd.1
+20
-1
mpdconf.example
mpdconf.example
+21
-13
ogg_decode.c
ogg_decode.c
+4
-4
ogg_decode.h
ogg_decode.h
+1
-1
path.c
path.c
+1
-1
path.h
path.h
+1
-1
player.c
player.c
+7
-4
player.h
player.h
+1
-1
playlist.c
playlist.c
+61
-10
playlist.h
playlist.h
+5
-1
song.c
song.c
+1
-1
song.h
song.h
+1
-1
stats.c
stats.c
+1
-1
stats.h
stats.h
+1
-1
tables.c
tables.c
+118
-33
tables.h
tables.h
+3
-1
tag.c
tag.c
+1
-1
tag.h
tag.h
+1
-1
utils.c
utils.c
+1
-1
utils.h
utils.h
+1
-1
volume.c
volume.c
+1
-1
volume.h
volume.h
+1
-1
No files found.
COMMANDS
View file @
53f5a137
...
...
@@ -44,6 +44,13 @@ find <string type> <string what>
kill
kill mpd
list <string type> <string arg1>
list all tags of _type_
_type_ should be "album" or "artist"
_arg1_ is an optional paramter when type is album, this specifies
to list albums by a artist, where artist is specified with
arg1
listall <string directory>
lists all songs and directories in _directory_ (recursively)
_directory_ is optional
...
...
@@ -89,6 +96,7 @@ repeat <int state>
search <string type> <string what>
same as "find" but searches for any song that contain _what_
search is not case sensitive
shuffle
shuffles the current playlist
...
...
ChangeLog
View file @
53f5a137
ver 0.8.3 (2003/8/12)
1) Fix a compilation error on older linux systems
2) Fix a bug in searching by title
3) Add "list" command
4) Add config options for specifying libao driver/plugin and options
5) Add config option to specify which address to bind to
6) Add support for loading and saving absolute pathnames in saved playlists
7) Playlist no longer creates duplicate entries for song data (more me
efficient)
8) Songs deleted from the db are now removed for the playlist as well
ver 0.8.2 (2003/7/22)
1) Increased the connection que for listen() from 0 to 5
2) Cleanup configure makefiles so that mpd uses MPD_LIBS and MPD_CFLAGS
...
...
INSTALL
View file @
53f5a137
...
...
@@ -28,7 +28,7 @@ For Flac support, you need Flac 1.1.0 or greater.
Download
--------
Get the latest release from of MPD from http://
musicpd.sourceforge.net
Get the latest release from of MPD from http://
www.musicpd.org
Compile
-------
...
...
@@ -90,6 +90,6 @@ Using MPD
---------
You can download a web interface (phpMp) to MPD at
http://
musicpd.sourceforge.net
.
http://
www.musicpd.org
.
MPD can be interfaced directly using telnet (see COMMANDS, if you are brave).
Makefile.am
View file @
53f5a137
bin_PROGRAMS
=
mpd
SUBDIRS
=
$(ID3_SUBDIR)
$(MAD_SUBDIR)
man_MANS
=
mpd.1
pkgdata_DATA
=
mpdconf.example README INSTALL
EXTRA_DIST
=
COMMANDS UPGRADING
$(pkgdata_DATA)
$(man_MANS)
pkgdata_DATA
=
docdir
=
$(prefix)
/share/doc/
$(PACKAGE)
doc_DATA
=
README UPGRADING
EXTRA_DIST
=
mpdconf.example COMMANDS COPYING
$(pkgdata_DATA)
$(man_MANS)
$(doc_DATA)
mpd_headers
=
buffer2array.h interface.h command.h playlist.h ls.h
\
song.h list.h directory.h tables.h utils.h path.h flac_decode.h
\
tag.h player.h listen.h conf.h ogg_decode.h volume.h mp3_decode.h
\
...
...
Makefile.in
View file @
53f5a137
# Makefile.in generated by automake 1.
7.2
from Makefile.am.
# Makefile.in generated by automake 1.
6.3
from Makefile.am.
# @configure_input@
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
...
...
@@ -13,134 +13,101 @@
# PARTICULAR PURPOSE.
@SET_MAKE@
SHELL
=
@SHELL@
srcdir
=
@srcdir@
top_srcdir
=
@top_srcdir@
VPATH
=
@srcdir@
prefix
=
@prefix@
exec_prefix
=
@exec_prefix@
bindir
=
@bindir@
sbindir
=
@sbindir@
libexecdir
=
@libexecdir@
datadir
=
@datadir@
sysconfdir
=
@sysconfdir@
sharedstatedir
=
@sharedstatedir@
localstatedir
=
@localstatedir@
libdir
=
@libdir@
infodir
=
@infodir@
mandir
=
@mandir@
includedir
=
@includedir@
oldincludedir
=
/usr/include
pkgdatadir
=
$(datadir)
/@PACKAGE@
pkglibdir
=
$(libdir)
/@PACKAGE@
pkgincludedir
=
$(includedir)
/@PACKAGE@
top_builddir
=
.
ACLOCAL
=
@ACLOCAL@
AUTOCONF
=
@AUTOCONF@
AUTOMAKE
=
@AUTOMAKE@
AUTOHEADER
=
@AUTOHEADER@
am__cd
=
CDPATH
=
"
$$
{ZSH_VERSION+.}
$(PATH_SEPARATOR)
"
&&
cd
INSTALL
=
@INSTALL@
INSTALL_PROGRAM
=
@INSTALL_PROGRAM@
INSTALL_DATA
=
@INSTALL_DATA@
install_sh_DATA
=
$(install_sh)
-c
-m
644
install_sh_PROGRAM
=
$(install_sh)
-c
install_sh_SCRIPT
=
$(install_sh)
-c
INSTALL_SCRIPT
=
@INSTALL_SCRIPT@
INSTALL_HEADER
=
$(INSTALL_DATA)
transform
=
$(program_transform_name)
transform
=
@program_transform_name@
NORMAL_INSTALL
=
:
PRE_INSTALL
=
:
POST_INSTALL
=
:
NORMAL_UNINSTALL
=
:
PRE_UNINSTALL
=
:
POST_UNINSTALL
=
:
host_alias
=
@host_alias@
host_triplet
=
@host@
ACLOCAL
=
@ACLOCAL@
AMDEP_FALSE
=
@AMDEP_FALSE@
AMDEP_TRUE
=
@AMDEP_TRUE@
EXEEXT
=
@EXEEXT@
OBJEXT
=
@OBJEXT@
PATH_SEPARATOR
=
@PATH_SEPARATOR@
AMTAR
=
@AMTAR@
AO_CFLAGS
=
@AO_CFLAGS@
AO_LIBS
=
@AO_LIBS@
AUTOCONF
=
@AUTOCONF@
AUTOHEADER
=
@AUTOHEADER@
AUTOMAKE
=
@AUTOMAKE@
AS
=
@AS@
AWK
=
@AWK@
CC
=
@CC@
CCAS
=
@CCAS@
CCASFLAGS
=
@CCASFLAGS@
CCDEPMODE
=
@CCDEPMODE@
CFLAGS
=
@CFLAGS@
$(MPD_CFLAGS)
CPP
=
@CPP@
CPPFLAGS
=
@CPPFLAGS@
CYGPATH_W
=
@CYGPATH_W@
DEFS
=
@DEFS@
DEPDIR
=
@DEPDIR@
DLLTOOL
=
@DLLTOOL@
ECHO
=
@ECHO@
ECHO_C
=
@ECHO_C@
ECHO_N
=
@ECHO_N@
ECHO_T
=
@ECHO_T@
EGREP
=
@EGREP@
EXEEXT
=
@EXEEXT@
ID3_LIB
=
@ID3_LIB@
ID3_SUBDIR
=
@ID3_SUBDIR@
INSTALL_DATA
=
@INSTALL_DATA@
INSTALL_PROGRAM
=
@INSTALL_PROGRAM@
INSTALL_SCRIPT
=
@INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM
=
@INSTALL_STRIP_PROGRAM@
LDFLAGS
=
@LDFLAGS@
LIBFLAC_CFLAGS
=
@LIBFLAC_CFLAGS@
LIBFLAC_LIBS
=
@LIBFLAC_LIBS@
LIBOBJS
=
@LIBOBJS@
LIBS
=
@LIBS@
LIBTOOL
=
@LIBTOOL@
LN_S
=
@LN_S@
LTLIBOBJS
=
@LTLIBOBJS@
MAD_LIB
=
@MAD_LIB@
MAD_SUBDIR
=
@MAD_SUBDIR@
MAKEINFO
=
@MAKEINFO@
MPD_CFLAGS
=
@MPD_CFLAGS@
MPD_LIBS
=
@MPD_LIBS@
OBJ
EXT
=
@OBJEXT
@
OBJ
DUMP
=
@OBJDUMP
@
OGG_CFLAGS
=
@OGG_CFLAGS@
OGG_LIBS
=
@OGG_LIBS@
PACKAGE
=
@PACKAGE@
PACKAGE_BUGREPORT
=
@PACKAGE_BUGREPORT@
PACKAGE_NAME
=
@PACKAGE_NAME@
PACKAGE_STRING
=
@PACKAGE_STRING@
PACKAGE_TARNAME
=
@PACKAGE_TARNAME@
PACKAGE_VERSION
=
@PACKAGE_VERSION@
PATH_SEPARATOR
=
@PATH_SEPARATOR@
RANLIB
=
@RANLIB@
SET_MAKE
=
@SET_MAKE@
SHELL
=
@SHELL@
STRIP
=
@STRIP@
VERSION
=
@VERSION@
VORBISENC_LIBS
=
@VORBISENC_LIBS@
VORBISFILE_LIBS
=
@VORBISFILE_LIBS@
VORBIS_CFLAGS
=
@VORBIS_CFLAGS@
VORBIS_LIBS
=
@VORBIS_LIBS@
ac_ct_CC
=
@ac_ct_CC@
ac_ct_RANLIB
=
@ac_ct_RANLIB@
ac_ct_STRIP
=
@ac_ct_STRIP@
am__fastdepCC_FALSE
=
@am__fastdepCC_FALSE@
am__fastdepCC_TRUE
=
@am__fastdepCC_TRUE@
am__include
=
@am__include@
am__quote
=
@am__quote@
bindir
=
@bindir@
build
=
@build@
build_alias
=
@build_alias@
build_cpu
=
@build_cpu@
build_os
=
@build_os@
build_vendor
=
@build_vendor@
datadir
=
@datadir@
exec_prefix
=
@exec_prefix@
host
=
@host@
host_alias
=
@host_alias@
host_cpu
=
@host_cpu@
host_os
=
@host_os@
host_vendor
=
@host_vendor@
includedir
=
@includedir@
infodir
=
@infodir@
install_sh
=
@install_sh@
libdir
=
@libdir@
libexecdir
=
@libexecdir@
localstatedir
=
@localstatedir@
mandir
=
@mandir@
oldincludedir
=
@oldincludedir@
prefix
=
@prefix@
program_transform_name
=
@program_transform_name@
sbindir
=
@sbindir@
sharedstatedir
=
@sharedstatedir@
subdirs
=
@subdirs@
sysconfdir
=
@sysconfdir@
target_alias
=
@target_alias@
bin_PROGRAMS
=
mpd
SUBDIRS
=
$(ID3_SUBDIR)
$(MAD_SUBDIR)
man_MANS
=
mpd.1
pkgdata_DATA
=
mpdconf.example README INSTALL
EXTRA_DIST
=
COMMANDS UPGRADING
$(pkgdata_DATA)
$(man_MANS)
pkgdata_DATA
=
docdir
=
$(prefix)
/share/doc/
$(PACKAGE)
doc_DATA
=
README UPGRADING
EXTRA_DIST
=
mpdconf.example COMMANDS COPYING
$(pkgdata_DATA)
$(man_MANS)
$(doc_DATA)
mpd_headers
=
buffer2array.h interface.h command.h playlist.h ls.h
\
song.h list.h directory.h tables.h utils.h path.h flac_decode.h
\
tag.h player.h listen.h conf.h ogg_decode.h volume.h mp3_decode.h
\
...
...
@@ -151,6 +118,8 @@ mpd_SOURCES = main.c buffer2array.c interface.c command.c playlist.c ls.c \
tag.c player.c listen.c conf.c ogg_decode.c volume.c mp3_decode.c
\
audio.c buffer.c stats.c myfprintf.c sig_handlers.c
$(mpd_headers)
CFLAGS
=
@CFLAGS@
$(MPD_CFLAGS)
mpd_LDADD
=
$(MPD_LIBS)
$(ID3_LIB)
$(MAD_LIB)
subdir
=
.
ACLOCAL_M4
=
$(top_srcdir)
/aclocal.m4
...
...
@@ -173,7 +142,11 @@ mpd_OBJECTS = $(am_mpd_OBJECTS)
mpd_DEPENDENCIES
=
mpd_LDFLAGS
=
DEFS
=
@DEFS@
DEFAULT_INCLUDES
=
-I
.
-I
$(srcdir)
CPPFLAGS
=
@CPPFLAGS@
LDFLAGS
=
@LDFLAGS@
LIBS
=
@LIBS@
depcomp
=
$(SHELL)
$(top_srcdir)
/depcomp
am__depfiles_maybe
=
depfiles
@AMDEP_TRUE@
DEP_FILES
=
./
$(DEPDIR)
/audio.Po ./
$(DEPDIR)
/buffer.Po
\
...
...
@@ -200,14 +173,13 @@ DIST_SOURCES = $(mpd_SOURCES)
NROFF
=
nroff
MANS
=
$(man_MANS)
DATA
=
$(pkgdata_DATA)
DATA
=
$(
doc_DATA)
$(
pkgdata_DATA)
RECURSIVE_TARGETS
=
info-recursive dvi-recursive pdf-recursive
\
ps-recursive install-info-recursive uninstall-info-recursive
\
all-recursive install-data-recursive install-exec-recursive
\
installdirs-recursive install-recursive uninstall-recursive
\
check-recursive installcheck-recursive
RECURSIVE_TARGETS
=
info-recursive dvi-recursive install-info-recursive
\
uninstall-info-recursive all-recursive install-data-recursive
\
install-exec-recursive installdirs-recursive install-recursive
\
uninstall-recursive check-recursive installcheck-recursive
DIST_COMMON
=
README COPYING ChangeLog INSTALL Makefile.am Makefile.in
\
TODO aclocal.m4 config.guess config.sub configure configure.in
\
depcomp install-sh ltmain.sh missing mkinstalldirs
...
...
@@ -245,7 +217,7 @@ install-binPROGRAMS: $(bin_PROGRAMS)
;
then
\
f
=
`
echo
"
$$
p1"
|
sed
's,^.*/,,;
$(transform)
;s/$$/
$(EXEEXT)
/'
`
;
\
echo
"
$(INSTALL_PROGRAM_ENV)
$(LIBTOOL)
--mode=install
$(binPROGRAMS_INSTALL)
$$
p
$(DESTDIR)$(bindir)
/
$$
f"
;
\
$(INSTALL_PROGRAM_ENV)
$(LIBTOOL)
--mode
=
install
$(binPROGRAMS_INSTALL)
$$
p
$(DESTDIR)$(bindir)
/
$$
f
||
exit
1
;
\
$(INSTALL_PROGRAM_ENV)
$(LIBTOOL)
--mode
=
install
$(binPROGRAMS_INSTALL)
$$
p
$(DESTDIR)$(bindir)
/
$$
f
;
\
else
:
;
fi
;
\
done
...
...
@@ -303,37 +275,23 @@ distclean-depend:
-
rm
-rf
./
$(DEPDIR)
.c.o
:
@am__fastdepCC_TRUE@
if
$(COMPILE)
-MT
$@
-MD
-MP
-MF
"$(DEPDIR)/$*.Tpo"
\
@am__fastdepCC_TRUE@
-c
-o
$@
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<;
\
@am__fastdepCC_TRUE@
then
mv
"$(DEPDIR)/$*.Tpo"
"$(DEPDIR)/$*.Po"
;
\
@am__fastdepCC_TRUE@
else
rm
-f
"$(DEPDIR)/$*.Tpo"
;
exit
1;
\
@am__fastdepCC_TRUE@
fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@
source
=
'$<'
object
=
'$@'
libtool
=
no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
depfile
=
'
$(DEPDIR)
/$*.Po'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
@am__fastdepCC_FALSE@
$(COMPILE)
-c
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<
@AMDEP_TRUE@
source
=
'$<'
object
=
'$@'
libtool
=
no @AMDEPBACKSLASH@
@AMDEP_TRUE@
depfile
=
'
$(DEPDIR)
/$*.Po'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
$(COMPILE)
-c
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<
.c.obj
:
@am__fastdepCC_TRUE@
if
$(COMPILE)
-MT
$@
-MD
-MP
-MF
"$(DEPDIR)/$*.Tpo"
\
@am__fastdepCC_TRUE@
-c
-o
$@
`if
test
-f
'$<'
;
then
$(CYGPATH_W)
'$<'
;
else
$(CYGPATH_W)
'$(srcdir)/$<'
;
fi`;
\
@am__fastdepCC_TRUE@
then
mv
"$(DEPDIR)/$*.Tpo"
"$(DEPDIR)/$*.Po"
;
\
@am__fastdepCC_TRUE@
else
rm
-f
"$(DEPDIR)/$*.Tpo"
;
exit
1;
\
@am__fastdepCC_TRUE@
fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@
source
=
'$<'
object
=
'$@'
libtool
=
no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
depfile
=
'
$(DEPDIR)
/$*.Po'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
@am__fastdepCC_FALSE@
$(COMPILE)
-c
`if
test
-f
'$<'
;
then
$(CYGPATH_W)
'$<'
;
else
$(CYGPATH_W)
'$(srcdir)/$<'
;
fi`
@AMDEP_TRUE@
source
=
'$<'
object
=
'$@'
libtool
=
no @AMDEPBACKSLASH@
@AMDEP_TRUE@
depfile
=
'
$(DEPDIR)
/$*.Po'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
$(COMPILE)
-c
`cygpath
-w
$<`
.c.lo
:
@am__fastdepCC_TRUE@
if
$(LTCOMPILE)
-MT
$@
-MD
-MP
-MF
"$(DEPDIR)/$*.Tpo"
\
@am__fastdepCC_TRUE@
-c
-o
$@
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<;
\
@am__fastdepCC_TRUE@
then
mv
"$(DEPDIR)/$*.Tpo"
"$(DEPDIR)/$*.Plo"
;
\
@am__fastdepCC_TRUE@
else
rm
-f
"$(DEPDIR)/$*.Tpo"
;
exit
1;
\
@am__fastdepCC_TRUE@
fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@
source
=
'$<'
object
=
'$@'
libtool
=
yes
@AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
depfile
=
'
$(DEPDIR)
/$*.Plo'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPlo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
@am__fastdepCC_FALSE@
$(LTCOMPILE)
-c
-o
$@
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<
@AMDEP_TRUE@
source
=
'$<'
object
=
'$@'
libtool
=
yes
@AMDEPBACKSLASH@
@AMDEP_TRUE@
depfile
=
'
$(DEPDIR)
/$*.Plo'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPlo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
$(LTCOMPILE)
-c
-o
$@
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<
CCDEPMODE
=
@CCDEPMODE@
mostlyclean-libtool
:
-
rm
-f
*
.lo
...
...
@@ -381,16 +339,30 @@ uninstall-man1:
done
;
\
for
i
in
$$
list
;
do
\
ext
=
`
echo
$$
i |
sed
-e
's/^.*\\.//'
`
;
\
case
"
$$
ext"
in
\
1
*
)
;;
\
*
)
ext
=
'1'
;;
\
esac
;
\
inst
=
`
echo
$$
i |
sed
-e
's/\\.[0-9a-z]*$$//'
`
;
\
inst
=
`
echo
$$
inst |
sed
-e
's/^.*\///'
`
;
\
inst
=
`
echo
$$
inst |
sed
'
$(transform)
'
`
.
$$
ext
;
\
echo
" rm -f
$(DESTDIR)$(man1dir)
/
$$
inst"
;
\
rm
-f
$(DESTDIR)$(man1dir)
/
$$
inst
;
\
done
docDATA_INSTALL
=
$(INSTALL_DATA)
install-docDATA
:
$(doc_DATA)
@
$(NORMAL_INSTALL)
$(mkinstalldirs)
$(DESTDIR)$(docdir)
@
list
=
'
$(doc_DATA)
'
;
for
p
in
$$
list
;
do
\
if
test
-f
"
$$
p"
;
then
d
=
;
else
d
=
"
$(srcdir)
/"
;
fi
;
\
f
=
"
`
echo
$$
p |
sed
-e
's|^.*/||'
`
"
;
\
echo
"
$(docDATA_INSTALL)
$$
d
$$
p
$(DESTDIR)$(docdir)
/
$$
f"
;
\
$(docDATA_INSTALL)
$$
d
$$
p
$(DESTDIR)$(docdir)
/
$$
f
;
\
done
uninstall-docDATA
:
@
$(NORMAL_UNINSTALL)
@
list
=
'
$(doc_DATA)
'
;
for
p
in
$$
list
;
do
\
f
=
"
`
echo
$$
p |
sed
-e
's|^.*/||'
`
"
;
\
echo
" rm -f
$(DESTDIR)$(docdir)
/
$$
f"
;
\
rm
-f
$(DESTDIR)$(docdir)
/
$$
f
;
\
done
pkgdataDATA_INSTALL
=
$(INSTALL_DATA)
install-pkgdataDATA
:
$(pkgdata_DATA)
@
$(NORMAL_INSTALL)
...
...
@@ -464,17 +436,10 @@ tags-recursive:
list
=
'
$(SUBDIRS)
'
;
for
subdir
in
$$
list
;
do
\
test
"
$$
subdir"
=
.
||
(
cd
$$
subdir
&&
$(MAKE)
$(AM_MAKEFLAGS)
tags
)
;
\
done
ctags-recursive
:
list
=
'
$(SUBDIRS)
'
;
for
subdir
in
$$
list
;
do
\
test
"
$$
subdir"
=
.
||
(
cd
$$
subdir
&&
$(MAKE)
$(AM_MAKEFLAGS)
ctags
)
;
\
done
ETAGS
=
etags
ETAGSFLAGS
=
CTAGS
=
ctags
CTAGSFLAGS
=
tags
:
TAGS
ID
:
$(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
...
...
@@ -505,28 +470,13 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
||
$(ETAGS)
$(ETAGSFLAGS)
$(AM_ETAGSFLAGS)
$(ETAGS_ARGS)
\
$$
tags
$$
unique
ctags
:
CTAGS
CTAGS
:
ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES)
\
$(TAGS_FILES) $(LISP)
tags
=
;
\
here
=
`
pwd
`
;
\
list
=
'
$(SOURCES)
$(HEADERS)
$(LISP)
$(TAGS_FILES)
'
;
\
unique
=
`
for
i
in
$$
list
;
do
\
if
test
-f
"
$$
i"
;
then
echo
$$
i
;
else
echo
$(srcdir)
/
$$
i
;
fi
;
\
done
|
\
$(AWK)
' { files[$$0] = 1; } \
END { for (i in files) print i; }'
`
;
\
test
-z
"
$(CTAGS_ARGS)$$
tags
$$
unique"
\
||
$(CTAGS)
$(CTAGSFLAGS)
$(AM_CTAGSFLAGS)
$(CTAGS_ARGS)
\
$$
tags
$$
unique
GTAGS
:
here
=
`
$(am__cd)
$(top_builddir)
&&
pwd
`
\
&&
cd
$(top_srcdir)
\
&&
gtags
-i
$(GTAGS_ARGS)
$$
here
distclean-tags
:
-
rm
-f
TAGS ID GTAGS GRTAGS GSYMS GPATH
tags
-
rm
-f
TAGS ID GTAGS GRTAGS GSYMS GPATH
DISTFILES
=
$(DIST_COMMON)
$(DIST_SOURCES)
$(TEXINFOS)
$(EXTRA_DIST)
top_distdir
=
.
...
...
@@ -538,19 +488,12 @@ am__remove_distdir = \
&&
rm
-fr
$(distdir)
;
}
;
}
GZIP_ENV
=
--best
distuninstallcheck_listfiles
=
find
.
-type
f
-print
distcleancheck_listfiles
=
find
.
-type
f
-print
distdir
:
$(DISTFILES)
$(am__remove_distdir)
mkdir
$(distdir)
@
srcdirstrip
=
`
echo
"
$(srcdir)
"
|
sed
's|.|.|g'
`
;
\
topsrcdirstrip
=
`
echo
"
$(top_srcdir)
"
|
sed
's|.|.|g'
`
;
\
list
=
'
$(DISTFILES)
'
;
for
file
in
$$
list
;
do
\
case
$$
file
in
\
$(srcdir)
/
*
)
file
=
`
echo
"
$$
file"
|
sed
"s|^
$$
srcdirstrip/||"
`
;;
\
$(top_srcdir)
/
*
)
file
=
`
echo
"
$$
file"
|
sed
"s|^
$$
topsrcdirstrip/|
$(top_builddir)
/|"
`
;;
\
esac
;
\
@
list
=
'
$(DISTFILES)
'
;
for
file
in
$$
list
;
do
\
if
test
-f
$$
file
||
test
-d
$$
file
;
then
d
=
.
;
else
d
=
$(srcdir)
;
fi
;
\
dir
=
`
echo
"
$$
file"
|
sed
-e
's,/[^/]*$$,,'
`
;
\
if
test
"
$$
dir"
!=
"
$$
file"
&&
test
"
$$
dir"
!=
"."
;
then
\
...
...
@@ -607,9 +550,8 @@ distcheck: dist
mkdir
$(distdir)
/
=
inst
chmod
a-w
$(distdir)
dc_install_base
=
`
$(am__cd)
$(distdir)
/
=
inst
&&
pwd
`
\
&&
dc_destdir
=
"
$$
{TMPDIR-/tmp}/am-dc-
$$$$
/"
\
&&
cd
$(distdir)
/
=
build
\
&&
../configure
--srcdir
=
..
--prefix
=
"
$$
dc_install_base"
\
&&
../configure
--srcdir
=
..
--prefix
=
$$
dc_install_base
\
$(DISTCHECK_CONFIGURE_FLAGS)
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
dvi
\
...
...
@@ -617,39 +559,23 @@ distcheck: dist
&&
$(MAKE)
$(AM_MAKEFLAGS)
install
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
installcheck
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
uninstall
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
distuninstallcheck_dir
=
"
$$
dc_install_base"
\
distuninstallcheck
\
&&
chmod
-R
a-w
"
$$
dc_install_base"
\
&&
({
\
(
cd
../..
&&
$(mkinstalldirs)
"
$$
dc_destdir"
)
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
DESTDIR
=
"
$$
dc_destdir"
install
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
DESTDIR
=
"
$$
dc_destdir"
uninstall
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
DESTDIR
=
"
$$
dc_destdir"
\
distuninstallcheck_dir
=
"
$$
dc_destdir"
distuninstallcheck
;
\
}
||
{
rm
-rf
"
$$
dc_destdir"
;
exit
1
;
})
\
&&
rm
-rf
"
$$
dc_destdir"
\
&&
(
test
`
find
$$
dc_install_base
-type
f
-print
|
wc
-l
`
-le
1
\
||
{
echo
"ERROR: files left after uninstall:"
;
\
find
$$
dc_install_base
-type
f
-print
;
\
exit
1
;
}
>
&2
)
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
dist-gzip
\
&&
rm
-f
$(distdir)
.tar.gz
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
distcleancheck
$(am__remove_distdir)
@
echo
"
$(distdir)
.tar.gz is ready for distribution"
|
\
sed
'h;s/./=/g;p;x;p;x'
distuninstallcheck
:
cd
$(distuninstallcheck_dir)
\
&&
test
`
$(distuninstallcheck_listfiles)
|
wc
-l
`
-le
1
\
||
{
echo
"ERROR: files left after uninstall:"
;
\
if
test
-n
"
$(DESTDIR)
"
;
then
\
echo
" (check DESTDIR support)"
;
\
fi
;
\
$(distuninstallcheck_listfiles)
;
\
exit
1
;
}
>
&2
distcleancheck
:
distclean
if
test
'
$(srcdir)
'
=
.
;
then
\
echo
"ERROR: distcleancheck can only run from a VPATH build"
;
\
exit
1
;
\
fi
test
`
$(distcleancheck_listfiles)
|
wc
-l
`
-eq
0
\
||
{
echo
"ERROR: files left
in build directory
after distclean:"
;
\
||
{
echo
"ERROR: files left after distclean:"
;
\
$(distcleancheck_listfiles)
;
\
exit
1
;
}
>
&2
check-am
:
all-am
...
...
@@ -657,7 +583,7 @@ check: check-recursive
all-am
:
Makefile $(PROGRAMS) $(MANS) $(DATA)
installdirs
:
installdirs-recursive
installdirs-am
:
$(mkinstalldirs)
$(DESTDIR)$(bindir)
$(DESTDIR)$(man1dir)
$(DESTDIR)$(pkgdatadir)
$(mkinstalldirs)
$(DESTDIR)$(bindir)
$(DESTDIR)$(man1dir)
$(DESTDIR)$(
docdir)
$(DESTDIR)$(
pkgdatadir)
install
:
install-recursive
install-exec
:
install-exec-recursive
...
...
@@ -700,7 +626,7 @@ info: info-recursive
info-am
:
install-data-am
:
install-man install-pkgdataDATA
install-data-am
:
install-
docDATA install-
man install-pkgdataDATA
install-exec-am
:
install-binPROGRAMS
...
...
@@ -720,41 +646,32 @@ mostlyclean: mostlyclean-recursive
mostlyclean-am
:
mostlyclean-compile mostlyclean-generic
\
mostlyclean-libtool
pdf
:
pdf-recursive
pdf-am
:
ps
:
ps-recursive
ps-am
:
uninstall-am
:
uninstall-binPROGRAMS uninstall-info-am uninstall-man
\
uninstall-pkgdataDATA
uninstall-am
:
uninstall-binPROGRAMS uninstall-docDATA uninstall-info-am
\
uninstall-man uninstall-pkgdataDATA
uninstall-info
:
uninstall-info-recursive
uninstall-man
:
uninstall-man1
.PHONY
:
$(RECURSIVE_TARGETS)
CTAGS
GTAGS all all-am check check-am clean
\
.PHONY
:
$(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean
\
clean-binPROGRAMS clean-generic clean-libtool clean-recursive
\
ctags ctags-recursive dist dist-all dist-gzip distcheck
\
distclean distclean-compile distclean-depend distclean-generic
\
distclean-libtool distclean-recursive distclean-tags
\
distcleancheck distdir distuninstallcheck dvi dvi-am
\
dvi-recursive info info-am info-recursive install install-am
\
install-binPROGRAMS install-data install-data-am
\
install-data-recursive install-exec install-exec-am
\
install-exec-recursive install-info install-info-am
\
install-info-recursive install-man install-man1
\
dist dist-all dist-gzip distcheck distclean distclean-compile
\
distclean-depend distclean-generic distclean-libtool
\
distclean-recursive distclean-tags distcleancheck distdir dvi
\
dvi-am dvi-recursive info info-am info-recursive install
\
install-am install-binPROGRAMS install-data install-data-am
\
install-data-recursive install-docDATA install-exec
\
install-exec-am install-exec-recursive install-info
\
install-info-am install-info-recursive install-man install-man1
\
install-pkgdataDATA install-recursive install-strip
\
installcheck installcheck-am installdirs installdirs-am
\
installdirs-recursive maintainer-clean maintainer-clean-generic
\
maintainer-clean-recursive mostlyclean mostlyclean-compile
\
mostlyclean-generic mostlyclean-libtool mostlyclean-recursive
\
pdf pdf-am pdf-recursive ps ps-am ps-recursive tags
\
tags-recursive uninstall uninstall-am uninstall-binPROGRAMS
\
uninstall-info-
am uninstall-info-recursive uninstall-man
\
uninstall-
man1 uninstall-
pkgdataDATA uninstall-recursive
tags tags-recursive uninstall uninstall-am
\
uninstall-binPROGRAMS uninstall-docDATA uninstall-info-am
\
uninstall-info-
recursive uninstall-man uninstall-man1
\
uninstall-pkgdataDATA uninstall-recursive
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
...
...
README
View file @
53f5a137
Music Player Daemon (MPD)
http://
musicpd.sourceforge.net
http://
www.musicpd.org
A daemon for playing music (mp3, ogg vorbis, and flac). Music is played
through the server's audio device. The daemon stores info about all available
...
...
aclocal.m4
View file @
53f5a137
#
generated automatically by aclocal 1.7.2
-*- Autoconf -*-
#
aclocal.m4 generated automatically by aclocal 1.6.3
-*- Autoconf -*-
# Copyright
(C)
1996, 1997, 1998, 1999, 2000, 2001, 2002
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
...
...
@@ -43,7 +43,7 @@
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
AC_PREREQ([2.5
4
])
AC_PREREQ([2.5
2
])
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
# the ones we care about.
...
...
@@ -69,16 +69,6 @@ if test "`cd $srcdir && pwd`" != "`pwd`" &&
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
fi
# test whether we have cygpath
if test -z "$CYGPATH_W"; then
if (cygpath --version) >/dev/null 2>/dev/null; then
CYGPATH_W='cygpath -w'
else
CYGPATH_W=echo
fi
fi
AC_SUBST([CYGPATH_W])
# Define the identity of the package.
dnl Distinguish between old-style and new-style calls.
m4_ifval([$2],
...
...
@@ -110,29 +100,17 @@ AC_REQUIRE([AC_PROG_AWK])dnl
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
_AM_IF_OPTION([no-dependencies],,
[AC_PROVIDE_IFELSE([AC_PROG_CC],
[AC_PROVIDE_IFELSE([AC_PROG_
][
CC],
[_AM_DEPENDENCIES(CC)],
[define([AC_PROG_CC],
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
AC_PROVIDE_IFELSE([AC_PROG_CXX],
[define([AC_PROG_
][
CC],
defn([AC_PROG_
][
CC])[_AM_DEPENDENCIES(CC)])])dnl
AC_PROVIDE_IFELSE([AC_PROG_
][
CXX],
[_AM_DEPENDENCIES(CXX)],
[define([AC_PROG_CXX],
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
[define([AC_PROG_
][
CXX],
defn([AC_PROG_
][
CXX])[_AM_DEPENDENCIES(CXX)])])dnl
])
])
# When config.status generates a header, we must update the stamp-h file.
# This file resides in the same directory as the config header
# that is generated. The stamp files are numbered to have different names.
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
# loop where config.status creates the headers, so we can generate
# our stamp files there.
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
[_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
# Copyright 2002 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
...
...
@@ -153,14 +131,14 @@ echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
# ----------------------------
# Automake X.Y traces this macro to ensure aclocal.m4 has been
# generated from the m4 files accompanying Automake X.Y.
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.
7
"])
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.
6
"])
# AM_SET_CURRENT_AUTOMAKE_VERSION
# -------------------------------
# Call AM_AUTOMAKE_VERSION so it can be traced.
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
[AM_AUTOMAKE_VERSION([1.
7.2
])])
[AM_AUTOMAKE_VERSION([1.
6.3
])])
# Helper functions for option handling. -*- Autoconf -*-
...
...
@@ -540,7 +518,7 @@ AC_CACHE_CHECK([dependency style of $depcc],
if depmode=$depmode \
source=conftest.c object=conftest.o \
depfile=conftest.Po tmpdepfile=conftest.TPo \
$SHELL ./depcomp $depcc -c
-o conftest.o conftest.c
>/dev/null 2>&1 &&
$SHELL ./depcomp $depcc -c
conftest.c -o conftest.o
>/dev/null 2>&1 &&
grep conftest.h conftest.Po > /dev/null 2>&1 &&
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
am_cv_$1_dependencies_compiler_type=$depmode
...
...
@@ -555,9 +533,6 @@ else
fi
])
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
AM_CONDITIONAL([am__fastdep$1], [
test "x$enable_dependency_tracking" != xno \
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
])
...
...
@@ -677,9 +652,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
])
# Check to see how 'make' treats includes. -*- Autoconf -*-
# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
# Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -719,7 +692,7 @@ echo "include confinc" > confmf
# In particular we don't look at `^make:' because GNU make might
# be invoked under some other name (usually "gmake"), in which
# case it prints its new name instead of `make'.
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
if test "`$am_make -s -f confmf 2> /dev/null |
f
grep -v 'ing directory'`" = "done"; then
am__include=include
am__quote=
_am_result=GNU
...
...
@@ -779,7 +752,7 @@ else
fi
AC_CONFIG_COMMANDS_PRE(
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
AC_MSG_ERROR([conditional
"$1
" was never defined.
AC_MSG_ERROR([conditional
\"$1\
" was never defined.
Usually this means the macro was only invoked conditionally.])
fi])])
...
...
@@ -787,8 +760,6 @@ fi])])
# serial 46 AC_PROG_LIBTOOL
builtin([undefine],[symbols])
AC_DEFUN([AC_PROG_LIBTOOL],
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
...
...
@@ -814,6 +785,8 @@ AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_PROG_LD])dnl
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
AC_REQUIRE([AC_PROG_NM])dnl
AC_REQUIRE([LT_AC_PROG_SED])dnl
AC_REQUIRE([AC_PROG_LN_S])dnl
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
AC_REQUIRE([AC_OBJEXT])dnl
...
...
@@ -914,9 +887,30 @@ _LT_AC_LTCONFIG_HACK
])
# AC_LIBTOOL_HEADER_ASSERT
# ------------------------
AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
[lt_cv_func_assert_works],
[case $host in
*-*-solaris*)
if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
case `$CC --version 2>/dev/null` in
[[12]].*) lt_cv_func_assert_works=no ;;
*) lt_cv_func_assert_works=yes ;;
esac
fi
;;
esac])
if test "x$lt_cv_func_assert_works" = xyes; then
AC_CHECK_HEADERS(assert.h)
fi
])# AC_LIBTOOL_HEADER_ASSERT
# _LT_AC_CHECK_DLFCN
# --------------------
AC_DEFUN(
_LT_AC_CHECK_DLFCN
,
AC_DEFUN(
[_LT_AC_CHECK_DLFCN]
,
[AC_CHECK_HEADERS(dlfcn.h)
])# _LT_AC_CHECK_DLFCN
...
...
@@ -934,10 +928,10 @@ AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
# Character class describing NM global symbol codes.
[symcode='[BCDEGRST]']
symcode='[[BCDEGRST]]'
# Regexp to match symbols that can be accessed directly from C.
[sympat='\([_A-Za-z][_A-Za-z0-9]*\)']
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
# Transform the above into a raw symbol and a C symbol.
symxfrm='\1 \2\3 \3'
...
...
@@ -951,23 +945,26 @@ lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\
# Define system-specific variables.
case $host_os in
aix*)
[symcode='[BCDT]']
symcode='[[BCDT]]'
;;
cygwin* | mingw* | pw32*)
[symcode='[ABCDGISTW]']
symcode='[[ABCDGISTW]]'
;;
hpux*) # Its linker distinguishes data from code symbols
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
;;
irix*)
[symcode='[BCDEGRST]']
irix* | nonstopux*)
symcode='[[BCDEGRST]]'
;;
osf*)
symcode='[[BCDEGQRST]]'
;;
solaris* | sysv5*)
[symcode='[BDT]']
symcode='[[BDT]]'
;;
sysv4)
[symcode='[DFNSTU]']
symcode='[[DFNSTU]]'
;;
esac
...
...
@@ -981,14 +978,14 @@ esac
# If we're using GNU nm, then use its standard symbol codes.
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
[symcode='[ABCDGISTW]']
symcode='[[ABCDGISTW]]'
fi
# Try without a prefix undercore, then with it.
for ac_symprfx in "" "_"; do
# Write the raw and C identifiers.
[lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"]
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
# Check to see that the pipe works correctly.
pipe_works=no
...
...
@@ -1041,7 +1038,7 @@ const struct {
const char *name;
lt_ptr address;
}
[lt_preloaded_symbols[] =]
lt_preloaded_symbols[[]] =
{
EOF
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
...
...
@@ -1059,7 +1056,7 @@ EOF
save_CFLAGS="$CFLAGS"
LIBS="conftstm.$ac_objext"
CFLAGS="$CFLAGS$no_builtin_flag"
if AC_TRY_EVAL(ac_link) && test -s conftest; then
if AC_TRY_EVAL(ac_link) && test -s conftest
$ac_exeext
; then
pipe_works=yes
fi
LIBS="$save_LIBS"
...
...
@@ -1114,13 +1111,14 @@ if test "X${PATH_SEPARATOR+set}" != Xset; then
*-DOS) lt_cv_sys_path_separator=';' ;;
*) lt_cv_sys_path_separator=':' ;;
esac
PATH_SEPARATOR=$lt_cv_sys_path_separator
fi
])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
# _LT_AC_PROG_ECHO_BACKSLASH
# --------------------------
# Add some code to the start of the generated configure script which
# will find an echo command which doesn
;
t interpret backslashes.
# will find an echo command which doesn
'
t interpret backslashes.
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
[AC_DIVERT_PUSH(NOTICE)])
...
...
@@ -1189,7 +1187,7 @@ else
#
# So, first we look for a working echo in the user's PATH.
IFS="${IFS= }"; save_ifs="$IFS"; IFS=
"${IFS}${PATH_SEPARATOR}"
IFS="${IFS= }"; save_ifs="$IFS"; IFS=
$PATH_SEPARATOR
for dir in $PATH /usr/ucb; do
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
...
...
@@ -1278,7 +1276,7 @@ AC_DIVERT_POP
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
# ------------------------------------------------------------------
AC_DEFUN(
_LT_AC_TRY_DLOPEN_SELF
,
AC_DEFUN(
[_LT_AC_TRY_DLOPEN_SELF]
,
[if test "$cross_compiling" = yes; then :
[$4]
else
...
...
@@ -1365,7 +1363,7 @@ rm -fr conftest*
# AC_LIBTOOL_DLOPEN_SELF
# -------------------
AC_DEFUN(
AC_LIBTOOL_DLOPEN_SELF
,
AC_DEFUN(
[AC_LIBTOOL_DLOPEN_SELF]
,
[if test "x$enable_dlopen" != xyes; then
enable_dlopen=unknown
enable_dlopen_self=unknown
...
...
@@ -1465,10 +1463,10 @@ AC_DEFUN([_LT_AC_LTCONFIG_HACK],
# Sed substitution that helps us do robust quoting. It backslashifies
# metacharacters that are still active within double-quoted strings.
Xsed='sed -e s/^X//'
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
# Same as above, but do not quote variable references.
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
...
...
@@ -1602,7 +1600,7 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic,
# like `-m68040'.
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
;;
beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
beos* | irix5* | irix6* |
nonstopux* |
osf3* | osf4* | osf5*)
# PIC is the default for these OSes.
;;
darwin* | rhapsody*)
...
...
@@ -1645,7 +1643,7 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic,
lt_cv_prog_cc_pic='+Z'
;;
irix5* | irix6*)
irix5* | irix6*
| nonstopux*
)
lt_cv_prog_cc_wl='-Wl,'
lt_cv_prog_cc_static='-non_shared'
# PIC (with -KPIC) is the default.
...
...
@@ -1689,11 +1687,7 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic,
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
lt_cv_prog_cc_pic='-KPIC'
lt_cv_prog_cc_static='-Bstatic'
if test "x$host_vendor" = xsni; then
lt_cv_prog_cc_wl='-LD'
else
lt_cv_prog_cc_wl='-Wl,'
fi
lt_cv_prog_cc_wl='-Wl,'
;;
uts4*)
...
...
@@ -1759,7 +1753,7 @@ fi
# Check for any special shared library compilation flags.
if test -n "$lt_cv_prog_cc_shlib"; then
AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
if echo "$old_CC $old_CFLAGS " |
[egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]"]
>/dev/null; then :
if echo "$old_CC $old_CFLAGS " |
egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]"
>/dev/null; then :
else
AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
lt_cv_prog_cc_can_build_shared=no
...
...
@@ -2040,7 +2034,7 @@ EOF
# can override, but on older systems we have to supply one (in ltdll.c)
if test "x$lt_cv_need_dllmain" = "xyes"; then
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d <
[$]
0 > $output_objdir/$soname-ltdll.c~
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d <
$''
0 > $output_objdir/$soname-ltdll.c~
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
else
ltdll_obj=
...
...
@@ -2053,12 +2047,12 @@ EOF
# Be careful not to strip the DATA tag left be newer dlltools.
export_symbols_cmds="$ltdll_cmds"'
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
[sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//"]
< $output_objdir/$soname-def > $export_symbols'
sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//"
< $output_objdir/$soname-def > $export_symbols'
# If the export-symbols file already is a .def file (1st line
# is EXPORTS), use it as is.
# If DATA tags from a recent dlltool are present, honour them!
archive_expsym_cmds='if test "x`
head -1
$export_symbols`" = xEXPORTS; then
archive_expsym_cmds='if test "x`
sed 1q
$export_symbols`" = xEXPORTS; then
cp $export_symbols $output_objdir/$soname-def;
else
echo EXPORTS > $output_objdir/$soname-def;
...
...
@@ -2067,6 +2061,7 @@ EOF
set dummy \$symbol;
case \[$]# in
2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
*) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
esac;
_lt_hint=`expr 1 + \$_lt_hint`;
...
...
@@ -2179,10 +2174,12 @@ else
# need to do runtime linking.
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
for ld_flag in $LDFLAGS; do
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
case $ld_flag in
*-brtl*)
aix_use_runtimelinking=yes
break
fi
;;
esac
done
esac
...
...
@@ -2254,7 +2251,7 @@ else
allow_undefined_flag='${wl}-berok'
# This is a bit strange, but is similar to how AIX traditionally builds
# it's shared libraries.
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $o
bjdir/$libname$release.a $
objdir/$soname'
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $o
utput_objdir/$libname$release.a $output_
objdir/$soname'
fi
fi
;;
...
...
@@ -2296,8 +2293,9 @@ else
esac
# FIXME: Relying on posixy $() will cause problems for
# cross-compilation, but unfortunately the echo tests do not
# yet detect zsh echo's removal of \ escapes.
archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
# `"' quotes if we put them in here... so don't!
archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
# We need to add '_' to the symbols in $export_symbols first
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
hardcode_direct=yes
...
...
@@ -2349,13 +2347,14 @@ else
export_dynamic_flag_spec='${wl}-E'
;;
irix5* | irix6*)
irix5* | irix6*
| nonstopux*
)
if test "$GCC" = yes; then
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
else
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
hardcode_libdir_flag_spec='-rpath $libdir'
fi
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
link_all_deplibs=yes
;;
...
...
@@ -2383,7 +2382,7 @@ else
hardcode_direct=yes
hardcode_shlibpath_var=no
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $
link
er_flags'
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $
compil
er_flags'
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
export_dynamic_flag_spec='${wl}-E'
else
...
...
@@ -2393,7 +2392,7 @@ else
hardcode_libdir_flag_spec='-R$libdir'
;;
*)
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $
link
er_flags'
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $
compil
er_flags'
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
;;
esac
...
...
@@ -2446,7 +2445,35 @@ else
;;
solaris*)
# gcc --version < 3.0 without binutils cannot create self contained
# shared libraries reliably, requiring libgcc.a to resolve some of
# the object symbols generated in some cases. Libraries that use
# assert need libgcc.a to resolve __eprintf, for example. Linking
# a copy of libgcc.a into every shared library to guarantee resolving
# such symbols causes other problems: According to Tim Van Holder
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
# (to the application) exception stack for one thing.
no_undefined_flag=' -z defs'
if test "$GCC" = yes; then
case `$CC --version 2>/dev/null` in
[[12]].*)
cat <<EOF 1>&2
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
*** create self contained shared libraries on Solaris systems, without
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
*** -no-undefined support, which will at least allow you to build shared
*** libraries. However, you may find that when you link such libraries
*** into an application without using GCC, you have to manually add
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
*** upgrade to a newer version of GCC. Another option is to rebuild your
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
EOF
no_undefined_flag=
;;
esac
fi
# $CC -shared without GNU ld will not create a library from C++
# object files and a static libstdc++, better avoid it by now
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
...
...
@@ -2455,7 +2482,7 @@ else
hardcode_libdir_flag_spec='-R$libdir'
hardcode_shlibpath_var=no
case $host_os in
[solaris2.[0-5] | solaris2.[0-5].*]
) ;;
solaris2.[[0-5]] | solaris2.[[0-5]].*
) ;;
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
esac
...
...
@@ -2477,13 +2504,23 @@ else
;;
sysv4)
if test "x$host_vendor" = xsno; then
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct=yes # is this really true???
else
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
fi
case $host_vendor in
sni)
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct=yes # is this really true???
;;
siemens)
## LD is ld it makes a PLAMLIB
## CC just makes a GrossModule.
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
reload_cmds='$CC -r -o $output$reload_objs'
hardcode_direct=no
;;
motorola)
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
;;
esac
runpath_var='LD_RUN_PATH'
hardcode_shlibpath_var=no
;;
...
...
@@ -2624,6 +2661,9 @@ aix3*)
aix4* | aix5*)
version_type=linux
need_lib_prefix=no
need_version=no
hardcode_into_libs=yes
if test "$host_cpu" = ia64; then
# AIX 5 supports IA64
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
...
...
@@ -2635,15 +2675,15 @@ aix4* | aix5*)
# depend on `.', always an invalid library. This was fixed in
# development snapshots of GCC prior to 3.0.
case $host_os in
[ aix4 | aix4.[01] | aix4.[01].*)]
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
echo ' yes '
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
:
else
can_build_shared=no
fi
;;
aix4 | aix4.[[01]] | aix4.[[01]].*)
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
echo ' yes '
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
:
else
can_build_shared=no
fi
;;
esac
# AIX (on Power*) has no versioning support, so currently we can
# not hardcode correct soname into executable. Probably we can
...
...
@@ -2662,12 +2702,13 @@ aix4* | aix5*)
fi
shlibpath_var=LIBPATH
fi
hardcode_into_libs=yes
;;
amigaos*)
library_names_spec='$libname.ixlibrary $libname.a'
# Create ${libname}_ixlibrary.a entries in /sys/libs.
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" |
[$Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\'']
`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" |
$Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''
`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
;;
beos*)
...
...
@@ -2698,7 +2739,7 @@ cygwin* | mingw* | pw32*)
case $GCC,$host_os in
yes,cygwin*)
library_names_spec='$libname.dll.a'
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} |
[sed -e 's/[.]/-/g']
`${versuffix}.dll'
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} |
sed -e 's/[[.]]/-/g'
`${versuffix}.dll'
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
dldir=$destdir/`dirname \$dlpath`~
test -d \$dldir || mkdir -p \$dldir~
...
...
@@ -2708,14 +2749,14 @@ cygwin* | mingw* | pw32*)
$rm \$dlpath'
;;
yes,mingw*)
library_names_spec='${libname}`echo ${release} |
[sed -e 's/[.]/-/g']
`${versuffix}.dll'
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
library_names_spec='${libname}`echo ${release} |
sed -e 's/[[.]]/-/g'
`${versuffix}.dll'
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"
-e "s,=/,/,g"
`
;;
yes,pw32*)
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
;;
*)
library_names_spec='${libname}`echo ${release} |
[sed -e 's/[.]/-/g']
`${versuffix}.dll $libname.lib'
library_names_spec='${libname}`echo ${release} |
sed -e 's/[[.]]/-/g'
`${versuffix}.dll $libname.lib'
;;
esac
dynamic_linker='Win32 ld.exe'
...
...
@@ -2741,6 +2782,18 @@ freebsd1*)
dynamic_linker=no
;;
freebsd*-gnu*)
version_type=linux
need_lib_prefix=no
need_version=no
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
soname_spec='${libname}${release}.so$major'
shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=no
hardcode_into_libs=yes
dynamic_linker='GNU/FreeBSD ld.so'
;;
freebsd*)
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
version_type=freebsd-$objformat
...
...
@@ -2792,14 +2845,17 @@ hpux9* | hpux10* | hpux11*)
postinstall_cmds='chmod 555 $lib'
;;
irix5* | irix6*)
version_type=irix
irix5* | irix6* | nonstopux*)
case $host_os in
nonstopux*) version_type=nonstopux ;;
*) version_type=irix ;;
esac
need_lib_prefix=no
need_version=no
soname_spec='${libname}${release}.so$major'
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
case $host_os in
irix5*)
irix5*
| nonstopux*
)
libsuff= shlibsuff=
;;
*)
...
...
@@ -2903,11 +2959,13 @@ os2*)
osf3* | osf4* | osf5*)
version_type=osf
need_version=no
soname_spec='${libname}${release}.so'
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
need_lib_prefix=no
soname_spec='${libname}${release}.so$major'
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
shlibpath_var=LD_LIBRARY_PATH
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
hardcode_into_libs=yes
;;
sco3.2v5*)
...
...
@@ -2950,6 +3008,12 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
case $host_vendor in
sni)
shlibpath_overrides_runpath=no
need_lib_prefix=no
export_dynamic_flag_spec='${wl}-Blargedynsym'
runpath_var=LD_RUN_PATH
;;
siemens)
need_lib_prefix=no
;;
motorola)
need_lib_prefix=no
...
...
@@ -3104,7 +3168,7 @@ if test -f "$ltmain"; then
# Now quote all the things that may contain metacharacters while being
# careful not to overquote the AC_SUBSTed values. We take copies of the
# variables and quote the copies for generation of the libtool script.
for var in echo old_CC old_CFLAGS \
for var in echo old_CC old_CFLAGS
SED
\
AR AR_FLAGS CC LD LN_S NM SHELL \
reload_flag reload_cmds wl \
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
...
...
@@ -3166,8 +3230,11 @@ if test -f "$ltmain"; then
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# A sed that does not truncate output.
SED=$lt_SED
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="
sed
-e s/^X//"
Xsed="
${SED}
-e s/^X//"
# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
...
...
@@ -3836,6 +3903,7 @@ test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
ac_prog=ld
if test "$GCC" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
...
...
@@ -3849,8 +3917,8 @@ if test "$GCC" = yes; then
esac
case $ac_prog in
# Accept absolute paths.
[[\\/]
* | [A-Za-z]:[\\/]*)]
[re_direlt='/[^/][^/]*/\.\./']
[[\\/]
]* | [[A-Za-z]]:[[\\/]]*)
re_direlt='/[[^/]][[^/]]*/\.\./'
# Canonicalize the path of ld
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
...
...
@@ -3874,7 +3942,7 @@ else
fi
AC_CACHE_VAL(lt_cv_path_LD,
[if test -z "$LD"; then
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=
"${IFS}${PATH_SEPARATOR-:}"
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=
$PATH_SEPARATOR
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
...
...
@@ -3927,7 +3995,7 @@ test -n "$reload_flag" && reload_flag=" $reload_flag"
# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
# -- PORTME fill in with the dynamic library characteristics
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
[AC_CACHE_CHECK([how to recognise depend
a
nt libraries],
[AC_CACHE_CHECK([how to recognise depend
e
nt libraries],
lt_cv_deplibs_check_method,
[lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
...
...
@@ -3938,7 +4006,7 @@ lt_cv_deplibs_check_method='unknown'
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
#
['file_magic [regex]']
-- check by looking for files in library path
#
'file_magic [[regex]]'
-- check by looking for files in library path
# which responds to the $file_magic_cmd with a given egrep regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
...
...
@@ -3953,7 +4021,7 @@ beos*)
;;
bsdi4*)
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)']
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
lt_cv_file_magic_cmd='/usr/bin/file -L'
lt_cv_file_magic_test_file=/shlib/libc.so
;;
...
...
@@ -3982,7 +4050,7 @@ freebsd*)
i*86 )
# Not sure whether the presence of OpenBSD here was a mistake.
# Let's accept both of them until this is cleared up.
[lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library']
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
lt_cv_file_magic_cmd=/usr/bin/file
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
;;
...
...
@@ -3997,14 +4065,14 @@ gnu*)
;;
hpux10.20*|hpux11*)
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library']
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
lt_cv_file_magic_cmd=/usr/bin/file
lt_cv_file_magic_test_file=/usr/lib/libc.sl
;;
irix5* | irix6*)
irix5* | irix6*
| nonstopux*
)
case $host_os in
irix5*)
irix5*
| nonstopux*
)
# this will be overridden with pass_all, but let us keep it just in case
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
;;
...
...
@@ -4016,7 +4084,7 @@ irix5* | irix6*)
*) libmagic=never-match;;
esac
# this will be overridden with pass_all, but let us keep it just in case
[lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"]
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
;;
esac
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
...
...
@@ -4026,25 +4094,25 @@ irix5* | irix6*)
# This must be Linux ELF.
linux-gnu*)
case $host_cpu in
alpha* | hppa* | i*86 |
powerpc* | sparc* | ia64*
)
alpha* | hppa* | i*86 |
mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k
)
lt_cv_deplibs_check_method=pass_all ;;
*)
# glibc up to 2.1.1 does not perform some relocations on ARM
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;]
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
esac
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
;;
netbsd*)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
else
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$']
lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
fi
;;
newos6*)
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)']
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
lt_cv_file_magic_cmd=/usr/bin/file
lt_cv_file_magic_test_file=/usr/lib/libnls.so
;;
...
...
@@ -4075,14 +4143,14 @@ solaris*)
lt_cv_file_magic_test_file=/lib/libc.so
;;
[sysv5uw[78]* | sysv4*uw2*)]
sysv5uw[[78]]* | sysv4*uw2*)
lt_cv_deplibs_check_method=pass_all
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
case $host_vendor in
motorola)
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]']
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
;;
ncr)
...
...
@@ -4090,13 +4158,16 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
;;
sequent)
lt_cv_file_magic_cmd='/bin/file'
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )']
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
;;
sni)
lt_cv_file_magic_cmd='/bin/file'
[lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"]
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
lt_cv_file_magic_test_file=/lib/libc.so
;;
siemens)
lt_cv_deplibs_check_method=pass_all
;;
esac
;;
esac
...
...
@@ -4108,13 +4179,14 @@ deplibs_check_method=$lt_cv_deplibs_check_method
# AC_PROG_NM - find the path to a BSD-compatible name lister
AC_DEFUN([AC_PROG_NM],
[AC_MSG_CHECKING([for BSD-compatible nm])
[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
AC_MSG_CHECKING([for BSD-compatible nm])
AC_CACHE_VAL(lt_cv_path_NM,
[if test -n "$NM"; then
# Let the user override the test.
lt_cv_path_NM="$NM"
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=
"${IFS}${PATH_SEPARATOR-:}"
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=
$PATH_SEPARATOR
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
test -z "$ac_dir" && ac_dir=.
tmp_nm=$ac_dir/${ac_tool_prefix}nm
...
...
@@ -4161,12 +4233,12 @@ esac
])
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl convenience library and
INCLTD
L to the include flags for
# the libltdl convenience library and
LTDLINC
L to the include flags for
# the libltdl header and adds --enable-ltdl-convenience to the
# configure arguments. Note that LIBLTDL and
INCLTD
L are not
# configure arguments. Note that LIBLTDL and
LTDLINC
L are not
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
# with '${top_builddir}/' and
INCLTD
L will be prefixed with
# with '${top_builddir}/' and
LTDLINC
L will be prefixed with
# '${top_srcdir}/' (note the single quotes!). If your package is not
# flat and you're not using automake, define top_builddir and
# top_srcdir appropriately in the Makefiles.
...
...
@@ -4178,16 +4250,18 @@ AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
esac
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
# For backwards non-gettext consistent compatibility...
INCLTDL="$LTDLINCL"
])
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl installable library and
INCLTD
L to the include flags for
# the libltdl installable library and
LTDLINC
L to the include flags for
# the libltdl header and adds --enable-ltdl-install to the configure
# arguments. Note that LIBLTDL and
INCLTD
L are not AC_SUBSTed, nor is
# arguments. Note that LIBLTDL and
LTDLINC
L are not AC_SUBSTed, nor is
# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
# be prefixed with '${top_builddir}/' and
INCLTD
L will be prefixed
# be prefixed with '${top_builddir}/' and
LTDLINC
L will be prefixed
# with '${top_srcdir}/' (note the single quotes!). If your package is
# not flat and you're not using automake, define top_builddir and
# top_srcdir appropriately in the Makefiles.
...
...
@@ -4205,12 +4279,14 @@ AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
if test x"$enable_ltdl_install" = x"yes"; then
ac_configure_args="$ac_configure_args --enable-ltdl-install"
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
INCLTD
L='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
LTDLINC
L='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
else
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
LIBLTDL="-lltdl"
INCLTD
L=
LTDLINC
L=
fi
# For backwards non-gettext consistent compatibility...
INCLTDL="$LTDLINCL"
])
# old names
...
...
@@ -4225,6 +4301,95 @@ AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
# This is just to silence aclocal about the macro not being used
ifelse([AC_DISABLE_FAST_INSTALL])
# NOTE: This macro has been submitted for inclusion into #
# GNU Autoconf as AC_PROG_SED. When it is available in #
# a released version of Autoconf we should remove this #
# macro and use it instead. #
# LT_AC_PROG_SED
# --------------
# Check for a fully-functional sed program, that truncates
# as few characters as possible. Prefer GNU sed if found.
AC_DEFUN([LT_AC_PROG_SED],
[AC_MSG_CHECKING([for a sed that does not truncate output])
AC_CACHE_VAL(lt_cv_path_SED,
[# Loop through the user's path and test for sed and gsed.
# Then use that list of sed's as ones to test for truncation.
as_executable_p="test -f"
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in sed gsed; do
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
_sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
fi
done
done
done
# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
trap '{ (exit 1); exit 1; }' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.
: ${TMPDIR=/tmp}
{
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
test -n "$tmp" && test -d "$tmp"
} ||
{
tmp=$TMPDIR/sed$$-$RANDOM
(umask 077 && mkdir $tmp)
} ||
{
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
{ (exit 1); exit 1; }
}
_max=0
_count=0
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
# along with /bin/sed that truncates output.
for _sed in $_sed_list /usr/xpg4/bin/sed; do
test ! -f ${_sed} && break
cat /dev/null > "$tmp/sed.in"
_count=0
echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
# Check for GNU sed and select it if it is found.
if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
lt_cv_path_SED=${_sed}
break
fi
while true; do
cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
mv "$tmp/sed.tmp" "$tmp/sed.in"
cp "$tmp/sed.in" "$tmp/sed.nl"
echo >>"$tmp/sed.nl"
${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
# 40000 chars as input seems more than enough
test $_count -gt 10 && break
_count=`expr $_count + 1`
if test $_count -gt $_max; then
_max=$_count
lt_cv_path_SED=$_sed
fi
done
done
rm -rf "$tmp"
])
if test "X$SED" != "X"; then
lt_cv_path_SED=$SED
else
SED=$lt_cv_path_SED
fi
AC_MSG_RESULT([$SED])
])
# ao.m4
# Configure paths for libao
# Jack Moffitt <jack@icecast.org> 10-21-2000
...
...
@@ -4497,7 +4662,6 @@ dnl
#include <stdlib.h>
#include <string.h>
#include <vorbis/codec.h>
#include <vorbis/vorbisenc.h>
int main ()
{
...
...
@@ -4506,7 +4670,7 @@ int main ()
vorbis_info vi;
vorbis_info_init (&vi);
vorbis_encode_init (&vi, 2, 44100, -1, 128
000
, -1);
vorbis_encode_init (&vi, 2, 44100, -1, 128, -1);
vorbis_analysis_init (&vd, &vi);
vorbis_block_init (&vd, &vb);
/* this function was added in 1.0rc3, so this is what we're testing for */
...
...
@@ -4531,7 +4695,7 @@ int main ()
else
echo "*** Could not run Vorbis test program, checking why..."
CFLAGS="$CFLAGS $VORBIS_CFLAGS"
LIBS="$LIBS $VORBIS_LIBS $
VORBISENC_LIBS $
OGG_LIBS"
LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
AC_TRY_LINK([
#include <stdio.h>
#include <vorbis/codec.h>
...
...
audio.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -17,14 +17,106 @@
*/
#include "audio.h"
#include "conf.h"
#include <string.h>
int
audio_ao_driver_id
;
ao_option
*
audio_ao_options
;
void
initAudioDriver
()
{
ao_info
*
ai
;
char
*
dup
;
char
*
stk1
;
char
*
stk2
;
char
*
n1
;
char
*
key
;
char
*
value
;
/*int found;
int i;*/
audio_ao_options
=
NULL
;
ao_initialize
();
if
(
strcmp
(
AUDIO_AO_DRIVER_DEFAULT
,(
getConf
())[
CONF_AO_DRIVER
])
==
0
)
{
audio_ao_driver_id
=
ao_default_driver_id
();
}
else
if
((
audio_ao_driver_id
=
ao_driver_id
((
getConf
())[
CONF_AO_DRIVER
]))
<
0
)
{
fprintf
(
stderr
,
"
\"
%s
\"
is not a valid ao driver
\n
"
,
(
getConf
())[
CONF_AO_DRIVER
]);
exit
(
-
1
);
}
if
((
ai
=
ao_driver_info
(
audio_ao_driver_id
))
==
NULL
)
{
fprintf
(
stderr
,
"problems getting ao_driver_info
\n
"
);
exit
(
-
1
);
}
dup
=
strdup
((
getConf
())[
CONF_AO_DRIVER_OPTIONS
]);
if
(
strlen
(
dup
))
{
stk1
=
NULL
;
n1
=
strtok_r
(
dup
,
";"
,
&
stk1
);
while
(
n1
)
{
stk2
=
NULL
;
key
=
strtok_r
(
n1
,
"="
,
&
stk2
);
if
(
!
key
)
{
fprintf
(
stderr
,
"problems parsing "
"ao_driver_options
\"
%s
\"\n
"
,
n1
);
exit
(
-
1
);
}
/*found = 0;
for(i=0;i<ai->option_count;i++) {
printf("option: %s\n",ai->options[i]);
if(strcmp(ai->options[i],key)==0) {
found = 1;
break;
}
}
if(!found) {
fprintf(stderr,"\"%s\" is not an option for "
"\"%s\" ao driver\n",key,
ai->short_name);
exit(-1);
}*/
value
=
strtok_r
(
NULL
,
""
,
&
stk2
);
if
(
!
value
)
{
fprintf
(
stderr
,
"problems parsing "
"ao_driver_options
\"
%s
\"\n
"
,
n1
);
exit
(
-
1
);
}
ao_append_option
(
&
audio_ao_options
,
key
,
value
);
n1
=
strtok_r
(
NULL
,
";"
,
&
stk1
);
}
}
free
(
dup
);
ao_shutdown
();
}
void
finishAudioDriver
()
{
ao_free_options
(
audio_ao_options
);
}
void
initAudio
()
{
ao_initialize
();
audio_ao_driver_id
=
ao_default_driver_id
();
}
void
finishAudio
()
{
ao_shutdown
();
}
void
audioError
()
{
fprintf
(
stderr
,
"Error opening audio device
\n
"
);
if
(
errno
==
AO_ENOTLIVE
)
{
fprintf
(
stderr
,
"not a live ao device
\n
"
);
}
else
if
(
errno
==
AO_EOPENDEVICE
)
{
fprintf
(
stderr
,
"not able to open audio device
\n
"
);
}
else
if
(
errno
==
AO_EBADOPTION
)
{
fprintf
(
stderr
,
"bad driver option
\n
"
);
}
perror
(
"ao error"
);
fflush
(
stderr
);
}
audio.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -19,13 +19,22 @@
#ifndef AUDIO_H
#define AUDIO_H
#define AUDIO_AO_DRIVER_DEFAULT "default"
#include <stdio.h>
#include <ao/ao.h>
extern
int
audio_ao_driver_id
;
extern
ao_option
*
audio_ao_options
;
void
initAudioDriver
();
void
finishAudioDriver
();
void
initAudio
();
void
finishAudio
();
void
audioError
();
#endif
buffer.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
buffer.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
buffer2array.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -33,7 +33,7 @@ int buffer2array(char * origBuffer, char *** array) {
char
*
markArray
=
malloc
(
sizeof
(
char
)
*
(
bufferLength
+
1
));
for
(
curr
=
0
;
curr
<
bufferLength
;
curr
++
)
{
if
(
!
quotes
&&
buffer
[
curr
]
==
' '
)
{
if
(
!
quotes
&&
(
buffer
[
curr
]
==
' '
||
buffer
[
curr
]
==
'\t'
)
)
{
markArray
[
curr
]
=
'0'
;
}
else
if
(
buffer
[
curr
]
==
'\"'
)
{
...
...
buffer2array.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
command.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -58,6 +58,7 @@
#define COMMAND_REPEAT "repeat"
#define COMMAND_STATS "stats"
#define COMMAND_CLEAR_ERROR "clearerror"
#define COMMAND_LIST "list"
#define COMMAND_STATUS_VOLUME "volume"
#define COMMAND_STATUS_STATE "state"
...
...
@@ -358,7 +359,16 @@ int processCommand(FILE * fp, int argArrayLength, char ** argArray) {
return
-
1
;
}
if
(
argArrayLength
==
2
)
directory
=
argArray
[
1
];
printAllIn
(
fp
,
directory
);
return
printAllIn
(
fp
,
directory
);
}
else
if
(
0
==
strcmp
(
argArray
[
0
],
COMMAND_LIST
))
{
char
*
arg1
=
NULL
;
if
(
argArrayLength
>
3
)
{
myfprintf
(
fp
,
"%s wrong number of arguments for
\"
%s
\"\n
"
,
COMMAND_RESPOND_ERROR
,
argArray
[
0
]);
return
-
1
;
}
if
(
argArrayLength
==
3
)
arg1
=
argArray
[
2
];
return
printAllKeysOfTable
(
fp
,
argArray
[
1
],
arg1
);
}
else
if
(
0
==
strcmp
(
argArray
[
0
],
COMMAND_STATS
))
{
if
(
argArrayLength
!=
1
)
{
...
...
command.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
conf.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -20,6 +20,7 @@
#include "utils.h"
#include "buffer2array.h"
#include "audio.h"
#include <sys/param.h>
#include <stdio.h>
...
...
@@ -28,20 +29,26 @@
#define MAX_STRING_SIZE MAXPATHLEN+80
#define CONF_NUMBER_OF_PARAMS 13
#define CONF_COMMENT '#'
#define CONF_NUMBER_OF_PARAMS 17
#define CONF_NUMBER_OF_PATHS 4
#define CONF_NUMBER_OF_REQUIRED 5
#define CONF_CONNECTION_TIMEOUT_DEFAULT "60"
#define CONF_MIXER_DEVICE_DEFAULT "/dev/mixer"
#define CONF_MAX_CONNECTIONS_DEFAULT "5"
#define CONF_MAX_PLAYLIST_LENGTH_DEFAULT "4096"
#define CONF_BUFFER_BEFORE_PLAY_DEFAULT "25%"
#define CONF_STOP_ON_ERROR_DEFAULT "yes"
#define CONF_MAX_COMMAND_LIST_SIZE_DEFAULT "2048"
#define CONF_MAX_OUTPUT_BUFFER_SIZE_DEFAULT "2048"
char
conf_strings
[
CONF_NUMBER_OF_PARAMS
][
24
]
=
{
#define CONF_CONNECTION_TIMEOUT_DEFAULT "60"
#define CONF_MIXER_DEVICE_DEFAULT "/dev/mixer"
#define CONF_MAX_CONNECTIONS_DEFAULT "5"
#define CONF_MAX_PLAYLIST_LENGTH_DEFAULT "4096"
#define CONF_BUFFER_BEFORE_PLAY_DEFAULT "25%"
#define CONF_STOP_ON_ERROR_DEFAULT "yes"
#define CONF_MAX_COMMAND_LIST_SIZE_DEFAULT "2048"
#define CONF_MAX_OUTPUT_BUFFER_SIZE_DEFAULT "2048"
#define CONF_AO_DRIVER_DEFAULT AUDIO_AO_DRIVER_DEFAULT
#define CONF_AO_DRIVER_OPTIONS_DEFAULT ""
#define CONF_SAVE_ABSOLUTE_PATHS_IN_PLAYLISTS_DEFAULT "no"
#define CONF_BIND_TO_ADDRESS_DEFAULT "any"
char
*
conf_strings
[
CONF_NUMBER_OF_PARAMS
]
=
{
"port"
,
"music_directory"
,
"playlist_directory"
,
...
...
@@ -54,7 +61,11 @@ char conf_strings[CONF_NUMBER_OF_PARAMS][24] = {
"buffer_before_play"
,
"stop_on_error"
,
"max_command_list_size"
,
"max_output_buffer_size"
"max_output_buffer_size"
,
"ao_driver"
,
"ao_driver_options"
,
"save_absolute_paths_in_playlists"
,
"bind_to_address"
};
int
conf_absolutePaths
[
CONF_NUMBER_OF_PATHS
]
=
{
...
...
@@ -88,6 +99,10 @@ void initConf() {
conf_params
[
CONF_STOP_ON_ERROR
]
=
strdup
(
CONF_STOP_ON_ERROR_DEFAULT
);
conf_params
[
CONF_MAX_COMMAND_LIST_SIZE
]
=
strdup
(
CONF_MAX_COMMAND_LIST_SIZE_DEFAULT
);
conf_params
[
CONF_MAX_OUTPUT_BUFFER_SIZE
]
=
strdup
(
CONF_MAX_OUTPUT_BUFFER_SIZE_DEFAULT
);
conf_params
[
CONF_AO_DRIVER
]
=
strdup
(
CONF_AO_DRIVER_DEFAULT
);
conf_params
[
CONF_AO_DRIVER_OPTIONS
]
=
strdup
(
CONF_AO_DRIVER_OPTIONS_DEFAULT
);
conf_params
[
CONF_SAVE_ABSOLUTE_PATHS_IN_PLAYLISTS
]
=
strdup
(
CONF_SAVE_ABSOLUTE_PATHS_IN_PLAYLISTS_DEFAULT
);
conf_params
[
CONF_BIND_TO_ADDRESS
]
=
strdup
(
CONF_BIND_TO_ADDRESS_DEFAULT
);
}
char
**
readConf
(
char
*
file
)
{
...
...
@@ -95,6 +110,7 @@ char ** readConf(char * file) {
char
string
[
MAX_STRING_SIZE
+
1
];
char
**
array
;
int
i
;
int
numberOfArgs
;
if
(
!
(
fp
=
fopen
(
file
,
"r"
)))
{
fprintf
(
stderr
,
"problems opening file %s for reading
\n
"
,
file
);
...
...
@@ -102,7 +118,10 @@ char ** readConf(char * file) {
}
while
(
myFgets
(
string
,
sizeof
(
string
),
fp
))
{
if
(
2
!=
buffer2array
(
string
,
&
array
))
{
if
(
string
[
0
]
==
CONF_COMMENT
)
continue
;
numberOfArgs
=
buffer2array
(
string
,
&
array
);
if
(
numberOfArgs
==
0
)
continue
;
if
(
2
!=
numberOfArgs
)
{
fprintf
(
stderr
,
"need two args in conf at: %s
\n
"
,
string
);
exit
(
-
1
);
}
...
...
conf.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -19,19 +19,23 @@
#ifndef CONF_H
#define CONF_H
#define CONF_PORT 0
#define CONF_MUSIC_DIRECTORY 1
#define CONF_PLAYLIST_DIRECTORY 2
#define CONF_LOG_FILE 3
#define CONF_ERROR_FILE 4
#define CONF_CONNECTION_TIMEOUT 5
#define CONF_MIXER_DEVICE 6
#define CONF_MAX_CONNECTIONS 7
#define CONF_MAX_PLAYLIST_LENGTH 8
#define CONF_BUFFER_BEFORE_PLAY 9
#define CONF_STOP_ON_ERROR 10
#define CONF_MAX_COMMAND_LIST_SIZE 11
#define CONF_MAX_OUTPUT_BUFFER_SIZE 12
#define CONF_PORT 0
#define CONF_MUSIC_DIRECTORY 1
#define CONF_PLAYLIST_DIRECTORY 2
#define CONF_LOG_FILE 3
#define CONF_ERROR_FILE 4
#define CONF_CONNECTION_TIMEOUT 5
#define CONF_MIXER_DEVICE 6
#define CONF_MAX_CONNECTIONS 7
#define CONF_MAX_PLAYLIST_LENGTH 8
#define CONF_BUFFER_BEFORE_PLAY 9
#define CONF_STOP_ON_ERROR 10
#define CONF_MAX_COMMAND_LIST_SIZE 11
#define CONF_MAX_OUTPUT_BUFFER_SIZE 12
#define CONF_AO_DRIVER 13
#define CONF_AO_DRIVER_OPTIONS 14
#define CONF_SAVE_ABSOLUTE_PATHS_IN_PLAYLISTS 15
#define CONF_BIND_TO_ADDRESS 16
/* do not free the return value, it is a static variable */
char
**
readConf
(
char
*
file
);
...
...
config.guess
View file @
53f5a137
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
2000, 2001
# Free Software Foundation, Inc.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
#
2000, 2001, 2002, 2003
Free Software Foundation, Inc.
timestamp
=
'200
1-08-23
'
timestamp
=
'200
3-05-19
'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
...
...
@@ -24,8 +24,9 @@ timestamp='2001-08-23'
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Written by Per Bothner <bothner@cygnus.com>.
# Please send patches to <config-patches@gnu.org>.
# Originally written by Per Bothner <per@bothner.com>.
# Please send patches to <config-patches@gnu.org>. Submit a context
# diff and a properly formatted ChangeLog entry.
#
# This script attempts to guess a canonical system name similar to
# config.sub. If it succeeds, it prints the system name on stdout, and
...
...
@@ -87,30 +88,41 @@ if test $# != 0; then
exit
1
fi
trap
'exit 1'
1 2 15
dummy
=
dummy-
$$
trap
'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1'
1 2 15
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
# compiler to aid in system detection is discouraged as it requires
# temporary files to be created and, as you can see below, it is a
# headache to deal with in a portable fashion.
# CC_FOR_BUILD -- compiler used by this script.
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
# use `HOST_CC' if defined, but it is deprecated.
set_cc_for_build
=
'case $CC_FOR_BUILD,$HOST_CC,$CC in
,,) echo "int dummy(){}" > $dummy.c ;
for c in cc gcc c89 ; do
($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ;
if test $? = 0 ; then
# Portable tmp directory creation inspired by the Autoconf team.
set_cc_for_build
=
'
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
: ${TMPDIR=/tmp} ;
{ tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
dummy=$tmp/dummy ;
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
case $CC_FOR_BUILD,$HOST_CC,$CC in
,,) echo "int x;" > $dummy.c ;
for c in cc gcc c89 c99 ; do
if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
CC_FOR_BUILD="$c"; break ;
fi ;
done ;
rm -f $dummy.c $dummy.o $dummy.rel ;
if test x"$CC_FOR_BUILD" = x ; then
CC_FOR_BUILD=no_compiler_found ;
fi
;;
,,*) CC_FOR_BUILD=$CC ;;
,*,*) CC_FOR_BUILD=$HOST_CC ;;
esac'
esac
;
'
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# (ghazi@noc.rutgers.edu 1994-08-24)
...
...
@@ -127,29 +139,30 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
case
"
${
UNAME_MACHINE
}
:
${
UNAME_SYSTEM
}
:
${
UNAME_RELEASE
}
:
${
UNAME_VERSION
}
"
in
*
:NetBSD:
*
:
*
)
# Net
bsd
(nbsd) targets should (where applicable) match one or
# Net
BSD
(nbsd) targets should (where applicable) match one or
# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
# switched to ELF, *-*-netbsd* would select the old
# object file format. This provides both forward
# compatibility and a consistent mechanism for selecting the
# object file format.
# Determine the machine/vendor (is the vendor relevant).
case
"
${
UNAME_MACHINE
}
"
in
amiga
)
machine
=
m68k-unknown
;;
arm32
)
machine
=
arm-unknown
;;
atari
*
)
machine
=
m68k-atari
;;
sun3
*
)
machine
=
m68k-sun
;;
mac68k
)
machine
=
m68k-apple
;;
macppc
)
machine
=
powerpc-apple
;;
hp3[0-9][05]
)
machine
=
m68k-hp
;;
ibmrt|romp-ibm
)
machine
=
romp-ibm
;;
*
)
machine
=
${
UNAME_MACHINE
}
-unknown
;;
#
# Note: NetBSD doesn't particularly care about the vendor
# portion of the name. We always set it to "unknown".
sysctl
=
"sysctl -n hw.machine_arch"
UNAME_MACHINE_ARCH
=
`
(
/sbin/
$sysctl
2>/dev/null
||
\
/usr/sbin/
$sysctl
2>/dev/null
||
echo
unknown
)
`
case
"
${
UNAME_MACHINE_ARCH
}
"
in
armeb
)
machine
=
armeb-unknown
;;
arm
*
)
machine
=
arm-unknown
;;
sh3el
)
machine
=
shl-unknown
;;
sh3eb
)
machine
=
sh-unknown
;;
*
)
machine
=
${
UNAME_MACHINE_ARCH
}
-unknown
;;
esac
# The Operating System including object format, if it has switched
# to ELF recently, or will in the future.
case
"
${
UNAME_MACHINE
}
"
in
i386|sparc|amiga|arm
*
|
hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3
*
|
x68k
)
case
"
${
UNAME_MACHINE
_ARCH
}
"
in
arm
*
|
i386|m68k|ns32k|sh3
*
|
sparc|vax
)
eval
$set_cc_for_build
if
echo
__ELF__ |
$CC_FOR_BUILD
-E
- 2>/dev/null
\
|
grep
__ELF__
>
/dev/null
...
...
@@ -166,73 +179,107 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
;;
esac
# The OS release
release
=
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[-_].*/\./'
`
# Debian GNU/NetBSD machines have a different userland, and
# thus, need a distinct triplet. However, they do not need
# kernel version information, so it can be replaced with a
# suitable tag, in the style of linux-gnu.
case
"
${
UNAME_VERSION
}
"
in
Debian
*
)
release
=
'-gnu'
;;
*
)
release
=
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[-_].*/\./'
`
;;
esac
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
# contains redundant information, the shorter form:
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
echo
"
${
machine
}
-
${
os
}${
release
}
"
exit
0
;;
amiga:OpenBSD:
*
:
*
)
echo
m68k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
arc:OpenBSD:
*
:
*
)
echo
mipsel-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
hp300:OpenBSD:
*
:
*
)
echo
m68k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
mac68k:OpenBSD:
*
:
*
)
echo
m68k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
macppc:OpenBSD:
*
:
*
)
echo
powerpc-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
mvme68k:OpenBSD:
*
:
*
)
echo
m68k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
mvme88k:OpenBSD:
*
:
*
)
echo
m88k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
mvmeppc:OpenBSD:
*
:
*
)
echo
powerpc-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
pmax:OpenBSD:
*
:
*
)
echo
mipsel-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
sgi:OpenBSD:
*
:
*
)
echo
mipseb-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
sun3:OpenBSD:
*
:
*
)
echo
m68k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
wgrisc:OpenBSD:
*
:
*
)
echo
mipsel-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
*
:OpenBSD:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
alpha:OSF1:
*
:
*
)
if
test
$UNAME_RELEASE
=
"V4.0"
;
then
UNAME_RELEASE
=
`
/usr/sbin/sizer
-v
|
awk
'{print $3}'
`
fi
# According to Compaq, /usr/sbin/psrinfo has been available on
# OSF/1 and Tru64 systems produced since 1995. I hope that
# covers most systems running today. This code pipes the CPU
# types through head -n 1, so we only detect the type of CPU 0.
ALPHA_CPU_TYPE
=
`
/usr/sbin/psrinfo
-v
|
sed
-n
-e
's/^ The alpha \(.*\) processor.*$/\1/p'
|
head
-n
1
`
case
"
$ALPHA_CPU_TYPE
"
in
"EV4 (21064)"
)
UNAME_MACHINE
=
"alpha"
;;
"EV4.5 (21064)"
)
UNAME_MACHINE
=
"alpha"
;;
"LCA4 (21066/21068)"
)
UNAME_MACHINE
=
"alpha"
;;
"EV5 (21164)"
)
UNAME_MACHINE
=
"alphaev5"
;;
"EV5.6 (21164A)"
)
UNAME_MACHINE
=
"alphaev56"
;;
"EV5.6 (21164PC)"
)
UNAME_MACHINE
=
"alphapca56"
;;
"EV5.7 (21164PC)"
)
UNAME_MACHINE
=
"alphapca57"
;;
"EV6 (21264)"
)
UNAME_MACHINE
=
"alphaev6"
;;
"EV6.7 (21264A)"
)
UNAME_MACHINE
=
"alphaev67"
;;
"EV6.8CB (21264C)"
)
UNAME_MACHINE
=
"alphaev68"
;;
"EV6.8AL (21264B)"
)
UNAME_MACHINE
=
"alphaev68"
;;
"EV6.8CX (21264D)"
)
UNAME_MACHINE
=
"alphaev68"
;;
"EV6.9A (21264/EV69A)"
)
UNAME_MACHINE
=
"alphaev69"
;;
"EV7 (21364)"
)
UNAME_MACHINE
=
"alphaev7"
;;
"EV7.9 (21364A)"
)
UNAME_MACHINE
=
"alphaev79"
;;
esac
# A Vn.n version is a released version.
# A Tn.n version is a released field test version.
# A Xn.n version is an unreleased experimental baselevel.
# 1.2 uses "1.2" for uname -r.
cat
<<
EOF
>
$dummy
.s
.data
\
$Lformat
:
.byte 37,100,45,37,120,10,0 # "%d-%x\n"
.text
.globl main
.align 4
.ent main
main:
.frame \
$30
,16,\
$26
,0
ldgp \
$29
,0(\
$27
)
.prologue 1
.long 0x47e03d80 # implver \
$0
lda \
$2
,-1
.long 0x47e20c21 # amask \
$2
,\
$1
lda \
$16
,\
$Lformat
mov \
$0
,\
$17
not \
$1
,\
$18
jsr \
$26
,printf
ldgp \
$29
,0(\
$26
)
mov 0,\
$16
jsr \
$26
,exit
.end main
EOF
eval
$set_cc_for_build
$CC_FOR_BUILD
$dummy
.s
-o
$dummy
2>/dev/null
if
test
"
$?
"
=
0
;
then
case
`
./
$dummy
`
in
0-0
)
UNAME_MACHINE
=
"alpha"
;;
1-0
)
UNAME_MACHINE
=
"alphaev5"
;;
1-1
)
UNAME_MACHINE
=
"alphaev56"
;;
1-101
)
UNAME_MACHINE
=
"alphapca56"
;;
2-303
)
UNAME_MACHINE
=
"alphaev6"
;;
2-307
)
UNAME_MACHINE
=
"alphaev67"
;;
2-1307
)
UNAME_MACHINE
=
"alphaev68"
;;
esac
fi
rm
-f
$dummy
.s
$dummy
echo
${
UNAME_MACHINE
}
-dec-osf
`
echo
${
UNAME_RELEASE
}
|
sed
-e
's/^[VTX]//'
|
tr
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
'abcdefghijklmnopqrstuvwxyz'
`
exit
0
;;
Alpha
\
*
:Windows_NT
*
:
*
)
...
...
@@ -247,29 +294,11 @@ EOF
Amiga
*
:UNIX_System_V:4.0:
*
)
echo
m68k-unknown-sysv4
exit
0
;;
amiga:OpenBSD:
*
:
*
)
echo
m68k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
*
:[Aa]miga[Oo][Ss]:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-amigaos
exit
0
;;
arc64:OpenBSD:
*
:
*
)
echo
mips64el-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
arc:OpenBSD:
*
:
*
)
echo
mipsel-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
hkmips:OpenBSD:
*
:
*
)
echo
mips-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
pmax:OpenBSD:
*
:
*
)
echo
mipsel-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
sgi:OpenBSD:
*
:
*
)
echo
mips-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
wgrisc:OpenBSD:
*
:
*
)
echo
mipsel-unknown-openbsd
${
UNAME_RELEASE
}
*
:[Mm]orph[Oo][Ss]:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-morphos
exit
0
;;
*
:OS/390:
*
:
*
)
echo
i370-ibm-openedition
...
...
@@ -291,6 +320,10 @@ EOF
NILE
*
:
*
:
*
:dcosx
)
echo
pyramid-pyramid-svr4
exit
0
;;
DRS?6000:UNIX_SV:4.2
*
:7
*
)
case
`
/usr/bin/uname
-p
`
in
sparc
)
echo
sparc-icl-nx7
&&
exit
0
;;
esac
;;
sun4H:SunOS:5.
*
:
*
)
echo
sparc-hal-solaris2
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[^.]*//'
`
exit
0
;;
...
...
@@ -319,7 +352,7 @@ EOF
echo
m68k-sun-sunos
${
UNAME_RELEASE
}
exit
0
;;
sun
*
:
*
:4.2BSD:
*
)
UNAME_RELEASE
=
`
(
head
-1
/etc/motd |
awk
'{print substr($5,1,3)}'
)
2>/dev/null
`
UNAME_RELEASE
=
`
(
sed
1q
/etc/motd |
awk
'{print substr($5,1,3)}'
)
2>/dev/null
`
test
"x
${
UNAME_RELEASE
}
"
=
"x"
&&
UNAME_RELEASE
=
3
case
"
`
/bin/arch
`
"
in
sun3
)
...
...
@@ -333,12 +366,6 @@ EOF
aushp:SunOS:
*
:
*
)
echo
sparc-auspex-sunos
${
UNAME_RELEASE
}
exit
0
;;
sparc
*
:NetBSD:
*
)
echo
`
uname
-p
`
-unknown-netbsd
${
UNAME_RELEASE
}
exit
0
;;
atari
*
:OpenBSD:
*
:
*
)
echo
m68k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
# The situation for MiNT is a little confusing. The machine name
# can be virtually everything (everything which is not
# "atarist" or "atariste" at least should have a processor
...
...
@@ -365,18 +392,6 @@ EOF
*
:
*
MiNT:
*
:
*
|
*
:
*
mint:
*
:
*
|
*
:
*
TOS:
*
:
*
)
echo
m68k-unknown-mint
${
UNAME_RELEASE
}
exit
0
;;
sun3
*
:OpenBSD:
*
:
*
)
echo
m68k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
mac68k:OpenBSD:
*
:
*
)
echo
m68k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
mvme68k:OpenBSD:
*
:
*
)
echo
m68k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
mvme88k:OpenBSD:
*
:
*
)
echo
m88k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
powerpc:machten:
*
:
*
)
echo
powerpc-apple-machten
${
UNAME_RELEASE
}
exit
0
;;
...
...
@@ -393,6 +408,7 @@ EOF
echo
clipper-intergraph-clix
${
UNAME_RELEASE
}
exit
0
;;
mips:
*
:
*
:UMIPS
|
mips:
*
:
*
:RISCos
)
eval
$set_cc_for_build
sed
's/^ //'
<<
EOF
>
$dummy
.c
#ifdef __cplusplus
#include <stdio.h> /* for printf() prototype */
...
...
@@ -414,16 +430,20 @@ EOF
exit (-1);
}
EOF
eval
$set_cc_for_build
$CC_FOR_BUILD
$dummy
.c
-o
$dummy
\
&&
./
$dummy
`
echo
"
${
UNAME_RELEASE
}
"
|
sed
-n
's/\([0-9]*\).*/\1/p'
`
\
&&
rm
-f
$dummy
.c
$dummy
&&
exit
0
rm
-f
$dummy
.c
$dummy
$CC_FOR_BUILD
-o
$dummy
$dummy
.c
\
&&
$dummy
`
echo
"
${
UNAME_RELEASE
}
"
|
sed
-n
's/\([0-9]*\).*/\1/p'
`
\
&&
exit
0
echo
mips-mips-riscos
${
UNAME_RELEASE
}
exit
0
;;
Motorola:PowerMAX_OS:
*
:
*
)
echo
powerpc-motorola-powermax
exit
0
;;
Motorola:
*
:4.3:PL8-
*
)
echo
powerpc-harris-powermax
exit
0
;;
Night_Hawk:
*
:
*
:PowerMAX_OS
|
Synergy:PowerMAX_OS:
*
:
*
)
echo
powerpc-harris-powermax
exit
0
;;
Night_Hawk:Power_UNIX:
*
:
*
)
echo
powerpc-harris-powerunix
exit
0
;;
...
...
@@ -484,6 +504,7 @@ EOF
exit
0
;;
*
:AIX:2:3
)
if
grep
bos325 /usr/include/stdio.h
>
/dev/null 2>&1
;
then
eval
$set_cc_for_build
sed
's/^ //'
<<
EOF
>
$dummy
.c
#include <sys/systemcfg.h>
...
...
@@ -495,9 +516,7 @@ EOF
exit(0);
}
EOF
eval
$set_cc_for_build
$CC_FOR_BUILD
$dummy
.c
-o
$dummy
&&
./
$dummy
&&
rm
-f
$dummy
.c
$dummy
&&
exit
0
rm
-f
$dummy
.c
$dummy
$CC_FOR_BUILD
-o
$dummy
$dummy
.c
&&
$dummy
&&
exit
0
echo
rs6000-ibm-aix3.2.5
elif
grep
bos324 /usr/include/stdio.h
>
/dev/null 2>&1
;
then
echo
rs6000-ibm-aix3.2.4
...
...
@@ -506,7 +525,7 @@ EOF
fi
exit
0
;;
*
:AIX:
*
:[45]
)
IBM_CPU_ID
=
`
/usr/sbin/lsdev
-C
-c
processor
-S
available |
head
-1
|
awk
'{ print $1 }'
`
IBM_CPU_ID
=
`
/usr/sbin/lsdev
-C
-c
processor
-S
available |
sed
1q
|
awk
'{ print $1 }'
`
if
/usr/sbin/lsattr
-El
${
IBM_CPU_ID
}
|
grep
' POWER'
>
/dev/null 2>&1
;
then
IBM_ARCH
=
rs6000
else
...
...
@@ -546,10 +565,8 @@ EOF
9000/31?
)
HP_ARCH
=
m68000
;;
9000/[34]??
)
HP_ARCH
=
m68k
;;
9000/[678][0-9][0-9]
)
case
"
${
HPUX_REV
}
"
in
11.[0-9][0-9]
)
if
[
-x
/usr/bin/getconf
]
;
then
sc_cpu_version
=
`
/usr/bin/getconf SC_CPU_VERSION 2>/dev/null
`
if
[
-x
/usr/bin/getconf
]
;
then
sc_cpu_version
=
`
/usr/bin/getconf SC_CPU_VERSION 2>/dev/null
`
sc_kernel_bits
=
`
/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null
`
case
"
${
sc_cpu_version
}
"
in
523
)
HP_ARCH
=
"hppa1.0"
;;
# CPU_PA_RISC1_0
...
...
@@ -558,12 +575,13 @@ EOF
case
"
${
sc_kernel_bits
}
"
in
32
)
HP_ARCH
=
"hppa2.0n"
;;
64
)
HP_ARCH
=
"hppa2.0w"
;;
''
)
HP_ARCH
=
"hppa2.0"
;;
# HP-UX 10.20
esac
;;
esac
fi
;;
esac
if
[
"
${
HP_ARCH
}
"
=
""
]
;
then
sed
's/^ //'
<<
EOF
>
$dummy
.c
fi
if
[
"
${
HP_ARCH
}
"
=
""
]
;
then
eval
$set_cc_for_build
sed
's/^ //'
<<
EOF
>
$dummy
.c
#define _HPUX_SOURCE
#include <stdlib.h>
...
...
@@ -596,12 +614,21 @@ EOF
exit (0);
}
EOF
eval
$set_cc_for_build
(
CCOPTS
=
$CC_FOR_BUILD
$dummy
.c
-o
$dummy
2>/dev/null
)
&&
HP_ARCH
=
`
./
$dummy
`
if
test
-z
"
$HP_ARCH
"
;
then
HP_ARCH
=
hppa
;
fi
rm
-f
$dummy
.c
$dummy
fi
;;
(
CCOPTS
=
$CC_FOR_BUILD
-o
$dummy
$dummy
.c 2>/dev/null
)
&&
HP_ARCH
=
`
$dummy
`
test
-z
"
$HP_ARCH
"
&&
HP_ARCH
=
hppa
fi
;;
esac
if
[
${
HP_ARCH
}
=
"hppa2.0w"
]
then
# avoid double evaluation of $set_cc_for_build
test
-n
"
$CC_FOR_BUILD
"
||
eval
$set_cc_for_build
if
echo
__LP64__ |
(
CCOPTS
=
$CC_FOR_BUILD
-E
-
)
|
grep
__LP64__
>
/dev/null
then
HP_ARCH
=
"hppa2.0w"
else
HP_ARCH
=
"hppa64"
fi
fi
echo
${
HP_ARCH
}
-hp-hpux
${
HPUX_REV
}
exit
0
;;
ia64:HP-UX:
*
:
*
)
...
...
@@ -609,6 +636,7 @@ EOF
echo
ia64-hp-hpux
${
HPUX_REV
}
exit
0
;;
3050
*
:HI-UX:
*
:
*
)
eval
$set_cc_for_build
sed
's/^ //'
<<
EOF
>
$dummy
.c
#include <unistd.h>
int
...
...
@@ -634,9 +662,7 @@ EOF
exit (0);
}
EOF
eval
$set_cc_for_build
$CC_FOR_BUILD
$dummy
.c
-o
$dummy
&&
./
$dummy
&&
rm
-f
$dummy
.c
$dummy
&&
exit
0
rm
-f
$dummy
.c
$dummy
$CC_FOR_BUILD
-o
$dummy
$dummy
.c
&&
$dummy
&&
exit
0
echo
unknown-hitachi-hiuxwe2
exit
0
;;
9000/7??:4.3bsd:
*
:
*
|
9000/8?[79]:4.3bsd:
*
:
*
)
...
...
@@ -664,9 +690,6 @@ EOF
parisc
*
:Lites
*
:
*
:
*
)
echo
hppa1.1-hp-lites
exit
0
;;
hppa
*
:OpenBSD:
*
:
*
)
echo
hppa-unknown-openbsd
exit
0
;;
C1
*
:ConvexOS:
*
:
*
|
convex:ConvexOS:C1
*
:
*
)
echo
c1-convex-bsd
exit
0
;;
...
...
@@ -685,9 +708,6 @@ EOF
C4
*
:ConvexOS:
*
:
*
|
convex:ConvexOS:C4
*
:
*
)
echo
c4-convex-bsd
exit
0
;;
CRAY
*
X-MP:
*
:
*
:
*
)
echo
xmp-cray-unicos
exit
0
;;
CRAY
*
Y-MP:
*
:
*
:
*
)
echo
ymp-cray-unicos
${
UNAME_RELEASE
}
|
sed
-e
's/\.[^.]*$/.X/'
exit
0
;;
...
...
@@ -700,27 +720,21 @@ EOF
CRAY
*
TS:
*
:
*
:
*
)
echo
t90-cray-unicos
${
UNAME_RELEASE
}
|
sed
-e
's/\.[^.]*$/.X/'
exit
0
;;
CRAY
*
T3D:
*
:
*
:
*
)
echo
alpha-cray-unicosmk
${
UNAME_RELEASE
}
|
sed
-e
's/\.[^.]*$/.X/'
exit
0
;;
CRAY
*
T3E:
*
:
*
:
*
)
echo
alphaev5-cray-unicosmk
${
UNAME_RELEASE
}
|
sed
-e
's/\.[^.]*$/.X/'
exit
0
;;
CRAY
*
SV1:
*
:
*
:
*
)
echo
sv1-cray-unicos
${
UNAME_RELEASE
}
|
sed
-e
's/\.[^.]*$/.X/'
exit
0
;;
CRAY-2:
*
:
*
:
*
)
echo
cray2-cray-unicos
exit
0
;;
*
:UNICOS/mp
:
*
:
*
)
echo
nv1-cray-unicosmp
${
UNAME_RELEASE
}
|
sed
-e
's/\.[^.]*$/.X/'
exit
0
;;
F30[01]:UNIX_System_V:
*
:
*
|
F700:UNIX_System_V:
*
:
*
)
FUJITSU_PROC
=
`
uname
-m
|
tr
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
'abcdefghijklmnopqrstuvwxyz'
`
FUJITSU_SYS
=
`
uname
-p
|
tr
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
'abcdefghijklmnopqrstuvwxyz'
|
sed
-e
's/\///'
`
FUJITSU_REL
=
`
echo
${
UNAME_RELEASE
}
|
sed
-e
's/ /_/'
`
echo
"
${
FUJITSU_PROC
}
-fujitsu-
${
FUJITSU_SYS
}${
FUJITSU_REL
}
"
exit
0
;;
hp300:OpenBSD:
*
:
*
)
echo
m68k-unknown-openbsd
${
UNAME_RELEASE
}
exit
0
;;
i
*
86:BSD/386:
*
:
*
|
i
*
86:BSD/OS:
*
:
*
|
*
:Ascend
\
Embedded/OS:
*
:
*
)
echo
${
UNAME_MACHINE
}
-pc-bsdi
${
UNAME_RELEASE
}
exit
0
;;
...
...
@@ -730,11 +744,19 @@ EOF
*
:BSD/OS:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-bsdi
${
UNAME_RELEASE
}
exit
0
;;
*
:FreeBSD:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-freebsd
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[-(].*//'
`
exit
0
;;
*
:OpenBSD:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-openbsd
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[-_].*/\./'
`
*
:FreeBSD:
*
:
*
|
*
:GNU/FreeBSD:
*
:
*
)
# Determine whether the default compiler uses glibc.
eval
$set_cc_for_build
sed
's/^ //'
<<
EOF
>
$dummy
.c
#include <features.h>
#if __GLIBC__ >= 2
LIBC=gnu
#else
LIBC=
#endif
EOF
eval
`
$CC_FOR_BUILD
-E
$dummy
.c 2>/dev/null |
grep
^LIBC
=
`
echo
${
UNAME_MACHINE
}
-unknown-freebsd
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[-(].*//'
`
${
LIBC
:+-
$LIBC
}
exit
0
;;
i
*
:CYGWIN
*
:
*
)
echo
${
UNAME_MACHINE
}
-pc-cygwin
...
...
@@ -745,11 +767,17 @@ EOF
i
*
:PW
*
:
*
)
echo
${
UNAME_MACHINE
}
-pc-pw32
exit
0
;;
x86:Interix
*
:3
*
)
echo
i586-pc-interix3
exit
0
;;
[
345]86:Windows_95:
*
|
[
345]86:Windows_98:
*
|
[
345]86:Windows_NT:
*
)
echo
i
${
UNAME_MACHINE
}
-pc-mks
exit
0
;;
i
*
:Windows_NT
*
:
*
|
Pentium
*
:Windows_NT
*
:
*
)
# How do we know it's Interix rather than the generic POSIX subsystem?
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
# UNAME_MACHINE based on the output of uname instead of i386?
echo
i
3
86-pc-interix
echo
i
5
86-pc-interix
exit
0
;;
i
*
:UWIN
*
:
*
)
echo
${
UNAME_MACHINE
}
-pc-uwin
...
...
@@ -769,17 +797,52 @@ EOF
arm
*
:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-linux-gnu
exit
0
;;
cris:Linux:
*
:
*
)
echo
cris-axis-linux-gnu
exit
0
;;
ia64:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-linux
echo
${
UNAME_MACHINE
}
-unknown-linux
-gnu
exit
0
;;
m68
*
:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-linux-gnu
exit
0
;;
mips:Linux:
*
:
*
)
case
`
sed
-n
'/^byte/s/^.*: \(.*\) endian/\1/p'
< /proc/cpuinfo
`
in
big
)
echo
mips-unknown-linux-gnu
&&
exit
0
;;
little
)
echo
mipsel-unknown-linux-gnu
&&
exit
0
;;
esac
eval
$set_cc_for_build
sed
's/^ //'
<<
EOF
>
$dummy
.c
#undef CPU
#undef mips
#undef mipsel
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
CPU=mipsel
#else
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
CPU=mips
#else
CPU=
#endif
#endif
EOF
eval
`
$CC_FOR_BUILD
-E
$dummy
.c 2>/dev/null |
grep
^CPU
=
`
test
x
"
${
CPU
}
"
!=
x
&&
echo
"
${
CPU
}
-unknown-linux-gnu"
&&
exit
0
;;
mips64:Linux:
*
:
*
)
eval
$set_cc_for_build
sed
's/^ //'
<<
EOF
>
$dummy
.c
#undef CPU
#undef mips64
#undef mips64el
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
CPU=mips64el
#else
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
CPU=mips64
#else
CPU=
#endif
#endif
EOF
eval
`
$CC_FOR_BUILD
-E
$dummy
.c 2>/dev/null |
grep
^CPU
=
`
test
x
"
${
CPU
}
"
!=
x
&&
echo
"
${
CPU
}
-unknown-linux-gnu"
&&
exit
0
;;
ppc:Linux:
*
:
*
)
echo
powerpc-unknown-linux-gnu
...
...
@@ -828,7 +891,8 @@ EOF
# The BFD linker knows what the default object file format is, so
# first see if it will tell us. cd to the root directory to prevent
# problems with other programs or directories called `ld' in the path.
ld_supported_targets
=
`
cd
/
;
ld
--help
2>&1
\
# Set LC_ALL=C to ensure ld outputs messages in English.
ld_supported_targets
=
`
cd
/
;
LC_ALL
=
C ld
--help
2>&1
\
|
sed
-ne
'/supported targets:/!d
s/[ ][ ]*/ /g
s/.*supported targets: *//
...
...
@@ -840,7 +904,7 @@ EOF
;;
a.out-i386-linux
)
echo
"
${
UNAME_MACHINE
}
-pc-linux-gnuaout"
exit
0
;;
exit
0
;;
coff-i386
)
echo
"
${
UNAME_MACHINE
}
-pc-linux-gnucoff"
exit
0
;;
...
...
@@ -851,33 +915,29 @@ EOF
exit
0
;;
esac
# Determine whether the default compiler is a.out or elf
cat
>
$dummy
.c
<<
EOF
#include <features.h>
#ifdef __cplusplus
#include <stdio.h> /* for printf() prototype */
int main (int argc, char *argv[]) {
#else
int main (argc, argv) int argc; char *argv[]; {
#endif
#ifdef __ELF__
# ifdef __GLIBC__
# if __GLIBC__ >= 2
printf ("%s-pc-linux-gnu\n", argv[1]);
# else
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
# endif
# else
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
# endif
#else
printf ("%s-pc-linux-gnuaout\n", argv[1]);
#endif
return 0;
}
EOF
eval
$set_cc_for_build
$CC_FOR_BUILD
$dummy
.c
-o
$dummy
2>/dev/null
&&
./
$dummy
"
${
UNAME_MACHINE
}
"
&&
rm
-f
$dummy
.c
$dummy
&&
exit
0
rm
-f
$dummy
.c
$dummy
sed
's/^ //'
<<
EOF
>
$dummy
.c
#include <features.h>
#ifdef __ELF__
# ifdef __GLIBC__
# if __GLIBC__ >= 2
LIBC=gnu
# else
LIBC=gnulibc1
# endif
# else
LIBC=gnulibc1
# endif
#else
#ifdef __INTEL_COMPILER
LIBC=gnu
#else
LIBC=gnuaout
#endif
#endif
EOF
eval
`
$CC_FOR_BUILD
-E
$dummy
.c 2>/dev/null |
grep
^LIBC
=
`
test
x
"
${
LIBC
}
"
!=
x
&&
echo
"
${
UNAME_MACHINE
}
-pc-linux-
${
LIBC
}
"
&&
exit
0
test
x
"
${
TENTATIVE
}
"
!=
x
&&
echo
"
${
TENTATIVE
}
"
&&
exit
0
;;
i
*
86:DYNIX/ptx:4
*
:
*
)
...
...
@@ -894,6 +954,23 @@ EOF
# Use sysv4.2uw... so that sysv4* matches it.
echo
${
UNAME_MACHINE
}
-pc-sysv4
.2uw
${
UNAME_VERSION
}
exit
0
;;
i
*
86:OS/2:
*
:
*
)
# If we were able to find `uname', then EMX Unix compatibility
# is probably installed.
echo
${
UNAME_MACHINE
}
-pc-os2-emx
exit
0
;;
i
*
86:XTS-300:
*
:STOP
)
echo
${
UNAME_MACHINE
}
-unknown-stop
exit
0
;;
i
*
86:atheos:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-atheos
exit
0
;;
i
*
86:LynxOS:2.
*
:
*
|
i
*
86:LynxOS:3.[01]
*
:
*
|
i
*
86:LynxOS:4.0
*
:
*
)
echo
i386-unknown-lynxos
${
UNAME_RELEASE
}
exit
0
;;
i
*
86:
*
DOS:
*
:
*
)
echo
${
UNAME_MACHINE
}
-pc-msdosdjgpp
exit
0
;;
i
*
86:
*
:4.
*
:
*
|
i
*
86:SYSTEM_V:4.
*
:
*
)
UNAME_REL
=
`
echo
${
UNAME_RELEASE
}
|
sed
's/\/MP$//'
`
if
grep
Novell /usr/include/link.h
>
/dev/null 2>/dev/null
;
then
...
...
@@ -915,22 +992,19 @@ EOF
UNAME_REL
=
`
sed
-n
's/.*Version //p'
</usr/options/cb.name
`
echo
${
UNAME_MACHINE
}
-pc-isc
$UNAME_REL
elif
/bin/uname
-X
2>/dev/null
>
/dev/null
;
then
UNAME_REL
=
`
(
/bin/uname
-X
|
e
grep Release|sed
-e
's/.*= //'
)
`
(
/bin/uname
-X
|
e
grep i80486
>
/dev/null
)
&&
UNAME_MACHINE
=
i486
(
/bin/uname
-X
|
e
grep
'^Machine.*Pentium'
>
/dev/null
)
\
UNAME_REL
=
`
(
/bin/uname
-X
|grep Release|sed
-e
's/.*= //'
)
`
(
/bin/uname
-X
|grep i80486
>
/dev/null
)
&&
UNAME_MACHINE
=
i486
(
/bin/uname
-X
|grep
'^Machine.*Pentium'
>
/dev/null
)
\
&&
UNAME_MACHINE
=
i586
(
/bin/uname
-X
|
egrep
'^Machine.*Pent ?
II'
>
/dev/null
)
\
(
/bin/uname
-X
|
grep
'^Machine.*Pent *
II'
>
/dev/null
)
\
&&
UNAME_MACHINE
=
i686
(
/bin/uname
-X
|
e
grep
'^Machine.*Pentium Pro'
>
/dev/null
)
\
(
/bin/uname
-X
|grep
'^Machine.*Pentium Pro'
>
/dev/null
)
\
&&
UNAME_MACHINE
=
i686
echo
${
UNAME_MACHINE
}
-pc-sco
$UNAME_REL
else
echo
${
UNAME_MACHINE
}
-pc-sysv32
fi
exit
0
;;
i
*
86:
*
DOS:
*
:
*
)
echo
${
UNAME_MACHINE
}
-pc-msdosdjgpp
exit
0
;;
pc:
*
:
*
:
*
)
# Left here for compatibility:
# uname -m prints for DJGPP always 'pc', but it prints nothing about
...
...
@@ -954,9 +1028,15 @@ EOF
# "miniframe"
echo
m68010-convergent-sysv
exit
0
;;
mc68k:UNIX:SYSTEM5:3.51m
)
echo
m68k-convergent-sysv
exit
0
;;
M680?0:D-NIX:5.3:
*
)
echo
m68k-diab-dnix
exit
0
;;
M68
*
:
*
:R3V[567]
*
:
*
)
test
-r
/sysV68
&&
echo
'm68k-motorola-sysv'
&&
exit
0
;;
3[34]??:
*
:4.0:3.0
|
3[34]??A:
*
:4.0:3.0
|
3[34]??,
*
:
*
:4.0:3.0
|
4850
:
*
:4.0:3.0
)
3[34]??:
*
:4.0:3.0
|
3[34]??A:
*
:4.0:3.0
|
3[34]??,
*
:
*
:4.0:3.0
|
3[34]??/
*
:
*
:4.0:3.0
|
4400:
*
:4.0:3.0
|
4850:
*
:4.0:3.0
|
SKA40:
*
:4.0:3.0
|
SDS2:
*
:4.0:3.0
|
SHG2
:
*
:4.0:3.0
)
OS_REL
=
''
test
-r
/etc/.relid
\
&&
OS_REL
=
.
`
sed
-n
's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p'
< /etc/.relid
`
...
...
@@ -973,9 +1053,6 @@ EOF
mc68030:UNIX_System_V:4.
*
:
*
)
echo
m68k-atari-sysv4
exit
0
;;
i
*
86:LynxOS:2.
*
:
*
|
i
*
86:LynxOS:3.[01]
*
:
*
|
i
*
86:LynxOS:4.0
*
:
*
)
echo
i386-unknown-lynxos
${
UNAME_RELEASE
}
exit
0
;;
TSUNAMI:LynxOS:2.
*
:
*
)
echo
sparc-unknown-lynxos
${
UNAME_RELEASE
}
exit
0
;;
...
...
@@ -1047,6 +1124,9 @@ EOF
SX-5:SUPER-UX:
*
:
*
)
echo
sx5-nec-superux
${
UNAME_RELEASE
}
exit
0
;;
SX-6:SUPER-UX:
*
:
*
)
echo
sx6-nec-superux
${
UNAME_RELEASE
}
exit
0
;;
Power
*
:Rhapsody:
*
:
*
)
echo
powerpc-apple-rhapsody
${
UNAME_RELEASE
}
exit
0
;;
...
...
@@ -1054,18 +1134,24 @@ EOF
echo
${
UNAME_MACHINE
}
-apple-rhapsody
${
UNAME_RELEASE
}
exit
0
;;
*
:Darwin:
*
:
*
)
echo
`
uname
-p
`
-apple-darwin
${
UNAME_RELEASE
}
case
`
uname
-p
`
in
*
86
)
UNAME_PROCESSOR
=
i686
;;
powerpc
)
UNAME_PROCESSOR
=
powerpc
;;
esac
echo
${
UNAME_PROCESSOR
}
-apple-darwin
${
UNAME_RELEASE
}
exit
0
;;
*
:procnto
*
:
*
:
*
|
*
:QNX:[0123456789]
*
:
*
)
if
test
"
${
UNAME_MACHINE
}
"
=
"x86pc"
;
then
UNAME_PROCESSOR
=
`
uname
-p
`
if
test
"
$UNAME_PROCESSOR
"
=
"x86"
;
then
UNAME_PROCESSOR
=
i386
UNAME_MACHINE
=
pc
fi
echo
`
uname
-p
`
-
${
UNAME_MACHINE
}
-nto-qnx
echo
${
UNAME_PROCESSOR
}
-
${
UNAME_MACHINE
}
-nto-qnx
${
UNAME_RELEASE
}
exit
0
;;
*
:QNX:
*
:4
*
)
echo
i386-pc-qnx
exit
0
;;
NSR-[
K
W]:NONSTOP_KERNEL:
*
:
*
)
NSR-[
DGKLNPTV
W]:NONSTOP_KERNEL:
*
:
*
)
echo
nsr-tandem-nsk
${
UNAME_RELEASE
}
exit
0
;;
*
:NonStop-UX:
*
:
*
)
...
...
@@ -1088,11 +1174,6 @@ EOF
fi
echo
${
UNAME_MACHINE
}
-unknown-plan9
exit
0
;;
i
*
86:OS/2:
*
:
*
)
# If we were able to find `uname', then EMX Unix compatibility
# is probably installed.
echo
${
UNAME_MACHINE
}
-pc-os2-emx
exit
0
;;
*
:TOPS-10:
*
:
*
)
echo
pdp10-unknown-tops10
exit
0
;;
...
...
@@ -1111,17 +1192,12 @@ EOF
*
:ITS:
*
:
*
)
echo
pdp10-unknown-its
exit
0
;;
i
*
86:XTS-300:
*
:STOP
)
echo
${
UNAME_MACHINE
}
-unknown-stop
exit
0
;;
i
*
86:atheos:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-atheos
exit
0
;;
esac
#echo '(No uname command or uname output not recognized.)' 1>&2
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
eval
$set_cc_for_build
cat
>
$dummy
.c
<<
EOF
#ifdef _SEQUENT_
# include <sys/types.h>
...
...
@@ -1236,9 +1312,7 @@ main ()
}
EOF
eval
$set_cc_for_build
$CC_FOR_BUILD
$dummy
.c
-o
$dummy
2>/dev/null
&&
./
$dummy
&&
rm
-f
$dummy
.c
$dummy
&&
exit
0
rm
-f
$dummy
.c
$dummy
$CC_FOR_BUILD
-o
$dummy
$dummy
.c 2>/dev/null
&&
$dummy
&&
exit
0
# Apollos put the system type in the environment.
...
...
config.sub
View file @
53f5a137
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
2000, 2001
# Free Software Foundation, Inc.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
#
2000, 2001, 2002, 2003
Free Software Foundation, Inc.
timestamp
=
'200
1-08-23
'
timestamp
=
'200
3-05-09
'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
...
...
@@ -29,7 +29,8 @@ timestamp='2001-08-23'
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Please send patches to <config-patches@gnu.org>.
# Please send patches to <config-patches@gnu.org>. Submit a context
# diff and a properly formatted ChangeLog entry.
#
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
...
...
@@ -117,7 +118,7 @@ esac
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os
=
`
echo
$1
|
sed
's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'
`
case
$maybe_os
in
nto-qnx
*
|
linux-gnu
*
|
storm-chaos
*
|
os2-emx
*
|
windows32-
*
)
nto-qnx
*
|
linux-gnu
*
|
freebsd
*
-gnu
*
|
netbsd
*
-gnu
*
|
storm-chaos
*
|
os2-emx
*
|
rtmk-nova
*
)
os
=
-
$maybe_os
basic_machine
=
`
echo
$1
|
sed
's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'
`
;;
...
...
@@ -226,31 +227,44 @@ case $basic_machine in
1750a
|
580
\
|
a29k
\
|
alpha
|
alphaev[4-8]
|
alphaev56
|
alphaev6[78]
|
alphapca5[67]
\
|
alpha64
|
alpha64ev[4-8]
|
alpha64ev56
|
alpha64ev6[78]
|
alpha64pca5[67]
\
|
arc
|
arm
|
arm[bl]e
|
arme[lb]
|
armv[2345]
|
armv[345][lb]
|
avr
\
|
c
4x
|
c
lipper
\
|
d10v
|
d30v
|
dsp16xx
\
|
fr30
\
|
clipper
\
|
d10v
|
d30v
|
d
lx
|
d
sp16xx
\
|
fr30
|
frv
\
|
h8300
|
h8500
|
hppa
|
hppa1.[01]
|
hppa2.0
|
hppa2.0[nw]
|
hppa64
\
|
i370
|
i860
|
i960
|
ia64
\
|
ip2k
\
|
m32r
|
m68000
|
m68k
|
m88k
|
mcore
\
|
mips16
|
mips64
|
mips64el
|
mips64orion
|
mips64orionel
\
|
mips64vr4100
|
mips64vr4100el
|
mips64vr4300
\
|
mips64vr4300el
|
mips64vr5000
|
mips64vr5000el
\
|
mipsbe
|
mipsel
|
mipsle
|
mipstx39
|
mipstx39el
\
|
mips
|
mipsbe
|
mipseb
|
mipsel
|
mipsle
\
|
mips16
\
|
mips64
|
mips64el
\
|
mips64vr
|
mips64vrel
\
|
mips64orion
|
mips64orionel
\
|
mips64vr4100
|
mips64vr4100el
\
|
mips64vr4300
|
mips64vr4300el
\
|
mips64vr5000
|
mips64vr5000el
\
|
mipsisa32
|
mipsisa32el
\
|
mipsisa32r2
|
mipsisa32r2el
\
|
mipsisa64
|
mipsisa64el
\
|
mipsisa64sb1
|
mipsisa64sb1el
\
|
mipsisa64sr71k
|
mipsisa64sr71kel
\
|
mipstx39
|
mipstx39el
\
|
mn10200
|
mn10300
\
|
msp430
\
|
ns16k
|
ns32k
\
|
openrisc
\
|
openrisc
|
or32
\
|
pdp10
|
pdp11
|
pj
|
pjl
\
|
powerpc
|
powerpc64
|
powerpc64le
|
powerpcle
|
ppcbe
\
|
pyramid
\
|
s
390
|
s390x
\
|
sh
|
sh[34]
|
sh[34]eb
|
shbe
|
sh
le
\
|
sparc
|
sparc64
|
sparclet
|
sparclite
|
sparcv9
|
sparcv9b
\
|
st
ormy16
|
st
rongarm
\
|
s
h
|
sh[1234]
|
sh[23]e
|
sh[34]eb
|
shbe
|
shle
|
sh[1234]le
|
sh3ele
\
|
sh
64
|
sh64
le
\
|
sparc
|
sparc64
|
sparc
86x
|
sparc
let
|
sparclite
|
sparcv9
|
sparcv9b
\
|
strongarm
\
|
tahoe
|
thumb
|
tic80
|
tron
\
|
v850
\
|
v850
|
v850e
\
|
we32k
\
|
x86
|
xscale
\
|
x86
|
xscale
|
xstormy16
|
xtensa
\
|
z8k
)
basic_machine
=
$basic_machine
-unknown
;;
...
...
@@ -277,38 +291,55 @@ case $basic_machine in
580-
*
\
|
a29k-
*
\
|
alpha-
*
|
alphaev[4-8]-
*
|
alphaev56-
*
|
alphaev6[78]-
*
\
|
alphapca5[67]-
*
|
arc-
*
\
|
arm-
*
|
armbe-
*
|
armle-
*
|
armv
*
-
*
\
|
alpha64-
*
|
alpha64ev[4-8]-
*
|
alpha64ev56-
*
|
alpha64ev6[78]-
*
\
|
alphapca5[67]-
*
|
alpha64pca5[67]-
*
|
arc-
*
\
|
arm-
*
|
armbe-
*
|
armle-
*
|
armeb-
*
|
armv
*
-
*
\
|
avr-
*
\
|
bs2000-
*
\
|
c[123]
*
|
c30-
*
|
[
cjt]90-
*
|
c
54
x-
*
\
|
clipper-
*
|
c
ray2-
*
|
c
ydra-
*
\
|
d10v-
*
|
d30v-
*
\
|
c[123]
*
|
c30-
*
|
[
cjt]90-
*
|
c
4x-
*
|
c54x-
*
|
c55x-
*
|
c6
x-
*
\
|
clipper-
*
|
cydra-
*
\
|
d10v-
*
|
d30v-
*
|
dlx-
*
\
|
elxsi-
*
\
|
f30[01]-
*
|
f700-
*
|
fr30-
*
|
fx80-
*
\
|
f30[01]-
*
|
f700-
*
|
fr30-
*
|
f
rv-
*
|
f
x80-
*
\
|
h8300-
*
|
h8500-
*
\
|
hppa-
*
|
hppa1.[01]-
*
|
hppa2.0-
*
|
hppa2.0[nw]-
*
|
hppa64-
*
\
|
i
*
86-
*
|
i860-
*
|
i960-
*
|
ia64-
*
\
|
ip2k-
*
\
|
m32r-
*
\
|
m68000-
*
|
m680[01234]0-
*
|
m68360-
*
|
m683?2-
*
|
m68k-
*
\
|
m68000-
*
|
m680[01234
6
]0-
*
|
m68360-
*
|
m683?2-
*
|
m68k-
*
\
|
m88110-
*
|
m88k-
*
|
mcore-
*
\
|
mips-
*
|
mips16-
*
|
mips64-
*
|
mips64el-
*
|
mips64orion-
*
\
|
mips64orionel-
*
|
mips64vr4100-
*
|
mips64vr4100el-
*
\
|
mips64vr4300-
*
|
mips64vr4300el-
*
|
mipsbe-
*
|
mipsel-
*
\
|
mipsle-
*
|
mipstx39-
*
|
mipstx39el-
*
\
|
none-
*
|
np1-
*
|
ns16k-
*
|
ns32k-
*
\
|
mips-
*
|
mipsbe-
*
|
mipseb-
*
|
mipsel-
*
|
mipsle-
*
\
|
mips16-
*
\
|
mips64-
*
|
mips64el-
*
\
|
mips64vr-
*
|
mips64vrel-
*
\
|
mips64orion-
*
|
mips64orionel-
*
\
|
mips64vr4100-
*
|
mips64vr4100el-
*
\
|
mips64vr4300-
*
|
mips64vr4300el-
*
\
|
mips64vr5000-
*
|
mips64vr5000el-
*
\
|
mipsisa32-
*
|
mipsisa32el-
*
\
|
mipsisa32r2-
*
|
mipsisa32r2el-
*
\
|
mipsisa64-
*
|
mipsisa64el-
*
\
|
mipsisa64sb1-
*
|
mipsisa64sb1el-
*
\
|
mipsisa64sr71k-
*
|
mipsisa64sr71kel-
*
\
|
mipstx39-
*
|
mipstx39el-
*
\
|
msp430-
*
\
|
none-
*
|
np1-
*
|
nv1-
*
|
ns16k-
*
|
ns32k-
*
\
|
orion-
*
\
|
pdp10-
*
|
pdp11-
*
|
pj-
*
|
pjl-
*
|
pn-
*
|
power-
*
\
|
powerpc-
*
|
powerpc64-
*
|
powerpc64le-
*
|
powerpcle-
*
|
ppcbe-
*
\
|
pyramid-
*
\
|
romp-
*
|
rs6000-
*
\
|
s390-
*
|
s390x-
*
\
|
sh-
*
|
sh[34]-
*
|
sh[34]eb-
*
|
shbe-
*
|
shle-
*
\
|
sparc-
*
|
sparc64-
*
|
sparc86x-
*
|
sparclite-
*
\
|
sparcv9-
*
|
sparcv9b-
*
|
stormy16-
*
|
strongarm-
*
|
sv1-
*
\
|
t3e-
*
|
tahoe-
*
|
thumb-
*
|
tic30-
*
|
tic54x-
*
|
tic80-
*
|
tron-
*
\
|
v850-
*
|
vax-
*
\
|
sh-
*
|
sh[1234]-
*
|
sh[23]e-
*
|
sh[34]eb-
*
|
shbe-
*
\
|
shle-
*
|
sh[1234]le-
*
|
sh3ele-
*
|
sh64-
*
|
sh64le-
*
\
|
sparc-
*
|
sparc64-
*
|
sparc86x-
*
|
sparclet-
*
|
sparclite-
*
\
|
sparcv9-
*
|
sparcv9b-
*
|
strongarm-
*
|
sv1-
*
|
sx?-
*
\
|
tahoe-
*
|
thumb-
*
\
|
tic30-
*
|
tic4x-
*
|
tic54x-
*
|
tic55x-
*
|
tic6x-
*
|
tic80-
*
\
|
tron-
*
\
|
v850-
*
|
v850e-
*
|
vax-
*
\
|
we32k-
*
\
|
x86-
*
|
x86_64-
*
|
xmp-
*
|
xps100-
*
|
xscale-
*
\
|
x86-
*
|
x86_64-
*
|
xps100-
*
|
xscale-
*
|
xstormy16-
*
\
|
xtensa-
*
\
|
ymp-
*
\
|
z8k-
*
)
;;
...
...
@@ -342,6 +373,9 @@ case $basic_machine in
basic_machine
=
a29k-none
os
=
-bsd
;;
amd64
)
basic_machine
=
x86_64-pc
;;
amdahl
)
basic_machine
=
580-amdahl
os
=
-sysv
...
...
@@ -373,6 +407,10 @@ case $basic_machine in
basic_machine
=
ns32k-sequent
os
=
-dynix
;;
c90
)
basic_machine
=
c90-cray
os
=
-unicos
;;
convex-c1
)
basic_machine
=
c1-convex
os
=
-bsd
...
...
@@ -393,16 +431,8 @@ case $basic_machine in
basic_machine
=
c38-convex
os
=
-bsd
;;
cray
|
ymp
)
basic_machine
=
ymp-cray
os
=
-unicos
;;
cray2
)
basic_machine
=
cray2-cray
os
=
-unicos
;;
[
cjt]90
)
basic_machine
=
${
basic_machine
}
-cray
cray
|
j90
)
basic_machine
=
j90-cray
os
=
-unicos
;;
crds
|
unos
)
...
...
@@ -417,6 +447,14 @@ case $basic_machine in
decstation
|
decstation-3100
|
pmax
|
pmax-
*
|
pmin
|
dec3100
|
decstatn
)
basic_machine
=
mips-dec
;;
decsystem10
*
|
dec10
*
)
basic_machine
=
pdp10-dec
os
=
-tops10
;;
decsystem20
*
|
dec20
*
)
basic_machine
=
pdp10-dec
os
=
-tops20
;;
delta
|
3300
|
motorola-3300
|
motorola-delta
\
|
3300-motorola
|
delta-motorola
)
basic_machine
=
m68k-motorola
...
...
@@ -597,14 +635,6 @@ case $basic_machine in
basic_machine
=
m68k-atari
os
=
-mint
;;
mipsel
*
-linux
*
)
basic_machine
=
mipsel-unknown
os
=
-linux-gnu
;;
mips
*
-linux
*
)
basic_machine
=
mips-unknown
os
=
-linux-gnu
;;
mips3
*
-
*
)
basic_machine
=
`
echo
$basic_machine
|
sed
-e
's/mips3/mips64/'
`
;;
...
...
@@ -619,6 +649,10 @@ case $basic_machine in
basic_machine
=
m68k-rom68k
os
=
-coff
;;
morphos
)
basic_machine
=
powerpc-unknown
os
=
-morphos
;;
msdos
)
basic_machine
=
i386-pc
os
=
-msdos
...
...
@@ -691,6 +725,10 @@ case $basic_machine in
np1
)
basic_machine
=
np1-gould
;;
nv1
)
basic_machine
=
nv1-cray
os
=
-unicosmp
;;
nsr-tandem
)
basic_machine
=
nsr-tandem
;;
...
...
@@ -698,6 +736,10 @@ case $basic_machine in
basic_machine
=
hppa1.1-oki
os
=
-proelf
;;
or32
|
or32-
*
)
basic_machine
=
or32-unknown
os
=
-coff
;;
OSE68000
|
ose68000
)
basic_machine
=
m68000-ericsson
os
=
-ose
...
...
@@ -720,19 +762,19 @@ case $basic_machine in
pbb
)
basic_machine
=
m68k-tti
;;
pc532
|
pc532-
*
)
pc532
|
pc532-
*
)
basic_machine
=
ns32k-pc532
;;
pentium
|
p5
|
k5
|
k6
|
nexgen
)
pentium
|
p5
|
k5
|
k6
|
nexgen
|
viac3
)
basic_machine
=
i586-pc
;;
pentiumpro
|
p6
|
6x86
|
athlon
)
pentiumpro
|
p6
|
6x86
|
athlon
|
athlon_
*
)
basic_machine
=
i686-pc
;;
pentiumii
|
pentium2
)
basic_machine
=
i686-pc
;;
pentium-
*
|
p5-
*
|
k5-
*
|
k6-
*
|
nexgen-
*
)
pentium-
*
|
p5-
*
|
k5-
*
|
k6-
*
|
nexgen-
*
|
viac3-
*
)
basic_machine
=
i586-
`
echo
$basic_machine
|
sed
's/^[^-]*-//'
`
;;
pentiumpro-
*
|
p6-
*
|
6x86-
*
|
athlon-
*
)
...
...
@@ -747,22 +789,22 @@ case $basic_machine in
power
)
basic_machine
=
power-ibm
;;
ppc
)
basic_machine
=
powerpc-unknown
;;
;;
ppc-
*
)
basic_machine
=
powerpc-
`
echo
$basic_machine
|
sed
's/^[^-]*-//'
`
;;
ppcle
|
powerpclittle
|
ppc-le
|
powerpc-little
)
basic_machine
=
powerpcle-unknown
;;
;;
ppcle-
*
|
powerpclittle-
*
)
basic_machine
=
powerpcle-
`
echo
$basic_machine
|
sed
's/^[^-]*-//'
`
;;
ppc64
)
basic_machine
=
powerpc64-unknown
;;
;;
ppc64-
*
)
basic_machine
=
powerpc64-
`
echo
$basic_machine
|
sed
's/^[^-]*-//'
`
;;
ppc64le
|
powerpc64little
|
ppc64-le
|
powerpc64-little
)
basic_machine
=
powerpc64le-unknown
;;
;;
ppc64le-
*
|
powerpc64little-
*
)
basic_machine
=
powerpc64le-
`
echo
$basic_machine
|
sed
's/^[^-]*-//'
`
;;
...
...
@@ -783,10 +825,22 @@ case $basic_machine in
rtpc
|
rtpc-
*
)
basic_machine
=
romp-ibm
;;
s390
|
s390-
*
)
basic_machine
=
s390-ibm
;;
s390x
|
s390x-
*
)
basic_machine
=
s390x-ibm
;;
sa29200
)
basic_machine
=
a29k-amd
os
=
-udi
;;
sb1
)
basic_machine
=
mipsisa64sb1-unknown
;;
sb1el
)
basic_machine
=
mipsisa64sb1el-unknown
;;
sequent
)
basic_machine
=
i386-sequent
;;
...
...
@@ -794,7 +848,7 @@ case $basic_machine in
basic_machine
=
sh-hitachi
os
=
-hms
;;
sparclite-wrs
)
sparclite-wrs
|
simso-wrs
)
basic_machine
=
sparclite-wrs
os
=
-vxworks
;;
...
...
@@ -861,19 +915,39 @@ case $basic_machine in
os
=
-dynix
;;
t3e
)
basic_machine
=
t3e-cray
basic_machine
=
alphaev5-cray
os
=
-unicos
;;
t90
)
basic_machine
=
t90-cray
os
=
-unicos
;;
tic4x
|
c4x
*
)
basic_machine
=
tic4x-unknown
os
=
-coff
;;
tic54x
|
c54x
*
)
basic_machine
=
tic54x-unknown
os
=
-coff
;;
tic55x
|
c55x
*
)
basic_machine
=
tic55x-unknown
os
=
-coff
;;
tic6x
|
c6x
*
)
basic_machine
=
tic6x-unknown
os
=
-coff
;;
tx39
)
basic_machine
=
mipstx39-unknown
;;
tx39el
)
basic_machine
=
mipstx39el-unknown
;;
toad1
)
basic_machine
=
pdp10-xkl
os
=
-tops20
;;
tower
|
tower-32
)
basic_machine
=
m68k-ncr
;;
...
...
@@ -898,8 +972,8 @@ case $basic_machine in
os
=
-vms
;;
vpp
*
|
vx|vx-
*
)
basic_machine
=
f301-fujitsu
;;
basic_machine
=
f301-fujitsu
;;
vxworks960
)
basic_machine
=
i960-wrs
os
=
-vxworks
...
...
@@ -920,17 +994,13 @@ case $basic_machine in
basic_machine
=
hppa1.1-winbond
os
=
-proelf
;;
windows32
)
basic_machine
=
i386-pc
os
=
-windows32-msvcrt
xps
|
xps100
)
basic_machine
=
xps100-honeywell
;;
x
mp
)
basic_machine
=
x
mp-cray
y
mp
)
basic_machine
=
y
mp-cray
os
=
-unicos
;;
xps
|
xps100
)
basic_machine
=
xps100-honeywell
;;
z8k-
*
-coff
)
basic_machine
=
z8k-unknown
os
=
-sim
...
...
@@ -951,13 +1021,6 @@ case $basic_machine in
op60c
)
basic_machine
=
hppa1.1-oki
;;
mips
)
if
[
x
$os
=
x-linux-gnu
]
;
then
basic_machine
=
mips-unknown
else
basic_machine
=
mips-mips
fi
;;
romp
)
basic_machine
=
romp-ibm
;;
...
...
@@ -977,13 +1040,16 @@ case $basic_machine in
we32k
)
basic_machine
=
we32k-att
;;
sh3
|
sh4
|
sh
3eb
|
sh4eb
)
sh3
|
sh4
|
sh
[34]eb
|
sh[1234]le
|
sh[23]ele
)
basic_machine
=
sh-unknown
;;
sh64
)
basic_machine
=
sh64-unknown
;;
sparc
|
sparcv9
|
sparcv9b
)
basic_machine
=
sparc-sun
;;
cydra
)
cydra
)
basic_machine
=
cydra-cydrome
;;
orion
)
...
...
@@ -998,10 +1064,6 @@ case $basic_machine in
pmac
|
pmac-mpw
)
basic_machine
=
powerpc-apple
;;
c4x
*
)
basic_machine
=
c4x-none
os
=
-coff
;;
*
-unknown
)
# Make sure to match an already-canonicalized machine name.
;;
...
...
@@ -1064,10 +1126,12 @@ case $os in
|
-chorusos
*
|
-chorusrdb
*
\
|
-cygwin
*
|
-pe
*
|
-psos
*
|
-moss
*
|
-proelf
*
|
-rtems
*
\
|
-mingw32
*
|
-linux-gnu
*
|
-uxpv
*
|
-beos
*
|
-mpeix
*
|
-udk
*
\
|
-interix
*
|
-uwin
*
|
-rhapsody
*
|
-darwin
*
|
-opened
*
\
|
-interix
*
|
-uwin
*
|
-
mks
*
|
-
rhapsody
*
|
-darwin
*
|
-opened
*
\
|
-openstep
*
|
-oskit
*
|
-conix
*
|
-pw32
*
|
-nonstopux
*
\
|
-storm-chaos
*
|
-tops10
*
|
-tenex
*
|
-tops20
*
|
-its
*
\
|
-os2
*
|
-vos
*
)
|
-os2
*
|
-vos
*
|
-palmos
*
|
-uclinux
*
|
-nucleus
*
\
|
-morphos
*
|
-superux
*
|
-rtmk
*
|
-rtmk-nova
*
|
-windiss
*
\
|
-powermax
*
|
-dnix
*
)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx
*
)
...
...
@@ -1079,8 +1143,10 @@ case $os in
;;
esac
;;
-nto-qnx
*
)
;;
-nto
*
)
os
=
-nto-qnx
os
=
`
echo
$os
|
sed
-e
's|nto|nto-qnx|'
`
;;
-sim
|
-es1800
*
|
-hms
*
|
-xray
|
-os68k
*
|
-none
*
|
-v88r
*
\
|
-windows
*
|
-osx
|
-abug
|
-netware
*
|
-os9
*
|
-beos
*
\
...
...
@@ -1119,14 +1185,20 @@ case $os in
-acis
*
)
os
=
-aos
;;
-atheos
*
)
os
=
-atheos
;;
-386bsd
)
os
=
-bsd
;;
-ctix
*
|
-uts
*
)
os
=
-sysv
;;
-nova
*
)
os
=
-rtmk-nova
;;
-ns2
)
os
=
-nextstep2
os
=
-nextstep2
;;
-nsk
*
)
os
=
-nsk
...
...
@@ -1165,8 +1237,14 @@ case $os in
-xenix
)
os
=
-xenix
;;
-
*
mint
|
-mint
[
0-9]
*
|
-
*
MiNT
|
-MiNT
[
0-9]
*
)
os
=
-mint
-
*
mint
|
-mint
[
0-9]
*
|
-
*
MiNT
|
-MiNT
[
0-9]
*
)
os
=
-mint
;;
-aros
*
)
os
=
-aros
;;
-kaos
*
)
os
=
-kaos
;;
-none
)
;;
...
...
@@ -1199,10 +1277,11 @@ case $basic_machine in
arm
*
-semi
)
os
=
-aout
;;
# This must come before the *-dec entry.
pdp10-
*
)
os
=
-tops20
;;
pdp11-
*
)
pdp11-
*
)
os
=
-none
;;
*
-dec
|
vax-
*
)
...
...
@@ -1229,6 +1308,9 @@ case $basic_machine in
mips
*
-
*
)
os
=
-elf
;;
or32-
*
)
os
=
-coff
;;
*
-tti
)
# must be before sparc entry or we get the wrong os.
os
=
-sysv3
;;
...
...
@@ -1292,19 +1374,19 @@ case $basic_machine in
*
-next
)
os
=
-nextstep3
;;
*
-gould
)
*
-gould
)
os
=
-sysv
;;
*
-highlevel
)
*
-highlevel
)
os
=
-bsd
;;
*
-encore
)
os
=
-bsd
;;
*
-sgi
)
*
-sgi
)
os
=
-irix
;;
*
-siemens
)
*
-siemens
)
os
=
-sysv4
;;
*
-masscomp
)
...
...
@@ -1376,7 +1458,7 @@ case $basic_machine in
-ptx
*
)
vendor
=
sequent
;;
-vxsim
*
|
-vxworks
*
)
-vxsim
*
|
-vxworks
*
|
-windiss
*
)
vendor
=
wrs
;;
-aux
*
)
...
...
configure
View file @
53f5a137
...
...
@@ -248,6 +248,7 @@ if test "X${PATH_SEPARATOR+set}" != Xset; then
*
-DOS
)
lt_cv_sys_path_separator
=
';'
;;
*
)
lt_cv_sys_path_separator
=
':'
;;
esac
PATH_SEPARATOR
=
$lt_cv_sys_path_separator
fi
...
...
@@ -314,7 +315,7 @@ else
#
# So, first we look for a working echo in the user's PATH.
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
"
${
IFS
}${
PATH_SEPARATOR
}
"
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
$PATH_SEPARATOR
for
dir
in
$PATH
/usr/ucb
;
do
if
(
test
-f
$dir
/echo
||
test
-f
$dir
/echo
$ac_exeext
)
&&
test
"X
`
(
$dir
/echo
'\t'
)
2>/dev/null
`
"
=
'X\t'
&&
...
...
@@ -468,7 +469,7 @@ ac_includes_default="\
ac_subdirs_all
=
"
$ac_subdirs_all
libid3tag"
ac_subdirs_all
=
"
$ac_subdirs_all
libmad"
ac_subst_vars
=
'SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA
CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALS
E build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL CCAS CCASFLAGS MAD_SUBDIR MAD_LIB ID3_SUBDIR ID3_LIB MPD_LIBS MPD_CFLAGS AO_CFLAGS AO_LIBS subdirs OGG_CFLAGS OGG_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS LIBFLAC_CFLAGS LIBFLAC_LIBS LIBOBJS LTLIBOBJS'
ac_subst_vars
=
'SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA
PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMOD
E build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL CCAS CCASFLAGS MAD_SUBDIR MAD_LIB ID3_SUBDIR ID3_LIB MPD_LIBS MPD_CFLAGS AO_CFLAGS AO_LIBS subdirs OGG_CFLAGS OGG_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS LIBFLAC_CFLAGS LIBFLAC_LIBS LIBOBJS LTLIBOBJS'
ac_subst_files
=
''
# Initialize some variables set by options.
...
...
@@ -1458,7 +1459,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
am__api_version
=
"1.
7
"
am__api_version
=
"1.
6
"
ac_aux_dir
=
for
ac_dir
in
$srcdir
$srcdir
/..
$srcdir
/../..
;
do
if
test
-f
$ac_dir
/install-sh
;
then
...
...
@@ -1710,19 +1711,9 @@ echo "$as_me: error: source directory already configured; run \"make distclean\"
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
# test whether we have cygpath
if
test
-z
"
$CYGPATH_W
"
;
then
if
(
cygpath
--version
)
>
/dev/null 2>/dev/null
;
then
CYGPATH_W
=
'cygpath -w'
else
CYGPATH_W
=
echo
fi
fi
# Define the identity of the package.
PACKAGE
=
mpd
VERSION
=
0.8.
2
VERSION
=
0.8.
3
cat
>>
confdefs.h
<<
_ACEOF
...
...
@@ -2617,8 +2608,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
for
ac_declaration
in
\
''
\
'#include <stdlib.h>'
\
''
\
'extern "C" void std::exit (int) throw (); using std::exit;'
\
'extern "C" void std::exit (int); using std::exit;'
\
'extern "C" void exit (int) throw ();'
\
...
...
@@ -2632,8 +2622,8 @@ _ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <stdlib.h>
$ac_declaration
#include <stdlib.h>
int
main ()
{
...
...
@@ -2748,7 +2738,7 @@ echo "include confinc" > confmf
# In particular we don't look at `^make:' because GNU make might
# be invoked under some other name (usually "gmake"), in which
# case it prints its new name instead of `make'.
if
test
"
`
$am_make
-s
-f
confmf 2> /dev/null |
grep
-v
'ing directory'
`
"
=
"done"
;
then
if
test
"
`
$am_make
-s
-f
confmf 2> /dev/null |
f
grep
-v
'ing directory'
`
"
=
"done"
;
then
am__include
=
include
am__quote
=
_am_result
=
GNU
...
...
@@ -2839,7 +2829,7 @@ else
if
depmode
=
$depmode
\
source
=
conftest.c
object
=
conftest.o
\
depfile
=
conftest.Po
tmpdepfile
=
conftest.TPo
\
$SHELL
./depcomp
$depcc
-c
-o
conftest.o conftest.c
>
/dev/null 2>&1
&&
$SHELL
./depcomp
$depcc
-c
conftest.c
-o
conftest.o
>
/dev/null 2>&1
&&
grep
conftest.h conftest.Po
>
/dev/null 2>&1
&&
${
MAKE
-make
}
-s
-f
confmf
>
/dev/null 2>&1
;
then
am_cv_CC_dependencies_compiler_type
=
$depmode
...
...
@@ -2859,18 +2849,6 @@ echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
CCDEPMODE
=
depmode
=
$am_cv_CC_dependencies_compiler_type
if
test
"x
$enable_dependency_tracking
"
!=
xno
\
&&
test
"
$am_cv_CC_dependencies_compiler_type
"
=
gcc3
;
then
am__fastdepCC_TRUE
=
am__fastdepCC_FALSE
=
'#'
else
am__fastdepCC_TRUE
=
'#'
am__fastdepCC_FALSE
=
fi
# Find a good install program. We prefer a C program (faster),
# so one script is as good as another. But avoid the broken or
# incompatible versions:
...
...
@@ -3068,6 +3046,17 @@ host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os
=
`
echo
$ac_cv_host
|
sed
's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'
`
# Find the correct PATH separator. Usually this is `:', but
# DJGPP uses `;' like DOS.
if
test
"X
${
PATH_SEPARATOR
+set
}
"
!=
Xset
;
then
UNAME
=
${
UNAME
-
`
uname
2>/dev/null
`
}
case
X
$UNAME
in
*
-DOS
)
lt_cv_sys_path_separator
=
';'
;;
*
)
lt_cv_sys_path_separator
=
':'
;;
esac
PATH_SEPARATOR
=
$lt_cv_sys_path_separator
fi
# Check whether --with-gnu-ld or --without-gnu-ld was given.
if
test
"
${
with_gnu_ld
+set
}
"
=
set
;
then
...
...
@@ -3119,7 +3108,7 @@ if test "${lt_cv_path_LD+set}" = set; then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
if
test
-z
"
$LD
"
;
then
IFS
=
"
${
IFS
=
}
"
;
ac_save_ifs
=
"
$IFS
"
;
IFS
=
"
${
IFS
}${
PATH_SEPARATOR
-
:
}
"
IFS
=
"
${
IFS
=
}
"
;
ac_save_ifs
=
"
$IFS
"
;
IFS
=
$PATH_SEPARATOR
for
ac_dir
in
$PATH
;
do
test
-z
"
$ac_dir
"
&&
ac_dir
=
.
if
test
-f
"
$ac_dir
/
$ac_prog
"
||
test
-f
"
$ac_dir
/
$ac_prog$ac_exeext
"
;
then
...
...
@@ -3189,7 +3178,7 @@ else
# Let the user override the test.
lt_cv_path_NM
=
"
$NM
"
else
IFS
=
"
${
IFS
=
}
"
;
ac_save_ifs
=
"
$IFS
"
;
IFS
=
"
${
IFS
}${
PATH_SEPARATOR
-
:
}
"
IFS
=
"
${
IFS
=
}
"
;
ac_save_ifs
=
"
$IFS
"
;
IFS
=
$PATH_SEPARATOR
for
ac_dir
in
$PATH
/usr/ccs/bin /usr/ucb /bin
;
do
test
-z
"
$ac_dir
"
&&
ac_dir
=
.
tmp_nm
=
$ac_dir
/
${
ac_tool_prefix
}
nm
...
...
@@ -3219,6 +3208,91 @@ NM="$lt_cv_path_NM"
echo
"
$as_me
:
$LINENO
: result:
$NM
"
>
&5
echo
"
${
ECHO_T
}
$NM
"
>
&6
echo
"
$as_me
:
$LINENO
: checking for a sed that does not truncate output"
>
&5
echo
$ECHO_N
"checking for a sed that does not truncate output...
$ECHO_C
"
>
&6
if
test
"
${
lt_cv_path_SED
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
# Loop through the user's path and test for sed and gsed.
# Then use that list of sed's as ones to test for truncation.
as_executable_p
=
"test -f"
as_save_IFS
=
$IFS
;
IFS
=
$PATH_SEPARATOR
for
as_dir
in
$PATH
do
IFS
=
$as_save_IFS
test
-z
"
$as_dir
"
&&
as_dir
=
.
for
ac_prog
in
sed
gsed
;
do
for
ac_exec_ext
in
''
$ac_executable_extensions
;
do
if
$as_executable_p
"
$as_dir
/
$ac_prog$ac_exec_ext
"
;
then
_sed_list
=
"
$_sed_list
$as_dir
/
$ac_prog$ac_exec_ext
"
fi
done
done
done
# Create a temporary directory, and hook for its removal unless debugging.
$debug
||
{
trap
'exit_status=$?; rm -rf $tmp && exit $exit_status'
0
trap
'{ (exit 1); exit 1; }'
1 2 13 15
}
# Create a (secure) tmp directory for tmp files.
:
${
TMPDIR
=/tmp
}
{
tmp
=
`
(
umask
077
&&
mktemp
-d
-q
"
$TMPDIR
/sedXXXXXX"
)
2>/dev/null
`
&&
test
-n
"
$tmp
"
&&
test
-d
"
$tmp
"
}
||
{
tmp
=
$TMPDIR
/sed
$$
-
$RANDOM
(
umask
077
&&
mkdir
$tmp
)
}
||
{
echo
"
$me
: cannot create a temporary directory in
$TMPDIR
"
>
&2
{
(
exit
1
)
;
exit
1
;
}
}
_max
=
0
_count
=
0
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
# along with /bin/sed that truncates output.
for
_sed
in
$_sed_list
/usr/xpg4/bin/sed
;
do
test
!
-f
${
_sed
}
&&
break
cat
/dev/null
>
"
$tmp
/sed.in"
_count
=
0
echo
${
ECHO_N
-
$ac_n
}
"0123456789
${
ECHO_C
-
$ac_c
}
"
>
"
$tmp
/sed.in"
# Check for GNU sed and select it if it is found.
if
"
${
_sed
}
"
--version
2>&1 < /dev/null | egrep
'(GNU)'
>
/dev/null
;
then
lt_cv_path_SED
=
${
_sed
}
break
fi
while
true
;
do
cat
"
$tmp
/sed.in"
"
$tmp
/sed.in"
>
"
$tmp
/sed.tmp"
mv
"
$tmp
/sed.tmp"
"
$tmp
/sed.in"
cp
"
$tmp
/sed.in"
"
$tmp
/sed.nl"
echo
>>
"
$tmp
/sed.nl"
${
_sed
}
-e
's/a$//'
<
"
$tmp
/sed.nl"
>
"
$tmp
/sed.out"
||
break
cmp
-s
"
$tmp
/sed.out"
"
$tmp
/sed.nl"
||
break
# 40000 chars as input seems more than enough
test
$_count
-gt
10
&&
break
_count
=
`
expr
$_count
+ 1
`
if
test
$_count
-gt
$_max
;
then
_max
=
$_count
lt_cv_path_SED
=
$_sed
fi
done
done
rm
-rf
"
$tmp
"
fi
if
test
"X
$SED
"
!=
"X"
;
then
lt_cv_path_SED
=
$SED
else
SED
=
$lt_cv_path_SED
fi
echo
"
$as_me
:
$LINENO
: result:
$SED
"
>
&5
echo
"
${
ECHO_T
}
$SED
"
>
&6
echo
"
$as_me
:
$LINENO
: checking whether ln -s works"
>
&5
echo
$ECHO_N
"checking whether ln -s works...
$ECHO_C
"
>
&6
LN_S
=
$as_ln_s
...
...
@@ -3230,8 +3304,8 @@ else
echo
"
${
ECHO_T
}
no, using
$LN_S
"
>
&6
fi
echo
"
$as_me
:
$LINENO
: checking how to recognise depend
a
nt libraries"
>
&5
echo
$ECHO_N
"checking how to recognise depend
a
nt libraries...
$ECHO_C
"
>
&6
echo
"
$as_me
:
$LINENO
: checking how to recognise depend
e
nt libraries"
>
&5
echo
$ECHO_N
"checking how to recognise depend
e
nt libraries...
$ECHO_C
"
>
&6
if
test
"
${
lt_cv_deplibs_check_method
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
...
...
@@ -3244,7 +3318,7 @@ lt_cv_deplibs_check_method='unknown'
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
#
['file_magic [regex]']
-- check by looking for files in library path
#
'file_magic [[regex]]'
-- check by looking for files in library path
# which responds to the $file_magic_cmd with a given egrep regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
...
...
@@ -3308,9 +3382,9 @@ hpux10.20*|hpux11*)
lt_cv_file_magic_test_file
=
/usr/lib/libc.sl
;;
irix5
*
|
irix6
*
)
irix5
*
|
irix6
*
|
nonstopux
*
)
case
$host_os
in
irix5
*
)
irix5
*
|
nonstopux
*
)
# this will be overridden with pass_all, but let us keep it just in case
lt_cv_deplibs_check_method
=
"file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
;;
...
...
@@ -3332,7 +3406,7 @@ irix5* | irix6*)
# This must be Linux ELF.
linux-gnu
*
)
case
$host_cpu
in
alpha
*
|
hppa
*
|
i
*
86
|
powerpc
*
|
sparc
*
|
ia64
*
)
alpha
*
|
hppa
*
|
i
*
86
|
mips
|
mipsel
|
powerpc
*
|
sparc
*
|
ia64
*
|
arm
*
|
m68k
)
lt_cv_deplibs_check_method
=
pass_all
;;
*
)
# glibc up to 2.1.1 does not perform some relocations on ARM
...
...
@@ -3403,6 +3477,9 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
lt_cv_deplibs_check_method
=
"file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
lt_cv_file_magic_test_file
=
/lib/libc.so
;;
siemens
)
lt_cv_deplibs_check_method
=
pass_all
;;
esac
;;
esac
...
...
@@ -3457,9 +3534,12 @@ hpux*) # Its linker distinguishes data from code symbols
lt_cv_global_symbol_to_cdecl
=
"sed -n -e 's/^T .*
\(
.*
\)
$/
extern char
\1
();/p' -e 's/^
$symcode
* .*
\(
.*
\)
$/
extern char
\1
;/p'"
lt_cv_global_symbol_to_c_name_address
=
"sed -n -e 's/^:
\(
[^ ]*
\)
$/
{
\\\"\1\\\"
, (lt_ptr) 0},/p' -e 's/^
$symcode
*
\(
[^ ]*
\)
\(
[^ ]*
\)
$/
{
\"\2\"
, (lt_ptr)
\&\2
},/p'"
;;
irix
*
)
irix
*
|
nonstopux
*
)
symcode
=
'[BCDEGRST]'
;;
osf
*
)
symcode
=
'[BCDEGQRST]'
;;
solaris
*
|
sysv5
*
)
symcode
=
'[BDT]'
;;
...
...
@@ -3568,7 +3648,7 @@ EOF
(
eval
$ac_link
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
test
-s
conftest
;
then
(
exit
$ac_status
)
;
}
&&
test
-s
conftest
$ac_exeext
;
then
pipe_works
=
yes
fi
LIBS
=
"
$save_LIBS
"
...
...
@@ -4234,6 +4314,7 @@ done
# Only perform the check for file, if the check method requires it
case
$deplibs_check_method
in
file_magic
*
)
...
...
@@ -4549,7 +4630,7 @@ test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
case
$host
in
*
-
*
-irix6
*
)
# Find out which ABI we are using.
echo
'#line 4
552
"configure"'
>
conftest.
$ac_ext
echo
'#line 4
633
"configure"'
>
conftest.
$ac_ext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_compile
\"
"
)
>
&5
(
eval
$ac_compile
)
2>&5
ac_status
=
$?
...
...
@@ -4791,7 +4872,7 @@ else
# like `-m68040'.
lt_cv_prog_cc_pic
=
'-m68020 -resident32 -malways-restore-a4'
;;
beos
*
|
irix5
*
|
irix6
*
|
osf3
*
|
osf4
*
|
osf5
*
)
beos
*
|
irix5
*
|
irix6
*
|
nonstopux
*
|
osf3
*
|
osf4
*
|
osf5
*
)
# PIC is the default for these OSes.
;;
darwin
*
|
rhapsody
*
)
...
...
@@ -4834,7 +4915,7 @@ else
lt_cv_prog_cc_pic
=
'+Z'
;;
irix5
*
|
irix6
*
)
irix5
*
|
irix6
*
|
nonstopux
*
)
lt_cv_prog_cc_wl
=
'-Wl,'
lt_cv_prog_cc_static
=
'-non_shared'
# PIC (with -KPIC) is the default.
...
...
@@ -4878,11 +4959,7 @@ else
sysv4
|
sysv4.2uw2
*
|
sysv4.3
*
|
sysv5
*
)
lt_cv_prog_cc_pic
=
'-KPIC'
lt_cv_prog_cc_static
=
'-Bstatic'
if
test
"x
$host_vendor
"
=
xsni
;
then
lt_cv_prog_cc_wl
=
'-LD'
else
lt_cv_prog_cc_wl
=
'-Wl,'
fi
lt_cv_prog_cc_wl
=
'-Wl,'
;;
uts4
*
)
...
...
@@ -5082,7 +5159,7 @@ chmod -w .
save_CFLAGS
=
"
$CFLAGS
"
CFLAGS
=
"
$CFLAGS
-o out/conftest2.
$ac_objext
"
compiler_c_o
=
no
if
{
(
eval echo
configure:5
085
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>out/conftest.err
;
}
&&
test
-s
out/conftest2.
$ac_objext
;
then
if
{
(
eval echo
configure:5
162
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>out/conftest.err
;
}
&&
test
-s
out/conftest2.
$ac_objext
;
then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
if
test
-s
out/conftest.err
;
then
...
...
@@ -5400,7 +5477,7 @@ EOF
# can override, but on older systems we have to supply one (in ltdll.c)
if
test
"x
$lt_cv_need_dllmain
"
=
"xyes"
;
then
ltdll_obj
=
'$output_objdir/$soname-ltdll.'
"
$ac_objext
"
ltdll_cmds
=
'test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d <
[$]
0 > $output_objdir/$soname-ltdll.c~
ltdll_cmds
=
'test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d <
$''
0 > $output_objdir/$soname-ltdll.c~
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
else
ltdll_obj
=
...
...
@@ -5418,7 +5495,7 @@ EOF
# If the export-symbols file already is a .def file (1st line
# is EXPORTS), use it as is.
# If DATA tags from a recent dlltool are present, honour them!
archive_expsym_cmds
=
'if test "x`
head -1
$export_symbols`" = xEXPORTS; then
archive_expsym_cmds
=
'if test "x`
sed 1q
$export_symbols`" = xEXPORTS; then
cp $export_symbols $output_objdir/$soname-def;
else
echo EXPORTS > $output_objdir/$soname-def;
...
...
@@ -5427,6 +5504,7 @@ EOF
set dummy \$symbol;
case \$# in
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
esac;
_lt_hint=`expr 1 + \$_lt_hint`;
...
...
@@ -5539,10 +5617,12 @@ else
# need to do runtime linking.
case
$host_os
in
aix4.[23]|aix4.[23].
*
|
aix5
*
)
for
ld_flag
in
$LDFLAGS
;
do
if
(
test
$ld_flag
=
"-brtl"
||
test
$ld_flag
=
"-Wl,-brtl"
)
;
then
case
$ld_flag
in
*
-brtl
*
)
aix_use_runtimelinking
=
yes
break
fi
;;
esac
done
esac
...
...
@@ -5614,7 +5694,7 @@ else
allow_undefined_flag
=
'${wl}-berok'
# This is a bit strange, but is similar to how AIX traditionally builds
# it's shared libraries.
archive_expsym_cmds
=
"
\$
CC
$shared_flag
"
' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '
"
\$
{wl}
$no_entry_flag
\$
{wl}
$exp_sym_flag
:
\$
export_symbols"
' ~$AR -crlo $o
bjdir/$libname$release.a $
objdir/$soname'
archive_expsym_cmds
=
"
\$
CC
$shared_flag
"
' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '
"
\$
{wl}
$no_entry_flag
\$
{wl}
$exp_sym_flag
:
\$
export_symbols"
' ~$AR -crlo $o
utput_objdir/$libname$release.a $output_
objdir/$soname'
fi
fi
;;
...
...
@@ -5656,8 +5736,9 @@ else
esac
# FIXME: Relying on posixy $() will cause problems for
# cross-compilation, but unfortunately the echo tests do not
# yet detect zsh echo's removal of \ escapes.
archive_cmds
=
'$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
# `"' quotes if we put them in here... so don't!
archive_cmds
=
'$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
# We need to add '_' to the symbols in $export_symbols first
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
hardcode_direct
=
yes
...
...
@@ -5709,13 +5790,14 @@ else
export_dynamic_flag_spec
=
'${wl}-E'
;;
irix5
*
|
irix6
*
)
irix5
*
|
irix6
*
|
nonstopux
*
)
if
test
"
$GCC
"
=
yes
;
then
archive_cmds
=
'$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
hardcode_libdir_flag_spec
=
'${wl}-rpath ${wl}$libdir'
else
archive_cmds
=
'$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
hardcode_libdir_flag_spec
=
'-rpath $libdir'
fi
hardcode_libdir_flag_spec
=
'${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator
=
:
link_all_deplibs
=
yes
;;
...
...
@@ -5743,7 +5825,7 @@ else
hardcode_direct
=
yes
hardcode_shlibpath_var
=
no
if
test
-z
"
`
echo
__ELF__ |
$CC
-E
- |
grep
__ELF__
`
"
||
test
"
$host_os
-
$host_cpu
"
=
"openbsd2.8-powerpc"
;
then
archive_cmds
=
'$CC -shared $pic_flag -o $lib $libobjs $deplibs $
link
er_flags'
archive_cmds
=
'$CC -shared $pic_flag -o $lib $libobjs $deplibs $
compil
er_flags'
hardcode_libdir_flag_spec
=
'${wl}-rpath,$libdir'
export_dynamic_flag_spec
=
'${wl}-E'
else
...
...
@@ -5753,7 +5835,7 @@ else
hardcode_libdir_flag_spec
=
'-R$libdir'
;;
*
)
archive_cmds
=
'$CC -shared $pic_flag -o $lib $libobjs $deplibs $
link
er_flags'
archive_cmds
=
'$CC -shared $pic_flag -o $lib $libobjs $deplibs $
compil
er_flags'
hardcode_libdir_flag_spec
=
'${wl}-rpath,$libdir'
;;
esac
...
...
@@ -5806,7 +5888,35 @@ else
;;
solaris
*
)
# gcc --version < 3.0 without binutils cannot create self contained
# shared libraries reliably, requiring libgcc.a to resolve some of
# the object symbols generated in some cases. Libraries that use
# assert need libgcc.a to resolve __eprintf, for example. Linking
# a copy of libgcc.a into every shared library to guarantee resolving
# such symbols causes other problems: According to Tim Van Holder
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
# (to the application) exception stack for one thing.
no_undefined_flag
=
' -z defs'
if
test
"
$GCC
"
=
yes
;
then
case
`
$CC
--version
2>/dev/null
`
in
[
12].
*
)
cat
<<
EOF
1>&2
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
*** create self contained shared libraries on Solaris systems, without
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
*** -no-undefined support, which will at least allow you to build shared
*** libraries. However, you may find that when you link such libraries
*** into an application without using GCC, you have to manually add
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
*** upgrade to a newer version of GCC. Another option is to rebuild your
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
EOF
no_undefined_flag
=
;;
esac
fi
# $CC -shared without GNU ld will not create a library from C++
# object files and a static libstdc++, better avoid it by now
archive_cmds
=
'$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
...
...
@@ -5837,13 +5947,23 @@ else
;;
sysv4
)
if
test
"x
$host_vendor
"
=
xsno
;
then
archive_cmds
=
'$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct
=
yes
# is this really true???
else
archive_cmds
=
'$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct
=
no
#Motorola manual says yes, but my tests say they lie
fi
case
$host_vendor
in
sni
)
archive_cmds
=
'$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct
=
yes
# is this really true???
;;
siemens
)
## LD is ld it makes a PLAMLIB
## CC just makes a GrossModule.
archive_cmds
=
'$LD -G -o $lib $libobjs $deplibs $linker_flags'
reload_cmds
=
'$CC -r -o $output$reload_objs'
hardcode_direct
=
no
;;
motorola
)
archive_cmds
=
'$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct
=
no
#Motorola manual says yes, but my tests say they lie
;;
esac
runpath_var
=
'LD_RUN_PATH'
hardcode_shlibpath_var
=
no
;;
...
...
@@ -5991,6 +6111,9 @@ aix3*)
aix4
*
|
aix5
*
)
version_type
=
linux
need_lib_prefix
=
no
need_version
=
no
hardcode_into_libs
=
yes
if
test
"
$host_cpu
"
=
ia64
;
then
# AIX 5 supports IA64
library_names_spec
=
'${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
...
...
@@ -6002,15 +6125,15 @@ aix4* | aix5*)
# depend on `.', always an invalid library. This was fixed in
# development snapshots of GCC prior to 3.0.
case
$host_os
in
aix4
|
aix4.[01]
|
aix4.[01].
*
)
if
{
echo
'#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
echo
' yes '
echo
'#endif'
;
}
|
${
CC
}
-E
- |
grep yes
>
/dev/null
;
then
:
else
can_build_shared
=
no
fi
;;
aix4
|
aix4.[01]
|
aix4.[01].
*
)
if
{
echo
'#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
echo
' yes '
echo
'#endif'
;
}
|
${
CC
}
-E
- |
grep yes
>
/dev/null
;
then
:
else
can_build_shared
=
no
fi
;;
esac
# AIX (on Power*) has no versioning support, so currently we can
# not hardcode correct soname into executable. Probably we can
...
...
@@ -6029,6 +6152,7 @@ aix4* | aix5*)
fi
shlibpath_var
=
LIBPATH
fi
hardcode_into_libs
=
yes
;;
amigaos
*
)
...
...
@@ -6076,7 +6200,7 @@ cygwin* | mingw* | pw32*)
;;
yes
,mingw
*
)
library_names_spec
=
'${libname}`echo ${release} | sed -e '
s/[.]/-/g
'`${versuffix}.dll'
sys_lib_search_path_spec
=
`
$CC
-print-search-dirs
|
grep
"^libraries:"
|
sed
-e
"s/^libraries://"
-e
"s/;/ /g"
`
sys_lib_search_path_spec
=
`
$CC
-print-search-dirs
|
grep
"^libraries:"
|
sed
-e
"s/^libraries://"
-e
"s/;/ /g"
-e
"s,=/,/,g"
`
;;
yes
,pw32
*
)
library_names_spec
=
'`echo ${libname} | sed -e '
s/^lib/pw/
'``echo ${release} | sed -e '
s/./-/g
'`${versuffix}.dll'
...
...
@@ -6108,6 +6232,18 @@ freebsd1*)
dynamic_linker
=
no
;;
freebsd
*
-gnu
*
)
version_type
=
linux
need_lib_prefix
=
no
need_version
=
no
library_names_spec
=
'${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
soname_spec
=
'${libname}${release}.so$major'
shlibpath_var
=
LD_LIBRARY_PATH
shlibpath_overrides_runpath
=
no
hardcode_into_libs
=
yes
dynamic_linker
=
'GNU/FreeBSD ld.so'
;;
freebsd
*
)
objformat
=
`
test
-x
/usr/bin/objformat
&&
/usr/bin/objformat
||
echo
aout
`
version_type
=
freebsd-
$objformat
...
...
@@ -6159,14 +6295,17 @@ hpux9* | hpux10* | hpux11*)
postinstall_cmds
=
'chmod 555 $lib'
;;
irix5
*
|
irix6
*
)
version_type
=
irix
irix5
*
|
irix6
*
|
nonstopux
*
)
case
$host_os
in
nonstopux
*
)
version_type
=
nonstopux
;;
*
)
version_type
=
irix
;;
esac
need_lib_prefix
=
no
need_version
=
no
soname_spec
=
'${libname}${release}.so$major'
library_names_spec
=
'${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
case
$host_os
in
irix5
*
)
irix5
*
|
nonstopux
*
)
libsuff
=
shlibsuff
=
;;
*
)
...
...
@@ -6270,11 +6409,13 @@ os2*)
osf3
*
|
osf4
*
|
osf5
*
)
version_type
=
osf
need_version
=
no
soname_spec
=
'${libname}${release}.so'
library_names_spec
=
'${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
need_lib_prefix
=
no
soname_spec
=
'${libname}${release}.so$major'
library_names_spec
=
'${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
shlibpath_var
=
LD_LIBRARY_PATH
sys_lib_search_path_spec
=
"/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
sys_lib_dlsearch_path_spec
=
"
$sys_lib_search_path_spec
"
hardcode_into_libs
=
yes
;;
sco3.2v5
*
)
...
...
@@ -6317,6 +6458,12 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
case
$host_vendor
in
sni
)
shlibpath_overrides_runpath
=
no
need_lib_prefix
=
no
export_dynamic_flag_spec
=
'${wl}-Blargedynsym'
runpath_var
=
LD_RUN_PATH
;;
siemens
)
need_lib_prefix
=
no
;;
motorola
)
need_lib_prefix
=
no
...
...
@@ -6857,7 +7004,7 @@ else
lt_dlunknown
=
0
;
lt_dlno_uscore
=
1
;
lt_dlneed_uscore
=
2
lt_status
=
$lt_dlunknown
cat
>
conftest.
$ac_ext
<<
EOF
#line
6860
"configure"
#line
7007
"configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
...
...
@@ -6955,7 +7102,7 @@ else
lt_dlunknown
=
0
;
lt_dlno_uscore
=
1
;
lt_dlneed_uscore
=
2
lt_status
=
$lt_dlunknown
cat
>
conftest.
$ac_ext
<<
EOF
#line
6958
"configure"
#line
7105
"configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
...
...
@@ -7138,7 +7285,7 @@ if test -f "$ltmain"; then
# Now quote all the things that may contain metacharacters while being
# careful not to overquote the AC_SUBSTed values. We take copies of the
# variables and quote the copies for generation of the libtool script.
for
var
in
echo
old_CC old_CFLAGS
\
for
var
in
echo
old_CC old_CFLAGS
SED
\
AR AR_FLAGS CC LD LN_S NM SHELL
\
reload_flag reload_cmds wl
\
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec
\
...
...
@@ -7200,8 +7347,11 @@ if test -f "$ltmain"; then
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# A sed that does not truncate output.
SED=
$lt_SED
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="
sed
-e s/^X//"
Xsed="
${
SED
}
-e s/^X//"
# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
...
...
@@ -8640,7 +8790,6 @@ cat >>conftest.$ac_ext <<_ACEOF
#include <stdlib.h>
#include <string.h>
#include <vorbis/codec.h>
#include <vorbis/vorbisenc.h>
int main ()
{
...
...
@@ -8649,7 +8798,7 @@ int main ()
vorbis_info vi;
vorbis_info_init (&vi);
vorbis_encode_init (&vi, 2, 44100, -1, 128
000
, -1);
vorbis_encode_init (&vi, 2, 44100, -1, 128, -1);
vorbis_analysis_init (&vd, &vi);
vorbis_block_init (&vd, &vb);
/* this function was added in 1.0rc3, so this is what we're testing for */
...
...
@@ -8699,7 +8848,7 @@ echo "${ECHO_T}no" >&6
else
echo
"*** Could not run Vorbis test program, checking why..."
CFLAGS
=
"
$CFLAGS
$VORBIS_CFLAGS
"
LIBS
=
"
$LIBS
$VORBIS_LIBS
$
VORBISENC_LIBS
$
OGG_LIBS
"
LIBS
=
"
$LIBS
$VORBIS_LIBS
$OGG_LIBS
"
cat
>
conftest.
$ac_ext
<<
_ACEOF
#line
$LINENO
"configure"
/* confdefs.h. */
...
...
@@ -9177,13 +9326,6 @@ echo "$as_me: error: conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally."
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
if
test
-z
"
${
am__fastdepCC_TRUE
}
"
&&
test
-z
"
${
am__fastdepCC_FALSE
}
"
;
then
{
{
echo
"
$as_me
:
$LINENO
: error: conditional
\"
am__fastdepCC
\"
was never defined.
Usually this means the macro was only invoked conditionally."
>
&5
echo
"
$as_me
: error: conditional
\"
am__fastdepCC
\"
was never defined.
Usually this means the macro was only invoked conditionally."
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
:
${
CONFIG_STATUS
=./config.status
}
ac_clean_files_save
=
$ac_clean_files
...
...
@@ -9711,7 +9853,6 @@ s,@LIBS@,$LIBS,;t t
s,@INSTALL_PROGRAM@,
$INSTALL_PROGRAM
,;t t
s,@INSTALL_SCRIPT@,
$INSTALL_SCRIPT
,;t t
s,@INSTALL_DATA@,
$INSTALL_DATA
,;t t
s,@CYGPATH_W@,
$CYGPATH_W
,;t t
s,@PACKAGE@,
$PACKAGE
,;t t
s,@VERSION@,
$VERSION
,;t t
s,@ACLOCAL@,
$ACLOCAL
,;t t
...
...
@@ -9740,8 +9881,6 @@ s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
s,@AMDEP_FALSE@,
$AMDEP_FALSE
,;t t
s,@AMDEPBACKSLASH@,
$AMDEPBACKSLASH
,;t t
s,@CCDEPMODE@,
$CCDEPMODE
,;t t
s,@am__fastdepCC_TRUE@,
$am__fastdepCC_TRUE
,;t t
s,@am__fastdepCC_FALSE@,
$am__fastdepCC_FALSE
,;t t
s,@build@,
$build
,;t t
s,@build_cpu@,
$build_cpu
,;t t
s,@build_vendor@,
$build_vendor
,;t t
...
...
configure.in
View file @
53f5a137
AC_INIT(main.c)
AM_INIT_AUTOMAKE(mpd, 0.8.
2
)
AM_INIT_AUTOMAKE(mpd, 0.8.
3
)
AC_PROG_CC
AC_PROG_INSTALL
...
...
directory.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -24,6 +24,7 @@
#include "utils.h"
#include "path.h"
#include "myfprintf.h"
#include "playlist.h"
#include <string.h>
#include <sys/types.h>
...
...
@@ -84,6 +85,7 @@ Directory * newDirectory(Directory * parentDirectory, char * dirname) {
void
freeDirectory
(
Directory
*
directory
)
{
freeDirectoryList
(
directory
->
subDirectories
);
removeSongsFromTables
(
directory
->
songs
);
deleteSongsFromPlaylist
(
directory
->
songs
);
freeSongList
(
directory
->
songs
);
if
(
directory
->
name
)
free
(
directory
->
name
);
free
(
directory
);
...
...
@@ -102,6 +104,7 @@ void removeSongFromDirectory(Directory * directory, char * shortname) {
if
(
findInList
(
directory
->
songs
,
shortname
,
&
song
))
{
removeASongFromTables
((
Song
*
)
song
);
deleteASongFromPlaylist
((
Song
*
)
song
);
deleteFromList
(
directory
->
songs
,
shortname
);
}
}
...
...
directory.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
flac_decode.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -262,11 +262,11 @@ int flac_decode(char * file, FILE * in, FILE * out) {
tv
.
tv_usec
=
0
;
initAudio
();
flac_device
=
ao_open_live
(
audio_ao_driver_id
,
&
format
,
NULL
);
flac_device
=
ao_open_live
(
audio_ao_driver_id
,
&
format
,
audio_ao_options
);
if
(
flac_device
==
NULL
)
{
fprintf
(
stderr
,
"%s Error opening device.
\n
"
,
PLAYER_ERROR
);
fflush
(
stderr
);
audioError
();
pid
=
flac_decode_pid
;
if
(
pid
>
0
)
kill
(
pid
,
SIGTERM
);
return
PLAYER_EXIT_ERROR_AUDIO
;
...
...
flac_decode.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
install-sh
View file @
53f5a137
#!/bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of M.I.T. not be used in advertising or
# publicity pertaining to distribution of the software without specific,
# written prior permission. M.I.T. makes no representations about the
# suitability of this software for any purpose. It is provided "as is"
# without express or implied warranty.
# Copyright (C) 1994 X Consortium
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of the X Consortium shall not
# be used in advertising or otherwise to promote the sale, use or other deal-
# ings in this Software without prior written authorization from the X Consor-
# tium.
#
#
# FSF changes to this file are in the public domain.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
...
...
@@ -56,7 +74,7 @@ dir_arg=""
while
[
x
"
$1
"
!=
x
]
;
do
case
$1
in
-c
)
instcmd
=
$cpprog
-c
)
instcmd
=
"
$cpprog
"
shift
continue
;;
...
...
@@ -79,7 +97,7 @@ while [ x"$1" != x ]; do
shift
continue
;;
-s
)
stripcmd
=
$stripprog
-s
)
stripcmd
=
"
$stripprog
"
shift
continue
;;
...
...
@@ -106,7 +124,7 @@ done
if
[
x
"
$src
"
=
x
]
then
echo
"
$0
: no input file specified"
>
&2
echo
"
install: no input file specified"
exit
1
else
:
...
...
@@ -115,8 +133,8 @@ fi
if
[
x
"
$dir_arg
"
!=
x
]
;
then
dst
=
$src
src
=
""
if
[
-d
"
$dst
"
]
;
then
if
[
-d
$dst
]
;
then
instcmd
=
:
chmodcmd
=
""
else
...
...
@@ -125,20 +143,20 @@ if [ x"$dir_arg" != x ]; then
else
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if
[
-f
"
$src
"
]
||
[
-d
"
$src
"
]
then
:
else
echo
"
$0
:
$src
does not exist"
>
&2
echo
"
install:
$src
does not exist"
exit
1
fi
if
[
x
"
$dst
"
=
x
]
then
echo
"
$0
: no destination specified"
>
&2
echo
"
install: no destination specified"
exit
1
else
:
...
...
@@ -147,16 +165,16 @@ else
# If destination is a directory, append the input filename; if your system
# does not like double slashes in filenames, you may need to add some logic
if
[
-d
"
$dst
"
]
if
[
-d
$dst
]
then
dst
=
$dst
/
`
basename
"
$src
"
`
dst
=
"
$dst
"
/
`
basename
$src
`
else
:
fi
fi
## this sed command emulates the dirname command
dstdir
=
`
echo
"
$dst
"
|
sed
-e
's,[^/]*$,,;s,/$,,;s,^$,.,'
`
dstdir
=
`
echo
$dst
|
sed
-e
's,[^/]*$,,;s,/$,,;s,^$,.,'
`
# Make sure that the destination directory exists.
# this part is taken from Noah Friedman's mkinstalldirs script
...
...
@@ -165,73 +183,69 @@ dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
if
[
!
-d
"
$dstdir
"
]
;
then
defaultIFS
=
'
'
IFS
=
"
${
IFS
-
$
defaultIFS
}
"
IFS
=
"
${
IFS
-
$
{
defaultIFS
}
}
"
oIFS
=
$IFS
oIFS
=
"
${
IFS
}
"
# Some sh's can't handle IFS=/ for some reason.
IFS
=
'%'
set
-
`
echo
"
$dstdir
"
|
sed
-e
's@/@%@g'
-e
's@^%@/@'
`
IFS
=
$oIFS
set
-
`
echo
${
dstdir
}
|
sed
-e
's@/@%@g'
-e
's@^%@/@'
`
IFS
=
"
${
oIFS
}
"
pathcomp
=
''
while
[
$#
-ne
0
]
;
do
pathcomp
=
$pathcomp$1
pathcomp
=
"
${
pathcomp
}${
1
}
"
shift
if
[
!
-d
"
$
pathcomp
"
]
;
if
[
!
-d
"
$
{
pathcomp
}
"
]
;
then
$mkdirprog
"
$
pathcomp
"
$mkdirprog
"
$
{
pathcomp
}
"
else
:
fi
pathcomp
=
$pathcomp
/
pathcomp
=
"
${
pathcomp
}
/"
done
fi
if
[
x
"
$dir_arg
"
!=
x
]
then
$doit
$instcmd
"
$dst
"
&&
$doit
$instcmd
$dst
&&
if
[
x
"
$chowncmd
"
!=
x
]
;
then
$doit
$chowncmd
"
$dst
"
;
else
:
;
fi
&&
if
[
x
"
$chgrpcmd
"
!=
x
]
;
then
$doit
$chgrpcmd
"
$dst
"
;
else
:
;
fi
&&
if
[
x
"
$stripcmd
"
!=
x
]
;
then
$doit
$stripcmd
"
$dst
"
;
else
:
;
fi
&&
if
[
x
"
$chmodcmd
"
!=
x
]
;
then
$doit
$chmodcmd
"
$dst
"
;
else
:
;
fi
if
[
x
"
$chowncmd
"
!=
x
]
;
then
$doit
$chowncmd
$dst
;
else
:
;
fi
&&
if
[
x
"
$chgrpcmd
"
!=
x
]
;
then
$doit
$chgrpcmd
$dst
;
else
:
;
fi
&&
if
[
x
"
$stripcmd
"
!=
x
]
;
then
$doit
$stripcmd
$dst
;
else
:
;
fi
&&
if
[
x
"
$chmodcmd
"
!=
x
]
;
then
$doit
$chmodcmd
$dst
;
else
:
;
fi
else
# If we're going to rename the final executable, determine the name now.
if
[
x
"
$transformarg
"
=
x
]
if
[
x
"
$transformarg
"
=
x
]
then
dstfile
=
`
basename
"
$dst
"
`
dstfile
=
`
basename
$dst
`
else
dstfile
=
`
basename
"
$dst
"
$transformbasename
|
dstfile
=
`
basename
$dst
$transformbasename
|
sed
$transformarg
`
$transformbasename
fi
# don't allow the sed command to completely eliminate the filename
if
[
x
"
$dstfile
"
=
x
]
if
[
x
"
$dstfile
"
=
x
]
then
dstfile
=
`
basename
"
$dst
"
`
dstfile
=
`
basename
$dst
`
else
:
fi
# Make a
couple of temp file names
in the proper directory.
# Make a
temp file name
in the proper directory.
dsttmp
=
$dstdir
/#inst.
$$
#
rmtmp
=
$dstdir
/#rm.
$$
#
# Trap to clean up temp files at exit.
trap
'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status'
0
trap
'(exit $?); exit'
1 2 13 15
# Move or copy the file name to the temp name
$doit
$instcmd
"
$src
"
"
$dsttmp
"
&&
$doit
$instcmd
$src
$dsttmp
&&
trap
"rm -f
${
dsttmp
}
"
0
&&
# and set any options; do chmod last to preserve setuid bits
...
...
@@ -239,38 +253,17 @@ else
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $instcmd $src $dsttmp" command.
if
[
x
"
$chowncmd
"
!=
x
]
;
then
$doit
$chowncmd
"
$dsttmp
"
;
else
:
;
fi
&&
if
[
x
"
$chgrpcmd
"
!=
x
]
;
then
$doit
$chgrpcmd
"
$dsttmp
"
;
else
:
;
fi
&&
if
[
x
"
$stripcmd
"
!=
x
]
;
then
$doit
$stripcmd
"
$dsttmp
"
;
else
:
;
fi
&&
if
[
x
"
$chmodcmd
"
!=
x
]
;
then
$doit
$chmodcmd
"
$dsttmp
"
;
else
:
;
fi
&&
# Now remove or move aside any old file at destination location. We try this
# two ways since rm can't unlink itself on some systems and the destination
# file might be busy for other reasons. In this case, the final cleanup
# might fail but the new file should still install successfully.
{
if
[
-f
"
$dstdir
/
$dstfile
"
]
then
$doit
$rmcmd
-f
"
$dstdir
/
$dstfile
"
2>/dev/null
||
$doit
$mvcmd
-f
"
$dstdir
/
$dstfile
"
"
$rmtmp
"
2>/dev/null
||
{
echo
"
$0
: cannot unlink or rename
$dstdir
/
$dstfile
"
>
&2
(
exit
1
)
;
exit
}
else
:
fi
}
&&
if
[
x
"
$chowncmd
"
!=
x
]
;
then
$doit
$chowncmd
$dsttmp
;
else
:
;
fi
&&
if
[
x
"
$chgrpcmd
"
!=
x
]
;
then
$doit
$chgrpcmd
$dsttmp
;
else
:
;
fi
&&
if
[
x
"
$stripcmd
"
!=
x
]
;
then
$doit
$stripcmd
$dsttmp
;
else
:
;
fi
&&
if
[
x
"
$chmodcmd
"
!=
x
]
;
then
$doit
$chmodcmd
$dsttmp
;
else
:
;
fi
&&
# Now rename the file to the real destination.
$doit
$mvcmd
"
$dsttmp
"
"
$dstdir
/
$dstfile
"
$doit
$rmcmd
-f
$dstdir
/
$dstfile
&&
$doit
$mvcmd
$dsttmp
$dstdir
/
$dstfile
fi
&&
# The final little trick to "correctly" pass the exit status to the exit trap.
{
(
exit
0
)
;
exit
}
exit
0
interface.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -147,13 +147,17 @@ int interfaceReadInput(Interface * interface) {
argArrayLength
=
buffer2array
((
char
*
)
node
->
data
,
&
argArray
);
ret
=
processCommand
(
interface
->
fp
,
argArrayLength
,
argArray
);
freeArgArray
(
argArray
,
argArrayLength
);
if
(
ret
!=
0
)
break
;
if
(
ret
!=
0
||
interface
->
expired
)
{
break
;
}
node
=
node
->
nextNode
;
}
if
(
ret
==
0
)
{
myfprintf
(
interface
->
fp
,
"%s
\n
"
,
COMMAND_RESPOND_OK
);
}
else
if
(
ret
==
COMMAND_RETURN_CLOSE
)
{
else
if
(
ret
==
COMMAND_RETURN_CLOSE
||
interface
->
expired
)
{
closeInterface
(
interface
);
}
...
...
@@ -189,7 +193,8 @@ int interfaceReadInput(Interface * interface) {
if
(
ret
==
0
)
{
myfprintf
(
interface
->
fp
,
"%s
\n
"
,
COMMAND_RESPOND_OK
);
}
else
if
(
ret
==
COMMAND_RETURN_CLOSE
)
{
else
if
(
ret
==
COMMAND_RETURN_CLOSE
||
interface
->
expired
)
{
closeInterface
(
interface
);
}
}
...
...
interface.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
libid3tag/Makefile.in
View file @
53f5a137
# Makefile.in generated by automake 1.
7.2
from Makefile.am.
# Makefile.in generated by automake 1.
6.3
from Makefile.am.
# @configure_input@
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
...
...
@@ -13,112 +13,77 @@
# PARTICULAR PURPOSE.
@SET_MAKE@
SHELL
=
@SHELL@
srcdir
=
@srcdir@
top_srcdir
=
@top_srcdir@
VPATH
=
@srcdir@
prefix
=
@prefix@
exec_prefix
=
@exec_prefix@
bindir
=
@bindir@
sbindir
=
@sbindir@
libexecdir
=
@libexecdir@
datadir
=
@datadir@
sysconfdir
=
@sysconfdir@
sharedstatedir
=
@sharedstatedir@
localstatedir
=
@localstatedir@
libdir
=
@libdir@
infodir
=
@infodir@
mandir
=
@mandir@
includedir
=
@includedir@
oldincludedir
=
/usr/include
pkgdatadir
=
$(datadir)
/@PACKAGE@
pkglibdir
=
$(libdir)
/@PACKAGE@
pkgincludedir
=
$(includedir)
/@PACKAGE@
top_builddir
=
.
ACLOCAL
=
@ACLOCAL@
AUTOCONF
=
@AUTOCONF@
AUTOMAKE
=
@AUTOMAKE@
AUTOHEADER
=
@AUTOHEADER@
am__cd
=
CDPATH
=
"
$$
{ZSH_VERSION+.}
$(PATH_SEPARATOR)
"
&&
cd
INSTALL
=
@INSTALL@
INSTALL_PROGRAM
=
@INSTALL_PROGRAM@
INSTALL_DATA
=
@INSTALL_DATA@
install_sh_DATA
=
$(install_sh)
-c
-m
644
install_sh_PROGRAM
=
$(install_sh)
-c
install_sh_SCRIPT
=
$(install_sh)
-c
INSTALL_SCRIPT
=
@INSTALL_SCRIPT@
INSTALL_HEADER
=
$(INSTALL_DATA)
transform
=
$(program_transform_name)
transform
=
@program_transform_name@
NORMAL_INSTALL
=
:
PRE_INSTALL
=
:
POST_INSTALL
=
:
NORMAL_UNINSTALL
=
:
PRE_UNINSTALL
=
:
POST_UNINSTALL
=
:
host_alias
=
@host_alias@
host_triplet
=
@host@
ACLOCAL
=
@ACLOCAL@
AMDEP_FALSE
=
@AMDEP_FALSE@
AMDEP_TRUE
=
@AMDEP_TRUE@
EXEEXT
=
@EXEEXT@
OBJEXT
=
@OBJEXT@
PATH_SEPARATOR
=
@PATH_SEPARATOR@
AMTAR
=
@AMTAR@
AUTOCONF
=
@AUTOCONF@
AUTOHEADER
=
@AUTOHEADER@
AUTOMAKE
=
@AUTOMAKE@
AS
=
@AS@
AWK
=
@AWK@
CC
=
@CC@
CCDEPMODE
=
@CCDEPMODE@
CFLAGS
=
@CFLAGS@
CPP
=
@CPP@
CPPFLAGS
=
@CPPFLAGS@
CYGPATH_W
=
@CYGPATH_W@
DEBUG_FALSE
=
@DEBUG_FALSE@
DEBUG_TRUE
=
@DEBUG_TRUE@
DEFS
=
@DEFS@
DEPDIR
=
@DEPDIR@
DLLTOOL
=
@DLLTOOL@
ECHO
=
@ECHO@
ECHO_C
=
@ECHO_C@
ECHO_N
=
@ECHO_N@
ECHO_T
=
@ECHO_T@
EGREP
=
@EGREP@
EXEEXT
=
@EXEEXT@
INSTALL_DATA
=
@INSTALL_DATA@
INSTALL_PROGRAM
=
@INSTALL_PROGRAM@
INSTALL_SCRIPT
=
@INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM
=
@INSTALL_STRIP_PROGRAM@
LDFLAGS
=
@LDFLAGS@
LIBOBJS
=
@LIBOBJS@
LIBS
=
@LIBS@
LIBTOOL
=
@LIBTOOL@
LIBTOOL_DEPS
=
@LIBTOOL_DEPS@
LN_S
=
@LN_S@
LTLIBOBJS
=
@LTLIBOBJS@
MAKEINFO
=
@MAKEINFO@
OBJEXT
=
@OBJEXT@
OBJDUMP
=
@OBJDUMP@
PACKAGE
=
@PACKAGE@
PACKAGE_BUGREPORT
=
@PACKAGE_BUGREPORT@
PACKAGE_NAME
=
@PACKAGE_NAME@
PACKAGE_STRING
=
@PACKAGE_STRING@
PACKAGE_TARNAME
=
@PACKAGE_TARNAME@
PACKAGE_VERSION
=
@PACKAGE_VERSION@
PATH_SEPARATOR
=
@PATH_SEPARATOR@
RANLIB
=
@RANLIB@
SET_MAKE
=
@SET_MAKE@
SHELL
=
@SHELL@
STRIP
=
@STRIP@
VERSION
=
@VERSION@
ac_ct_CC
=
@ac_ct_CC@
ac_ct_RANLIB
=
@ac_ct_RANLIB@
ac_ct_STRIP
=
@ac_ct_STRIP@
am__fastdepCC_FALSE
=
@am__fastdepCC_FALSE@
am__fastdepCC_TRUE
=
@am__fastdepCC_TRUE@
am__include
=
@am__include@
am__quote
=
@am__quote@
bindir
=
@bindir@
build
=
@build@
build_alias
=
@build_alias@
build_cpu
=
@build_cpu@
build_os
=
@build_os@
build_vendor
=
@build_vendor@
datadir
=
@datadir@
exec_prefix
=
@exec_prefix@
host
=
@host@
host_alias
=
@host_alias@
host_cpu
=
@host_cpu@
host_os
=
@host_os@
host_vendor
=
@host_vendor@
includedir
=
@includedir@
infodir
=
@infodir@
install_sh
=
@install_sh@
libdir
=
@libdir@
libexecdir
=
@libexecdir@
localstatedir
=
@localstatedir@
mandir
=
@mandir@
oldincludedir
=
@oldincludedir@
prefix
=
@prefix@
program_transform_name
=
@program_transform_name@
sbindir
=
@sbindir@
sharedstatedir
=
@sharedstatedir@
sysconfdir
=
@sysconfdir@
target_alias
=
@target_alias@
SUBDIRS
=
...
...
@@ -135,9 +100,9 @@ version_info = $(version_current):$(version_revision):$(version_age)
EXTRA_DIST
=
genre.dat.sed
\
CHANGES COPYRIGHT CREDITS README TODO VERSION
@DEBUG_FALSE@
debug
=
@DEBUG_TRUE@
debug
=
debug.c debug.h
@DEBUG_FALSE@
debug
=
libid3tag_la_SOURCES
=
version.c ucs4.c latin1.c utf16.c utf8.c
\
parse.c render.c field.c frametype.c compat.c
\
...
...
@@ -164,12 +129,6 @@ CONFIG_CLEAN_FILES = libid3tag.list
LTLIBRARIES
=
$(noinst_LTLIBRARIES)
libid3tag_la_LIBADD
=
am__libid3tag_la_SOURCES_DIST
=
version.c ucs4.c latin1.c utf16.c utf8.c
\
parse.c render.c field.c frametype.c compat.c genre.c frame.c
\
crc.c util.c tag.c file.c version.h ucs4.h latin1.h utf16.h
\
utf8.h parse.h render.h field.h frametype.h compat.h genre.h
\
frame.h crc.h util.h tag.h file.h id3tag.h global.h genre.dat
\
debug.c debug.h
@DEBUG_TRUE@
am__objects_1
=
debug.lo
@DEBUG_FALSE@
am__objects_1
=
am_libid3tag_la_OBJECTS
=
version.lo ucs4.lo latin1.lo utf16.lo utf8.lo
\
...
...
@@ -177,7 +136,11 @@ am_libid3tag_la_OBJECTS = version.lo ucs4.lo latin1.lo utf16.lo utf8.lo \
frame.lo crc.lo util.lo tag.lo file.lo
$(am__objects_1)
libid3tag_la_OBJECTS
=
$(am_libid3tag_la_OBJECTS)
DEFS
=
@DEFS@
DEFAULT_INCLUDES
=
-I
.
-I
$(srcdir)
-I
.
CPPFLAGS
=
@CPPFLAGS@
LDFLAGS
=
@LDFLAGS@
LIBS
=
@LIBS@
depcomp
=
$(SHELL)
$(top_srcdir)
/../depcomp
am__depfiles_maybe
=
depfiles
@AMDEP_TRUE@
DEP_FILES
=
./
$(DEPDIR)
/compat.Plo ./
$(DEPDIR)
/crc.Plo
\
...
...
@@ -196,16 +159,15 @@ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
CCLD
=
$(CC)
LINK
=
$(LIBTOOL)
--mode
=
link
$(CCLD)
$(AM_CFLAGS)
$(CFLAGS)
\
$(AM_LDFLAGS)
$(LDFLAGS)
-o
$@
DIST_SOURCES
=
$(am__libid3tag_la_SOURCES_DIST)
\
$(EXTRA_libid3tag_la_SOURCES)
CFLAGS
=
@CFLAGS@
DIST_SOURCES
=
$(libid3tag_la_SOURCES)
$(EXTRA_libid3tag_la_SOURCES)
HEADERS
=
$(noinst_HEADERS)
RECURSIVE_TARGETS
=
info-recursive dvi-recursive pdf-recursive
\
ps-recursive install-info-recursive uninstall-info-recursive
\
all-recursive install-data-recursive install-exec-recursive
\
installdirs-recursive install-recursive uninstall-recursive
\
check-recursive installcheck-recursive
RECURSIVE_TARGETS
=
info-recursive dvi-recursive install-info-recursive
\
uninstall-info-recursive all-recursive install-data-recursive
\
install-exec-recursive installdirs-recursive install-recursive
\
uninstall-recursive check-recursive installcheck-recursive
DIST_COMMON
=
README
$(noinst_HEADERS)
../config.guess ../config.sub
\
../depcomp ../install-sh ../ltmain.sh ../missing
\
../mkinstalldirs COPYING INSTALL Makefile.am Makefile.in TODO
\
...
...
@@ -258,7 +220,7 @@ clean-noinstLTLIBRARIES:
-
test
-z
"
$(noinst_LTLIBRARIES)
"
||
rm
-f
$(noinst_LTLIBRARIES)
@
list
=
'
$(noinst_LTLIBRARIES)
'
;
for
p
in
$$
list
;
do
\
dir
=
"
`
echo
$$
p |
sed
-e
's|/[^/]*$$||'
`
"
;
\
test
"
$$
dir"
=
"
$$
p
"
&&
dir
=
.
;
\
test
-z
"
$dir
"
&&
dir
=
.
;
\
echo
"rm -f
\"
$$
{dir}/so_locations
\"
"
;
\
rm
-f
"
$$
{dir}/so_locations"
;
\
done
...
...
@@ -293,37 +255,23 @@ distclean-depend:
-
rm
-rf
./
$(DEPDIR)
.c.o
:
@am__fastdepCC_TRUE@
if
$(COMPILE)
-MT
$@
-MD
-MP
-MF
"$(DEPDIR)/$*.Tpo"
\
@am__fastdepCC_TRUE@
-c
-o
$@
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<;
\
@am__fastdepCC_TRUE@
then
mv
"$(DEPDIR)/$*.Tpo"
"$(DEPDIR)/$*.Po"
;
\
@am__fastdepCC_TRUE@
else
rm
-f
"$(DEPDIR)/$*.Tpo"
;
exit
1;
\
@am__fastdepCC_TRUE@
fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@
source
=
'$<'
object
=
'$@'
libtool
=
no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
depfile
=
'
$(DEPDIR)
/$*.Po'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
@am__fastdepCC_FALSE@
$(COMPILE)
-c
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<
@AMDEP_TRUE@
source
=
'$<'
object
=
'$@'
libtool
=
no @AMDEPBACKSLASH@
@AMDEP_TRUE@
depfile
=
'
$(DEPDIR)
/$*.Po'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
$(COMPILE)
-c
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<
.c.obj
:
@am__fastdepCC_TRUE@
if
$(COMPILE)
-MT
$@
-MD
-MP
-MF
"$(DEPDIR)/$*.Tpo"
\
@am__fastdepCC_TRUE@
-c
-o
$@
`if
test
-f
'$<'
;
then
$(CYGPATH_W)
'$<'
;
else
$(CYGPATH_W)
'$(srcdir)/$<'
;
fi`;
\
@am__fastdepCC_TRUE@
then
mv
"$(DEPDIR)/$*.Tpo"
"$(DEPDIR)/$*.Po"
;
\
@am__fastdepCC_TRUE@
else
rm
-f
"$(DEPDIR)/$*.Tpo"
;
exit
1;
\
@am__fastdepCC_TRUE@
fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@
source
=
'$<'
object
=
'$@'
libtool
=
no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
depfile
=
'
$(DEPDIR)
/$*.Po'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
@am__fastdepCC_FALSE@
$(COMPILE)
-c
`if
test
-f
'$<'
;
then
$(CYGPATH_W)
'$<'
;
else
$(CYGPATH_W)
'$(srcdir)/$<'
;
fi`
@AMDEP_TRUE@
source
=
'$<'
object
=
'$@'
libtool
=
no @AMDEPBACKSLASH@
@AMDEP_TRUE@
depfile
=
'
$(DEPDIR)
/$*.Po'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
$(COMPILE)
-c
`cygpath
-w
$<`
.c.lo
:
@am__fastdepCC_TRUE@
if
$(LTCOMPILE)
-MT
$@
-MD
-MP
-MF
"$(DEPDIR)/$*.Tpo"
\
@am__fastdepCC_TRUE@
-c
-o
$@
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<;
\
@am__fastdepCC_TRUE@
then
mv
"$(DEPDIR)/$*.Tpo"
"$(DEPDIR)/$*.Plo"
;
\
@am__fastdepCC_TRUE@
else
rm
-f
"$(DEPDIR)/$*.Tpo"
;
exit
1;
\
@am__fastdepCC_TRUE@
fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@
source
=
'$<'
object
=
'$@'
libtool
=
yes
@AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
depfile
=
'
$(DEPDIR)
/$*.Plo'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPlo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
@am__fastdepCC_FALSE@
$(LTCOMPILE)
-c
-o
$@
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<
@AMDEP_TRUE@
source
=
'$<'
object
=
'$@'
libtool
=
yes
@AMDEPBACKSLASH@
@AMDEP_TRUE@
depfile
=
'
$(DEPDIR)
/$*.Plo'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPlo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
$(LTCOMPILE)
-c
-o
$@
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<
CCDEPMODE
=
@CCDEPMODE@
mostlyclean-libtool
:
-
rm
-f
*
.lo
...
...
@@ -389,17 +337,10 @@ tags-recursive:
list
=
'
$(SUBDIRS)
'
;
for
subdir
in
$$
list
;
do
\
test
"
$$
subdir"
=
.
||
(
cd
$$
subdir
&&
$(MAKE)
$(AM_MAKEFLAGS)
tags
)
;
\
done
ctags-recursive
:
list
=
'
$(SUBDIRS)
'
;
for
subdir
in
$$
list
;
do
\
test
"
$$
subdir"
=
.
||
(
cd
$$
subdir
&&
$(MAKE)
$(AM_MAKEFLAGS)
ctags
)
;
\
done
ETAGS
=
etags
ETAGSFLAGS
=
CTAGS
=
ctags
CTAGSFLAGS
=
tags
:
TAGS
ID
:
$(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
...
...
@@ -430,28 +371,13 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
||
$(ETAGS)
$(ETAGSFLAGS)
$(AM_ETAGSFLAGS)
$(ETAGS_ARGS)
\
$$
tags
$$
unique
ctags
:
CTAGS
CTAGS
:
ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES)
\
$(TAGS_FILES) $(LISP)
tags
=
;
\
here
=
`
pwd
`
;
\
list
=
'
$(SOURCES)
$(HEADERS)
config.h.in
$(LISP)
$(TAGS_FILES)
'
;
\
unique
=
`
for
i
in
$$
list
;
do
\
if
test
-f
"
$$
i"
;
then
echo
$$
i
;
else
echo
$(srcdir)
/
$$
i
;
fi
;
\
done
|
\
$(AWK)
' { files[$$0] = 1; } \
END { for (i in files) print i; }'
`
;
\
test
-z
"
$(CTAGS_ARGS)$$
tags
$$
unique"
\
||
$(CTAGS)
$(CTAGSFLAGS)
$(AM_CTAGSFLAGS)
$(CTAGS_ARGS)
\
$$
tags
$$
unique
GTAGS
:
here
=
`
$(am__cd)
$(top_builddir)
&&
pwd
`
\
&&
cd
$(top_srcdir)
\
&&
gtags
-i
$(GTAGS_ARGS)
$$
here
distclean-tags
:
-
rm
-f
TAGS ID GTAGS GRTAGS GSYMS GPATH
tags
-
rm
-f
TAGS ID GTAGS GRTAGS GSYMS GPATH
DISTFILES
=
$(DIST_COMMON)
$(DIST_SOURCES)
$(TEXINFOS)
$(EXTRA_DIST)
top_distdir
=
.
...
...
@@ -463,20 +389,13 @@ am__remove_distdir = \
&&
rm
-fr
$(distdir)
;
}
;
}
GZIP_ENV
=
--best
distuninstallcheck_listfiles
=
find
.
-type
f
-print
distcleancheck_listfiles
=
find
.
-type
f
-print
distdir
:
$(DISTFILES)
$(am__remove_distdir)
mkdir
$(distdir)
$(mkinstalldirs)
$(distdir)
/.
$(distdir)
/..
@
srcdirstrip
=
`
echo
"
$(srcdir)
"
|
sed
's|.|.|g'
`
;
\
topsrcdirstrip
=
`
echo
"
$(top_srcdir)
"
|
sed
's|.|.|g'
`
;
\
list
=
'
$(DISTFILES)
'
;
for
file
in
$$
list
;
do
\
case
$$
file
in
\
$(srcdir)
/
*
)
file
=
`
echo
"
$$
file"
|
sed
"s|^
$$
srcdirstrip/||"
`
;;
\
$(top_srcdir)
/
*
)
file
=
`
echo
"
$$
file"
|
sed
"s|^
$$
topsrcdirstrip/|
$(top_builddir)
/|"
`
;;
\
esac
;
\
@
list
=
'
$(DISTFILES)
'
;
for
file
in
$$
list
;
do
\
if
test
-f
$$
file
||
test
-d
$$
file
;
then
d
=
.
;
else
d
=
$(srcdir)
;
fi
;
\
dir
=
`
echo
"
$$
file"
|
sed
-e
's,/[^/]*$$,,'
`
;
\
if
test
"
$$
dir"
!=
"
$$
file"
&&
test
"
$$
dir"
!=
"."
;
then
\
...
...
@@ -533,9 +452,8 @@ distcheck: dist
mkdir
$(distdir)
/
=
inst
chmod
a-w
$(distdir)
dc_install_base
=
`
$(am__cd)
$(distdir)
/
=
inst
&&
pwd
`
\
&&
dc_destdir
=
"
$$
{TMPDIR-/tmp}/am-dc-
$$$$
/"
\
&&
cd
$(distdir)
/
=
build
\
&&
../configure
--srcdir
=
..
--prefix
=
"
$$
dc_install_base"
\
&&
../configure
--srcdir
=
..
--prefix
=
$$
dc_install_base
\
$(DISTCHECK_CONFIGURE_FLAGS)
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
dvi
\
...
...
@@ -543,44 +461,27 @@ distcheck: dist
&&
$(MAKE)
$(AM_MAKEFLAGS)
install
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
installcheck
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
uninstall
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
distuninstallcheck_dir
=
"
$$
dc_install_base"
\
distuninstallcheck
\
&&
chmod
-R
a-w
"
$$
dc_install_base"
\
&&
({
\
(
cd
../..
&&
$(mkinstalldirs)
"
$$
dc_destdir"
)
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
DESTDIR
=
"
$$
dc_destdir"
install
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
DESTDIR
=
"
$$
dc_destdir"
uninstall
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
DESTDIR
=
"
$$
dc_destdir"
\
distuninstallcheck_dir
=
"
$$
dc_destdir"
distuninstallcheck
;
\
}
||
{
rm
-rf
"
$$
dc_destdir"
;
exit
1
;
})
\
&&
rm
-rf
"
$$
dc_destdir"
\
&&
(
test
`
find
$$
dc_install_base
-type
f
-print
|
wc
-l
`
-le
1
\
||
{
echo
"ERROR: files left after uninstall:"
;
\
find
$$
dc_install_base
-type
f
-print
;
\
exit
1
;
}
>
&2
)
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
dist-gzip
\
&&
rm
-f
$(distdir)
.tar.gz
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
distcleancheck
$(am__remove_distdir)
@
echo
"
$(distdir)
.tar.gz is ready for distribution"
|
\
sed
'h;s/./=/g;p;x;p;x'
distuninstallcheck
:
cd
$(distuninstallcheck_dir)
\
&&
test
`
$(distuninstallcheck_listfiles)
|
wc
-l
`
-le
1
\
||
{
echo
"ERROR: files left after uninstall:"
;
\
if
test
-n
"
$(DESTDIR)
"
;
then
\
echo
" (check DESTDIR support)"
;
\
fi
;
\
$(distuninstallcheck_listfiles)
;
\
exit
1
;
}
>
&2
distcleancheck
:
distclean
if
test
'
$(srcdir)
'
=
.
;
then
\
echo
"ERROR: distcleancheck can only run from a VPATH build"
;
\
exit
1
;
\
fi
test
`
$(distcleancheck_listfiles)
|
wc
-l
`
-eq
0
\
||
{
echo
"ERROR: files left
in build directory
after distclean:"
;
\
||
{
echo
"ERROR: files left after distclean:"
;
\
$(distcleancheck_listfiles)
;
\
exit
1
;
}
>
&2
check-am
:
all-am
check
:
$(BUILT_SOURCES)
$(MAKE)
$(AM_MAKEFLAGS)
check-recursive
check
:
check-recursive
all-am
:
Makefile $(LTLIBRARIES) $(HEADERS) config.h
installdirs
:
installdirs-recursive
installdirs-am
:
...
...
@@ -649,36 +550,27 @@ mostlyclean: mostlyclean-recursive
mostlyclean-am
:
mostlyclean-compile mostlyclean-generic
\
mostlyclean-libtool
pdf
:
pdf-recursive
pdf-am
:
ps
:
ps-recursive
ps-am
:
uninstall-am
:
uninstall-info-am
uninstall-info
:
uninstall-info-recursive
.PHONY
:
$(RECURSIVE_TARGETS)
CTAGS
GTAGS all all-am check check-am clean
\
.PHONY
:
$(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean
\
clean-generic clean-libtool clean-noinstLTLIBRARIES
\
clean-recursive ctags ctags-recursive dist dist-all dist-gzip
\
distcheck distclean distclean-compile distclean-depend
\
distclean-generic distclean-hdr distclean-libtool
\
distclean-recursive distclean-tags distcleancheck distdir
\
distuninstallcheck dvi dvi-am dvi-recursive info info-am
\
info-recursive install install-am install-data install-data-am
\
install-data-recursive install-exec install-exec-am
\
install-exec-recursive install-info install-info-am
\
install-info-recursive install-man install-recursive
\
install-strip installcheck installcheck-am installdirs
\
installdirs-am installdirs-recursive maintainer-clean
\
maintainer-clean-generic maintainer-clean-recursive mostlyclean
\
mostlyclean-compile mostlyclean-generic mostlyclean-libtool
\
mostlyclean-recursive pdf pdf-am pdf-recursive ps ps-am
\
ps-recursive tags tags-recursive uninstall uninstall-am
\
uninstall-info-am uninstall-info-recursive uninstall-recursive
clean-recursive dist dist-all dist-gzip distcheck distclean
\
distclean-compile distclean-depend distclean-generic
\
distclean-hdr distclean-libtool distclean-recursive
\
distclean-tags distcleancheck distdir dvi dvi-am dvi-recursive
\
info info-am info-recursive install install-am install-data
\
install-data-am install-data-recursive install-exec
\
install-exec-am install-exec-recursive install-info
\
install-info-am install-info-recursive install-man
\
install-recursive install-strip installcheck installcheck-am
\
installdirs installdirs-am installdirs-recursive
\
maintainer-clean maintainer-clean-generic
\
maintainer-clean-recursive mostlyclean mostlyclean-compile
\
mostlyclean-generic mostlyclean-libtool mostlyclean-recursive
\
tags tags-recursive uninstall uninstall-am uninstall-info-am
\
uninstall-info-recursive uninstall-recursive
$(srcdir)/frametype.c
:
$(srcdir)/frametype.gperf Makefile.am
...
...
libid3tag/aclocal.m4
View file @
53f5a137
#
generated automatically by aclocal 1.7.2
-*- Autoconf -*-
#
aclocal.m4 generated automatically by aclocal 1.6.3
-*- Autoconf -*-
# Copyright
(C)
1996, 1997, 1998, 1999, 2000, 2001, 2002
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
...
...
@@ -43,7 +43,7 @@
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
AC_PREREQ([2.5
4
])
AC_PREREQ([2.5
2
])
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
# the ones we care about.
...
...
@@ -69,16 +69,6 @@ if test "`cd $srcdir && pwd`" != "`pwd`" &&
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
fi
# test whether we have cygpath
if test -z "$CYGPATH_W"; then
if (cygpath --version) >/dev/null 2>/dev/null; then
CYGPATH_W='cygpath -w'
else
CYGPATH_W=echo
fi
fi
AC_SUBST([CYGPATH_W])
# Define the identity of the package.
dnl Distinguish between old-style and new-style calls.
m4_ifval([$2],
...
...
@@ -110,29 +100,17 @@ AC_REQUIRE([AC_PROG_AWK])dnl
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
_AM_IF_OPTION([no-dependencies],,
[AC_PROVIDE_IFELSE([AC_PROG_CC],
[AC_PROVIDE_IFELSE([AC_PROG_
][
CC],
[_AM_DEPENDENCIES(CC)],
[define([AC_PROG_CC],
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
AC_PROVIDE_IFELSE([AC_PROG_CXX],
[define([AC_PROG_
][
CC],
defn([AC_PROG_
][
CC])[_AM_DEPENDENCIES(CC)])])dnl
AC_PROVIDE_IFELSE([AC_PROG_
][
CXX],
[_AM_DEPENDENCIES(CXX)],
[define([AC_PROG_CXX],
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
[define([AC_PROG_
][
CXX],
defn([AC_PROG_
][
CXX])[_AM_DEPENDENCIES(CXX)])])dnl
])
])
# When config.status generates a header, we must update the stamp-h file.
# This file resides in the same directory as the config header
# that is generated. The stamp files are numbered to have different names.
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
# loop where config.status creates the headers, so we can generate
# our stamp files there.
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
[_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
# Copyright 2002 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
...
...
@@ -153,14 +131,14 @@ echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
# ----------------------------
# Automake X.Y traces this macro to ensure aclocal.m4 has been
# generated from the m4 files accompanying Automake X.Y.
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.
7
"])
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.
6
"])
# AM_SET_CURRENT_AUTOMAKE_VERSION
# -------------------------------
# Call AM_AUTOMAKE_VERSION so it can be traced.
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
[AM_AUTOMAKE_VERSION([1.
7.2
])])
[AM_AUTOMAKE_VERSION([1.
6.3
])])
# Helper functions for option handling. -*- Autoconf -*-
...
...
@@ -540,7 +518,7 @@ AC_CACHE_CHECK([dependency style of $depcc],
if depmode=$depmode \
source=conftest.c object=conftest.o \
depfile=conftest.Po tmpdepfile=conftest.TPo \
$SHELL ./depcomp $depcc -c
-o conftest.o conftest.c
>/dev/null 2>&1 &&
$SHELL ./depcomp $depcc -c
conftest.c -o conftest.o
>/dev/null 2>&1 &&
grep conftest.h conftest.Po > /dev/null 2>&1 &&
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
am_cv_$1_dependencies_compiler_type=$depmode
...
...
@@ -555,9 +533,6 @@ else
fi
])
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
AM_CONDITIONAL([am__fastdep$1], [
test "x$enable_dependency_tracking" != xno \
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
])
...
...
@@ -677,9 +652,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
])
# Check to see how 'make' treats includes. -*- Autoconf -*-
# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
# Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -719,7 +692,7 @@ echo "include confinc" > confmf
# In particular we don't look at `^make:' because GNU make might
# be invoked under some other name (usually "gmake"), in which
# case it prints its new name instead of `make'.
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
if test "`$am_make -s -f confmf 2> /dev/null |
f
grep -v 'ing directory'`" = "done"; then
am__include=include
am__quote=
_am_result=GNU
...
...
@@ -779,7 +752,7 @@ else
fi
AC_CONFIG_COMMANDS_PRE(
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
AC_MSG_ERROR([conditional
"$1
" was never defined.
AC_MSG_ERROR([conditional
\"$1\
" was never defined.
Usually this means the macro was only invoked conditionally.])
fi])])
...
...
@@ -806,15 +779,65 @@ AC_PREREQ([2.52])
# serial 6
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
# When config.status generates a header, we must update the stamp-h file.
# This file resides in the same directory as the config header
# that is generated. We must strip everything past the first ":",
# and everything past the last "/".
# _AM_DIRNAME(PATH)
# -----------------
# Like AS_DIRNAME, only do it during macro expansion
AC_DEFUN([_AM_DIRNAME],
[m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
m4_if(regexp([$1], [^//\([^/]\|$\)]), -1,
m4_if(regexp([$1], [^/.*]), -1,
[.],
patsubst([$1], [^\(/\).*], [\1])),
patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
])# _AM_DIRNAME
# The stamp files are numbered to have different names.
# We could number them on a directory basis, but that's additional
# complications, let's have a unique counter.
m4_define([_AM_STAMP_Count], [0])
# _AM_STAMP(HEADER)
# -----------------
# The name of the stamp file for HEADER.
AC_DEFUN([_AM_STAMP],
[m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl
AS_ESCAPE(_AM_DIRNAME(patsubst([$1],
[:.*])))/stamp-h[]_AM_STAMP_Count])
# _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS)
# ------------------------------------------------------------
# We used to try to get a real timestamp in stamp-h. But the fear is that
# that will cause unnecessary cvs conflicts.
AC_DEFUN([_AM_CONFIG_HEADER],
[# Add the stamp file to the list of files AC keeps track of,
# along with our hook.
AC_CONFIG_HEADERS([$1],
[# update the timestamp
echo 'timestamp for $1' >"_AM_STAMP([$1])"
$2],
[$3])
])# _AM_CONFIG_HEADER
# AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS)
# --------------------------------------------------------------
AC_DEFUN([AM_CONFIG_HEADER],
[AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])
])# AM_CONFIG_HEADER
# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
# serial 46 AC_PROG_LIBTOOL
builtin([undefine],[symbols])
AC_DEFUN([AC_PROG_LIBTOOL],
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
...
...
@@ -840,6 +863,8 @@ AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_PROG_LD])dnl
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
AC_REQUIRE([AC_PROG_NM])dnl
AC_REQUIRE([LT_AC_PROG_SED])dnl
AC_REQUIRE([AC_PROG_LN_S])dnl
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
AC_REQUIRE([AC_OBJEXT])dnl
...
...
@@ -940,9 +965,30 @@ _LT_AC_LTCONFIG_HACK
])
# AC_LIBTOOL_HEADER_ASSERT
# ------------------------
AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
[lt_cv_func_assert_works],
[case $host in
*-*-solaris*)
if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
case `$CC --version 2>/dev/null` in
[[12]].*) lt_cv_func_assert_works=no ;;
*) lt_cv_func_assert_works=yes ;;
esac
fi
;;
esac])
if test "x$lt_cv_func_assert_works" = xyes; then
AC_CHECK_HEADERS(assert.h)
fi
])# AC_LIBTOOL_HEADER_ASSERT
# _LT_AC_CHECK_DLFCN
# --------------------
AC_DEFUN(
_LT_AC_CHECK_DLFCN
,
AC_DEFUN(
[_LT_AC_CHECK_DLFCN]
,
[AC_CHECK_HEADERS(dlfcn.h)
])# _LT_AC_CHECK_DLFCN
...
...
@@ -960,10 +1006,10 @@ AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
# Character class describing NM global symbol codes.
[symcode='[BCDEGRST]']
symcode='[[BCDEGRST]]'
# Regexp to match symbols that can be accessed directly from C.
[sympat='\([_A-Za-z][_A-Za-z0-9]*\)']
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
# Transform the above into a raw symbol and a C symbol.
symxfrm='\1 \2\3 \3'
...
...
@@ -977,23 +1023,26 @@ lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\
# Define system-specific variables.
case $host_os in
aix*)
[symcode='[BCDT]']
symcode='[[BCDT]]'
;;
cygwin* | mingw* | pw32*)
[symcode='[ABCDGISTW]']
symcode='[[ABCDGISTW]]'
;;
hpux*) # Its linker distinguishes data from code symbols
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
;;
irix*)
[symcode='[BCDEGRST]']
irix* | nonstopux*)
symcode='[[BCDEGRST]]'
;;
osf*)
symcode='[[BCDEGQRST]]'
;;
solaris* | sysv5*)
[symcode='[BDT]']
symcode='[[BDT]]'
;;
sysv4)
[symcode='[DFNSTU]']
symcode='[[DFNSTU]]'
;;
esac
...
...
@@ -1007,14 +1056,14 @@ esac
# If we're using GNU nm, then use its standard symbol codes.
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
[symcode='[ABCDGISTW]']
symcode='[[ABCDGISTW]]'
fi
# Try without a prefix undercore, then with it.
for ac_symprfx in "" "_"; do
# Write the raw and C identifiers.
[lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"]
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
# Check to see that the pipe works correctly.
pipe_works=no
...
...
@@ -1067,7 +1116,7 @@ const struct {
const char *name;
lt_ptr address;
}
[lt_preloaded_symbols[] =]
lt_preloaded_symbols[[]] =
{
EOF
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
...
...
@@ -1085,7 +1134,7 @@ EOF
save_CFLAGS="$CFLAGS"
LIBS="conftstm.$ac_objext"
CFLAGS="$CFLAGS$no_builtin_flag"
if AC_TRY_EVAL(ac_link) && test -s conftest; then
if AC_TRY_EVAL(ac_link) && test -s conftest
$ac_exeext
; then
pipe_works=yes
fi
LIBS="$save_LIBS"
...
...
@@ -1140,13 +1189,14 @@ if test "X${PATH_SEPARATOR+set}" != Xset; then
*-DOS) lt_cv_sys_path_separator=';' ;;
*) lt_cv_sys_path_separator=':' ;;
esac
PATH_SEPARATOR=$lt_cv_sys_path_separator
fi
])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
# _LT_AC_PROG_ECHO_BACKSLASH
# --------------------------
# Add some code to the start of the generated configure script which
# will find an echo command which doesn
;
t interpret backslashes.
# will find an echo command which doesn
'
t interpret backslashes.
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
[AC_DIVERT_PUSH(NOTICE)])
...
...
@@ -1215,7 +1265,7 @@ else
#
# So, first we look for a working echo in the user's PATH.
IFS="${IFS= }"; save_ifs="$IFS"; IFS=
"${IFS}${PATH_SEPARATOR}"
IFS="${IFS= }"; save_ifs="$IFS"; IFS=
$PATH_SEPARATOR
for dir in $PATH /usr/ucb; do
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
...
...
@@ -1304,7 +1354,7 @@ AC_DIVERT_POP
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
# ------------------------------------------------------------------
AC_DEFUN(
_LT_AC_TRY_DLOPEN_SELF
,
AC_DEFUN(
[_LT_AC_TRY_DLOPEN_SELF]
,
[if test "$cross_compiling" = yes; then :
[$4]
else
...
...
@@ -1391,7 +1441,7 @@ rm -fr conftest*
# AC_LIBTOOL_DLOPEN_SELF
# -------------------
AC_DEFUN(
AC_LIBTOOL_DLOPEN_SELF
,
AC_DEFUN(
[AC_LIBTOOL_DLOPEN_SELF]
,
[if test "x$enable_dlopen" != xyes; then
enable_dlopen=unknown
enable_dlopen_self=unknown
...
...
@@ -1491,10 +1541,10 @@ AC_DEFUN([_LT_AC_LTCONFIG_HACK],
# Sed substitution that helps us do robust quoting. It backslashifies
# metacharacters that are still active within double-quoted strings.
Xsed='sed -e s/^X//'
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
# Same as above, but do not quote variable references.
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
...
...
@@ -1628,7 +1678,7 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic,
# like `-m68040'.
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
;;
beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
beos* | irix5* | irix6* |
nonstopux* |
osf3* | osf4* | osf5*)
# PIC is the default for these OSes.
;;
darwin* | rhapsody*)
...
...
@@ -1671,7 +1721,7 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic,
lt_cv_prog_cc_pic='+Z'
;;
irix5* | irix6*)
irix5* | irix6*
| nonstopux*
)
lt_cv_prog_cc_wl='-Wl,'
lt_cv_prog_cc_static='-non_shared'
# PIC (with -KPIC) is the default.
...
...
@@ -1715,11 +1765,7 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic,
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
lt_cv_prog_cc_pic='-KPIC'
lt_cv_prog_cc_static='-Bstatic'
if test "x$host_vendor" = xsni; then
lt_cv_prog_cc_wl='-LD'
else
lt_cv_prog_cc_wl='-Wl,'
fi
lt_cv_prog_cc_wl='-Wl,'
;;
uts4*)
...
...
@@ -1785,7 +1831,7 @@ fi
# Check for any special shared library compilation flags.
if test -n "$lt_cv_prog_cc_shlib"; then
AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
if echo "$old_CC $old_CFLAGS " |
[egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]"]
>/dev/null; then :
if echo "$old_CC $old_CFLAGS " |
egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]"
>/dev/null; then :
else
AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
lt_cv_prog_cc_can_build_shared=no
...
...
@@ -2066,7 +2112,7 @@ EOF
# can override, but on older systems we have to supply one (in ltdll.c)
if test "x$lt_cv_need_dllmain" = "xyes"; then
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d <
[$]
0 > $output_objdir/$soname-ltdll.c~
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d <
$''
0 > $output_objdir/$soname-ltdll.c~
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
else
ltdll_obj=
...
...
@@ -2079,12 +2125,12 @@ EOF
# Be careful not to strip the DATA tag left be newer dlltools.
export_symbols_cmds="$ltdll_cmds"'
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
[sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//"]
< $output_objdir/$soname-def > $export_symbols'
sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//"
< $output_objdir/$soname-def > $export_symbols'
# If the export-symbols file already is a .def file (1st line
# is EXPORTS), use it as is.
# If DATA tags from a recent dlltool are present, honour them!
archive_expsym_cmds='if test "x`
head -1
$export_symbols`" = xEXPORTS; then
archive_expsym_cmds='if test "x`
sed 1q
$export_symbols`" = xEXPORTS; then
cp $export_symbols $output_objdir/$soname-def;
else
echo EXPORTS > $output_objdir/$soname-def;
...
...
@@ -2093,6 +2139,7 @@ EOF
set dummy \$symbol;
case \[$]# in
2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
*) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
esac;
_lt_hint=`expr 1 + \$_lt_hint`;
...
...
@@ -2205,10 +2252,12 @@ else
# need to do runtime linking.
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
for ld_flag in $LDFLAGS; do
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
case $ld_flag in
*-brtl*)
aix_use_runtimelinking=yes
break
fi
;;
esac
done
esac
...
...
@@ -2280,7 +2329,7 @@ else
allow_undefined_flag='${wl}-berok'
# This is a bit strange, but is similar to how AIX traditionally builds
# it's shared libraries.
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $o
bjdir/$libname$release.a $
objdir/$soname'
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $o
utput_objdir/$libname$release.a $output_
objdir/$soname'
fi
fi
;;
...
...
@@ -2322,8 +2371,9 @@ else
esac
# FIXME: Relying on posixy $() will cause problems for
# cross-compilation, but unfortunately the echo tests do not
# yet detect zsh echo's removal of \ escapes.
archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
# `"' quotes if we put them in here... so don't!
archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
# We need to add '_' to the symbols in $export_symbols first
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
hardcode_direct=yes
...
...
@@ -2375,13 +2425,14 @@ else
export_dynamic_flag_spec='${wl}-E'
;;
irix5* | irix6*)
irix5* | irix6*
| nonstopux*
)
if test "$GCC" = yes; then
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
else
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
hardcode_libdir_flag_spec='-rpath $libdir'
fi
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
link_all_deplibs=yes
;;
...
...
@@ -2409,7 +2460,7 @@ else
hardcode_direct=yes
hardcode_shlibpath_var=no
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $
link
er_flags'
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $
compil
er_flags'
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
export_dynamic_flag_spec='${wl}-E'
else
...
...
@@ -2419,7 +2470,7 @@ else
hardcode_libdir_flag_spec='-R$libdir'
;;
*)
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $
link
er_flags'
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $
compil
er_flags'
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
;;
esac
...
...
@@ -2472,7 +2523,35 @@ else
;;
solaris*)
# gcc --version < 3.0 without binutils cannot create self contained
# shared libraries reliably, requiring libgcc.a to resolve some of
# the object symbols generated in some cases. Libraries that use
# assert need libgcc.a to resolve __eprintf, for example. Linking
# a copy of libgcc.a into every shared library to guarantee resolving
# such symbols causes other problems: According to Tim Van Holder
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
# (to the application) exception stack for one thing.
no_undefined_flag=' -z defs'
if test "$GCC" = yes; then
case `$CC --version 2>/dev/null` in
[[12]].*)
cat <<EOF 1>&2
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
*** create self contained shared libraries on Solaris systems, without
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
*** -no-undefined support, which will at least allow you to build shared
*** libraries. However, you may find that when you link such libraries
*** into an application without using GCC, you have to manually add
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
*** upgrade to a newer version of GCC. Another option is to rebuild your
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
EOF
no_undefined_flag=
;;
esac
fi
# $CC -shared without GNU ld will not create a library from C++
# object files and a static libstdc++, better avoid it by now
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
...
...
@@ -2481,7 +2560,7 @@ else
hardcode_libdir_flag_spec='-R$libdir'
hardcode_shlibpath_var=no
case $host_os in
[solaris2.[0-5] | solaris2.[0-5].*]
) ;;
solaris2.[[0-5]] | solaris2.[[0-5]].*
) ;;
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
esac
...
...
@@ -2503,13 +2582,23 @@ else
;;
sysv4)
if test "x$host_vendor" = xsno; then
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct=yes # is this really true???
else
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
fi
case $host_vendor in
sni)
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct=yes # is this really true???
;;
siemens)
## LD is ld it makes a PLAMLIB
## CC just makes a GrossModule.
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
reload_cmds='$CC -r -o $output$reload_objs'
hardcode_direct=no
;;
motorola)
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
;;
esac
runpath_var='LD_RUN_PATH'
hardcode_shlibpath_var=no
;;
...
...
@@ -2650,6 +2739,9 @@ aix3*)
aix4* | aix5*)
version_type=linux
need_lib_prefix=no
need_version=no
hardcode_into_libs=yes
if test "$host_cpu" = ia64; then
# AIX 5 supports IA64
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
...
...
@@ -2661,15 +2753,15 @@ aix4* | aix5*)
# depend on `.', always an invalid library. This was fixed in
# development snapshots of GCC prior to 3.0.
case $host_os in
[ aix4 | aix4.[01] | aix4.[01].*)]
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
echo ' yes '
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
:
else
can_build_shared=no
fi
;;
aix4 | aix4.[[01]] | aix4.[[01]].*)
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
echo ' yes '
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
:
else
can_build_shared=no
fi
;;
esac
# AIX (on Power*) has no versioning support, so currently we can
# not hardcode correct soname into executable. Probably we can
...
...
@@ -2688,12 +2780,13 @@ aix4* | aix5*)
fi
shlibpath_var=LIBPATH
fi
hardcode_into_libs=yes
;;
amigaos*)
library_names_spec='$libname.ixlibrary $libname.a'
# Create ${libname}_ixlibrary.a entries in /sys/libs.
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" |
[$Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\'']
`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" |
$Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''
`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
;;
beos*)
...
...
@@ -2724,7 +2817,7 @@ cygwin* | mingw* | pw32*)
case $GCC,$host_os in
yes,cygwin*)
library_names_spec='$libname.dll.a'
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} |
[sed -e 's/[.]/-/g']
`${versuffix}.dll'
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} |
sed -e 's/[[.]]/-/g'
`${versuffix}.dll'
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
dldir=$destdir/`dirname \$dlpath`~
test -d \$dldir || mkdir -p \$dldir~
...
...
@@ -2734,14 +2827,14 @@ cygwin* | mingw* | pw32*)
$rm \$dlpath'
;;
yes,mingw*)
library_names_spec='${libname}`echo ${release} |
[sed -e 's/[.]/-/g']
`${versuffix}.dll'
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
library_names_spec='${libname}`echo ${release} |
sed -e 's/[[.]]/-/g'
`${versuffix}.dll'
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"
-e "s,=/,/,g"
`
;;
yes,pw32*)
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
;;
*)
library_names_spec='${libname}`echo ${release} |
[sed -e 's/[.]/-/g']
`${versuffix}.dll $libname.lib'
library_names_spec='${libname}`echo ${release} |
sed -e 's/[[.]]/-/g'
`${versuffix}.dll $libname.lib'
;;
esac
dynamic_linker='Win32 ld.exe'
...
...
@@ -2767,6 +2860,18 @@ freebsd1*)
dynamic_linker=no
;;
freebsd*-gnu*)
version_type=linux
need_lib_prefix=no
need_version=no
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
soname_spec='${libname}${release}.so$major'
shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=no
hardcode_into_libs=yes
dynamic_linker='GNU/FreeBSD ld.so'
;;
freebsd*)
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
version_type=freebsd-$objformat
...
...
@@ -2818,14 +2923,17 @@ hpux9* | hpux10* | hpux11*)
postinstall_cmds='chmod 555 $lib'
;;
irix5* | irix6*)
version_type=irix
irix5* | irix6* | nonstopux*)
case $host_os in
nonstopux*) version_type=nonstopux ;;
*) version_type=irix ;;
esac
need_lib_prefix=no
need_version=no
soname_spec='${libname}${release}.so$major'
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
case $host_os in
irix5*)
irix5*
| nonstopux*
)
libsuff= shlibsuff=
;;
*)
...
...
@@ -2929,11 +3037,13 @@ os2*)
osf3* | osf4* | osf5*)
version_type=osf
need_version=no
soname_spec='${libname}${release}.so'
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
need_lib_prefix=no
soname_spec='${libname}${release}.so$major'
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
shlibpath_var=LD_LIBRARY_PATH
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
hardcode_into_libs=yes
;;
sco3.2v5*)
...
...
@@ -2976,6 +3086,12 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
case $host_vendor in
sni)
shlibpath_overrides_runpath=no
need_lib_prefix=no
export_dynamic_flag_spec='${wl}-Blargedynsym'
runpath_var=LD_RUN_PATH
;;
siemens)
need_lib_prefix=no
;;
motorola)
need_lib_prefix=no
...
...
@@ -3130,7 +3246,7 @@ if test -f "$ltmain"; then
# Now quote all the things that may contain metacharacters while being
# careful not to overquote the AC_SUBSTed values. We take copies of the
# variables and quote the copies for generation of the libtool script.
for var in echo old_CC old_CFLAGS \
for var in echo old_CC old_CFLAGS
SED
\
AR AR_FLAGS CC LD LN_S NM SHELL \
reload_flag reload_cmds wl \
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
...
...
@@ -3192,8 +3308,11 @@ if test -f "$ltmain"; then
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# A sed that does not truncate output.
SED=$lt_SED
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="
sed
-e s/^X//"
Xsed="
${SED}
-e s/^X//"
# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
...
...
@@ -3862,6 +3981,7 @@ test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
ac_prog=ld
if test "$GCC" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
...
...
@@ -3875,8 +3995,8 @@ if test "$GCC" = yes; then
esac
case $ac_prog in
# Accept absolute paths.
[[\\/]
* | [A-Za-z]:[\\/]*)]
[re_direlt='/[^/][^/]*/\.\./']
[[\\/]
]* | [[A-Za-z]]:[[\\/]]*)
re_direlt='/[[^/]][[^/]]*/\.\./'
# Canonicalize the path of ld
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
...
...
@@ -3900,7 +4020,7 @@ else
fi
AC_CACHE_VAL(lt_cv_path_LD,
[if test -z "$LD"; then
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=
"${IFS}${PATH_SEPARATOR-:}"
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=
$PATH_SEPARATOR
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
...
...
@@ -3953,7 +4073,7 @@ test -n "$reload_flag" && reload_flag=" $reload_flag"
# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
# -- PORTME fill in with the dynamic library characteristics
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
[AC_CACHE_CHECK([how to recognise depend
a
nt libraries],
[AC_CACHE_CHECK([how to recognise depend
e
nt libraries],
lt_cv_deplibs_check_method,
[lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
...
...
@@ -3964,7 +4084,7 @@ lt_cv_deplibs_check_method='unknown'
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
#
['file_magic [regex]']
-- check by looking for files in library path
#
'file_magic [[regex]]'
-- check by looking for files in library path
# which responds to the $file_magic_cmd with a given egrep regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
...
...
@@ -3979,7 +4099,7 @@ beos*)
;;
bsdi4*)
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)']
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
lt_cv_file_magic_cmd='/usr/bin/file -L'
lt_cv_file_magic_test_file=/shlib/libc.so
;;
...
...
@@ -4008,7 +4128,7 @@ freebsd*)
i*86 )
# Not sure whether the presence of OpenBSD here was a mistake.
# Let's accept both of them until this is cleared up.
[lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library']
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
lt_cv_file_magic_cmd=/usr/bin/file
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
;;
...
...
@@ -4023,14 +4143,14 @@ gnu*)
;;
hpux10.20*|hpux11*)
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library']
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
lt_cv_file_magic_cmd=/usr/bin/file
lt_cv_file_magic_test_file=/usr/lib/libc.sl
;;
irix5* | irix6*)
irix5* | irix6*
| nonstopux*
)
case $host_os in
irix5*)
irix5*
| nonstopux*
)
# this will be overridden with pass_all, but let us keep it just in case
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
;;
...
...
@@ -4042,7 +4162,7 @@ irix5* | irix6*)
*) libmagic=never-match;;
esac
# this will be overridden with pass_all, but let us keep it just in case
[lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"]
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
;;
esac
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
...
...
@@ -4052,25 +4172,25 @@ irix5* | irix6*)
# This must be Linux ELF.
linux-gnu*)
case $host_cpu in
alpha* | hppa* | i*86 |
powerpc* | sparc* | ia64*
)
alpha* | hppa* | i*86 |
mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k
)
lt_cv_deplibs_check_method=pass_all ;;
*)
# glibc up to 2.1.1 does not perform some relocations on ARM
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;]
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
esac
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
;;
netbsd*)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
else
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$']
lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
fi
;;
newos6*)
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)']
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
lt_cv_file_magic_cmd=/usr/bin/file
lt_cv_file_magic_test_file=/usr/lib/libnls.so
;;
...
...
@@ -4101,14 +4221,14 @@ solaris*)
lt_cv_file_magic_test_file=/lib/libc.so
;;
[sysv5uw[78]* | sysv4*uw2*)]
sysv5uw[[78]]* | sysv4*uw2*)
lt_cv_deplibs_check_method=pass_all
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
case $host_vendor in
motorola)
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]']
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
;;
ncr)
...
...
@@ -4116,13 +4236,16 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
;;
sequent)
lt_cv_file_magic_cmd='/bin/file'
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )']
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
;;
sni)
lt_cv_file_magic_cmd='/bin/file'
[lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"]
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
lt_cv_file_magic_test_file=/lib/libc.so
;;
siemens)
lt_cv_deplibs_check_method=pass_all
;;
esac
;;
esac
...
...
@@ -4134,13 +4257,14 @@ deplibs_check_method=$lt_cv_deplibs_check_method
# AC_PROG_NM - find the path to a BSD-compatible name lister
AC_DEFUN([AC_PROG_NM],
[AC_MSG_CHECKING([for BSD-compatible nm])
[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
AC_MSG_CHECKING([for BSD-compatible nm])
AC_CACHE_VAL(lt_cv_path_NM,
[if test -n "$NM"; then
# Let the user override the test.
lt_cv_path_NM="$NM"
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=
"${IFS}${PATH_SEPARATOR-:}"
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=
$PATH_SEPARATOR
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
test -z "$ac_dir" && ac_dir=.
tmp_nm=$ac_dir/${ac_tool_prefix}nm
...
...
@@ -4187,12 +4311,12 @@ esac
])
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl convenience library and
INCLTD
L to the include flags for
# the libltdl convenience library and
LTDLINC
L to the include flags for
# the libltdl header and adds --enable-ltdl-convenience to the
# configure arguments. Note that LIBLTDL and
INCLTD
L are not
# configure arguments. Note that LIBLTDL and
LTDLINC
L are not
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
# with '${top_builddir}/' and
INCLTD
L will be prefixed with
# with '${top_builddir}/' and
LTDLINC
L will be prefixed with
# '${top_srcdir}/' (note the single quotes!). If your package is not
# flat and you're not using automake, define top_builddir and
# top_srcdir appropriately in the Makefiles.
...
...
@@ -4204,16 +4328,18 @@ AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
esac
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
# For backwards non-gettext consistent compatibility...
INCLTDL="$LTDLINCL"
])
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl installable library and
INCLTD
L to the include flags for
# the libltdl installable library and
LTDLINC
L to the include flags for
# the libltdl header and adds --enable-ltdl-install to the configure
# arguments. Note that LIBLTDL and
INCLTD
L are not AC_SUBSTed, nor is
# arguments. Note that LIBLTDL and
LTDLINC
L are not AC_SUBSTed, nor is
# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
# be prefixed with '${top_builddir}/' and
INCLTD
L will be prefixed
# be prefixed with '${top_builddir}/' and
LTDLINC
L will be prefixed
# with '${top_srcdir}/' (note the single quotes!). If your package is
# not flat and you're not using automake, define top_builddir and
# top_srcdir appropriately in the Makefiles.
...
...
@@ -4231,12 +4357,14 @@ AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
if test x"$enable_ltdl_install" = x"yes"; then
ac_configure_args="$ac_configure_args --enable-ltdl-install"
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
INCLTD
L='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
LTDLINC
L='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
else
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
LIBLTDL="-lltdl"
INCLTD
L=
LTDLINC
L=
fi
# For backwards non-gettext consistent compatibility...
INCLTDL="$LTDLINCL"
])
# old names
...
...
@@ -4251,3 +4379,92 @@ AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
# This is just to silence aclocal about the macro not being used
ifelse([AC_DISABLE_FAST_INSTALL])
# NOTE: This macro has been submitted for inclusion into #
# GNU Autoconf as AC_PROG_SED. When it is available in #
# a released version of Autoconf we should remove this #
# macro and use it instead. #
# LT_AC_PROG_SED
# --------------
# Check for a fully-functional sed program, that truncates
# as few characters as possible. Prefer GNU sed if found.
AC_DEFUN([LT_AC_PROG_SED],
[AC_MSG_CHECKING([for a sed that does not truncate output])
AC_CACHE_VAL(lt_cv_path_SED,
[# Loop through the user's path and test for sed and gsed.
# Then use that list of sed's as ones to test for truncation.
as_executable_p="test -f"
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in sed gsed; do
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
_sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
fi
done
done
done
# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
trap '{ (exit 1); exit 1; }' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.
: ${TMPDIR=/tmp}
{
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
test -n "$tmp" && test -d "$tmp"
} ||
{
tmp=$TMPDIR/sed$$-$RANDOM
(umask 077 && mkdir $tmp)
} ||
{
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
{ (exit 1); exit 1; }
}
_max=0
_count=0
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
# along with /bin/sed that truncates output.
for _sed in $_sed_list /usr/xpg4/bin/sed; do
test ! -f ${_sed} && break
cat /dev/null > "$tmp/sed.in"
_count=0
echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
# Check for GNU sed and select it if it is found.
if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
lt_cv_path_SED=${_sed}
break
fi
while true; do
cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
mv "$tmp/sed.tmp" "$tmp/sed.in"
cp "$tmp/sed.in" "$tmp/sed.nl"
echo >>"$tmp/sed.nl"
${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
# 40000 chars as input seems more than enough
test $_count -gt 10 && break
_count=`expr $_count + 1`
if test $_count -gt $_max; then
_max=$_count
lt_cv_path_SED=$_sed
fi
done
done
rm -rf "$tmp"
])
if test "X$SED" != "X"; then
lt_cv_path_SED=$SED
else
SED=$lt_cv_path_SED
fi
AC_MSG_RESULT([$SED])
])
libid3tag/compat.c
View file @
53f5a137
/* C code produced by gperf version
2.7.2
*/
/* C code produced by gperf version
3.0
*/
/* Command-line: gperf -tCcTonD -K id -N id3_compat_lookup -s -3 -k '*' compat.gperf */
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
&& (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
&& ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
&& ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
&& ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
&& ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
&& ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
&& ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
&& ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
&& ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
&& ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
&& ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
&& ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
&& ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
&& ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
&& ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
&& ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
&& ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
&& ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
&& ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
&& ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
&& ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
/* The character set is not based on ISO-646. */
error
"gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
#endif
#line 1 "compat.gperf"
/*
* libid3tag - ID3 tag manipulation library
* Copyright (C) 2000-2003 Underbit Technologies, Inc.
...
...
@@ -50,9 +80,9 @@ static id3_compat_func_t translate_TCON;
#define TOTAL_KEYWORDS 73
#define MIN_WORD_LENGTH 3
#define MAX_WORD_LENGTH 4
#define MIN_HASH_VALUE
1
#define MAX_HASH_VALUE
84
/* maximum key range =
84, duplicates = 1
0 */
#define MIN_HASH_VALUE
6
#define MAX_HASH_VALUE
127
/* maximum key range =
122, duplicates =
0 */
#ifdef __GNUC__
__inline
...
...
@@ -68,44 +98,46 @@ hash (str, len)
{
static
const
unsigned
char
asso_values
[]
=
{
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
22
,
21
,
27
,
26
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
9
,
3
,
0
,
27
,
16
,
6
,
30
,
85
,
15
,
85
,
22
,
2
,
15
,
4
,
1
,
0
,
30
,
13
,
17
,
22
,
0
,
24
,
5
,
31
,
25
,
15
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
,
85
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
64
,
58
,
20
,
15
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
10
,
18
,
3
,
6
,
1
,
47
,
0
,
128
,
42
,
62
,
30
,
31
,
0
,
19
,
52
,
10
,
24
,
8
,
30
,
5
,
3
,
30
,
8
,
25
,
47
,
3
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
};
register
int
hval
=
0
;
switch
(
len
)
{
default
:
case
4
:
hval
+=
asso_values
[(
unsigned
char
)
str
[
3
]];
/*FALLTHROUGH*/
case
3
:
hval
+=
asso_values
[(
unsigned
char
)
str
[
2
]];
/*FALLTHROUGH*/
case
2
:
hval
+=
asso_values
[(
unsigned
char
)
str
[
1
]];
hval
+=
asso_values
[(
unsigned
char
)
str
[
1
]
+
1
];
/*FALLTHROUGH*/
case
1
:
hval
+=
asso_values
[(
unsigned
char
)
str
[
0
]];
break
;
...
...
@@ -123,95 +155,166 @@ id3_compat_lookup (str, len)
{
static
const
struct
id3_compat
wordlist
[]
=
{
{
"POP"
,
EQ
(
POPM
)
/* Popularimeter */
},
{
"WCP"
,
EQ
(
WCOP
)
/* Copyright/legal information */
},
{
"WPB"
,
EQ
(
WPUB
)
/* Publishers official webpage */
},
{
"BUF"
,
EQ
(
RBUF
)
/* Recommended buffer size */
},
{
"PIC"
,
EQ
(
APIC
)
/* Attached picture */
},
#line 97 "compat.gperf"
{
"TLE"
,
EQ
(
TLEN
)
/* Length */
},
#line 68 "compat.gperf"
{
"ETC"
,
EQ
(
ETCO
)
/* Event timing codes */
},
#line 126 "compat.gperf"
{
"ULT"
,
EQ
(
USLT
)
/* Unsynchronised lyric/text transcription */
},
#line 123 "compat.gperf"
{
"TYE"
,
OBSOLETE
/* Year [obsolete] */
},
#line 92 "compat.gperf"
{
"TFT"
,
EQ
(
TFLT
)
/* File type */
},
#line 84 "compat.gperf"
{
"TCM"
,
EQ
(
TCOM
)
/* Composer */
},
#line 66 "compat.gperf"
{
"EQU"
,
OBSOLETE
/* Equalization [obsolete] */
},
#line 63 "compat.gperf"
{
"COM"
,
EQ
(
COMM
)
/* Comments */
},
{
"IPL"
,
EQ
(
TIPL
)
/* Involved people list */
},
{
"MLL"
,
EQ
(
MLLT
)
/* MPEG location lookup table */
},
{
"WAF"
,
EQ
(
WOAF
)
/* Official audio file webpage */
},
#line 130 "compat.gperf"
{
"WCM"
,
EQ
(
WCOM
)
/* Commercial information */
},
{
"UFI"
,
EQ
(
UFID
)
/* Unique file identifier */
},
{
"CRA"
,
EQ
(
AENC
)
/* Audio encryption */
},
{
"TCO"
,
TX
(
TCON
)
/* Content type */
},
{
"ULT"
,
EQ
(
USLT
)
/* Unsynchronised lyric/text transcription */
},
{
"TOL"
,
EQ
(
TOLY
)
/* Original lyricist(s)/text writer(s) */
},
{
"TBP"
,
EQ
(
TBPM
)
/* BPM (beats per minute) */
},
{
"TPB"
,
EQ
(
TPUB
)
/* Publisher */
},
{
"CNT"
,
EQ
(
PCNT
)
/* Play counter */
},
{
"TCON"
,
TX
(
TCON
)
/* Content type */
},
{
"WAR"
,
EQ
(
WOAR
)
/* Official artist/performer webpage */
},
{
"LNK"
,
EQ
(
LINK
)
/* Linked information */
},
{
"CRM"
,
OBSOLETE
/* Encrypted meta frame [obsolete] */
},
{
"TOF"
,
EQ
(
TOFN
)
/* Original filename */
},
{
"MCI"
,
EQ
(
MCDI
)
/* Music CD identifier */
},
{
"TPA"
,
EQ
(
TPOS
)
/* Part of a set */
},
{
"WAS"
,
EQ
(
WOAS
)
/* Official audio source webpage */
},
{
"TOA"
,
EQ
(
TOPE
)
/* Original artist(s)/performer(s) */
},
{
"TAL"
,
EQ
(
TALB
)
/* Album/movie/show title */
},
#line 96 "compat.gperf"
{
"TLA"
,
EQ
(
TLAN
)
/* Language(s) */
},
{
"IPLS"
,
EQ
(
TIPL
)
/* Involved people list */
},
#line 88 "compat.gperf"
{
"TDA"
,
OBSOLETE
/* Date [obsolete] */
},
#line 124 "compat.gperf"
{
"TYER"
,
OBSOLETE
/* Year [obsolete] */
},
#line 83 "compat.gperf"
{
"TBP"
,
EQ
(
TBPM
)
/* BPM (beats per minute) */
},
#line 87 "compat.gperf"
{
"TCR"
,
EQ
(
TCOP
)
/* Copyright message */
},
{
"TRC"
,
EQ
(
TSRC
)
/* ISRC (international standard recording code) */
},
{
"TOR"
,
EQ
(
TDOR
)
/* Original release year [obsolete] */
},
{
"TCM"
,
EQ
(
TCOM
)
/* Composer */
},
{
"ETC"
,
EQ
(
ETCO
)
/* Event timing codes */
},
{
"STC"
,
EQ
(
SYTC
)
/* Synchronised tempo codes */
},
{
"TLE"
,
EQ
(
TLEN
)
/* Length */
},
{
"SLT"
,
EQ
(
SYLT
)
/* Synchronised lyric/text */
},
{
"TEN"
,
EQ
(
TENC
)
/* Encoded by */
},
{
"TP2"
,
EQ
(
TPE2
)
/* Band/orchestra/accompaniment */
},
{
"TP1"
,
EQ
(
TPE1
)
/* Lead performer(s)/soloist(s) */
},
#line 104 "compat.gperf"
{
"TOT"
,
EQ
(
TOAL
)
/* Original album/movie/show title */
},
{
"EQU"
,
OBSOLETE
/* Equalization [obsolete] */
},
#line 89 "compat.gperf"
{
"TDAT"
,
OBSOLETE
/* Date [obsolete] */
},
#line 67 "compat.gperf"
{
"EQUA"
,
OBSOLETE
/* Equalization [obsolete] */
},
#line 102 "compat.gperf"
{
"TOR"
,
EQ
(
TDOR
)
/* Original release year [obsolete] */
},
#line 131 "compat.gperf"
{
"WCP"
,
EQ
(
WCOP
)
/* Copyright/legal information */
},
#line 99 "compat.gperf"
{
"TOA"
,
EQ
(
TOPE
)
/* Original artist(s)/performer(s) */
},
#line 78 "compat.gperf"
{
"RVA"
,
OBSOLETE
/* Relative volume adjustment [obsolete] */
},
{
"GEO"
,
EQ
(
GEOB
)
/* General encapsulated object */
},
#line 120 "compat.gperf"
{
"TT3"
,
EQ
(
TIT3
)
/* Subtitle/description refinement */
},
#line 98 "compat.gperf"
{
"TMT"
,
EQ
(
TMED
)
/* Media type */
},
#line 76 "compat.gperf"
{
"POP"
,
EQ
(
POPM
)
/* Popularimeter */
},
#line 74 "compat.gperf"
{
"MLL"
,
EQ
(
MLLT
)
/* MPEG location lookup table */
},
#line 79 "compat.gperf"
{
"RVAD"
,
OBSOLETE
/* Relative volume adjustment [obsolete] */
},
#line 65 "compat.gperf"
{
"CRM"
,
OBSOLETE
/* Encrypted meta frame [obsolete] */
},
#line 128 "compat.gperf"
{
"WAR"
,
EQ
(
WOAR
)
/* Official artist/performer webpage */
},
#line 80 "compat.gperf"
{
"SLT"
,
EQ
(
SYLT
)
/* Synchronised lyric/text */
},
#line 81 "compat.gperf"
{
"STC"
,
EQ
(
SYTC
)
/* Synchronised tempo codes */
},
#line 95 "compat.gperf"
{
"TKE"
,
EQ
(
TKEY
)
/* Initial key */
},
#line 111 "compat.gperf"
{
"TRC"
,
EQ
(
TSRC
)
/* ISRC (international standard recording code) */
},
#line 109 "compat.gperf"
{
"TPA"
,
EQ
(
TPOS
)
/* Part of a set */
},
#line 117 "compat.gperf"
{
"TSS"
,
EQ
(
TSSE
)
/* Software/hardware and settings used for encoding */
},
#line 112 "compat.gperf"
{
"TRD"
,
OBSOLETE
/* Recording dates [obsolete] */
},
#line 64 "compat.gperf"
{
"CRA"
,
EQ
(
AENC
)
/* Audio encryption */
},
#line 108 "compat.gperf"
{
"TP4"
,
EQ
(
TPE4
)
/* Interpreted, remixed, or otherwise modified by */
},
#line 125 "compat.gperf"
{
"UFI"
,
EQ
(
UFID
)
/* Unique file identifier */
},
#line 101 "compat.gperf"
{
"TOL"
,
EQ
(
TOLY
)
/* Original lyricist(s)/text writer(s) */
},
#line 110 "compat.gperf"
{
"TPB"
,
EQ
(
TPUB
)
/* Publisher */
},
#line 73 "compat.gperf"
{
"MCI"
,
EQ
(
MCDI
)
/* Music CD identifier */
},
#line 107 "compat.gperf"
{
"TP3"
,
EQ
(
TPE3
)
/* Conductor/performer refinement */
},
{
"TFT"
,
EQ
(
TFLT
)
/* File type */
},
{
"TIM"
,
OBSOLETE
/* Time [obsolete] */
},
{
"REV"
,
EQ
(
RVRB
)
/* Reverb */
},
#line 132 "compat.gperf"
{
"WPB"
,
EQ
(
WPUB
)
/* Publishers official webpage */
},
#line 113 "compat.gperf"
{
"TRDA"
,
OBSOLETE
/* Recording dates [obsolete] */
},
#line 115 "compat.gperf"
{
"TSI"
,
OBSOLETE
/* Size [obsolete] */
},
{
"EQUA"
,
OBSOLETE
/* Equalization [obsolete] */
},
{
"TSS"
,
EQ
(
TSSE
)
/* Software/hardware and settings used for encoding */
},
#line 90 "compat.gperf"
{
"TDY"
,
EQ
(
TDLY
)
/* Playlist delay */
},
#line 82 "compat.gperf"
{
"TAL"
,
EQ
(
TALB
)
/* Album/movie/show title */
},
#line 116 "compat.gperf"
{
"TSIZ"
,
OBSOLETE
/* Size [obsolete] */
},
#line 129 "compat.gperf"
{
"WAS"
,
EQ
(
WOAS
)
/* Official audio source webpage */
},
#line 121 "compat.gperf"
{
"TXT"
,
EQ
(
TEXT
)
/* Lyricist/text writer */
},
#line 62 "compat.gperf"
{
"CNT"
,
EQ
(
PCNT
)
/* Play counter */
},
#line 100 "compat.gperf"
{
"TOF"
,
EQ
(
TOFN
)
/* Original filename */
},
#line 85 "compat.gperf"
{
"TCO"
,
TX
(
TCON
)
/* Content type */
},
#line 114 "compat.gperf"
{
"TRK"
,
EQ
(
TRCK
)
/* Track number/position in set */
},
{
"TDA"
,
OBSOLETE
/* Date [obsolete] */
},
{
"TMT"
,
EQ
(
TMED
)
/* Media type */
},
{
"TKE"
,
EQ
(
TKEY
)
/* Initial key */
},
{
"TORY"
,
EQ
(
TDOR
)
/* Original release year [obsolete] */
},
{
"TRD"
,
OBSOLETE
/* Recording dates [obsolete] */
},
{
"TYE"
,
OBSOLETE
/* Year [obsolete] */
},
#line 119 "compat.gperf"
{
"TT2"
,
EQ
(
TIT2
)
/* Title/songname/content description */
},
#line 93 "compat.gperf"
{
"TIM"
,
OBSOLETE
/* Time [obsolete] */
},
#line 94 "compat.gperf"
{
"TIME"
,
OBSOLETE
/* Time [obsolete] */
},
#line 103 "compat.gperf"
{
"TORY"
,
EQ
(
TDOR
)
/* Original release year [obsolete] */
},
#line 91 "compat.gperf"
{
"TEN"
,
EQ
(
TENC
)
/* Encoded by */
},
#line 118 "compat.gperf"
{
"TT1"
,
EQ
(
TIT1
)
/* Content group description */
},
#line 127 "compat.gperf"
{
"WAF"
,
EQ
(
WOAF
)
/* Official audio file webpage */
},
#line 75 "compat.gperf"
{
"PIC"
,
EQ
(
APIC
)
/* Attached picture */
},
#line 122 "compat.gperf"
{
"TXX"
,
EQ
(
TXXX
)
/* User defined text information frame */
},
#line 133 "compat.gperf"
{
"WXX"
,
EQ
(
WXXX
)
/* User defined URL link frame */
},
{
"TIME"
,
OBSOLETE
/* Time [obsolete] */
},
{
"TSIZ"
,
OBSOLETE
/* Size [obsolete] */
},
{
"TT3"
,
EQ
(
TIT3
)
/* Subtitle/description refinement */
},
{
"TRDA"
,
OBSOLETE
/* Recording dates [obsolete] */
},
{
"RVAD"
,
OBSOLETE
/* Relative volume adjustment [obsolete] */
},
{
"TDY"
,
EQ
(
TDLY
)
/* Playlist delay */
},
{
"TXT"
,
EQ
(
TEXT
)
/* Lyricist/text writer */
},
{
"TYER"
,
OBSOLETE
/* Year [obsolete] */
},
{
"TDAT"
,
OBSOLETE
/* Date [obsolete] */
},
{
"TXX"
,
EQ
(
TXXX
)
/* User defined text information frame */
}
#line 86 "compat.gperf"
{
"TCON"
,
TX
(
TCON
)
/* Content type */
},
#line 77 "compat.gperf"
{
"REV"
,
EQ
(
RVRB
)
/* Reverb */
},
#line 106 "compat.gperf"
{
"TP2"
,
EQ
(
TPE2
)
/* Band/orchestra/accompaniment */
},
#line 105 "compat.gperf"
{
"TP1"
,
EQ
(
TPE1
)
/* Lead performer(s)/soloist(s) */
},
#line 61 "compat.gperf"
{
"BUF"
,
EQ
(
RBUF
)
/* Recommended buffer size */
},
#line 70 "compat.gperf"
{
"IPL"
,
EQ
(
TIPL
)
/* Involved people list */
},
#line 69 "compat.gperf"
{
"GEO"
,
EQ
(
GEOB
)
/* General encapsulated object */
},
#line 72 "compat.gperf"
{
"LNK"
,
EQ
(
LINK
)
/* Linked information */
},
#line 71 "compat.gperf"
{
"IPLS"
,
EQ
(
TIPL
)
/* Involved people list */
}
};
static
const
short
lookup
[]
=
{
-
1
,
0
,
-
1
,
-
53
,
-
2
,
1
,
-
49
,
-
2
,
2
,
3
,
-
1
,
-
46
,
-
2
,
-
43
,
-
2
,
4
,
5
,
6
,
-
1
,
7
,
-
163
,
10
,
11
,
12
,
13
,
-
161
,
17
,
-
159
,
-
77
,
22
,
23
,
-
80
,
26
,
-
85
,
29
,
-
87
,
32
,
33
,
34
,
35
,
36
,
37
,
38
,
39
,
40
,
41
,
-
155
,
44
,
45
,
46
,
47
,
-
1
,
48
,
49
,
50
,
51
,
52
,
53
,
54
,
55
,
56
,
57
,
58
,
59
,
-
1
,
60
,
61
,
62
,
63
,
64
,
-
1
,
-
151
,
-
1
,
67
,
68
,
69
,
70
,
-
8
,
-
2
,
-
1
,
71
,
-
31
,
-
2
,
-
1
,
72
,
-
55
,
-
2
,
-
59
,
-
3
,
-
65
,
-
2
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
16
,
17
,
18
,
19
,
20
,
-
1
,
21
,
22
,
23
,
24
,
25
,
26
,
27
,
28
,
29
,
30
,
31
,
32
,
33
,
34
,
-
1
,
35
,
36
,
37
,
38
,
39
,
40
,
41
,
42
,
43
,
44
,
45
,
46
,
47
,
48
,
49
,
-
1
,
-
1
,
50
,
-
1
,
51
,
52
,
-
1
,
53
,
54
,
55
,
56
,
-
1
,
57
,
58
,
59
,
60
,
-
1
,
61
,
-
1
,
62
,
-
1
,
-
1
,
63
,
-
1
,
64
,
-
1
,
-
1
,
65
,
-
1
,
66
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
67
,
-
1
,
68
,
-
1
,
69
,
-
1
,
70
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
71
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
72
};
if
(
len
<=
MAX_WORD_LENGTH
&&
len
>=
MIN_WORD_LENGTH
)
...
...
@@ -229,25 +332,12 @@ id3_compat_lookup (str, len)
if
(
*
str
==
*
s
&&
!
strncmp
(
str
+
1
,
s
+
1
,
len
-
1
)
&&
s
[
len
]
==
'\0'
)
return
&
wordlist
[
index
];
}
else
if
(
index
<
-
TOTAL_KEYWORDS
)
{
register
int
offset
=
-
1
-
TOTAL_KEYWORDS
-
index
;
register
const
struct
id3_compat
*
wordptr
=
&
wordlist
[
TOTAL_KEYWORDS
+
lookup
[
offset
]];
register
const
struct
id3_compat
*
wordendptr
=
wordptr
+
-
lookup
[
offset
+
1
];
while
(
wordptr
<
wordendptr
)
{
register
const
char
*
s
=
wordptr
->
id
;
if
(
*
str
==
*
s
&&
!
strncmp
(
str
+
1
,
s
+
1
,
len
-
1
)
&&
s
[
len
]
==
'\0'
)
return
wordptr
;
wordptr
++
;
}
}
}
}
return
0
;
}
#line 134 "compat.gperf"
static
int
translate_TCON
(
struct
id3_frame
*
frame
,
char
const
*
oldid
,
...
...
libid3tag/configure
View file @
53f5a137
...
...
@@ -251,6 +251,7 @@ if test "X${PATH_SEPARATOR+set}" != Xset; then
*
-DOS
)
lt_cv_sys_path_separator
=
';'
;;
*
)
lt_cv_sys_path_separator
=
':'
;;
esac
PATH_SEPARATOR
=
$lt_cv_sys_path_separator
fi
...
...
@@ -317,7 +318,7 @@ else
#
# So, first we look for a working echo in the user's PATH.
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
"
${
IFS
}${
PATH_SEPARATOR
}
"
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
$PATH_SEPARATOR
for
dir
in
$PATH
/usr/ucb
;
do
if
(
test
-f
$dir
/echo
||
test
-f
$dir
/echo
$ac_exeext
)
&&
test
"X
`
(
$dir
/echo
'\t'
)
2>/dev/null
`
"
=
'X\t'
&&
...
...
@@ -469,7 +470,7 @@ ac_includes_default="\
# include <unistd.h>
#endif"
ac_subst_vars
=
'SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA
CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALS
E LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBTOOL_DEPS DEBUG_TRUE DEBUG_FALSE LIBOBJS LTLIBOBJS'
ac_subst_vars
=
'SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA
PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMOD
E LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBTOOL_DEPS DEBUG_TRUE DEBUG_FALSE LIBOBJS LTLIBOBJS'
ac_subst_files
=
''
# Initialize some variables set by options.
...
...
@@ -1457,7 +1458,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
am__api_version
=
"1.
7
"
am__api_version
=
"1.
6
"
ac_aux_dir
=
for
ac_dir
in
$srcdir
$srcdir
/..
$srcdir
/../..
;
do
if
test
-f
$ac_dir
/install-sh
;
then
...
...
@@ -1709,16 +1710,6 @@ echo "$as_me: error: source directory already configured; run \"make distclean\"
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
# test whether we have cygpath
if
test
-z
"
$CYGPATH_W
"
;
then
if
(
cygpath
--version
)
>
/dev/null 2>/dev/null
;
then
CYGPATH_W
=
'cygpath -w'
else
CYGPATH_W
=
echo
fi
fi
# Define the identity of the package.
PACKAGE
=
libid3tag
VERSION
=
0.15.0b
...
...
@@ -1848,10 +1839,14 @@ INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
# Add the stamp file to the list of files AC keeps track of,
# along with our hook.
ac_config_headers
=
"
$ac_config_headers
config.h"
# Make sure we can run config.sub.
$ac_config_sub
sun4
>
/dev/null 2>&1
||
{
{
echo
"
$as_me
:
$LINENO
: error: cannot run
$ac_config_sub
"
>
&5
...
...
@@ -2676,8 +2671,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
for
ac_declaration
in
\
''
\
'#include <stdlib.h>'
\
''
\
'extern "C" void std::exit (int) throw (); using std::exit;'
\
'extern "C" void std::exit (int); using std::exit;'
\
'extern "C" void exit (int) throw ();'
\
...
...
@@ -2691,8 +2685,8 @@ _ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <stdlib.h>
$ac_declaration
#include <stdlib.h>
int
main ()
{
...
...
@@ -2807,7 +2801,7 @@ echo "include confinc" > confmf
# In particular we don't look at `^make:' because GNU make might
# be invoked under some other name (usually "gmake"), in which
# case it prints its new name instead of `make'.
if
test
"
`
$am_make
-s
-f
confmf 2> /dev/null |
grep
-v
'ing directory'
`
"
=
"done"
;
then
if
test
"
`
$am_make
-s
-f
confmf 2> /dev/null |
f
grep
-v
'ing directory'
`
"
=
"done"
;
then
am__include
=
include
am__quote
=
_am_result
=
GNU
...
...
@@ -2898,7 +2892,7 @@ else
if
depmode
=
$depmode
\
source
=
conftest.c
object
=
conftest.o
\
depfile
=
conftest.Po
tmpdepfile
=
conftest.TPo
\
$SHELL
./depcomp
$depcc
-c
-o
conftest.o conftest.c
>
/dev/null 2>&1
&&
$SHELL
./depcomp
$depcc
-c
conftest.c
-o
conftest.o
>
/dev/null 2>&1
&&
grep
conftest.h conftest.Po
>
/dev/null 2>&1
&&
${
MAKE
-make
}
-s
-f
confmf
>
/dev/null 2>&1
;
then
am_cv_CC_dependencies_compiler_type
=
$depmode
...
...
@@ -2919,18 +2913,6 @@ CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
if
test
"x
$enable_dependency_tracking
"
!=
xno
\
&&
test
"
$am_cv_CC_dependencies_compiler_type
"
=
gcc3
;
then
am__fastdepCC_TRUE
=
am__fastdepCC_FALSE
=
'#'
else
am__fastdepCC_TRUE
=
'#'
am__fastdepCC_FALSE
=
fi
if
test
"
$GCC
"
=
yes
then
case
"
$host
"
in
...
...
@@ -3012,6 +2994,17 @@ esac
else
enable_fast_install
=
yes
fi
;
# Find the correct PATH separator. Usually this is `:', but
# DJGPP uses `;' like DOS.
if
test
"X
${
PATH_SEPARATOR
+set
}
"
!=
Xset
;
then
UNAME
=
${
UNAME
-
`
uname
2>/dev/null
`
}
case
X
$UNAME
in
*
-DOS
)
lt_cv_sys_path_separator
=
';'
;;
*
)
lt_cv_sys_path_separator
=
':'
;;
esac
PATH_SEPARATOR
=
$lt_cv_sys_path_separator
fi
# Check whether --with-gnu-ld or --without-gnu-ld was given.
if
test
"
${
with_gnu_ld
+set
}
"
=
set
;
then
...
...
@@ -3063,7 +3056,7 @@ if test "${lt_cv_path_LD+set}" = set; then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
if
test
-z
"
$LD
"
;
then
IFS
=
"
${
IFS
=
}
"
;
ac_save_ifs
=
"
$IFS
"
;
IFS
=
"
${
IFS
}${
PATH_SEPARATOR
-
:
}
"
IFS
=
"
${
IFS
=
}
"
;
ac_save_ifs
=
"
$IFS
"
;
IFS
=
$PATH_SEPARATOR
for
ac_dir
in
$PATH
;
do
test
-z
"
$ac_dir
"
&&
ac_dir
=
.
if
test
-f
"
$ac_dir
/
$ac_prog
"
||
test
-f
"
$ac_dir
/
$ac_prog$ac_exeext
"
;
then
...
...
@@ -3133,7 +3126,7 @@ else
# Let the user override the test.
lt_cv_path_NM
=
"
$NM
"
else
IFS
=
"
${
IFS
=
}
"
;
ac_save_ifs
=
"
$IFS
"
;
IFS
=
"
${
IFS
}${
PATH_SEPARATOR
-
:
}
"
IFS
=
"
${
IFS
=
}
"
;
ac_save_ifs
=
"
$IFS
"
;
IFS
=
$PATH_SEPARATOR
for
ac_dir
in
$PATH
/usr/ccs/bin /usr/ucb /bin
;
do
test
-z
"
$ac_dir
"
&&
ac_dir
=
.
tmp_nm
=
$ac_dir
/
${
ac_tool_prefix
}
nm
...
...
@@ -3163,6 +3156,91 @@ NM="$lt_cv_path_NM"
echo
"
$as_me
:
$LINENO
: result:
$NM
"
>
&5
echo
"
${
ECHO_T
}
$NM
"
>
&6
echo
"
$as_me
:
$LINENO
: checking for a sed that does not truncate output"
>
&5
echo
$ECHO_N
"checking for a sed that does not truncate output...
$ECHO_C
"
>
&6
if
test
"
${
lt_cv_path_SED
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
# Loop through the user's path and test for sed and gsed.
# Then use that list of sed's as ones to test for truncation.
as_executable_p
=
"test -f"
as_save_IFS
=
$IFS
;
IFS
=
$PATH_SEPARATOR
for
as_dir
in
$PATH
do
IFS
=
$as_save_IFS
test
-z
"
$as_dir
"
&&
as_dir
=
.
for
ac_prog
in
sed
gsed
;
do
for
ac_exec_ext
in
''
$ac_executable_extensions
;
do
if
$as_executable_p
"
$as_dir
/
$ac_prog$ac_exec_ext
"
;
then
_sed_list
=
"
$_sed_list
$as_dir
/
$ac_prog$ac_exec_ext
"
fi
done
done
done
# Create a temporary directory, and hook for its removal unless debugging.
$debug
||
{
trap
'exit_status=$?; rm -rf $tmp && exit $exit_status'
0
trap
'{ (exit 1); exit 1; }'
1 2 13 15
}
# Create a (secure) tmp directory for tmp files.
:
${
TMPDIR
=/tmp
}
{
tmp
=
`
(
umask
077
&&
mktemp
-d
-q
"
$TMPDIR
/sedXXXXXX"
)
2>/dev/null
`
&&
test
-n
"
$tmp
"
&&
test
-d
"
$tmp
"
}
||
{
tmp
=
$TMPDIR
/sed
$$
-
$RANDOM
(
umask
077
&&
mkdir
$tmp
)
}
||
{
echo
"
$me
: cannot create a temporary directory in
$TMPDIR
"
>
&2
{
(
exit
1
)
;
exit
1
;
}
}
_max
=
0
_count
=
0
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
# along with /bin/sed that truncates output.
for
_sed
in
$_sed_list
/usr/xpg4/bin/sed
;
do
test
!
-f
${
_sed
}
&&
break
cat
/dev/null
>
"
$tmp
/sed.in"
_count
=
0
echo
${
ECHO_N
-
$ac_n
}
"0123456789
${
ECHO_C
-
$ac_c
}
"
>
"
$tmp
/sed.in"
# Check for GNU sed and select it if it is found.
if
"
${
_sed
}
"
--version
2>&1 < /dev/null | egrep
'(GNU)'
>
/dev/null
;
then
lt_cv_path_SED
=
${
_sed
}
break
fi
while
true
;
do
cat
"
$tmp
/sed.in"
"
$tmp
/sed.in"
>
"
$tmp
/sed.tmp"
mv
"
$tmp
/sed.tmp"
"
$tmp
/sed.in"
cp
"
$tmp
/sed.in"
"
$tmp
/sed.nl"
echo
>>
"
$tmp
/sed.nl"
${
_sed
}
-e
's/a$//'
<
"
$tmp
/sed.nl"
>
"
$tmp
/sed.out"
||
break
cmp
-s
"
$tmp
/sed.out"
"
$tmp
/sed.nl"
||
break
# 40000 chars as input seems more than enough
test
$_count
-gt
10
&&
break
_count
=
`
expr
$_count
+ 1
`
if
test
$_count
-gt
$_max
;
then
_max
=
$_count
lt_cv_path_SED
=
$_sed
fi
done
done
rm
-rf
"
$tmp
"
fi
if
test
"X
$SED
"
!=
"X"
;
then
lt_cv_path_SED
=
$SED
else
SED
=
$lt_cv_path_SED
fi
echo
"
$as_me
:
$LINENO
: result:
$SED
"
>
&5
echo
"
${
ECHO_T
}
$SED
"
>
&6
echo
"
$as_me
:
$LINENO
: checking whether ln -s works"
>
&5
echo
$ECHO_N
"checking whether ln -s works...
$ECHO_C
"
>
&6
LN_S
=
$as_ln_s
...
...
@@ -3174,8 +3252,8 @@ else
echo
"
${
ECHO_T
}
no, using
$LN_S
"
>
&6
fi
echo
"
$as_me
:
$LINENO
: checking how to recognise depend
a
nt libraries"
>
&5
echo
$ECHO_N
"checking how to recognise depend
a
nt libraries...
$ECHO_C
"
>
&6
echo
"
$as_me
:
$LINENO
: checking how to recognise depend
e
nt libraries"
>
&5
echo
$ECHO_N
"checking how to recognise depend
e
nt libraries...
$ECHO_C
"
>
&6
if
test
"
${
lt_cv_deplibs_check_method
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
...
...
@@ -3188,7 +3266,7 @@ lt_cv_deplibs_check_method='unknown'
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
#
['file_magic [regex]']
-- check by looking for files in library path
#
'file_magic [[regex]]'
-- check by looking for files in library path
# which responds to the $file_magic_cmd with a given egrep regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
...
...
@@ -3252,9 +3330,9 @@ hpux10.20*|hpux11*)
lt_cv_file_magic_test_file
=
/usr/lib/libc.sl
;;
irix5
*
|
irix6
*
)
irix5
*
|
irix6
*
|
nonstopux
*
)
case
$host_os
in
irix5
*
)
irix5
*
|
nonstopux
*
)
# this will be overridden with pass_all, but let us keep it just in case
lt_cv_deplibs_check_method
=
"file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
;;
...
...
@@ -3276,7 +3354,7 @@ irix5* | irix6*)
# This must be Linux ELF.
linux-gnu
*
)
case
$host_cpu
in
alpha
*
|
hppa
*
|
i
*
86
|
powerpc
*
|
sparc
*
|
ia64
*
)
alpha
*
|
hppa
*
|
i
*
86
|
mips
|
mipsel
|
powerpc
*
|
sparc
*
|
ia64
*
|
arm
*
|
m68k
)
lt_cv_deplibs_check_method
=
pass_all
;;
*
)
# glibc up to 2.1.1 does not perform some relocations on ARM
...
...
@@ -3347,6 +3425,9 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
lt_cv_deplibs_check_method
=
"file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
lt_cv_file_magic_test_file
=
/lib/libc.so
;;
siemens
)
lt_cv_deplibs_check_method
=
pass_all
;;
esac
;;
esac
...
...
@@ -3401,9 +3482,12 @@ hpux*) # Its linker distinguishes data from code symbols
lt_cv_global_symbol_to_cdecl
=
"sed -n -e 's/^T .*
\(
.*
\)
$/
extern char
\1
();/p' -e 's/^
$symcode
* .*
\(
.*
\)
$/
extern char
\1
;/p'"
lt_cv_global_symbol_to_c_name_address
=
"sed -n -e 's/^:
\(
[^ ]*
\)
$/
{
\\\"\1\\\"
, (lt_ptr) 0},/p' -e 's/^
$symcode
*
\(
[^ ]*
\)
\(
[^ ]*
\)
$/
{
\"\2\"
, (lt_ptr)
\&\2
},/p'"
;;
irix
*
)
irix
*
|
nonstopux
*
)
symcode
=
'[BCDEGRST]'
;;
osf
*
)
symcode
=
'[BCDEGQRST]'
;;
solaris
*
|
sysv5
*
)
symcode
=
'[BDT]'
;;
...
...
@@ -3512,7 +3596,7 @@ EOF
(
eval
$ac_link
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
test
-s
conftest
;
then
(
exit
$ac_status
)
;
}
&&
test
-s
conftest
$ac_exeext
;
then
pipe_works
=
yes
fi
LIBS
=
"
$save_LIBS
"
...
...
@@ -4178,6 +4262,7 @@ done
# Only perform the check for file, if the check method requires it
case
$deplibs_check_method
in
file_magic
*
)
...
...
@@ -4493,7 +4578,7 @@ test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
case
$host
in
*
-
*
-irix6
*
)
# Find out which ABI we are using.
echo
'#line 4
496
"configure"'
>
conftest.
$ac_ext
echo
'#line 4
581
"configure"'
>
conftest.
$ac_ext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_compile
\"
"
)
>
&5
(
eval
$ac_compile
)
2>&5
ac_status
=
$?
...
...
@@ -4735,7 +4820,7 @@ else
# like `-m68040'.
lt_cv_prog_cc_pic
=
'-m68020 -resident32 -malways-restore-a4'
;;
beos
*
|
irix5
*
|
irix6
*
|
osf3
*
|
osf4
*
|
osf5
*
)
beos
*
|
irix5
*
|
irix6
*
|
nonstopux
*
|
osf3
*
|
osf4
*
|
osf5
*
)
# PIC is the default for these OSes.
;;
darwin
*
|
rhapsody
*
)
...
...
@@ -4778,7 +4863,7 @@ else
lt_cv_prog_cc_pic
=
'+Z'
;;
irix5
*
|
irix6
*
)
irix5
*
|
irix6
*
|
nonstopux
*
)
lt_cv_prog_cc_wl
=
'-Wl,'
lt_cv_prog_cc_static
=
'-non_shared'
# PIC (with -KPIC) is the default.
...
...
@@ -4822,11 +4907,7 @@ else
sysv4
|
sysv4.2uw2
*
|
sysv4.3
*
|
sysv5
*
)
lt_cv_prog_cc_pic
=
'-KPIC'
lt_cv_prog_cc_static
=
'-Bstatic'
if
test
"x
$host_vendor
"
=
xsni
;
then
lt_cv_prog_cc_wl
=
'-LD'
else
lt_cv_prog_cc_wl
=
'-Wl,'
fi
lt_cv_prog_cc_wl
=
'-Wl,'
;;
uts4
*
)
...
...
@@ -5026,7 +5107,7 @@ chmod -w .
save_CFLAGS
=
"
$CFLAGS
"
CFLAGS
=
"
$CFLAGS
-o out/conftest2.
$ac_objext
"
compiler_c_o
=
no
if
{
(
eval echo
configure:5
029
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>out/conftest.err
;
}
&&
test
-s
out/conftest2.
$ac_objext
;
then
if
{
(
eval echo
configure:5
110
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>out/conftest.err
;
}
&&
test
-s
out/conftest2.
$ac_objext
;
then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
if
test
-s
out/conftest.err
;
then
...
...
@@ -5344,7 +5425,7 @@ EOF
# can override, but on older systems we have to supply one (in ltdll.c)
if
test
"x
$lt_cv_need_dllmain
"
=
"xyes"
;
then
ltdll_obj
=
'$output_objdir/$soname-ltdll.'
"
$ac_objext
"
ltdll_cmds
=
'test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d <
[$]
0 > $output_objdir/$soname-ltdll.c~
ltdll_cmds
=
'test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d <
$''
0 > $output_objdir/$soname-ltdll.c~
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
else
ltdll_obj
=
...
...
@@ -5362,7 +5443,7 @@ EOF
# If the export-symbols file already is a .def file (1st line
# is EXPORTS), use it as is.
# If DATA tags from a recent dlltool are present, honour them!
archive_expsym_cmds
=
'if test "x`
head -1
$export_symbols`" = xEXPORTS; then
archive_expsym_cmds
=
'if test "x`
sed 1q
$export_symbols`" = xEXPORTS; then
cp $export_symbols $output_objdir/$soname-def;
else
echo EXPORTS > $output_objdir/$soname-def;
...
...
@@ -5371,6 +5452,7 @@ EOF
set dummy \$symbol;
case \$# in
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
esac;
_lt_hint=`expr 1 + \$_lt_hint`;
...
...
@@ -5483,10 +5565,12 @@ else
# need to do runtime linking.
case
$host_os
in
aix4.[23]|aix4.[23].
*
|
aix5
*
)
for
ld_flag
in
$LDFLAGS
;
do
if
(
test
$ld_flag
=
"-brtl"
||
test
$ld_flag
=
"-Wl,-brtl"
)
;
then
case
$ld_flag
in
*
-brtl
*
)
aix_use_runtimelinking
=
yes
break
fi
;;
esac
done
esac
...
...
@@ -5558,7 +5642,7 @@ else
allow_undefined_flag
=
'${wl}-berok'
# This is a bit strange, but is similar to how AIX traditionally builds
# it's shared libraries.
archive_expsym_cmds
=
"
\$
CC
$shared_flag
"
' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '
"
\$
{wl}
$no_entry_flag
\$
{wl}
$exp_sym_flag
:
\$
export_symbols"
' ~$AR -crlo $o
bjdir/$libname$release.a $
objdir/$soname'
archive_expsym_cmds
=
"
\$
CC
$shared_flag
"
' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '
"
\$
{wl}
$no_entry_flag
\$
{wl}
$exp_sym_flag
:
\$
export_symbols"
' ~$AR -crlo $o
utput_objdir/$libname$release.a $output_
objdir/$soname'
fi
fi
;;
...
...
@@ -5600,8 +5684,9 @@ else
esac
# FIXME: Relying on posixy $() will cause problems for
# cross-compilation, but unfortunately the echo tests do not
# yet detect zsh echo's removal of \ escapes.
archive_cmds
=
'$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
# `"' quotes if we put them in here... so don't!
archive_cmds
=
'$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
# We need to add '_' to the symbols in $export_symbols first
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
hardcode_direct
=
yes
...
...
@@ -5653,13 +5738,14 @@ else
export_dynamic_flag_spec
=
'${wl}-E'
;;
irix5
*
|
irix6
*
)
irix5
*
|
irix6
*
|
nonstopux
*
)
if
test
"
$GCC
"
=
yes
;
then
archive_cmds
=
'$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
hardcode_libdir_flag_spec
=
'${wl}-rpath ${wl}$libdir'
else
archive_cmds
=
'$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
hardcode_libdir_flag_spec
=
'-rpath $libdir'
fi
hardcode_libdir_flag_spec
=
'${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator
=
:
link_all_deplibs
=
yes
;;
...
...
@@ -5687,7 +5773,7 @@ else
hardcode_direct
=
yes
hardcode_shlibpath_var
=
no
if
test
-z
"
`
echo
__ELF__ |
$CC
-E
- |
grep
__ELF__
`
"
||
test
"
$host_os
-
$host_cpu
"
=
"openbsd2.8-powerpc"
;
then
archive_cmds
=
'$CC -shared $pic_flag -o $lib $libobjs $deplibs $
link
er_flags'
archive_cmds
=
'$CC -shared $pic_flag -o $lib $libobjs $deplibs $
compil
er_flags'
hardcode_libdir_flag_spec
=
'${wl}-rpath,$libdir'
export_dynamic_flag_spec
=
'${wl}-E'
else
...
...
@@ -5697,7 +5783,7 @@ else
hardcode_libdir_flag_spec
=
'-R$libdir'
;;
*
)
archive_cmds
=
'$CC -shared $pic_flag -o $lib $libobjs $deplibs $
link
er_flags'
archive_cmds
=
'$CC -shared $pic_flag -o $lib $libobjs $deplibs $
compil
er_flags'
hardcode_libdir_flag_spec
=
'${wl}-rpath,$libdir'
;;
esac
...
...
@@ -5750,7 +5836,35 @@ else
;;
solaris
*
)
# gcc --version < 3.0 without binutils cannot create self contained
# shared libraries reliably, requiring libgcc.a to resolve some of
# the object symbols generated in some cases. Libraries that use
# assert need libgcc.a to resolve __eprintf, for example. Linking
# a copy of libgcc.a into every shared library to guarantee resolving
# such symbols causes other problems: According to Tim Van Holder
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
# (to the application) exception stack for one thing.
no_undefined_flag
=
' -z defs'
if
test
"
$GCC
"
=
yes
;
then
case
`
$CC
--version
2>/dev/null
`
in
[
12].
*
)
cat
<<
EOF
1>&2
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
*** create self contained shared libraries on Solaris systems, without
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
*** -no-undefined support, which will at least allow you to build shared
*** libraries. However, you may find that when you link such libraries
*** into an application without using GCC, you have to manually add
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
*** upgrade to a newer version of GCC. Another option is to rebuild your
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
EOF
no_undefined_flag
=
;;
esac
fi
# $CC -shared without GNU ld will not create a library from C++
# object files and a static libstdc++, better avoid it by now
archive_cmds
=
'$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
...
...
@@ -5781,13 +5895,23 @@ else
;;
sysv4
)
if
test
"x
$host_vendor
"
=
xsno
;
then
archive_cmds
=
'$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct
=
yes
# is this really true???
else
archive_cmds
=
'$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct
=
no
#Motorola manual says yes, but my tests say they lie
fi
case
$host_vendor
in
sni
)
archive_cmds
=
'$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct
=
yes
# is this really true???
;;
siemens
)
## LD is ld it makes a PLAMLIB
## CC just makes a GrossModule.
archive_cmds
=
'$LD -G -o $lib $libobjs $deplibs $linker_flags'
reload_cmds
=
'$CC -r -o $output$reload_objs'
hardcode_direct
=
no
;;
motorola
)
archive_cmds
=
'$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct
=
no
#Motorola manual says yes, but my tests say they lie
;;
esac
runpath_var
=
'LD_RUN_PATH'
hardcode_shlibpath_var
=
no
;;
...
...
@@ -5935,6 +6059,9 @@ aix3*)
aix4
*
|
aix5
*
)
version_type
=
linux
need_lib_prefix
=
no
need_version
=
no
hardcode_into_libs
=
yes
if
test
"
$host_cpu
"
=
ia64
;
then
# AIX 5 supports IA64
library_names_spec
=
'${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
...
...
@@ -5946,15 +6073,15 @@ aix4* | aix5*)
# depend on `.', always an invalid library. This was fixed in
# development snapshots of GCC prior to 3.0.
case
$host_os
in
aix4
|
aix4.[01]
|
aix4.[01].
*
)
if
{
echo
'#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
echo
' yes '
echo
'#endif'
;
}
|
${
CC
}
-E
- |
grep yes
>
/dev/null
;
then
:
else
can_build_shared
=
no
fi
;;
aix4
|
aix4.[01]
|
aix4.[01].
*
)
if
{
echo
'#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
echo
' yes '
echo
'#endif'
;
}
|
${
CC
}
-E
- |
grep yes
>
/dev/null
;
then
:
else
can_build_shared
=
no
fi
;;
esac
# AIX (on Power*) has no versioning support, so currently we can
# not hardcode correct soname into executable. Probably we can
...
...
@@ -5973,6 +6100,7 @@ aix4* | aix5*)
fi
shlibpath_var
=
LIBPATH
fi
hardcode_into_libs
=
yes
;;
amigaos
*
)
...
...
@@ -6020,7 +6148,7 @@ cygwin* | mingw* | pw32*)
;;
yes
,mingw
*
)
library_names_spec
=
'${libname}`echo ${release} | sed -e '
s/[.]/-/g
'`${versuffix}.dll'
sys_lib_search_path_spec
=
`
$CC
-print-search-dirs
|
grep
"^libraries:"
|
sed
-e
"s/^libraries://"
-e
"s/;/ /g"
`
sys_lib_search_path_spec
=
`
$CC
-print-search-dirs
|
grep
"^libraries:"
|
sed
-e
"s/^libraries://"
-e
"s/;/ /g"
-e
"s,=/,/,g"
`
;;
yes
,pw32
*
)
library_names_spec
=
'`echo ${libname} | sed -e '
s/^lib/pw/
'``echo ${release} | sed -e '
s/./-/g
'`${versuffix}.dll'
...
...
@@ -6052,6 +6180,18 @@ freebsd1*)
dynamic_linker
=
no
;;
freebsd
*
-gnu
*
)
version_type
=
linux
need_lib_prefix
=
no
need_version
=
no
library_names_spec
=
'${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
soname_spec
=
'${libname}${release}.so$major'
shlibpath_var
=
LD_LIBRARY_PATH
shlibpath_overrides_runpath
=
no
hardcode_into_libs
=
yes
dynamic_linker
=
'GNU/FreeBSD ld.so'
;;
freebsd
*
)
objformat
=
`
test
-x
/usr/bin/objformat
&&
/usr/bin/objformat
||
echo
aout
`
version_type
=
freebsd-
$objformat
...
...
@@ -6103,14 +6243,17 @@ hpux9* | hpux10* | hpux11*)
postinstall_cmds
=
'chmod 555 $lib'
;;
irix5
*
|
irix6
*
)
version_type
=
irix
irix5
*
|
irix6
*
|
nonstopux
*
)
case
$host_os
in
nonstopux
*
)
version_type
=
nonstopux
;;
*
)
version_type
=
irix
;;
esac
need_lib_prefix
=
no
need_version
=
no
soname_spec
=
'${libname}${release}.so$major'
library_names_spec
=
'${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
case
$host_os
in
irix5
*
)
irix5
*
|
nonstopux
*
)
libsuff
=
shlibsuff
=
;;
*
)
...
...
@@ -6214,11 +6357,13 @@ os2*)
osf3
*
|
osf4
*
|
osf5
*
)
version_type
=
osf
need_version
=
no
soname_spec
=
'${libname}${release}.so'
library_names_spec
=
'${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
need_lib_prefix
=
no
soname_spec
=
'${libname}${release}.so$major'
library_names_spec
=
'${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
shlibpath_var
=
LD_LIBRARY_PATH
sys_lib_search_path_spec
=
"/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
sys_lib_dlsearch_path_spec
=
"
$sys_lib_search_path_spec
"
hardcode_into_libs
=
yes
;;
sco3.2v5
*
)
...
...
@@ -6261,6 +6406,12 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
case
$host_vendor
in
sni
)
shlibpath_overrides_runpath
=
no
need_lib_prefix
=
no
export_dynamic_flag_spec
=
'${wl}-Blargedynsym'
runpath_var
=
LD_RUN_PATH
;;
siemens
)
need_lib_prefix
=
no
;;
motorola
)
need_lib_prefix
=
no
...
...
@@ -6801,7 +6952,7 @@ else
lt_dlunknown
=
0
;
lt_dlno_uscore
=
1
;
lt_dlneed_uscore
=
2
lt_status
=
$lt_dlunknown
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
804
"configure"
#line 6
955
"configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
...
...
@@ -6899,7 +7050,7 @@ else
lt_dlunknown
=
0
;
lt_dlno_uscore
=
1
;
lt_dlneed_uscore
=
2
lt_status
=
$lt_dlunknown
cat
>
conftest.
$ac_ext
<<
EOF
#line
6902
"configure"
#line
7053
"configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
...
...
@@ -7082,7 +7233,7 @@ if test -f "$ltmain"; then
# Now quote all the things that may contain metacharacters while being
# careful not to overquote the AC_SUBSTed values. We take copies of the
# variables and quote the copies for generation of the libtool script.
for
var
in
echo
old_CC old_CFLAGS
\
for
var
in
echo
old_CC old_CFLAGS
SED
\
AR AR_FLAGS CC LD LN_S NM SHELL
\
reload_flag reload_cmds wl
\
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec
\
...
...
@@ -7144,8 +7295,11 @@ if test -f "$ltmain"; then
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# A sed that does not truncate output.
SED=
$lt_SED
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="
sed
-e s/^X//"
Xsed="
${
SED
}
-e s/^X//"
# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
...
...
@@ -8677,13 +8831,6 @@ echo "$as_me: error: conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally."
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
if
test
-z
"
${
am__fastdepCC_TRUE
}
"
&&
test
-z
"
${
am__fastdepCC_FALSE
}
"
;
then
{
{
echo
"
$as_me
:
$LINENO
: error: conditional
\"
am__fastdepCC
\"
was never defined.
Usually this means the macro was only invoked conditionally."
>
&5
echo
"
$as_me
: error: conditional
\"
am__fastdepCC
\"
was never defined.
Usually this means the macro was only invoked conditionally."
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
if
test
-z
"
${
DEBUG_TRUE
}
"
&&
test
-z
"
${
DEBUG_FALSE
}
"
;
then
{
{
echo
"
$as_me
:
$LINENO
: error: conditional
\"
DEBUG
\"
was never defined.
Usually this means the macro was only invoked conditionally."
>
&5
...
...
@@ -9226,7 +9373,6 @@ s,@LIBS@,$LIBS,;t t
s,@INSTALL_PROGRAM@,
$INSTALL_PROGRAM
,;t t
s,@INSTALL_SCRIPT@,
$INSTALL_SCRIPT
,;t t
s,@INSTALL_DATA@,
$INSTALL_DATA
,;t t
s,@CYGPATH_W@,
$CYGPATH_W
,;t t
s,@PACKAGE@,
$PACKAGE
,;t t
s,@VERSION@,
$VERSION
,;t t
s,@ACLOCAL@,
$ACLOCAL
,;t t
...
...
@@ -9263,8 +9409,6 @@ s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
s,@AMDEP_FALSE@,
$AMDEP_FALSE
,;t t
s,@AMDEPBACKSLASH@,
$AMDEPBACKSLASH
,;t t
s,@CCDEPMODE@,
$CCDEPMODE
,;t t
s,@am__fastdepCC_TRUE@,
$am__fastdepCC_TRUE
,;t t
s,@am__fastdepCC_FALSE@,
$am__fastdepCC_FALSE
,;t t
s,@LN_S@,
$LN_S
,;t t
s,@ECHO@,
$ECHO
,;t t
s,@RANLIB@,
$RANLIB
,;t t
...
...
@@ -9702,19 +9846,12 @@ echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
cat
$tmp
/config.h
rm -f
$tmp
/config.h
fi
_am_stamp_count=`expr
${
_am_stamp_count
-0
}
+ 1`
echo "timestamp for
$ac_file
" >`(dirname
$ac_file
) 2>/dev/null ||
$as_expr
X
$ac_file
: 'X\(.*[^/]\)//*[^/][^/]*/*
$'
\| \
X
$ac_file
: 'X\(//\)[^/]' \| \
X
$ac_file
: 'X\(//\)
$'
\| \
X
$ac_file
: 'X\(/\)' \| \
. : '\(.\)' 2>/dev/null ||
echo X
$ac_file
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*
$/
{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)
$/
{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`/stamp-h
$_am_stamp_count
# Run the commands associated with the file.
case
$ac_file
in
config.h ) # update the timestamp
echo 'timestamp for config.h' >"./stamp-h1"
;;
esac
done
_ACEOF
cat
>>
$CONFIG_STATUS
<<
\
_ACEOF
...
...
libid3tag/frametype.c
View file @
53f5a137
/* C code produced by gperf version
2.7.2
*/
/* C code produced by gperf version
3.0
*/
/* Command-line: gperf -tCcTonD -K id -N id3_frametype_lookup -s -3 -k '*' frametype.gperf */
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
&& (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
&& ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
&& ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
&& ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
&& ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
&& ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
&& ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
&& ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
&& ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
&& ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
&& ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
&& ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
&& ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
&& ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
&& ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
&& ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
&& ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
&& ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
&& ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
&& ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
&& ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
/* The character set is not based on ISO-646. */
error
"gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
#endif
#line 1 "frametype.gperf"
/*
* libid3tag - ID3 tag manipulation library
* Copyright (C) 2000-2003 Underbit Technologies, Inc.
...
...
@@ -273,9 +303,9 @@ FRAMETYPE(obsolete, unknown, OBSOLETE, "Obsolete frame");
#define TOTAL_KEYWORDS 84
#define MIN_WORD_LENGTH 4
#define MAX_WORD_LENGTH 4
#define MIN_HASH_VALUE
0
#define MAX_HASH_VALUE 1
11
/* maximum key range = 1
12, duplicates = 12
*/
#define MIN_HASH_VALUE
7
#define MAX_HASH_VALUE 1
55
/* maximum key range = 1
49, duplicates = 0
*/
#ifdef __GNUC__
__inline
...
...
@@ -291,49 +321,34 @@ hash (str, len)
{
static
const
unsigned
char
asso_values
[]
=
{
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
20
,
18
,
2
,
25
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
19
,
26
,
1
,
28
,
15
,
9
,
31
,
112
,
0
,
112
,
29
,
3
,
0
,
10
,
0
,
30
,
0
,
8
,
5
,
0
,
29
,
31
,
24
,
29
,
24
,
30
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
112
,
1
12
,
112
,
112
,
112
,
112
,
112
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
43
,
4
,
47
,
49
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
31
,
53
,
3
,
15
,
3
,
24
,
25
,
10
,
52
,
69
,
34
,
23
,
30
,
1
,
5
,
10
,
62
,
20
,
0
,
28
,
28
,
22
,
19
,
47
,
3
,
10
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
156
,
1
56
,
156
,
156
,
156
,
156
,
156
,
156
};
register
int
hval
=
0
;
switch
(
len
)
{
default
:
case
4
:
hval
+=
asso_values
[(
unsigned
char
)
str
[
3
]];
case
3
:
hval
+=
asso_values
[(
unsigned
char
)
str
[
2
]];
case
2
:
hval
+=
asso_values
[(
unsigned
char
)
str
[
1
]];
case
1
:
hval
+=
asso_values
[(
unsigned
char
)
str
[
0
]];
break
;
}
return
hval
;
return
asso_values
[(
unsigned
char
)
str
[
3
]
+
1
]
+
asso_values
[(
unsigned
char
)
str
[
2
]]
+
asso_values
[(
unsigned
char
)
str
[
1
]]
+
asso_values
[(
unsigned
char
)
str
[
0
]];
}
#ifdef __GNUC__
...
...
@@ -346,108 +361,190 @@ id3_frametype_lookup (str, len)
{
static
const
struct
id3_frametype
wordlist
[]
=
{
{
"TMOO"
,
FRAME
(
text
),
PRESERVE
,
"Mood"
},
#line 282 "frametype.gperf"
{
"ENCR"
,
FRAME
(
ENCR
),
PRESERVE
,
"Encryption method registration"
},
#line 292 "frametype.gperf"
{
"POPM"
,
FRAME
(
POPM
),
PRESERVE
,
"Popularimeter"
},
#line 351 "frametype.gperf"
{
"WCOM"
,
FRAME
(
url
),
PRESERVE
,
"Commercial information"
},
#line 298 "frametype.gperf"
{
"SEEK"
,
FRAME
(
SEEK
),
DISCARD
,
"Seek frame"
},
#line 349 "frametype.gperf"
{
"USER"
,
FRAME
(
USER
),
PRESERVE
,
"Terms of use"
},
#line 285 "frametype.gperf"
{
"GEOB"
,
FRAME
(
GEOB
),
PRESERVE
,
"General encapsulated object"
},
#line 304 "frametype.gperf"
{
"TCOM"
,
FRAME
(
text
),
PRESERVE
,
"Composer"
},
{
"COMM"
,
FRAME
(
COMM
),
PRESERVE
,
"Comments"
},
{
"TIT3"
,
FRAME
(
text
),
PRESERVE
,
"Subtitle/description refinement"
},
{
"TMCL"
,
FRAME
(
text
),
PRESERVE
,
"Musician credits list"
},
{
"TSOT"
,
FRAME
(
text
),
PRESERVE
,
"Title sort order"
},
{
"MLLT"
,
FRAME
(
MLLT
),
DISCARD
,
"MPEG location lookup table"
},
#line 281 "frametype.gperf"
{
"COMR"
,
FRAME
(
COMR
),
PRESERVE
,
"Commercial frame"
},
{
"TSST"
,
FRAME
(
text
),
PRESERVE
,
"Set subtitle"
},
#line 280 "frametype.gperf"
{
"COMM"
,
FRAME
(
COMM
),
PRESERVE
,
"Comments"
},
#line 305 "frametype.gperf"
{
"TCON"
,
FRAME
(
text
),
PRESERVE
,
"Content type"
},
{
"TFLT"
,
FRAME
(
text
),
PRESERVE
,
"File type"
},
{
"TRSO"
,
FRAME
(
text
),
PRESERVE
,
"Internet radio station owner"
},
{
"TSRC"
,
FRAME
(
text
),
PRESERVE
,
"ISRC (international standard recording code)"
},
#line 291 "frametype.gperf"
{
"PCNT"
,
FRAME
(
PCNT
),
PRESERVE
,
"Play counter"
},
#line 293 "frametype.gperf"
{
"POSS"
,
FRAME
(
POSS
),
DISCARD
,
"Position synchronisation frame"
},
#line 284 "frametype.gperf"
{
"ETCO"
,
FRAME
(
ETCO
),
DISCARD
,
"Event timing codes"
},
{
"TIT2"
,
FRAME
(
text
),
PRESERVE
,
"Title/songname/content description"
},
{
"TOFN"
,
FRAME
(
text
),
PRESERVE
,
"Original filename"
},
{
"TIT1"
,
FRAME
(
text
),
PRESERVE
,
"Content group description"
},
{
"TOAL"
,
FRAME
(
text
),
PRESERVE
,
"Original album/movie/show title"
},
{
"TRSN"
,
FRAME
(
text
),
PRESERVE
,
"Internet radio station name"
},
{
"TSOA"
,
FRAME
(
text
),
PRESERVE
,
"Album sort order"
},
{
"TSSE"
,
FRAME
(
text
),
PRESERVE
,
"Software/hardware and settings used for encoding"
},
{
"WCOM"
,
FRAME
(
url
),
PRESERVE
,
"Commercial information"
},
{
"TENC"
,
FRAME
(
text
),
DISCARD
,
"Encoded by"
},
{
"TOLY"
,
FRAME
(
text
),
PRESERVE
,
"Original lyricist(s)/text writer(s)"
},
{
"TLEN"
,
FRAME
(
text
),
DISCARD
,
"Length"
},
{
"MCDI"
,
FRAME
(
MCDI
),
PRESERVE
,
"Music CD identifier"
},
#line 332 "frametype.gperf"
{
"TPE2"
,
FRAME
(
text
),
PRESERVE
,
"Band/orchestra/accompaniment"
},
#line 301 "frametype.gperf"
{
"SYTC"
,
FRAME
(
SYTC
),
DISCARD
,
"Synchronised tempo codes"
},
{
"TCOP"
,
FRAME
(
text
),
PRESERVE
,
"Copyright message"
},
#line 313 "frametype.gperf"
{
"TENC"
,
FRAME
(
text
),
DISCARD
,
"Encoded by"
},
#line 309 "frametype.gperf"
{
"TDOR"
,
FRAME
(
text
),
PRESERVE
,
"Original release time"
},
#line 290 "frametype.gperf"
{
"OWNE"
,
FRAME
(
OWNE
),
PRESERVE
,
"Ownership frame"
},
#line 277 "frametype.gperf"
{
"AENC"
,
FRAME
(
AENC
),
DISCARD
,
"Audio encryption"
},
#line 307 "frametype.gperf"
{
"TDEN"
,
FRAME
(
text
),
PRESERVE
,
"Encoding time"
},
#line 345 "frametype.gperf"
{
"TSSE"
,
FRAME
(
text
),
PRESERVE
,
"Software/hardware and settings used for encoding"
},
#line 339 "frametype.gperf"
{
"TRSN"
,
FRAME
(
text
),
PRESERVE
,
"Internet radio station name"
},
#line 300 "frametype.gperf"
{
"SYLT"
,
FRAME
(
SYLT
),
DISCARD
,
"Synchronised lyric/text"
},
{
"TLAN"
,
FRAME
(
text
),
PRESERVE
,
"Language(s)"
},
{
"TIPL"
,
FRAME
(
text
),
PRESERVE
,
"Involved people list"
},
{
"ENCR"
,
FRAME
(
ENCR
),
PRESERVE
,
"Encryption method registration"
},
#line 354 "frametype.gperf"
{
"WOAR"
,
FRAME
(
url
),
PRESERVE
,
"Official artist/performer webpage"
},
#line 346 "frametype.gperf"
{
"TSST"
,
FRAME
(
text
),
PRESERVE
,
"Set subtitle"
},
#line 330 "frametype.gperf"
{
"TOWN"
,
FRAME
(
text
),
PRESERVE
,
"File owner/licensee"
},
#line 340 "frametype.gperf"
{
"TRSO"
,
FRAME
(
text
),
PRESERVE
,
"Internet radio station owner"
},
#line 322 "frametype.gperf"
{
"TLEN"
,
FRAME
(
text
),
DISCARD
,
"Length"
},
#line 358 "frametype.gperf"
{
"WPUB"
,
FRAME
(
url
),
PRESERVE
,
"Publishers official webpage"
},
#line 343 "frametype.gperf"
{
"TSOT"
,
FRAME
(
text
),
PRESERVE
,
"Title sort order"
},
#line 327 "frametype.gperf"
{
"TOFN"
,
FRAME
(
text
),
PRESERVE
,
"Original filename"
},
#line 344 "frametype.gperf"
{
"TSRC"
,
FRAME
(
text
),
PRESERVE
,
"ISRC (international standard recording code)"
},
#line 324 "frametype.gperf"
{
"TMED"
,
FRAME
(
text
),
PRESERVE
,
"Media type"
},
#line 297 "frametype.gperf"
{
"RVRB"
,
FRAME
(
RVRB
),
PRESERVE
,
"Reverb"
},
#line 328 "frametype.gperf"
{
"TOLY"
,
FRAME
(
text
),
PRESERVE
,
"Original lyricist(s)/text writer(s)"
},
#line 329 "frametype.gperf"
{
"TOPE"
,
FRAME
(
text
),
PRESERVE
,
"Original artist(s)/performer(s)"
},
#line 336 "frametype.gperf"
{
"TPRO"
,
FRAME
(
text
),
PRESERVE
,
"Produced notice"
},
#line 337 "frametype.gperf"
{
"TPUB"
,
FRAME
(
text
),
PRESERVE
,
"Publisher"
},
#line 357 "frametype.gperf"
{
"WPAY"
,
FRAME
(
url
),
PRESERVE
,
"Payment"
},
#line 335 "frametype.gperf"
{
"TPOS"
,
FRAME
(
text
),
PRESERVE
,
"Part of a set"
},
{
"TSOP"
,
FRAME
(
text
),
PRESERVE
,
"Performer sort order"
},
{
"TDOR"
,
FRAME
(
text
),
PRESERVE
,
"Original release time"
},
{
"TDRC"
,
FRAME
(
text
),
PRESERVE
,
"Recording time"
},
#line 356 "frametype.gperf"
{
"WORS"
,
FRAME
(
url
),
PRESERVE
,
"Official Internet radio station homepage"
},
{
"USLT"
,
FRAME
(
USLT
),
PRESERVE
,
"Unsynchronised lyric/text transcription"
},
#line 325 "frametype.gperf"
{
"TMOO"
,
FRAME
(
text
),
PRESERVE
,
"Mood"
},
#line 338 "frametype.gperf"
{
"TRCK"
,
FRAME
(
text
),
PRESERVE
,
"Track number/position in set"
},
{
"TPRO"
,
FRAME
(
text
),
PRESERVE
,
"Produced notice"
},
{
"TDRL"
,
FRAME
(
text
),
PRESERVE
,
"Release time"
},
{
"POSS"
,
FRAME
(
POSS
),
DISCARD
,
"Position synchronisation frame"
},
{
"PCNT"
,
FRAME
(
PCNT
),
PRESERVE
,
"Play counter"
},
{
"LINK"
,
FRAME
(
LINK
),
PRESERVE
,
"Linked information"
},
{
"TMED"
,
FRAME
(
text
),
PRESERVE
,
"Media type"
},
{
"TEXT"
,
FRAME
(
text
),
PRESERVE
,
"Lyricist/text writer"
},
{
"TOPE"
,
FRAME
(
text
),
PRESERVE
,
"Original artist(s)/performer(s)"
},
{
"AENC"
,
FRAME
(
AENC
),
DISCARD
,
"Audio encryption"
},
#line 320 "frametype.gperf"
{
"TKEY"
,
FRAME
(
text
),
PRESERVE
,
"Initial key"
},
#line 308 "frametype.gperf"
{
"TDLY"
,
FRAME
(
text
),
PRESERVE
,
"Playlist delay"
},
#line 296 "frametype.gperf"
{
"RVA2"
,
FRAME
(
RVA2
),
DISCARD
,
"Relative volume adjustment (2)"
},
#line 310 "frametype.gperf"
{
"TDRC"
,
FRAME
(
text
),
PRESERVE
,
"Recording time"
},
#line 350 "frametype.gperf"
{
"USLT"
,
FRAME
(
USLT
),
PRESERVE
,
"Unsynchronised lyric/text transcription"
},
#line 353 "frametype.gperf"
{
"WOAF"
,
FRAME
(
url
),
PRESERVE
,
"Official audio file webpage"
},
#line 312 "frametype.gperf"
{
"TDTG"
,
FRAME
(
text
),
PRESERVE
,
"Tagging time"
},
#line 299 "frametype.gperf"
{
"SIGN"
,
FRAME
(
SIGN
),
PRESERVE
,
"Signature frame"
},
{
"TPE3"
,
FRAME
(
text
),
PRESERVE
,
"Conductor/performer refinement"
},
#line 355 "frametype.gperf"
{
"WOAS"
,
FRAME
(
url
),
PRESERVE
,
"Official audio source webpage"
},
#line 331 "frametype.gperf"
{
"TPE1"
,
FRAME
(
text
),
PRESERVE
,
"Lead performer(s)/soloist(s)"
},
#line 302 "frametype.gperf"
{
"TALB"
,
FRAME
(
text
),
PRESERVE
,
"Album/movie/show title"
},
{
"OWNE"
,
FRAME
(
OWNE
),
PRESERVE
,
"Ownership frame"
},
{
"APIC"
,
FRAME
(
APIC
),
PRESERVE
,
"Attached picture"
},
{
"WOAR"
,
FRAME
(
url
),
PRESERVE
,
"Official artist/performer webpage"
},
{
"WOAF"
,
FRAME
(
url
),
PRESERVE
,
"Official audio file webpage"
},
{
"TDEN"
,
FRAME
(
text
),
PRESERVE
,
"Encoding time"
},
{
"ASPI"
,
FRAME
(
ASPI
),
DISCARD
,
"Audio seek point index"
},
#line 341 "frametype.gperf"
{
"TSOA"
,
FRAME
(
text
),
PRESERVE
,
"Album sort order"
},
#line 321 "frametype.gperf"
{
"TLAN"
,
FRAME
(
text
),
PRESERVE
,
"Language(s)"
},
#line 333 "frametype.gperf"
{
"TPE3"
,
FRAME
(
text
),
PRESERVE
,
"Conductor/performer refinement"
},
#line 352 "frametype.gperf"
{
"WCOP"
,
FRAME
(
url
),
PRESERVE
,
"Copyright/legal information"
},
{
"TDLY"
,
FRAME
(
text
),
PRESERVE
,
"Playlist delay"
},
#line 334 "frametype.gperf"
{
"TPE4"
,
FRAME
(
text
),
PRESERVE
,
"Interpreted, remixed, or otherwise modified by"
},
#line 323 "frametype.gperf"
{
"TMCL"
,
FRAME
(
text
),
PRESERVE
,
"Musician credits list"
},
#line 303 "frametype.gperf"
{
"TBPM"
,
FRAME
(
text
),
PRESERVE
,
"BPM (beats per minute)"
},
{
"USER"
,
FRAME
(
USER
),
PRESERVE
,
"Terms of use"
},
{
"TDTG"
,
FRAME
(
text
),
PRESERVE
,
"Tagging time"
},
{
"POPM"
,
FRAME
(
POPM
),
PRESERVE
,
"Popularimeter"
},
#line 311 "frametype.gperf"
{
"TDRL"
,
FRAME
(
text
),
PRESERVE
,
"Release time"
},
#line 326 "frametype.gperf"
{
"TOAL"
,
FRAME
(
text
),
PRESERVE
,
"Original album/movie/show title"
},
#line 342 "frametype.gperf"
{
"TSOP"
,
FRAME
(
text
),
PRESERVE
,
"Performer sort order"
},
#line 363 "frametype.gperf"
{
"ZOBS"
,
FRAME
(
ZOBS
),
OBSOLETE
,
"Obsolete frame"
},
#line 283 "frametype.gperf"
{
"EQU2"
,
FRAME
(
EQU2
),
DISCARD
,
"Equalisation (2)"
},
{
"TPE2"
,
FRAME
(
text
),
PRESERVE
,
"Band/orchestra/accompaniment"
},
{
"SEEK"
,
FRAME
(
SEEK
),
DISCARD
,
"Seek frame"
},
{
"TPE1"
,
FRAME
(
text
),
PRESERVE
,
"Lead performer(s)/soloist(s)"
},
{
"UFID"
,
FRAME
(
UFID
),
PRESERVE
,
"Unique file identifier"
},
#line 306 "frametype.gperf"
{
"TCOP"
,
FRAME
(
text
),
PRESERVE
,
"Copyright message"
},
#line 287 "frametype.gperf"
{
"LINK"
,
FRAME
(
LINK
),
PRESERVE
,
"Linked information"
},
#line 286 "frametype.gperf"
{
"GRID"
,
FRAME
(
GRID
),
PRESERVE
,
"Group identification registration"
},
{
"TKEY"
,
FRAME
(
text
),
PRESERVE
,
"Initial key"
},
#line 294 "frametype.gperf"
{
"PRIV"
,
FRAME
(
PRIV
),
PRESERVE
,
"Private frame"
},
{
"TPE4"
,
FRAME
(
text
),
PRESERVE
,
"Interpreted, remixed, or otherwise modified by"
},
{
"GEOB"
,
FRAME
(
GEOB
),
PRESERVE
,
"General encapsulated object"
},
{
"RBUF"
,
FRAME
(
RBUF
),
PRESERVE
,
"Recommended buffer size"
},
{
"RVRB"
,
FRAME
(
RVRB
),
PRESERVE
,
"Reverb"
},
{
"RVA2"
,
FRAME
(
RVA2
),
DISCARD
,
"Relative volume adjustment (2)"
},
{
"TPUB"
,
FRAME
(
text
),
PRESERVE
,
"Publisher"
},
#line 315 "frametype.gperf"
{
"TFLT"
,
FRAME
(
text
),
PRESERVE
,
"File type"
},
#line 289 "frametype.gperf"
{
"MLLT"
,
FRAME
(
MLLT
),
DISCARD
,
"MPEG location lookup table"
},
#line 314 "frametype.gperf"
{
"TEXT"
,
FRAME
(
text
),
PRESERVE
,
"Lyricist/text writer"
},
#line 348 "frametype.gperf"
{
"UFID"
,
FRAME
(
UFID
),
PRESERVE
,
"Unique file identifier"
},
#line 278 "frametype.gperf"
{
"APIC"
,
FRAME
(
APIC
),
PRESERVE
,
"Attached picture"
},
#line 279 "frametype.gperf"
{
"ASPI"
,
FRAME
(
ASPI
),
DISCARD
,
"Audio seek point index"
},
#line 318 "frametype.gperf"
{
"TIT2"
,
FRAME
(
text
),
PRESERVE
,
"Title/songname/content description"
},
#line 359 "frametype.gperf"
{
"WXXX"
,
FRAME
(
WXXX
),
PRESERVE
,
"User defined URL link frame"
},
#line 288 "frametype.gperf"
{
"MCDI"
,
FRAME
(
MCDI
),
PRESERVE
,
"Music CD identifier"
},
#line 316 "frametype.gperf"
{
"TIPL"
,
FRAME
(
text
),
PRESERVE
,
"Involved people list"
},
#line 347 "frametype.gperf"
{
"TXXX"
,
FRAME
(
TXXX
),
PRESERVE
,
"User defined text information frame"
},
{
"WPAY"
,
FRAME
(
url
),
PRESERVE
,
"Payment"
},
{
"WPUB"
,
FRAME
(
url
),
PRESERVE
,
"Publishers official webpage"
},
{
"WXXX"
,
FRAME
(
WXXX
),
PRESERVE
,
"User defined URL link frame"
}
#line 295 "frametype.gperf"
{
"RBUF"
,
FRAME
(
RBUF
),
PRESERVE
,
"Recommended buffer size"
},
#line 317 "frametype.gperf"
{
"TIT1"
,
FRAME
(
text
),
PRESERVE
,
"Content group description"
},
#line 319 "frametype.gperf"
{
"TIT3"
,
FRAME
(
text
),
PRESERVE
,
"Subtitle/description refinement"
}
};
static
const
short
lookup
[]
=
{
0
,
-
92
,
3
,
-
1
,
4
,
5
,
6
,
-
83
,
-
2
,
7
,
8
,
9
,
10
,
11
,
12
,
-
1
,
13
,
-
1
,
14
,
15
,
16
,
-
1
,
17
,
18
,
19
,
-
183
,
22
,
23
,
24
,
25
,
26
,
27
,
-
179
,
30
,
-
177
,
-
175
,
35
,
-
173
,
-
168
,
41
,
42
,
43
,
44
,
45
,
46
,
-
166
,
49
,
50
,
-
164
,
53
,
54
,
55
,
56
,
57
,
58
,
-
162
,
61
,
62
,
-
1
,
63
,
64
,
65
,
66
,
67
,
68
,
69
,
70
,
71
,
72
,
73
,
74
,
-
1
,
-
159
,
77
,
-
9
,
-
2
,
78
,
-
25
,
-
2
,
-
33
,
-
2
,
-
37
,
-
2
,
-
45
,
-
2
,
79
,
-
1
,
80
,
-
48
,
-
3
,
-
51
,
-
2
,
-
53
,
-
2
,
-
56
,
-
2
,
-
1
,
81
,
-
64
,
-
2
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
82
,
-
1
,
83
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
0
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
1
,
-
1
,
2
,
3
,
-
1
,
4
,
-
1
,
-
1
,
-
1
,
-
1
,
5
,
6
,
7
,
8
,
-
1
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
16
,
17
,
18
,
19
,
20
,
21
,
22
,
23
,
24
,
25
,
26
,
27
,
28
,
29
,
30
,
31
,
32
,
33
,
34
,
35
,
36
,
37
,
38
,
39
,
40
,
41
,
42
,
43
,
44
,
45
,
46
,
47
,
48
,
49
,
50
,
51
,
52
,
53
,
54
,
55
,
56
,
57
,
58
,
59
,
60
,
61
,
62
,
63
,
64
,
65
,
66
,
67
,
68
,
69
,
-
1
,
70
,
71
,
-
1
,
72
,
73
,
74
,
-
1
,
75
,
-
1
,
76
,
-
1
,
-
1
,
-
1
,
77
,
78
,
-
1
,
-
1
,
79
,
-
1
,
-
1
,
-
1
,
-
1
,
80
,
81
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
82
,
-
1
,
-
1
,
-
1
,
83
};
if
(
len
<=
MAX_WORD_LENGTH
&&
len
>=
MIN_WORD_LENGTH
)
...
...
@@ -465,21 +562,6 @@ id3_frametype_lookup (str, len)
if
(
*
str
==
*
s
&&
!
strncmp
(
str
+
1
,
s
+
1
,
len
-
1
)
&&
s
[
len
]
==
'\0'
)
return
&
wordlist
[
index
];
}
else
if
(
index
<
-
TOTAL_KEYWORDS
)
{
register
int
offset
=
-
1
-
TOTAL_KEYWORDS
-
index
;
register
const
struct
id3_frametype
*
wordptr
=
&
wordlist
[
TOTAL_KEYWORDS
+
lookup
[
offset
]];
register
const
struct
id3_frametype
*
wordendptr
=
wordptr
+
-
lookup
[
offset
+
1
];
while
(
wordptr
<
wordendptr
)
{
register
const
char
*
s
=
wordptr
->
id
;
if
(
*
str
==
*
s
&&
!
strncmp
(
str
+
1
,
s
+
1
,
len
-
1
)
&&
s
[
len
]
==
'\0'
)
return
wordptr
;
wordptr
++
;
}
}
}
}
return
0
;
...
...
libmad/Makefile.in
View file @
53f5a137
# Makefile.in generated by automake 1.
7.2
from Makefile.am.
# Makefile.in generated by automake 1.
6.3
from Makefile.am.
# @configure_input@
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
...
...
@@ -13,115 +13,82 @@
# PARTICULAR PURPOSE.
@SET_MAKE@
SHELL
=
@SHELL@
srcdir
=
@srcdir@
top_srcdir
=
@top_srcdir@
VPATH
=
@srcdir@
prefix
=
@prefix@
exec_prefix
=
@exec_prefix@
bindir
=
@bindir@
sbindir
=
@sbindir@
libexecdir
=
@libexecdir@
datadir
=
@datadir@
sysconfdir
=
@sysconfdir@
sharedstatedir
=
@sharedstatedir@
localstatedir
=
@localstatedir@
libdir
=
@libdir@
infodir
=
@infodir@
mandir
=
@mandir@
includedir
=
@includedir@
oldincludedir
=
/usr/include
pkgdatadir
=
$(datadir)
/@PACKAGE@
pkglibdir
=
$(libdir)
/@PACKAGE@
pkgincludedir
=
$(includedir)
/@PACKAGE@
top_builddir
=
.
ACLOCAL
=
@ACLOCAL@
AUTOCONF
=
@AUTOCONF@
AUTOMAKE
=
@AUTOMAKE@
AUTOHEADER
=
@AUTOHEADER@
am__cd
=
CDPATH
=
"
$$
{ZSH_VERSION+.}
$(PATH_SEPARATOR)
"
&&
cd
INSTALL
=
@INSTALL@
INSTALL_PROGRAM
=
@INSTALL_PROGRAM@
INSTALL_DATA
=
@INSTALL_DATA@
install_sh_DATA
=
$(install_sh)
-c
-m
644
install_sh_PROGRAM
=
$(install_sh)
-c
install_sh_SCRIPT
=
$(install_sh)
-c
INSTALL_SCRIPT
=
@INSTALL_SCRIPT@
INSTALL_HEADER
=
$(INSTALL_DATA)
transform
=
$(program_transform_name)
transform
=
@program_transform_name@
NORMAL_INSTALL
=
:
PRE_INSTALL
=
:
POST_INSTALL
=
:
NORMAL_UNINSTALL
=
:
PRE_UNINSTALL
=
:
POST_UNINSTALL
=
:
host_alias
=
@host_alias@
host_triplet
=
@host@
ACLOCAL
=
@ACLOCAL@
AMDEP_FALSE
=
@AMDEP_FALSE@
AMDEP_TRUE
=
@AMDEP_TRUE@
EXEEXT
=
@EXEEXT@
OBJEXT
=
@OBJEXT@
PATH_SEPARATOR
=
@PATH_SEPARATOR@
AMTAR
=
@AMTAR@
AS
=
@AS@
ASO
=
@ASO@
ASO_OBJS
=
@ASO_OBJS@
AUTOCONF
=
@AUTOCONF@
AUTOHEADER
=
@AUTOHEADER@
AUTOMAKE
=
@AUTOMAKE@
AWK
=
@AWK@
CC
=
@CC@
CCAS
=
@CCAS@
CCASFLAGS
=
@CCASFLAGS@
CCDEPMODE
=
@CCDEPMODE@
CFLAGS
=
@CFLAGS@
CPP
=
@CPP@
CPPFLAGS
=
@CPPFLAGS@
CYGPATH_W
=
@CYGPATH_W@
DEFS
=
@DEFS@
DEPDIR
=
@DEPDIR@
DLLTOOL
=
@DLLTOOL@
ECHO
=
@ECHO@
ECHO_C
=
@ECHO_C@
ECHO_N
=
@ECHO_N@
ECHO_T
=
@ECHO_T@
EGREP
=
@EGREP@
EXEEXT
=
@EXEEXT@
FPM
=
@FPM@
INSTALL_DATA
=
@INSTALL_DATA@
INSTALL_PROGRAM
=
@INSTALL_PROGRAM@
INSTALL_SCRIPT
=
@INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM
=
@INSTALL_STRIP_PROGRAM@
LDFLAGS
=
@LDFLAGS@
LIBOBJS
=
@LIBOBJS@
LIBS
=
@LIBS@
LIBTOOL
=
@LIBTOOL@
LIBTOOL_DEPS
=
@LIBTOOL_DEPS@
LN_S
=
@LN_S@
LTLIBOBJS
=
@LTLIBOBJS@
MAKEINFO
=
@MAKEINFO@
OBJEXT
=
@OBJEXT@
OBJDUMP
=
@OBJDUMP@
PACKAGE
=
@PACKAGE@
PACKAGE_BUGREPORT
=
@PACKAGE_BUGREPORT@
PACKAGE_NAME
=
@PACKAGE_NAME@
PACKAGE_STRING
=
@PACKAGE_STRING@
PACKAGE_TARNAME
=
@PACKAGE_TARNAME@
PACKAGE_VERSION
=
@PACKAGE_VERSION@
PATH_SEPARATOR
=
@PATH_SEPARATOR@
RANLIB
=
@RANLIB@
SET_MAKE
=
@SET_MAKE@
SHELL
=
@SHELL@
STRIP
=
@STRIP@
VERSION
=
@VERSION@
ac_ct_CC
=
@ac_ct_CC@
ac_ct_RANLIB
=
@ac_ct_RANLIB@
ac_ct_STRIP
=
@ac_ct_STRIP@
am__fastdepCC_FALSE
=
@am__fastdepCC_FALSE@
am__fastdepCC_TRUE
=
@am__fastdepCC_TRUE@
am__include
=
@am__include@
am__quote
=
@am__quote@
bindir
=
@bindir@
build
=
@build@
build_alias
=
@build_alias@
build_cpu
=
@build_cpu@
build_os
=
@build_os@
build_vendor
=
@build_vendor@
datadir
=
@datadir@
exec_prefix
=
@exec_prefix@
host
=
@host@
host_alias
=
@host_alias@
host_cpu
=
@host_cpu@
host_os
=
@host_os@
host_vendor
=
@host_vendor@
includedir
=
@includedir@
infodir
=
@infodir@
install_sh
=
@install_sh@
libdir
=
@libdir@
libexecdir
=
@libexecdir@
localstatedir
=
@localstatedir@
mandir
=
@mandir@
oldincludedir
=
@oldincludedir@
prefix
=
@prefix@
program_transform_name
=
@program_transform_name@
sbindir
=
@sbindir@
sharedstatedir
=
@sharedstatedir@
sysconfdir
=
@sysconfdir@
target_alias
=
@target_alias@
SUBDIRS
=
...
...
@@ -192,7 +159,11 @@ minimad_OBJECTS = $(am_minimad_OBJECTS)
minimad_DEPENDENCIES
=
libmad.la
minimad_LDFLAGS
=
DEFS
=
@DEFS@
DEFAULT_INCLUDES
=
-I
.
-I
$(srcdir)
-I
.
CPPFLAGS
=
@CPPFLAGS@
LDFLAGS
=
@LDFLAGS@
LIBS
=
@LIBS@
depcomp
=
$(SHELL)
$(top_srcdir)
/../depcomp
am__depfiles_maybe
=
depfiles
@AMDEP_TRUE@
DEP_FILES
=
./
$(DEPDIR)
/bit.Plo ./
$(DEPDIR)
/decoder.Plo
\
...
...
@@ -211,16 +182,16 @@ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
CCLD
=
$(CC)
LINK
=
$(LIBTOOL)
--mode
=
link
$(CCLD)
$(AM_CFLAGS)
$(CFLAGS)
\
$(AM_LDFLAGS)
$(LDFLAGS)
-o
$@
CFLAGS
=
@CFLAGS@
DIST_SOURCES
=
$(libmad_la_SOURCES)
$(EXTRA_libmad_la_SOURCES)
\
$(minimad_SOURCES)
HEADERS
=
$(noinst_HEADERS)
RECURSIVE_TARGETS
=
info-recursive dvi-recursive pdf-recursive
\
ps-recursive install-info-recursive uninstall-info-recursive
\
all-recursive install-data-recursive install-exec-recursive
\
installdirs-recursive install-recursive uninstall-recursive
\
check-recursive installcheck-recursive
RECURSIVE_TARGETS
=
info-recursive dvi-recursive install-info-recursive
\
uninstall-info-recursive all-recursive install-data-recursive
\
install-exec-recursive installdirs-recursive install-recursive
\
uninstall-recursive check-recursive installcheck-recursive
DIST_COMMON
=
README
$(noinst_HEADERS)
../config.guess ../config.sub
\
../depcomp ../install-sh ../ltmain.sh ../missing
\
../mkinstalldirs COPYING INSTALL Makefile.am Makefile.in TODO
\
...
...
@@ -273,7 +244,7 @@ clean-noinstLTLIBRARIES:
-
test
-z
"
$(noinst_LTLIBRARIES)
"
||
rm
-f
$(noinst_LTLIBRARIES)
@
list
=
'
$(noinst_LTLIBRARIES)
'
;
for
p
in
$$
list
;
do
\
dir
=
"
`
echo
$$
p |
sed
-e
's|/[^/]*$$||'
`
"
;
\
test
"
$$
dir"
=
"
$$
p
"
&&
dir
=
.
;
\
test
-z
"
$dir
"
&&
dir
=
.
;
\
echo
"rm -f
\"
$$
{dir}/so_locations
\"
"
;
\
rm
-f
"
$$
{dir}/so_locations"
;
\
done
...
...
@@ -309,43 +280,29 @@ distclean-depend:
$(CCASCOMPILE)
-c
`
test
-f
'$<'
||
echo
'
$(srcdir)
/'
`
$<
.S.obj
:
$(CCASCOMPILE)
-c
`
if
test
-f
'$<'
;
then
$(CYGPATH_W)
'$<'
;
else
$(CYGPATH_W)
'
$(srcdir)
/$<'
;
fi
`
$(CCASCOMPILE)
-c
`
cygpath
-w
$<
`
.S.lo
:
$(LTCCASCOMPILE)
-c
-o
$@
`
test
-f
'$<'
||
echo
'
$(srcdir)
/'
`
$<
.c.o
:
@am__fastdepCC_TRUE@
if
$(COMPILE)
-MT
$@
-MD
-MP
-MF
"$(DEPDIR)/$*.Tpo"
\
@am__fastdepCC_TRUE@
-c
-o
$@
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<;
\
@am__fastdepCC_TRUE@
then
mv
"$(DEPDIR)/$*.Tpo"
"$(DEPDIR)/$*.Po"
;
\
@am__fastdepCC_TRUE@
else
rm
-f
"$(DEPDIR)/$*.Tpo"
;
exit
1;
\
@am__fastdepCC_TRUE@
fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@
source
=
'$<'
object
=
'$@'
libtool
=
no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
depfile
=
'
$(DEPDIR)
/$*.Po'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
@am__fastdepCC_FALSE@
$(COMPILE)
-c
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<
@AMDEP_TRUE@
source
=
'$<'
object
=
'$@'
libtool
=
no @AMDEPBACKSLASH@
@AMDEP_TRUE@
depfile
=
'
$(DEPDIR)
/$*.Po'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
$(COMPILE)
-c
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<
.c.obj
:
@am__fastdepCC_TRUE@
if
$(COMPILE)
-MT
$@
-MD
-MP
-MF
"$(DEPDIR)/$*.Tpo"
\
@am__fastdepCC_TRUE@
-c
-o
$@
`if
test
-f
'$<'
;
then
$(CYGPATH_W)
'$<'
;
else
$(CYGPATH_W)
'$(srcdir)/$<'
;
fi`;
\
@am__fastdepCC_TRUE@
then
mv
"$(DEPDIR)/$*.Tpo"
"$(DEPDIR)/$*.Po"
;
\
@am__fastdepCC_TRUE@
else
rm
-f
"$(DEPDIR)/$*.Tpo"
;
exit
1;
\
@am__fastdepCC_TRUE@
fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@
source
=
'$<'
object
=
'$@'
libtool
=
no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
depfile
=
'
$(DEPDIR)
/$*.Po'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
@am__fastdepCC_FALSE@
$(COMPILE)
-c
`if
test
-f
'$<'
;
then
$(CYGPATH_W)
'$<'
;
else
$(CYGPATH_W)
'$(srcdir)/$<'
;
fi`
@AMDEP_TRUE@
source
=
'$<'
object
=
'$@'
libtool
=
no @AMDEPBACKSLASH@
@AMDEP_TRUE@
depfile
=
'
$(DEPDIR)
/$*.Po'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
$(COMPILE)
-c
`cygpath
-w
$<`
.c.lo
:
@am__fastdepCC_TRUE@
if
$(LTCOMPILE)
-MT
$@
-MD
-MP
-MF
"$(DEPDIR)/$*.Tpo"
\
@am__fastdepCC_TRUE@
-c
-o
$@
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<;
\
@am__fastdepCC_TRUE@
then
mv
"$(DEPDIR)/$*.Tpo"
"$(DEPDIR)/$*.Plo"
;
\
@am__fastdepCC_TRUE@
else
rm
-f
"$(DEPDIR)/$*.Tpo"
;
exit
1;
\
@am__fastdepCC_TRUE@
fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@
source
=
'$<'
object
=
'$@'
libtool
=
yes
@AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
depfile
=
'
$(DEPDIR)
/$*.Plo'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPlo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
@am__fastdepCC_FALSE@
$(LTCOMPILE)
-c
-o
$@
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<
@AMDEP_TRUE@
source
=
'$<'
object
=
'$@'
libtool
=
yes
@AMDEPBACKSLASH@
@AMDEP_TRUE@
depfile
=
'
$(DEPDIR)
/$*.Plo'
tmpdepfile
=
'
$(DEPDIR)
/$*.TPlo'
@AMDEPBACKSLASH@
@AMDEP_TRUE@
$(CCDEPMODE)
$(depcomp)
@AMDEPBACKSLASH@
$(LTCOMPILE)
-c
-o
$@
`test
-f
'$<'
||
echo
'$(srcdir)/'
`$<
CCDEPMODE
=
@CCDEPMODE@
mostlyclean-libtool
:
-
rm
-f
*
.lo
...
...
@@ -411,17 +368,10 @@ tags-recursive:
list
=
'
$(SUBDIRS)
'
;
for
subdir
in
$$
list
;
do
\
test
"
$$
subdir"
=
.
||
(
cd
$$
subdir
&&
$(MAKE)
$(AM_MAKEFLAGS)
tags
)
;
\
done
ctags-recursive
:
list
=
'
$(SUBDIRS)
'
;
for
subdir
in
$$
list
;
do
\
test
"
$$
subdir"
=
.
||
(
cd
$$
subdir
&&
$(MAKE)
$(AM_MAKEFLAGS)
ctags
)
;
\
done
ETAGS
=
etags
ETAGSFLAGS
=
CTAGS
=
ctags
CTAGSFLAGS
=
tags
:
TAGS
ID
:
$(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
...
...
@@ -452,28 +402,13 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
||
$(ETAGS)
$(ETAGSFLAGS)
$(AM_ETAGSFLAGS)
$(ETAGS_ARGS)
\
$$
tags
$$
unique
ctags
:
CTAGS
CTAGS
:
ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES)
\
$(TAGS_FILES) $(LISP)
tags
=
;
\
here
=
`
pwd
`
;
\
list
=
'
$(SOURCES)
$(HEADERS)
config.h.in
$(LISP)
$(TAGS_FILES)
'
;
\
unique
=
`
for
i
in
$$
list
;
do
\
if
test
-f
"
$$
i"
;
then
echo
$$
i
;
else
echo
$(srcdir)
/
$$
i
;
fi
;
\
done
|
\
$(AWK)
' { files[$$0] = 1; } \
END { for (i in files) print i; }'
`
;
\
test
-z
"
$(CTAGS_ARGS)$$
tags
$$
unique"
\
||
$(CTAGS)
$(CTAGSFLAGS)
$(AM_CTAGSFLAGS)
$(CTAGS_ARGS)
\
$$
tags
$$
unique
GTAGS
:
here
=
`
$(am__cd)
$(top_builddir)
&&
pwd
`
\
&&
cd
$(top_srcdir)
\
&&
gtags
-i
$(GTAGS_ARGS)
$$
here
distclean-tags
:
-
rm
-f
TAGS ID GTAGS GRTAGS GSYMS GPATH
tags
-
rm
-f
TAGS ID GTAGS GRTAGS GSYMS GPATH
DISTFILES
=
$(DIST_COMMON)
$(DIST_SOURCES)
$(TEXINFOS)
$(EXTRA_DIST)
top_distdir
=
.
...
...
@@ -485,20 +420,13 @@ am__remove_distdir = \
&&
rm
-fr
$(distdir)
;
}
;
}
GZIP_ENV
=
--best
distuninstallcheck_listfiles
=
find
.
-type
f
-print
distcleancheck_listfiles
=
find
.
-type
f
-print
distdir
:
$(DISTFILES)
$(am__remove_distdir)
mkdir
$(distdir)
$(mkinstalldirs)
$(distdir)
/.
$(distdir)
/..
@
srcdirstrip
=
`
echo
"
$(srcdir)
"
|
sed
's|.|.|g'
`
;
\
topsrcdirstrip
=
`
echo
"
$(top_srcdir)
"
|
sed
's|.|.|g'
`
;
\
list
=
'
$(DISTFILES)
'
;
for
file
in
$$
list
;
do
\
case
$$
file
in
\
$(srcdir)
/
*
)
file
=
`
echo
"
$$
file"
|
sed
"s|^
$$
srcdirstrip/||"
`
;;
\
$(top_srcdir)
/
*
)
file
=
`
echo
"
$$
file"
|
sed
"s|^
$$
topsrcdirstrip/|
$(top_builddir)
/|"
`
;;
\
esac
;
\
@
list
=
'
$(DISTFILES)
'
;
for
file
in
$$
list
;
do
\
if
test
-f
$$
file
||
test
-d
$$
file
;
then
d
=
.
;
else
d
=
$(srcdir)
;
fi
;
\
dir
=
`
echo
"
$$
file"
|
sed
-e
's,/[^/]*$$,,'
`
;
\
if
test
"
$$
dir"
!=
"
$$
file"
&&
test
"
$$
dir"
!=
"."
;
then
\
...
...
@@ -555,9 +483,8 @@ distcheck: dist
mkdir
$(distdir)
/
=
inst
chmod
a-w
$(distdir)
dc_install_base
=
`
$(am__cd)
$(distdir)
/
=
inst
&&
pwd
`
\
&&
dc_destdir
=
"
$$
{TMPDIR-/tmp}/am-dc-
$$$$
/"
\
&&
cd
$(distdir)
/
=
build
\
&&
../configure
--srcdir
=
..
--prefix
=
"
$$
dc_install_base"
\
&&
../configure
--srcdir
=
..
--prefix
=
$$
dc_install_base
\
$(DISTCHECK_CONFIGURE_FLAGS)
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
dvi
\
...
...
@@ -565,44 +492,27 @@ distcheck: dist
&&
$(MAKE)
$(AM_MAKEFLAGS)
install
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
installcheck
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
uninstall
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
distuninstallcheck_dir
=
"
$$
dc_install_base"
\
distuninstallcheck
\
&&
chmod
-R
a-w
"
$$
dc_install_base"
\
&&
({
\
(
cd
../..
&&
$(mkinstalldirs)
"
$$
dc_destdir"
)
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
DESTDIR
=
"
$$
dc_destdir"
install
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
DESTDIR
=
"
$$
dc_destdir"
uninstall
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
DESTDIR
=
"
$$
dc_destdir"
\
distuninstallcheck_dir
=
"
$$
dc_destdir"
distuninstallcheck
;
\
}
||
{
rm
-rf
"
$$
dc_destdir"
;
exit
1
;
})
\
&&
rm
-rf
"
$$
dc_destdir"
\
&&
(
test
`
find
$$
dc_install_base
-type
f
-print
|
wc
-l
`
-le
1
\
||
{
echo
"ERROR: files left after uninstall:"
;
\
find
$$
dc_install_base
-type
f
-print
;
\
exit
1
;
}
>
&2
)
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
dist-gzip
\
&&
rm
-f
$(distdir)
.tar.gz
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
distcleancheck
$(am__remove_distdir)
@
echo
"
$(distdir)
.tar.gz is ready for distribution"
|
\
sed
'h;s/./=/g;p;x;p;x'
distuninstallcheck
:
cd
$(distuninstallcheck_dir)
\
&&
test
`
$(distuninstallcheck_listfiles)
|
wc
-l
`
-le
1
\
||
{
echo
"ERROR: files left after uninstall:"
;
\
if
test
-n
"
$(DESTDIR)
"
;
then
\
echo
" (check DESTDIR support)"
;
\
fi
;
\
$(distuninstallcheck_listfiles)
;
\
exit
1
;
}
>
&2
distcleancheck
:
distclean
if
test
'
$(srcdir)
'
=
.
;
then
\
echo
"ERROR: distcleancheck can only run from a VPATH build"
;
\
exit
1
;
\
fi
test
`
$(distcleancheck_listfiles)
|
wc
-l
`
-eq
0
\
||
{
echo
"ERROR: files left
in build directory
after distclean:"
;
\
||
{
echo
"ERROR: files left after distclean:"
;
\
$(distcleancheck_listfiles)
;
\
exit
1
;
}
>
&2
check-am
:
all-am
check
:
$(BUILT_SOURCES)
$(MAKE)
$(AM_MAKEFLAGS)
check-recursive
check
:
check-recursive
all-am
:
Makefile $(LTLIBRARIES) $(HEADERS) config.h
installdirs
:
installdirs-recursive
installdirs-am
:
...
...
@@ -672,36 +582,27 @@ mostlyclean: mostlyclean-recursive
mostlyclean-am
:
mostlyclean-compile mostlyclean-generic
\
mostlyclean-libtool
pdf
:
pdf-recursive
pdf-am
:
ps
:
ps-recursive
ps-am
:
uninstall-am
:
uninstall-info-am
uninstall-info
:
uninstall-info-recursive
.PHONY
:
$(RECURSIVE_TARGETS)
CTAGS
GTAGS all all-am check check-am clean
\
.PHONY
:
$(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean
\
clean-generic clean-libtool clean-noinstLTLIBRARIES
\
clean-recursive ctags ctags-recursive dist dist-all dist-gzip
\
distcheck distclean distclean-compile distclean-depend
\
distclean-generic distclean-hdr distclean-libtool
\
distclean-recursive distclean-tags distcleancheck distdir
\
distuninstallcheck dvi dvi-am dvi-recursive info info-am
\
info-recursive install install-am install-data install-data-am
\
install-data-recursive install-exec install-exec-am
\
install-exec-recursive install-info install-info-am
\
install-info-recursive install-man install-recursive
\
install-strip installcheck installcheck-am installdirs
\
installdirs-am installdirs-recursive maintainer-clean
\
maintainer-clean-generic maintainer-clean-recursive mostlyclean
\
mostlyclean-compile mostlyclean-generic mostlyclean-libtool
\
mostlyclean-recursive pdf pdf-am pdf-recursive ps ps-am
\
ps-recursive tags tags-recursive uninstall uninstall-am
\
uninstall-info-am uninstall-info-recursive uninstall-recursive
clean-recursive dist dist-all dist-gzip distcheck distclean
\
distclean-compile distclean-depend distclean-generic
\
distclean-hdr distclean-libtool distclean-recursive
\
distclean-tags distcleancheck distdir dvi dvi-am dvi-recursive
\
info info-am info-recursive install install-am install-data
\
install-data-am install-data-recursive install-exec
\
install-exec-am install-exec-recursive install-info
\
install-info-am install-info-recursive install-man
\
install-recursive install-strip installcheck installcheck-am
\
installdirs installdirs-am installdirs-recursive
\
maintainer-clean maintainer-clean-generic
\
maintainer-clean-recursive mostlyclean mostlyclean-compile
\
mostlyclean-generic mostlyclean-libtool mostlyclean-recursive
\
tags tags-recursive uninstall uninstall-am uninstall-info-am
\
uninstall-info-recursive uninstall-recursive
mad.h
:
config.status config.h Makefile.am
\
...
...
libmad/aclocal.m4
View file @
53f5a137
#
generated automatically by aclocal 1.7.2
-*- Autoconf -*-
#
aclocal.m4 generated automatically by aclocal 1.6.3
-*- Autoconf -*-
# Copyright
(C)
1996, 1997, 1998, 1999, 2000, 2001, 2002
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
# Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
...
...
@@ -43,7 +43,7 @@
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
AC_PREREQ([2.5
4
])
AC_PREREQ([2.5
2
])
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
# the ones we care about.
...
...
@@ -69,16 +69,6 @@ if test "`cd $srcdir && pwd`" != "`pwd`" &&
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
fi
# test whether we have cygpath
if test -z "$CYGPATH_W"; then
if (cygpath --version) >/dev/null 2>/dev/null; then
CYGPATH_W='cygpath -w'
else
CYGPATH_W=echo
fi
fi
AC_SUBST([CYGPATH_W])
# Define the identity of the package.
dnl Distinguish between old-style and new-style calls.
m4_ifval([$2],
...
...
@@ -110,29 +100,17 @@ AC_REQUIRE([AC_PROG_AWK])dnl
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
_AM_IF_OPTION([no-dependencies],,
[AC_PROVIDE_IFELSE([AC_PROG_CC],
[AC_PROVIDE_IFELSE([AC_PROG_
][
CC],
[_AM_DEPENDENCIES(CC)],
[define([AC_PROG_CC],
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
AC_PROVIDE_IFELSE([AC_PROG_CXX],
[define([AC_PROG_
][
CC],
defn([AC_PROG_
][
CC])[_AM_DEPENDENCIES(CC)])])dnl
AC_PROVIDE_IFELSE([AC_PROG_
][
CXX],
[_AM_DEPENDENCIES(CXX)],
[define([AC_PROG_CXX],
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
[define([AC_PROG_
][
CXX],
defn([AC_PROG_
][
CXX])[_AM_DEPENDENCIES(CXX)])])dnl
])
])
# When config.status generates a header, we must update the stamp-h file.
# This file resides in the same directory as the config header
# that is generated. The stamp files are numbered to have different names.
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
# loop where config.status creates the headers, so we can generate
# our stamp files there.
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
[_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
# Copyright 2002 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
...
...
@@ -153,14 +131,14 @@ echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
# ----------------------------
# Automake X.Y traces this macro to ensure aclocal.m4 has been
# generated from the m4 files accompanying Automake X.Y.
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.
7
"])
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.
6
"])
# AM_SET_CURRENT_AUTOMAKE_VERSION
# -------------------------------
# Call AM_AUTOMAKE_VERSION so it can be traced.
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
[AM_AUTOMAKE_VERSION([1.
7.2
])])
[AM_AUTOMAKE_VERSION([1.
6.3
])])
# Helper functions for option handling. -*- Autoconf -*-
...
...
@@ -540,7 +518,7 @@ AC_CACHE_CHECK([dependency style of $depcc],
if depmode=$depmode \
source=conftest.c object=conftest.o \
depfile=conftest.Po tmpdepfile=conftest.TPo \
$SHELL ./depcomp $depcc -c
-o conftest.o conftest.c
>/dev/null 2>&1 &&
$SHELL ./depcomp $depcc -c
conftest.c -o conftest.o
>/dev/null 2>&1 &&
grep conftest.h conftest.Po > /dev/null 2>&1 &&
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
am_cv_$1_dependencies_compiler_type=$depmode
...
...
@@ -555,9 +533,6 @@ else
fi
])
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
AM_CONDITIONAL([am__fastdep$1], [
test "x$enable_dependency_tracking" != xno \
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
])
...
...
@@ -677,9 +652,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
])
# Check to see how 'make' treats includes. -*- Autoconf -*-
# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
# Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -719,7 +692,7 @@ echo "include confinc" > confmf
# In particular we don't look at `^make:' because GNU make might
# be invoked under some other name (usually "gmake"), in which
# case it prints its new name instead of `make'.
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
if test "`$am_make -s -f confmf 2> /dev/null |
f
grep -v 'ing directory'`" = "done"; then
am__include=include
am__quote=
_am_result=GNU
...
...
@@ -779,7 +752,7 @@ else
fi
AC_CONFIG_COMMANDS_PRE(
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
AC_MSG_ERROR([conditional
"$1
" was never defined.
AC_MSG_ERROR([conditional
\"$1\
" was never defined.
Usually this means the macro was only invoked conditionally.])
fi])])
...
...
@@ -806,8 +779,60 @@ AC_PREREQ([2.52])
# serial 6
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
# When config.status generates a header, we must update the stamp-h file.
# This file resides in the same directory as the config header
# that is generated. We must strip everything past the first ":",
# and everything past the last "/".
# _AM_DIRNAME(PATH)
# -----------------
# Like AS_DIRNAME, only do it during macro expansion
AC_DEFUN([_AM_DIRNAME],
[m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
m4_if(regexp([$1], [^//\([^/]\|$\)]), -1,
m4_if(regexp([$1], [^/.*]), -1,
[.],
patsubst([$1], [^\(/\).*], [\1])),
patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
])# _AM_DIRNAME
# The stamp files are numbered to have different names.
# We could number them on a directory basis, but that's additional
# complications, let's have a unique counter.
m4_define([_AM_STAMP_Count], [0])
# _AM_STAMP(HEADER)
# -----------------
# The name of the stamp file for HEADER.
AC_DEFUN([_AM_STAMP],
[m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl
AS_ESCAPE(_AM_DIRNAME(patsubst([$1],
[:.*])))/stamp-h[]_AM_STAMP_Count])
# _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS)
# ------------------------------------------------------------
# We used to try to get a real timestamp in stamp-h. But the fear is that
# that will cause unnecessary cvs conflicts.
AC_DEFUN([_AM_CONFIG_HEADER],
[# Add the stamp file to the list of files AC keeps track of,
# along with our hook.
AC_CONFIG_HEADERS([$1],
[# update the timestamp
echo 'timestamp for $1' >"_AM_STAMP([$1])"
$2],
[$3])
])# _AM_CONFIG_HEADER
# AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS)
# --------------------------------------------------------------
AC_DEFUN([AM_CONFIG_HEADER],
[AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])
])# AM_CONFIG_HEADER
# Figure out how to run the assembler. -*- Autoconf -*-
...
...
@@ -845,8 +870,6 @@ AC_SUBST(CCASFLAGS)])
# serial 46 AC_PROG_LIBTOOL
builtin([undefine],[symbols])
AC_DEFUN([AC_PROG_LIBTOOL],
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
...
...
@@ -872,6 +895,8 @@ AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_PROG_LD])dnl
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
AC_REQUIRE([AC_PROG_NM])dnl
AC_REQUIRE([LT_AC_PROG_SED])dnl
AC_REQUIRE([AC_PROG_LN_S])dnl
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
AC_REQUIRE([AC_OBJEXT])dnl
...
...
@@ -972,9 +997,30 @@ _LT_AC_LTCONFIG_HACK
])
# AC_LIBTOOL_HEADER_ASSERT
# ------------------------
AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
[lt_cv_func_assert_works],
[case $host in
*-*-solaris*)
if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
case `$CC --version 2>/dev/null` in
[[12]].*) lt_cv_func_assert_works=no ;;
*) lt_cv_func_assert_works=yes ;;
esac
fi
;;
esac])
if test "x$lt_cv_func_assert_works" = xyes; then
AC_CHECK_HEADERS(assert.h)
fi
])# AC_LIBTOOL_HEADER_ASSERT
# _LT_AC_CHECK_DLFCN
# --------------------
AC_DEFUN(
_LT_AC_CHECK_DLFCN
,
AC_DEFUN(
[_LT_AC_CHECK_DLFCN]
,
[AC_CHECK_HEADERS(dlfcn.h)
])# _LT_AC_CHECK_DLFCN
...
...
@@ -992,10 +1038,10 @@ AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
# Character class describing NM global symbol codes.
[symcode='[BCDEGRST]']
symcode='[[BCDEGRST]]'
# Regexp to match symbols that can be accessed directly from C.
[sympat='\([_A-Za-z][_A-Za-z0-9]*\)']
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
# Transform the above into a raw symbol and a C symbol.
symxfrm='\1 \2\3 \3'
...
...
@@ -1009,23 +1055,26 @@ lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\
# Define system-specific variables.
case $host_os in
aix*)
[symcode='[BCDT]']
symcode='[[BCDT]]'
;;
cygwin* | mingw* | pw32*)
[symcode='[ABCDGISTW]']
symcode='[[ABCDGISTW]]'
;;
hpux*) # Its linker distinguishes data from code symbols
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
;;
irix*)
[symcode='[BCDEGRST]']
irix* | nonstopux*)
symcode='[[BCDEGRST]]'
;;
osf*)
symcode='[[BCDEGQRST]]'
;;
solaris* | sysv5*)
[symcode='[BDT]']
symcode='[[BDT]]'
;;
sysv4)
[symcode='[DFNSTU]']
symcode='[[DFNSTU]]'
;;
esac
...
...
@@ -1039,14 +1088,14 @@ esac
# If we're using GNU nm, then use its standard symbol codes.
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
[symcode='[ABCDGISTW]']
symcode='[[ABCDGISTW]]'
fi
# Try without a prefix undercore, then with it.
for ac_symprfx in "" "_"; do
# Write the raw and C identifiers.
[lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"]
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
# Check to see that the pipe works correctly.
pipe_works=no
...
...
@@ -1099,7 +1148,7 @@ const struct {
const char *name;
lt_ptr address;
}
[lt_preloaded_symbols[] =]
lt_preloaded_symbols[[]] =
{
EOF
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
...
...
@@ -1117,7 +1166,7 @@ EOF
save_CFLAGS="$CFLAGS"
LIBS="conftstm.$ac_objext"
CFLAGS="$CFLAGS$no_builtin_flag"
if AC_TRY_EVAL(ac_link) && test -s conftest; then
if AC_TRY_EVAL(ac_link) && test -s conftest
$ac_exeext
; then
pipe_works=yes
fi
LIBS="$save_LIBS"
...
...
@@ -1172,13 +1221,14 @@ if test "X${PATH_SEPARATOR+set}" != Xset; then
*-DOS) lt_cv_sys_path_separator=';' ;;
*) lt_cv_sys_path_separator=':' ;;
esac
PATH_SEPARATOR=$lt_cv_sys_path_separator
fi
])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
# _LT_AC_PROG_ECHO_BACKSLASH
# --------------------------
# Add some code to the start of the generated configure script which
# will find an echo command which doesn
;
t interpret backslashes.
# will find an echo command which doesn
'
t interpret backslashes.
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
[AC_DIVERT_PUSH(NOTICE)])
...
...
@@ -1247,7 +1297,7 @@ else
#
# So, first we look for a working echo in the user's PATH.
IFS="${IFS= }"; save_ifs="$IFS"; IFS=
"${IFS}${PATH_SEPARATOR}"
IFS="${IFS= }"; save_ifs="$IFS"; IFS=
$PATH_SEPARATOR
for dir in $PATH /usr/ucb; do
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
...
...
@@ -1336,7 +1386,7 @@ AC_DIVERT_POP
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
# ------------------------------------------------------------------
AC_DEFUN(
_LT_AC_TRY_DLOPEN_SELF
,
AC_DEFUN(
[_LT_AC_TRY_DLOPEN_SELF]
,
[if test "$cross_compiling" = yes; then :
[$4]
else
...
...
@@ -1423,7 +1473,7 @@ rm -fr conftest*
# AC_LIBTOOL_DLOPEN_SELF
# -------------------
AC_DEFUN(
AC_LIBTOOL_DLOPEN_SELF
,
AC_DEFUN(
[AC_LIBTOOL_DLOPEN_SELF]
,
[if test "x$enable_dlopen" != xyes; then
enable_dlopen=unknown
enable_dlopen_self=unknown
...
...
@@ -1523,10 +1573,10 @@ AC_DEFUN([_LT_AC_LTCONFIG_HACK],
# Sed substitution that helps us do robust quoting. It backslashifies
# metacharacters that are still active within double-quoted strings.
Xsed='sed -e s/^X//'
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
# Same as above, but do not quote variable references.
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
# Sed substitution to delay expansion of an escaped shell variable in a
# double_quote_subst'ed string.
...
...
@@ -1660,7 +1710,7 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic,
# like `-m68040'.
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
;;
beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
beos* | irix5* | irix6* |
nonstopux* |
osf3* | osf4* | osf5*)
# PIC is the default for these OSes.
;;
darwin* | rhapsody*)
...
...
@@ -1703,7 +1753,7 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic,
lt_cv_prog_cc_pic='+Z'
;;
irix5* | irix6*)
irix5* | irix6*
| nonstopux*
)
lt_cv_prog_cc_wl='-Wl,'
lt_cv_prog_cc_static='-non_shared'
# PIC (with -KPIC) is the default.
...
...
@@ -1747,11 +1797,7 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic,
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
lt_cv_prog_cc_pic='-KPIC'
lt_cv_prog_cc_static='-Bstatic'
if test "x$host_vendor" = xsni; then
lt_cv_prog_cc_wl='-LD'
else
lt_cv_prog_cc_wl='-Wl,'
fi
lt_cv_prog_cc_wl='-Wl,'
;;
uts4*)
...
...
@@ -1817,7 +1863,7 @@ fi
# Check for any special shared library compilation flags.
if test -n "$lt_cv_prog_cc_shlib"; then
AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
if echo "$old_CC $old_CFLAGS " |
[egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]"]
>/dev/null; then :
if echo "$old_CC $old_CFLAGS " |
egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]"
>/dev/null; then :
else
AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
lt_cv_prog_cc_can_build_shared=no
...
...
@@ -2098,7 +2144,7 @@ EOF
# can override, but on older systems we have to supply one (in ltdll.c)
if test "x$lt_cv_need_dllmain" = "xyes"; then
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d <
[$]
0 > $output_objdir/$soname-ltdll.c~
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d <
$''
0 > $output_objdir/$soname-ltdll.c~
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
else
ltdll_obj=
...
...
@@ -2111,12 +2157,12 @@ EOF
# Be careful not to strip the DATA tag left be newer dlltools.
export_symbols_cmds="$ltdll_cmds"'
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
[sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//"]
< $output_objdir/$soname-def > $export_symbols'
sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//"
< $output_objdir/$soname-def > $export_symbols'
# If the export-symbols file already is a .def file (1st line
# is EXPORTS), use it as is.
# If DATA tags from a recent dlltool are present, honour them!
archive_expsym_cmds='if test "x`
head -1
$export_symbols`" = xEXPORTS; then
archive_expsym_cmds='if test "x`
sed 1q
$export_symbols`" = xEXPORTS; then
cp $export_symbols $output_objdir/$soname-def;
else
echo EXPORTS > $output_objdir/$soname-def;
...
...
@@ -2125,6 +2171,7 @@ EOF
set dummy \$symbol;
case \[$]# in
2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
*) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
esac;
_lt_hint=`expr 1 + \$_lt_hint`;
...
...
@@ -2237,10 +2284,12 @@ else
# need to do runtime linking.
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
for ld_flag in $LDFLAGS; do
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
case $ld_flag in
*-brtl*)
aix_use_runtimelinking=yes
break
fi
;;
esac
done
esac
...
...
@@ -2312,7 +2361,7 @@ else
allow_undefined_flag='${wl}-berok'
# This is a bit strange, but is similar to how AIX traditionally builds
# it's shared libraries.
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $o
bjdir/$libname$release.a $
objdir/$soname'
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $o
utput_objdir/$libname$release.a $output_
objdir/$soname'
fi
fi
;;
...
...
@@ -2354,8 +2403,9 @@ else
esac
# FIXME: Relying on posixy $() will cause problems for
# cross-compilation, but unfortunately the echo tests do not
# yet detect zsh echo's removal of \ escapes.
archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
# `"' quotes if we put them in here... so don't!
archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
# We need to add '_' to the symbols in $export_symbols first
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
hardcode_direct=yes
...
...
@@ -2407,13 +2457,14 @@ else
export_dynamic_flag_spec='${wl}-E'
;;
irix5* | irix6*)
irix5* | irix6*
| nonstopux*
)
if test "$GCC" = yes; then
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
else
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
hardcode_libdir_flag_spec='-rpath $libdir'
fi
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
link_all_deplibs=yes
;;
...
...
@@ -2441,7 +2492,7 @@ else
hardcode_direct=yes
hardcode_shlibpath_var=no
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $
link
er_flags'
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $
compil
er_flags'
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
export_dynamic_flag_spec='${wl}-E'
else
...
...
@@ -2451,7 +2502,7 @@ else
hardcode_libdir_flag_spec='-R$libdir'
;;
*)
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $
link
er_flags'
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $
compil
er_flags'
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
;;
esac
...
...
@@ -2504,7 +2555,35 @@ else
;;
solaris*)
# gcc --version < 3.0 without binutils cannot create self contained
# shared libraries reliably, requiring libgcc.a to resolve some of
# the object symbols generated in some cases. Libraries that use
# assert need libgcc.a to resolve __eprintf, for example. Linking
# a copy of libgcc.a into every shared library to guarantee resolving
# such symbols causes other problems: According to Tim Van Holder
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
# (to the application) exception stack for one thing.
no_undefined_flag=' -z defs'
if test "$GCC" = yes; then
case `$CC --version 2>/dev/null` in
[[12]].*)
cat <<EOF 1>&2
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
*** create self contained shared libraries on Solaris systems, without
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
*** -no-undefined support, which will at least allow you to build shared
*** libraries. However, you may find that when you link such libraries
*** into an application without using GCC, you have to manually add
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
*** upgrade to a newer version of GCC. Another option is to rebuild your
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
EOF
no_undefined_flag=
;;
esac
fi
# $CC -shared without GNU ld will not create a library from C++
# object files and a static libstdc++, better avoid it by now
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
...
...
@@ -2513,7 +2592,7 @@ else
hardcode_libdir_flag_spec='-R$libdir'
hardcode_shlibpath_var=no
case $host_os in
[solaris2.[0-5] | solaris2.[0-5].*]
) ;;
solaris2.[[0-5]] | solaris2.[[0-5]].*
) ;;
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
esac
...
...
@@ -2535,13 +2614,23 @@ else
;;
sysv4)
if test "x$host_vendor" = xsno; then
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct=yes # is this really true???
else
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
fi
case $host_vendor in
sni)
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct=yes # is this really true???
;;
siemens)
## LD is ld it makes a PLAMLIB
## CC just makes a GrossModule.
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
reload_cmds='$CC -r -o $output$reload_objs'
hardcode_direct=no
;;
motorola)
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
;;
esac
runpath_var='LD_RUN_PATH'
hardcode_shlibpath_var=no
;;
...
...
@@ -2682,6 +2771,9 @@ aix3*)
aix4* | aix5*)
version_type=linux
need_lib_prefix=no
need_version=no
hardcode_into_libs=yes
if test "$host_cpu" = ia64; then
# AIX 5 supports IA64
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
...
...
@@ -2693,15 +2785,15 @@ aix4* | aix5*)
# depend on `.', always an invalid library. This was fixed in
# development snapshots of GCC prior to 3.0.
case $host_os in
[ aix4 | aix4.[01] | aix4.[01].*)]
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
echo ' yes '
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
:
else
can_build_shared=no
fi
;;
aix4 | aix4.[[01]] | aix4.[[01]].*)
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
echo ' yes '
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
:
else
can_build_shared=no
fi
;;
esac
# AIX (on Power*) has no versioning support, so currently we can
# not hardcode correct soname into executable. Probably we can
...
...
@@ -2720,12 +2812,13 @@ aix4* | aix5*)
fi
shlibpath_var=LIBPATH
fi
hardcode_into_libs=yes
;;
amigaos*)
library_names_spec='$libname.ixlibrary $libname.a'
# Create ${libname}_ixlibrary.a entries in /sys/libs.
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" |
[$Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\'']
`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" |
$Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''
`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
;;
beos*)
...
...
@@ -2756,7 +2849,7 @@ cygwin* | mingw* | pw32*)
case $GCC,$host_os in
yes,cygwin*)
library_names_spec='$libname.dll.a'
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} |
[sed -e 's/[.]/-/g']
`${versuffix}.dll'
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} |
sed -e 's/[[.]]/-/g'
`${versuffix}.dll'
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
dldir=$destdir/`dirname \$dlpath`~
test -d \$dldir || mkdir -p \$dldir~
...
...
@@ -2766,14 +2859,14 @@ cygwin* | mingw* | pw32*)
$rm \$dlpath'
;;
yes,mingw*)
library_names_spec='${libname}`echo ${release} |
[sed -e 's/[.]/-/g']
`${versuffix}.dll'
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
library_names_spec='${libname}`echo ${release} |
sed -e 's/[[.]]/-/g'
`${versuffix}.dll'
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"
-e "s,=/,/,g"
`
;;
yes,pw32*)
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
;;
*)
library_names_spec='${libname}`echo ${release} |
[sed -e 's/[.]/-/g']
`${versuffix}.dll $libname.lib'
library_names_spec='${libname}`echo ${release} |
sed -e 's/[[.]]/-/g'
`${versuffix}.dll $libname.lib'
;;
esac
dynamic_linker='Win32 ld.exe'
...
...
@@ -2799,6 +2892,18 @@ freebsd1*)
dynamic_linker=no
;;
freebsd*-gnu*)
version_type=linux
need_lib_prefix=no
need_version=no
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
soname_spec='${libname}${release}.so$major'
shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=no
hardcode_into_libs=yes
dynamic_linker='GNU/FreeBSD ld.so'
;;
freebsd*)
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
version_type=freebsd-$objformat
...
...
@@ -2850,14 +2955,17 @@ hpux9* | hpux10* | hpux11*)
postinstall_cmds='chmod 555 $lib'
;;
irix5* | irix6*)
version_type=irix
irix5* | irix6* | nonstopux*)
case $host_os in
nonstopux*) version_type=nonstopux ;;
*) version_type=irix ;;
esac
need_lib_prefix=no
need_version=no
soname_spec='${libname}${release}.so$major'
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
case $host_os in
irix5*)
irix5*
| nonstopux*
)
libsuff= shlibsuff=
;;
*)
...
...
@@ -2961,11 +3069,13 @@ os2*)
osf3* | osf4* | osf5*)
version_type=osf
need_version=no
soname_spec='${libname}${release}.so'
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
need_lib_prefix=no
soname_spec='${libname}${release}.so$major'
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
shlibpath_var=LD_LIBRARY_PATH
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
hardcode_into_libs=yes
;;
sco3.2v5*)
...
...
@@ -3008,6 +3118,12 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
case $host_vendor in
sni)
shlibpath_overrides_runpath=no
need_lib_prefix=no
export_dynamic_flag_spec='${wl}-Blargedynsym'
runpath_var=LD_RUN_PATH
;;
siemens)
need_lib_prefix=no
;;
motorola)
need_lib_prefix=no
...
...
@@ -3162,7 +3278,7 @@ if test -f "$ltmain"; then
# Now quote all the things that may contain metacharacters while being
# careful not to overquote the AC_SUBSTed values. We take copies of the
# variables and quote the copies for generation of the libtool script.
for var in echo old_CC old_CFLAGS \
for var in echo old_CC old_CFLAGS
SED
\
AR AR_FLAGS CC LD LN_S NM SHELL \
reload_flag reload_cmds wl \
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
...
...
@@ -3224,8 +3340,11 @@ if test -f "$ltmain"; then
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# A sed that does not truncate output.
SED=$lt_SED
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="
sed
-e s/^X//"
Xsed="
${SED}
-e s/^X//"
# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
...
...
@@ -3894,6 +4013,7 @@ test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
ac_prog=ld
if test "$GCC" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
...
...
@@ -3907,8 +4027,8 @@ if test "$GCC" = yes; then
esac
case $ac_prog in
# Accept absolute paths.
[[\\/]
* | [A-Za-z]:[\\/]*)]
[re_direlt='/[^/][^/]*/\.\./']
[[\\/]
]* | [[A-Za-z]]:[[\\/]]*)
re_direlt='/[[^/]][[^/]]*/\.\./'
# Canonicalize the path of ld
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
...
...
@@ -3932,7 +4052,7 @@ else
fi
AC_CACHE_VAL(lt_cv_path_LD,
[if test -z "$LD"; then
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=
"${IFS}${PATH_SEPARATOR-:}"
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=
$PATH_SEPARATOR
for ac_dir in $PATH; do
test -z "$ac_dir" && ac_dir=.
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
...
...
@@ -3985,7 +4105,7 @@ test -n "$reload_flag" && reload_flag=" $reload_flag"
# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
# -- PORTME fill in with the dynamic library characteristics
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
[AC_CACHE_CHECK([how to recognise depend
a
nt libraries],
[AC_CACHE_CHECK([how to recognise depend
e
nt libraries],
lt_cv_deplibs_check_method,
[lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
...
...
@@ -3996,7 +4116,7 @@ lt_cv_deplibs_check_method='unknown'
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
#
['file_magic [regex]']
-- check by looking for files in library path
#
'file_magic [[regex]]'
-- check by looking for files in library path
# which responds to the $file_magic_cmd with a given egrep regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
...
...
@@ -4011,7 +4131,7 @@ beos*)
;;
bsdi4*)
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)']
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
lt_cv_file_magic_cmd='/usr/bin/file -L'
lt_cv_file_magic_test_file=/shlib/libc.so
;;
...
...
@@ -4040,7 +4160,7 @@ freebsd*)
i*86 )
# Not sure whether the presence of OpenBSD here was a mistake.
# Let's accept both of them until this is cleared up.
[lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library']
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
lt_cv_file_magic_cmd=/usr/bin/file
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
;;
...
...
@@ -4055,14 +4175,14 @@ gnu*)
;;
hpux10.20*|hpux11*)
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library']
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
lt_cv_file_magic_cmd=/usr/bin/file
lt_cv_file_magic_test_file=/usr/lib/libc.sl
;;
irix5* | irix6*)
irix5* | irix6*
| nonstopux*
)
case $host_os in
irix5*)
irix5*
| nonstopux*
)
# this will be overridden with pass_all, but let us keep it just in case
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
;;
...
...
@@ -4074,7 +4194,7 @@ irix5* | irix6*)
*) libmagic=never-match;;
esac
# this will be overridden with pass_all, but let us keep it just in case
[lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"]
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
;;
esac
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
...
...
@@ -4084,25 +4204,25 @@ irix5* | irix6*)
# This must be Linux ELF.
linux-gnu*)
case $host_cpu in
alpha* | hppa* | i*86 |
powerpc* | sparc* | ia64*
)
alpha* | hppa* | i*86 |
mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k
)
lt_cv_deplibs_check_method=pass_all ;;
*)
# glibc up to 2.1.1 does not perform some relocations on ARM
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;]
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
esac
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
;;
netbsd*)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
else
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$']
lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
fi
;;
newos6*)
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)']
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
lt_cv_file_magic_cmd=/usr/bin/file
lt_cv_file_magic_test_file=/usr/lib/libnls.so
;;
...
...
@@ -4133,14 +4253,14 @@ solaris*)
lt_cv_file_magic_test_file=/lib/libc.so
;;
[sysv5uw[78]* | sysv4*uw2*)]
sysv5uw[[78]]* | sysv4*uw2*)
lt_cv_deplibs_check_method=pass_all
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
case $host_vendor in
motorola)
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]']
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
;;
ncr)
...
...
@@ -4148,13 +4268,16 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
;;
sequent)
lt_cv_file_magic_cmd='/bin/file'
[lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )']
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
;;
sni)
lt_cv_file_magic_cmd='/bin/file'
[lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"]
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
lt_cv_file_magic_test_file=/lib/libc.so
;;
siemens)
lt_cv_deplibs_check_method=pass_all
;;
esac
;;
esac
...
...
@@ -4166,13 +4289,14 @@ deplibs_check_method=$lt_cv_deplibs_check_method
# AC_PROG_NM - find the path to a BSD-compatible name lister
AC_DEFUN([AC_PROG_NM],
[AC_MSG_CHECKING([for BSD-compatible nm])
[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
AC_MSG_CHECKING([for BSD-compatible nm])
AC_CACHE_VAL(lt_cv_path_NM,
[if test -n "$NM"; then
# Let the user override the test.
lt_cv_path_NM="$NM"
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=
"${IFS}${PATH_SEPARATOR-:}"
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=
$PATH_SEPARATOR
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
test -z "$ac_dir" && ac_dir=.
tmp_nm=$ac_dir/${ac_tool_prefix}nm
...
...
@@ -4219,12 +4343,12 @@ esac
])
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl convenience library and
INCLTD
L to the include flags for
# the libltdl convenience library and
LTDLINC
L to the include flags for
# the libltdl header and adds --enable-ltdl-convenience to the
# configure arguments. Note that LIBLTDL and
INCLTD
L are not
# configure arguments. Note that LIBLTDL and
LTDLINC
L are not
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
# with '${top_builddir}/' and
INCLTD
L will be prefixed with
# with '${top_builddir}/' and
LTDLINC
L will be prefixed with
# '${top_srcdir}/' (note the single quotes!). If your package is not
# flat and you're not using automake, define top_builddir and
# top_srcdir appropriately in the Makefiles.
...
...
@@ -4236,16 +4360,18 @@ AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
esac
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
# For backwards non-gettext consistent compatibility...
INCLTDL="$LTDLINCL"
])
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl installable library and
INCLTD
L to the include flags for
# the libltdl installable library and
LTDLINC
L to the include flags for
# the libltdl header and adds --enable-ltdl-install to the configure
# arguments. Note that LIBLTDL and
INCLTD
L are not AC_SUBSTed, nor is
# arguments. Note that LIBLTDL and
LTDLINC
L are not AC_SUBSTed, nor is
# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
# be prefixed with '${top_builddir}/' and
INCLTD
L will be prefixed
# be prefixed with '${top_builddir}/' and
LTDLINC
L will be prefixed
# with '${top_srcdir}/' (note the single quotes!). If your package is
# not flat and you're not using automake, define top_builddir and
# top_srcdir appropriately in the Makefiles.
...
...
@@ -4263,12 +4389,14 @@ AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
if test x"$enable_ltdl_install" = x"yes"; then
ac_configure_args="$ac_configure_args --enable-ltdl-install"
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
INCLTD
L='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
LTDLINC
L='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
else
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
LIBLTDL="-lltdl"
INCLTD
L=
LTDLINC
L=
fi
# For backwards non-gettext consistent compatibility...
INCLTDL="$LTDLINCL"
])
# old names
...
...
@@ -4283,3 +4411,92 @@ AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
# This is just to silence aclocal about the macro not being used
ifelse([AC_DISABLE_FAST_INSTALL])
# NOTE: This macro has been submitted for inclusion into #
# GNU Autoconf as AC_PROG_SED. When it is available in #
# a released version of Autoconf we should remove this #
# macro and use it instead. #
# LT_AC_PROG_SED
# --------------
# Check for a fully-functional sed program, that truncates
# as few characters as possible. Prefer GNU sed if found.
AC_DEFUN([LT_AC_PROG_SED],
[AC_MSG_CHECKING([for a sed that does not truncate output])
AC_CACHE_VAL(lt_cv_path_SED,
[# Loop through the user's path and test for sed and gsed.
# Then use that list of sed's as ones to test for truncation.
as_executable_p="test -f"
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_prog in sed gsed; do
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
_sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
fi
done
done
done
# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
trap '{ (exit 1); exit 1; }' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.
: ${TMPDIR=/tmp}
{
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
test -n "$tmp" && test -d "$tmp"
} ||
{
tmp=$TMPDIR/sed$$-$RANDOM
(umask 077 && mkdir $tmp)
} ||
{
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
{ (exit 1); exit 1; }
}
_max=0
_count=0
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
# along with /bin/sed that truncates output.
for _sed in $_sed_list /usr/xpg4/bin/sed; do
test ! -f ${_sed} && break
cat /dev/null > "$tmp/sed.in"
_count=0
echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
# Check for GNU sed and select it if it is found.
if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
lt_cv_path_SED=${_sed}
break
fi
while true; do
cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
mv "$tmp/sed.tmp" "$tmp/sed.in"
cp "$tmp/sed.in" "$tmp/sed.nl"
echo >>"$tmp/sed.nl"
${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
# 40000 chars as input seems more than enough
test $_count -gt 10 && break
_count=`expr $_count + 1`
if test $_count -gt $_max; then
_max=$_count
lt_cv_path_SED=$_sed
fi
done
done
rm -rf "$tmp"
])
if test "X$SED" != "X"; then
lt_cv_path_SED=$SED
else
SED=$lt_cv_path_SED
fi
AC_MSG_RESULT([$SED])
])
libmad/configure
View file @
53f5a137
...
...
@@ -251,6 +251,7 @@ if test "X${PATH_SEPARATOR+set}" != Xset; then
*
-DOS
)
lt_cv_sys_path_separator
=
';'
;;
*
)
lt_cv_sys_path_separator
=
':'
;;
esac
PATH_SEPARATOR
=
$lt_cv_sys_path_separator
fi
...
...
@@ -317,7 +318,7 @@ else
#
# So, first we look for a working echo in the user's PATH.
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
"
${
IFS
}${
PATH_SEPARATOR
}
"
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
$PATH_SEPARATOR
for
dir
in
$PATH
/usr/ucb
;
do
if
(
test
-f
$dir
/echo
||
test
-f
$dir
/echo
$ac_exeext
)
&&
test
"X
`
(
$dir
/echo
'\t'
)
2>/dev/null
`
"
=
'X\t'
&&
...
...
@@ -469,7 +470,7 @@ ac_includes_default="\
# include <unistd.h>
#endif"
ac_subst_vars
=
'SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA
CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALS
E CCAS CCASFLAGS LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBTOOL_DEPS FPM ASO ASO_OBJS LIBOBJS LTLIBOBJS'
ac_subst_vars
=
'SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA
PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMOD
E CCAS CCASFLAGS LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBTOOL_DEPS FPM ASO ASO_OBJS LIBOBJS LTLIBOBJS'
ac_subst_files
=
''
# Initialize some variables set by options.
...
...
@@ -1465,7 +1466,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
am__api_version
=
"1.
7
"
am__api_version
=
"1.
6
"
ac_aux_dir
=
for
ac_dir
in
$srcdir
$srcdir
/..
$srcdir
/../..
;
do
if
test
-f
$ac_dir
/install-sh
;
then
...
...
@@ -1717,16 +1718,6 @@ echo "$as_me: error: source directory already configured; run \"make distclean\"
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
# test whether we have cygpath
if
test
-z
"
$CYGPATH_W
"
;
then
if
(
cygpath
--version
)
>
/dev/null 2>/dev/null
;
then
CYGPATH_W
=
'cygpath -w'
else
CYGPATH_W
=
echo
fi
fi
# Define the identity of the package.
PACKAGE
=
libmad
VERSION
=
0.15.0b
...
...
@@ -1856,10 +1847,14 @@ INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
# Add the stamp file to the list of files AC keeps track of,
# along with our hook.
ac_config_headers
=
"
$ac_config_headers
config.h"
# Make sure we can run config.sub.
$ac_config_sub
sun4
>
/dev/null 2>&1
||
{
{
echo
"
$as_me
:
$LINENO
: error: cannot run
$ac_config_sub
"
>
&5
...
...
@@ -2684,8 +2679,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
for
ac_declaration
in
\
''
\
'#include <stdlib.h>'
\
''
\
'extern "C" void std::exit (int) throw (); using std::exit;'
\
'extern "C" void std::exit (int); using std::exit;'
\
'extern "C" void exit (int) throw ();'
\
...
...
@@ -2699,8 +2693,8 @@ _ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <stdlib.h>
$ac_declaration
#include <stdlib.h>
int
main ()
{
...
...
@@ -2815,7 +2809,7 @@ echo "include confinc" > confmf
# In particular we don't look at `^make:' because GNU make might
# be invoked under some other name (usually "gmake"), in which
# case it prints its new name instead of `make'.
if
test
"
`
$am_make
-s
-f
confmf 2> /dev/null |
grep
-v
'ing directory'
`
"
=
"done"
;
then
if
test
"
`
$am_make
-s
-f
confmf 2> /dev/null |
f
grep
-v
'ing directory'
`
"
=
"done"
;
then
am__include
=
include
am__quote
=
_am_result
=
GNU
...
...
@@ -2906,7 +2900,7 @@ else
if
depmode
=
$depmode
\
source
=
conftest.c
object
=
conftest.o
\
depfile
=
conftest.Po
tmpdepfile
=
conftest.TPo
\
$SHELL
./depcomp
$depcc
-c
-o
conftest.o conftest.c
>
/dev/null 2>&1
&&
$SHELL
./depcomp
$depcc
-c
conftest.c
-o
conftest.o
>
/dev/null 2>&1
&&
grep
conftest.h conftest.Po
>
/dev/null 2>&1
&&
${
MAKE
-make
}
-s
-f
confmf
>
/dev/null 2>&1
;
then
am_cv_CC_dependencies_compiler_type
=
$depmode
...
...
@@ -2926,18 +2920,6 @@ echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
CCDEPMODE
=
depmode
=
$am_cv_CC_dependencies_compiler_type
if
test
"x
$enable_dependency_tracking
"
!=
xno
\
&&
test
"
$am_cv_CC_dependencies_compiler_type
"
=
gcc3
;
then
am__fastdepCC_TRUE
=
am__fastdepCC_FALSE
=
'#'
else
am__fastdepCC_TRUE
=
'#'
am__fastdepCC_FALSE
=
fi
# By default we simply use the C compiler to build assembly code.
:
${
CCAS
=
'$(CC)'
}
...
...
@@ -3027,6 +3009,17 @@ esac
else
enable_fast_install
=
yes
fi
;
# Find the correct PATH separator. Usually this is `:', but
# DJGPP uses `;' like DOS.
if
test
"X
${
PATH_SEPARATOR
+set
}
"
!=
Xset
;
then
UNAME
=
${
UNAME
-
`
uname
2>/dev/null
`
}
case
X
$UNAME
in
*
-DOS
)
lt_cv_sys_path_separator
=
';'
;;
*
)
lt_cv_sys_path_separator
=
':'
;;
esac
PATH_SEPARATOR
=
$lt_cv_sys_path_separator
fi
# Check whether --with-gnu-ld or --without-gnu-ld was given.
if
test
"
${
with_gnu_ld
+set
}
"
=
set
;
then
...
...
@@ -3078,7 +3071,7 @@ if test "${lt_cv_path_LD+set}" = set; then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
if
test
-z
"
$LD
"
;
then
IFS
=
"
${
IFS
=
}
"
;
ac_save_ifs
=
"
$IFS
"
;
IFS
=
"
${
IFS
}${
PATH_SEPARATOR
-
:
}
"
IFS
=
"
${
IFS
=
}
"
;
ac_save_ifs
=
"
$IFS
"
;
IFS
=
$PATH_SEPARATOR
for
ac_dir
in
$PATH
;
do
test
-z
"
$ac_dir
"
&&
ac_dir
=
.
if
test
-f
"
$ac_dir
/
$ac_prog
"
||
test
-f
"
$ac_dir
/
$ac_prog$ac_exeext
"
;
then
...
...
@@ -3148,7 +3141,7 @@ else
# Let the user override the test.
lt_cv_path_NM
=
"
$NM
"
else
IFS
=
"
${
IFS
=
}
"
;
ac_save_ifs
=
"
$IFS
"
;
IFS
=
"
${
IFS
}${
PATH_SEPARATOR
-
:
}
"
IFS
=
"
${
IFS
=
}
"
;
ac_save_ifs
=
"
$IFS
"
;
IFS
=
$PATH_SEPARATOR
for
ac_dir
in
$PATH
/usr/ccs/bin /usr/ucb /bin
;
do
test
-z
"
$ac_dir
"
&&
ac_dir
=
.
tmp_nm
=
$ac_dir
/
${
ac_tool_prefix
}
nm
...
...
@@ -3178,6 +3171,91 @@ NM="$lt_cv_path_NM"
echo
"
$as_me
:
$LINENO
: result:
$NM
"
>
&5
echo
"
${
ECHO_T
}
$NM
"
>
&6
echo
"
$as_me
:
$LINENO
: checking for a sed that does not truncate output"
>
&5
echo
$ECHO_N
"checking for a sed that does not truncate output...
$ECHO_C
"
>
&6
if
test
"
${
lt_cv_path_SED
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
# Loop through the user's path and test for sed and gsed.
# Then use that list of sed's as ones to test for truncation.
as_executable_p
=
"test -f"
as_save_IFS
=
$IFS
;
IFS
=
$PATH_SEPARATOR
for
as_dir
in
$PATH
do
IFS
=
$as_save_IFS
test
-z
"
$as_dir
"
&&
as_dir
=
.
for
ac_prog
in
sed
gsed
;
do
for
ac_exec_ext
in
''
$ac_executable_extensions
;
do
if
$as_executable_p
"
$as_dir
/
$ac_prog$ac_exec_ext
"
;
then
_sed_list
=
"
$_sed_list
$as_dir
/
$ac_prog$ac_exec_ext
"
fi
done
done
done
# Create a temporary directory, and hook for its removal unless debugging.
$debug
||
{
trap
'exit_status=$?; rm -rf $tmp && exit $exit_status'
0
trap
'{ (exit 1); exit 1; }'
1 2 13 15
}
# Create a (secure) tmp directory for tmp files.
:
${
TMPDIR
=/tmp
}
{
tmp
=
`
(
umask
077
&&
mktemp
-d
-q
"
$TMPDIR
/sedXXXXXX"
)
2>/dev/null
`
&&
test
-n
"
$tmp
"
&&
test
-d
"
$tmp
"
}
||
{
tmp
=
$TMPDIR
/sed
$$
-
$RANDOM
(
umask
077
&&
mkdir
$tmp
)
}
||
{
echo
"
$me
: cannot create a temporary directory in
$TMPDIR
"
>
&2
{
(
exit
1
)
;
exit
1
;
}
}
_max
=
0
_count
=
0
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
# along with /bin/sed that truncates output.
for
_sed
in
$_sed_list
/usr/xpg4/bin/sed
;
do
test
!
-f
${
_sed
}
&&
break
cat
/dev/null
>
"
$tmp
/sed.in"
_count
=
0
echo
${
ECHO_N
-
$ac_n
}
"0123456789
${
ECHO_C
-
$ac_c
}
"
>
"
$tmp
/sed.in"
# Check for GNU sed and select it if it is found.
if
"
${
_sed
}
"
--version
2>&1 < /dev/null | egrep
'(GNU)'
>
/dev/null
;
then
lt_cv_path_SED
=
${
_sed
}
break
fi
while
true
;
do
cat
"
$tmp
/sed.in"
"
$tmp
/sed.in"
>
"
$tmp
/sed.tmp"
mv
"
$tmp
/sed.tmp"
"
$tmp
/sed.in"
cp
"
$tmp
/sed.in"
"
$tmp
/sed.nl"
echo
>>
"
$tmp
/sed.nl"
${
_sed
}
-e
's/a$//'
<
"
$tmp
/sed.nl"
>
"
$tmp
/sed.out"
||
break
cmp
-s
"
$tmp
/sed.out"
"
$tmp
/sed.nl"
||
break
# 40000 chars as input seems more than enough
test
$_count
-gt
10
&&
break
_count
=
`
expr
$_count
+ 1
`
if
test
$_count
-gt
$_max
;
then
_max
=
$_count
lt_cv_path_SED
=
$_sed
fi
done
done
rm
-rf
"
$tmp
"
fi
if
test
"X
$SED
"
!=
"X"
;
then
lt_cv_path_SED
=
$SED
else
SED
=
$lt_cv_path_SED
fi
echo
"
$as_me
:
$LINENO
: result:
$SED
"
>
&5
echo
"
${
ECHO_T
}
$SED
"
>
&6
echo
"
$as_me
:
$LINENO
: checking whether ln -s works"
>
&5
echo
$ECHO_N
"checking whether ln -s works...
$ECHO_C
"
>
&6
LN_S
=
$as_ln_s
...
...
@@ -3189,8 +3267,8 @@ else
echo
"
${
ECHO_T
}
no, using
$LN_S
"
>
&6
fi
echo
"
$as_me
:
$LINENO
: checking how to recognise depend
a
nt libraries"
>
&5
echo
$ECHO_N
"checking how to recognise depend
a
nt libraries...
$ECHO_C
"
>
&6
echo
"
$as_me
:
$LINENO
: checking how to recognise depend
e
nt libraries"
>
&5
echo
$ECHO_N
"checking how to recognise depend
e
nt libraries...
$ECHO_C
"
>
&6
if
test
"
${
lt_cv_deplibs_check_method
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
...
...
@@ -3203,7 +3281,7 @@ lt_cv_deplibs_check_method='unknown'
# `unknown' -- same as none, but documents that we really don't know.
# 'pass_all' -- all dependencies passed with no checks.
# 'test_compile' -- check by making test program.
#
['file_magic [regex]']
-- check by looking for files in library path
#
'file_magic [[regex]]'
-- check by looking for files in library path
# which responds to the $file_magic_cmd with a given egrep regex.
# If you have `file' or equivalent on your system and you're not sure
# whether `pass_all' will *always* work, you probably want this one.
...
...
@@ -3267,9 +3345,9 @@ hpux10.20*|hpux11*)
lt_cv_file_magic_test_file
=
/usr/lib/libc.sl
;;
irix5
*
|
irix6
*
)
irix5
*
|
irix6
*
|
nonstopux
*
)
case
$host_os
in
irix5
*
)
irix5
*
|
nonstopux
*
)
# this will be overridden with pass_all, but let us keep it just in case
lt_cv_deplibs_check_method
=
"file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
;;
...
...
@@ -3291,7 +3369,7 @@ irix5* | irix6*)
# This must be Linux ELF.
linux-gnu
*
)
case
$host_cpu
in
alpha
*
|
hppa
*
|
i
*
86
|
powerpc
*
|
sparc
*
|
ia64
*
)
alpha
*
|
hppa
*
|
i
*
86
|
mips
|
mipsel
|
powerpc
*
|
sparc
*
|
ia64
*
|
arm
*
|
m68k
)
lt_cv_deplibs_check_method
=
pass_all
;;
*
)
# glibc up to 2.1.1 does not perform some relocations on ARM
...
...
@@ -3362,6 +3440,9 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
lt_cv_deplibs_check_method
=
"file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
lt_cv_file_magic_test_file
=
/lib/libc.so
;;
siemens
)
lt_cv_deplibs_check_method
=
pass_all
;;
esac
;;
esac
...
...
@@ -3416,9 +3497,12 @@ hpux*) # Its linker distinguishes data from code symbols
lt_cv_global_symbol_to_cdecl
=
"sed -n -e 's/^T .*
\(
.*
\)
$/
extern char
\1
();/p' -e 's/^
$symcode
* .*
\(
.*
\)
$/
extern char
\1
;/p'"
lt_cv_global_symbol_to_c_name_address
=
"sed -n -e 's/^:
\(
[^ ]*
\)
$/
{
\\\"\1\\\"
, (lt_ptr) 0},/p' -e 's/^
$symcode
*
\(
[^ ]*
\)
\(
[^ ]*
\)
$/
{
\"\2\"
, (lt_ptr)
\&\2
},/p'"
;;
irix
*
)
irix
*
|
nonstopux
*
)
symcode
=
'[BCDEGRST]'
;;
osf
*
)
symcode
=
'[BCDEGQRST]'
;;
solaris
*
|
sysv5
*
)
symcode
=
'[BDT]'
;;
...
...
@@ -3527,7 +3611,7 @@ EOF
(
eval
$ac_link
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
test
-s
conftest
;
then
(
exit
$ac_status
)
;
}
&&
test
-s
conftest
$ac_exeext
;
then
pipe_works
=
yes
fi
LIBS
=
"
$save_LIBS
"
...
...
@@ -4193,6 +4277,7 @@ done
# Only perform the check for file, if the check method requires it
case
$deplibs_check_method
in
file_magic
*
)
...
...
@@ -4508,7 +4593,7 @@ test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
case
$host
in
*
-
*
-irix6
*
)
# Find out which ABI we are using.
echo
'#line 45
11
"configure"'
>
conftest.
$ac_ext
echo
'#line 45
96
"configure"'
>
conftest.
$ac_ext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_compile
\"
"
)
>
&5
(
eval
$ac_compile
)
2>&5
ac_status
=
$?
...
...
@@ -4750,7 +4835,7 @@ else
# like `-m68040'.
lt_cv_prog_cc_pic
=
'-m68020 -resident32 -malways-restore-a4'
;;
beos
*
|
irix5
*
|
irix6
*
|
osf3
*
|
osf4
*
|
osf5
*
)
beos
*
|
irix5
*
|
irix6
*
|
nonstopux
*
|
osf3
*
|
osf4
*
|
osf5
*
)
# PIC is the default for these OSes.
;;
darwin
*
|
rhapsody
*
)
...
...
@@ -4793,7 +4878,7 @@ else
lt_cv_prog_cc_pic
=
'+Z'
;;
irix5
*
|
irix6
*
)
irix5
*
|
irix6
*
|
nonstopux
*
)
lt_cv_prog_cc_wl
=
'-Wl,'
lt_cv_prog_cc_static
=
'-non_shared'
# PIC (with -KPIC) is the default.
...
...
@@ -4837,11 +4922,7 @@ else
sysv4
|
sysv4.2uw2
*
|
sysv4.3
*
|
sysv5
*
)
lt_cv_prog_cc_pic
=
'-KPIC'
lt_cv_prog_cc_static
=
'-Bstatic'
if
test
"x
$host_vendor
"
=
xsni
;
then
lt_cv_prog_cc_wl
=
'-LD'
else
lt_cv_prog_cc_wl
=
'-Wl,'
fi
lt_cv_prog_cc_wl
=
'-Wl,'
;;
uts4
*
)
...
...
@@ -5041,7 +5122,7 @@ chmod -w .
save_CFLAGS
=
"
$CFLAGS
"
CFLAGS
=
"
$CFLAGS
-o out/conftest2.
$ac_objext
"
compiler_c_o
=
no
if
{
(
eval echo
configure:5
044
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>out/conftest.err
;
}
&&
test
-s
out/conftest2.
$ac_objext
;
then
if
{
(
eval echo
configure:5
125
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>out/conftest.err
;
}
&&
test
-s
out/conftest2.
$ac_objext
;
then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
if
test
-s
out/conftest.err
;
then
...
...
@@ -5359,7 +5440,7 @@ EOF
# can override, but on older systems we have to supply one (in ltdll.c)
if
test
"x
$lt_cv_need_dllmain
"
=
"xyes"
;
then
ltdll_obj
=
'$output_objdir/$soname-ltdll.'
"
$ac_objext
"
ltdll_cmds
=
'test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d <
[$]
0 > $output_objdir/$soname-ltdll.c~
ltdll_cmds
=
'test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d <
$''
0 > $output_objdir/$soname-ltdll.c~
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
else
ltdll_obj
=
...
...
@@ -5377,7 +5458,7 @@ EOF
# If the export-symbols file already is a .def file (1st line
# is EXPORTS), use it as is.
# If DATA tags from a recent dlltool are present, honour them!
archive_expsym_cmds
=
'if test "x`
head -1
$export_symbols`" = xEXPORTS; then
archive_expsym_cmds
=
'if test "x`
sed 1q
$export_symbols`" = xEXPORTS; then
cp $export_symbols $output_objdir/$soname-def;
else
echo EXPORTS > $output_objdir/$soname-def;
...
...
@@ -5386,6 +5467,7 @@ EOF
set dummy \$symbol;
case \$# in
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
esac;
_lt_hint=`expr 1 + \$_lt_hint`;
...
...
@@ -5498,10 +5580,12 @@ else
# need to do runtime linking.
case
$host_os
in
aix4.[23]|aix4.[23].
*
|
aix5
*
)
for
ld_flag
in
$LDFLAGS
;
do
if
(
test
$ld_flag
=
"-brtl"
||
test
$ld_flag
=
"-Wl,-brtl"
)
;
then
case
$ld_flag
in
*
-brtl
*
)
aix_use_runtimelinking
=
yes
break
fi
;;
esac
done
esac
...
...
@@ -5573,7 +5657,7 @@ else
allow_undefined_flag
=
'${wl}-berok'
# This is a bit strange, but is similar to how AIX traditionally builds
# it's shared libraries.
archive_expsym_cmds
=
"
\$
CC
$shared_flag
"
' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '
"
\$
{wl}
$no_entry_flag
\$
{wl}
$exp_sym_flag
:
\$
export_symbols"
' ~$AR -crlo $o
bjdir/$libname$release.a $
objdir/$soname'
archive_expsym_cmds
=
"
\$
CC
$shared_flag
"
' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '
"
\$
{wl}
$no_entry_flag
\$
{wl}
$exp_sym_flag
:
\$
export_symbols"
' ~$AR -crlo $o
utput_objdir/$libname$release.a $output_
objdir/$soname'
fi
fi
;;
...
...
@@ -5615,8 +5699,9 @@ else
esac
# FIXME: Relying on posixy $() will cause problems for
# cross-compilation, but unfortunately the echo tests do not
# yet detect zsh echo's removal of \ escapes.
archive_cmds
=
'$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
# `"' quotes if we put them in here... so don't!
archive_cmds
=
'$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
# We need to add '_' to the symbols in $export_symbols first
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
hardcode_direct
=
yes
...
...
@@ -5668,13 +5753,14 @@ else
export_dynamic_flag_spec
=
'${wl}-E'
;;
irix5
*
|
irix6
*
)
irix5
*
|
irix6
*
|
nonstopux
*
)
if
test
"
$GCC
"
=
yes
;
then
archive_cmds
=
'$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
hardcode_libdir_flag_spec
=
'${wl}-rpath ${wl}$libdir'
else
archive_cmds
=
'$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
hardcode_libdir_flag_spec
=
'-rpath $libdir'
fi
hardcode_libdir_flag_spec
=
'${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator
=
:
link_all_deplibs
=
yes
;;
...
...
@@ -5702,7 +5788,7 @@ else
hardcode_direct
=
yes
hardcode_shlibpath_var
=
no
if
test
-z
"
`
echo
__ELF__ |
$CC
-E
- |
grep
__ELF__
`
"
||
test
"
$host_os
-
$host_cpu
"
=
"openbsd2.8-powerpc"
;
then
archive_cmds
=
'$CC -shared $pic_flag -o $lib $libobjs $deplibs $
link
er_flags'
archive_cmds
=
'$CC -shared $pic_flag -o $lib $libobjs $deplibs $
compil
er_flags'
hardcode_libdir_flag_spec
=
'${wl}-rpath,$libdir'
export_dynamic_flag_spec
=
'${wl}-E'
else
...
...
@@ -5712,7 +5798,7 @@ else
hardcode_libdir_flag_spec
=
'-R$libdir'
;;
*
)
archive_cmds
=
'$CC -shared $pic_flag -o $lib $libobjs $deplibs $
link
er_flags'
archive_cmds
=
'$CC -shared $pic_flag -o $lib $libobjs $deplibs $
compil
er_flags'
hardcode_libdir_flag_spec
=
'${wl}-rpath,$libdir'
;;
esac
...
...
@@ -5765,7 +5851,35 @@ else
;;
solaris
*
)
# gcc --version < 3.0 without binutils cannot create self contained
# shared libraries reliably, requiring libgcc.a to resolve some of
# the object symbols generated in some cases. Libraries that use
# assert need libgcc.a to resolve __eprintf, for example. Linking
# a copy of libgcc.a into every shared library to guarantee resolving
# such symbols causes other problems: According to Tim Van Holder
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
# (to the application) exception stack for one thing.
no_undefined_flag
=
' -z defs'
if
test
"
$GCC
"
=
yes
;
then
case
`
$CC
--version
2>/dev/null
`
in
[
12].
*
)
cat
<<
EOF
1>&2
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
*** create self contained shared libraries on Solaris systems, without
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
*** -no-undefined support, which will at least allow you to build shared
*** libraries. However, you may find that when you link such libraries
*** into an application without using GCC, you have to manually add
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
*** upgrade to a newer version of GCC. Another option is to rebuild your
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
EOF
no_undefined_flag
=
;;
esac
fi
# $CC -shared without GNU ld will not create a library from C++
# object files and a static libstdc++, better avoid it by now
archive_cmds
=
'$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
...
...
@@ -5796,13 +5910,23 @@ else
;;
sysv4
)
if
test
"x
$host_vendor
"
=
xsno
;
then
archive_cmds
=
'$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct
=
yes
# is this really true???
else
archive_cmds
=
'$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct
=
no
#Motorola manual says yes, but my tests say they lie
fi
case
$host_vendor
in
sni
)
archive_cmds
=
'$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct
=
yes
# is this really true???
;;
siemens
)
## LD is ld it makes a PLAMLIB
## CC just makes a GrossModule.
archive_cmds
=
'$LD -G -o $lib $libobjs $deplibs $linker_flags'
reload_cmds
=
'$CC -r -o $output$reload_objs'
hardcode_direct
=
no
;;
motorola
)
archive_cmds
=
'$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
hardcode_direct
=
no
#Motorola manual says yes, but my tests say they lie
;;
esac
runpath_var
=
'LD_RUN_PATH'
hardcode_shlibpath_var
=
no
;;
...
...
@@ -5950,6 +6074,9 @@ aix3*)
aix4
*
|
aix5
*
)
version_type
=
linux
need_lib_prefix
=
no
need_version
=
no
hardcode_into_libs
=
yes
if
test
"
$host_cpu
"
=
ia64
;
then
# AIX 5 supports IA64
library_names_spec
=
'${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
...
...
@@ -5961,15 +6088,15 @@ aix4* | aix5*)
# depend on `.', always an invalid library. This was fixed in
# development snapshots of GCC prior to 3.0.
case
$host_os
in
aix4
|
aix4.[01]
|
aix4.[01].
*
)
if
{
echo
'#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
echo
' yes '
echo
'#endif'
;
}
|
${
CC
}
-E
- |
grep yes
>
/dev/null
;
then
:
else
can_build_shared
=
no
fi
;;
aix4
|
aix4.[01]
|
aix4.[01].
*
)
if
{
echo
'#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
echo
' yes '
echo
'#endif'
;
}
|
${
CC
}
-E
- |
grep yes
>
/dev/null
;
then
:
else
can_build_shared
=
no
fi
;;
esac
# AIX (on Power*) has no versioning support, so currently we can
# not hardcode correct soname into executable. Probably we can
...
...
@@ -5988,6 +6115,7 @@ aix4* | aix5*)
fi
shlibpath_var
=
LIBPATH
fi
hardcode_into_libs
=
yes
;;
amigaos
*
)
...
...
@@ -6035,7 +6163,7 @@ cygwin* | mingw* | pw32*)
;;
yes
,mingw
*
)
library_names_spec
=
'${libname}`echo ${release} | sed -e '
s/[.]/-/g
'`${versuffix}.dll'
sys_lib_search_path_spec
=
`
$CC
-print-search-dirs
|
grep
"^libraries:"
|
sed
-e
"s/^libraries://"
-e
"s/;/ /g"
`
sys_lib_search_path_spec
=
`
$CC
-print-search-dirs
|
grep
"^libraries:"
|
sed
-e
"s/^libraries://"
-e
"s/;/ /g"
-e
"s,=/,/,g"
`
;;
yes
,pw32
*
)
library_names_spec
=
'`echo ${libname} | sed -e '
s/^lib/pw/
'``echo ${release} | sed -e '
s/./-/g
'`${versuffix}.dll'
...
...
@@ -6067,6 +6195,18 @@ freebsd1*)
dynamic_linker
=
no
;;
freebsd
*
-gnu
*
)
version_type
=
linux
need_lib_prefix
=
no
need_version
=
no
library_names_spec
=
'${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
soname_spec
=
'${libname}${release}.so$major'
shlibpath_var
=
LD_LIBRARY_PATH
shlibpath_overrides_runpath
=
no
hardcode_into_libs
=
yes
dynamic_linker
=
'GNU/FreeBSD ld.so'
;;
freebsd
*
)
objformat
=
`
test
-x
/usr/bin/objformat
&&
/usr/bin/objformat
||
echo
aout
`
version_type
=
freebsd-
$objformat
...
...
@@ -6118,14 +6258,17 @@ hpux9* | hpux10* | hpux11*)
postinstall_cmds
=
'chmod 555 $lib'
;;
irix5
*
|
irix6
*
)
version_type
=
irix
irix5
*
|
irix6
*
|
nonstopux
*
)
case
$host_os
in
nonstopux
*
)
version_type
=
nonstopux
;;
*
)
version_type
=
irix
;;
esac
need_lib_prefix
=
no
need_version
=
no
soname_spec
=
'${libname}${release}.so$major'
library_names_spec
=
'${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
case
$host_os
in
irix5
*
)
irix5
*
|
nonstopux
*
)
libsuff
=
shlibsuff
=
;;
*
)
...
...
@@ -6229,11 +6372,13 @@ os2*)
osf3
*
|
osf4
*
|
osf5
*
)
version_type
=
osf
need_version
=
no
soname_spec
=
'${libname}${release}.so'
library_names_spec
=
'${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
need_lib_prefix
=
no
soname_spec
=
'${libname}${release}.so$major'
library_names_spec
=
'${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
shlibpath_var
=
LD_LIBRARY_PATH
sys_lib_search_path_spec
=
"/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
sys_lib_dlsearch_path_spec
=
"
$sys_lib_search_path_spec
"
hardcode_into_libs
=
yes
;;
sco3.2v5
*
)
...
...
@@ -6276,6 +6421,12 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
case
$host_vendor
in
sni
)
shlibpath_overrides_runpath
=
no
need_lib_prefix
=
no
export_dynamic_flag_spec
=
'${wl}-Blargedynsym'
runpath_var
=
LD_RUN_PATH
;;
siemens
)
need_lib_prefix
=
no
;;
motorola
)
need_lib_prefix
=
no
...
...
@@ -6816,7 +6967,7 @@ else
lt_dlunknown
=
0
;
lt_dlno_uscore
=
1
;
lt_dlneed_uscore
=
2
lt_status
=
$lt_dlunknown
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
819
"configure"
#line 6
970
"configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
...
...
@@ -6914,7 +7065,7 @@ else
lt_dlunknown
=
0
;
lt_dlno_uscore
=
1
;
lt_dlneed_uscore
=
2
lt_status
=
$lt_dlunknown
cat
>
conftest.
$ac_ext
<<
EOF
#line
6917
"configure"
#line
7068
"configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
...
...
@@ -7097,7 +7248,7 @@ if test -f "$ltmain"; then
# Now quote all the things that may contain metacharacters while being
# careful not to overquote the AC_SUBSTed values. We take copies of the
# variables and quote the copies for generation of the libtool script.
for
var
in
echo
old_CC old_CFLAGS
\
for
var
in
echo
old_CC old_CFLAGS
SED
\
AR AR_FLAGS CC LD LN_S NM SHELL
\
reload_flag reload_cmds wl
\
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec
\
...
...
@@ -7159,8 +7310,11 @@ if test -f "$ltmain"; then
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# A sed that does not truncate output.
SED=
$lt_SED
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Xsed="
sed
-e s/^X//"
Xsed="
${
SED
}
-e s/^X//"
# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
...
...
@@ -9951,13 +10105,6 @@ echo "$as_me: error: conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally."
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
if
test
-z
"
${
am__fastdepCC_TRUE
}
"
&&
test
-z
"
${
am__fastdepCC_FALSE
}
"
;
then
{
{
echo
"
$as_me
:
$LINENO
: error: conditional
\"
am__fastdepCC
\"
was never defined.
Usually this means the macro was only invoked conditionally."
>
&5
echo
"
$as_me
: error: conditional
\"
am__fastdepCC
\"
was never defined.
Usually this means the macro was only invoked conditionally."
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
:
${
CONFIG_STATUS
=./config.status
}
ac_clean_files_save
=
$ac_clean_files
...
...
@@ -10493,7 +10640,6 @@ s,@LIBS@,$LIBS,;t t
s,@INSTALL_PROGRAM@,
$INSTALL_PROGRAM
,;t t
s,@INSTALL_SCRIPT@,
$INSTALL_SCRIPT
,;t t
s,@INSTALL_DATA@,
$INSTALL_DATA
,;t t
s,@CYGPATH_W@,
$CYGPATH_W
,;t t
s,@PACKAGE@,
$PACKAGE
,;t t
s,@VERSION@,
$VERSION
,;t t
s,@ACLOCAL@,
$ACLOCAL
,;t t
...
...
@@ -10530,8 +10676,6 @@ s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
s,@AMDEP_FALSE@,
$AMDEP_FALSE
,;t t
s,@AMDEPBACKSLASH@,
$AMDEPBACKSLASH
,;t t
s,@CCDEPMODE@,
$CCDEPMODE
,;t t
s,@am__fastdepCC_TRUE@,
$am__fastdepCC_TRUE
,;t t
s,@am__fastdepCC_FALSE@,
$am__fastdepCC_FALSE
,;t t
s,@CCAS@,
$CCAS
,;t t
s,@CCASFLAGS@,
$CCASFLAGS
,;t t
s,@LN_S@,
$LN_S
,;t t
...
...
@@ -10972,19 +11116,12 @@ echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
cat
$tmp
/config.h
rm -f
$tmp
/config.h
fi
_am_stamp_count=`expr
${
_am_stamp_count
-0
}
+ 1`
echo "timestamp for
$ac_file
" >`(dirname
$ac_file
) 2>/dev/null ||
$as_expr
X
$ac_file
: 'X\(.*[^/]\)//*[^/][^/]*/*
$'
\| \
X
$ac_file
: 'X\(//\)[^/]' \| \
X
$ac_file
: 'X\(//\)
$'
\| \
X
$ac_file
: 'X\(/\)' \| \
. : '\(.\)' 2>/dev/null ||
echo X
$ac_file
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*
$/
{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)
$/
{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`/stamp-h
$_am_stamp_count
# Run the commands associated with the file.
case
$ac_file
in
config.h ) # update the timestamp
echo 'timestamp for config.h' >"./stamp-h1"
;;
esac
done
_ACEOF
cat
>>
$CONFIG_STATUS
<<
\
_ACEOF
...
...
list.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
list.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
listen.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2002 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -18,6 +18,7 @@
#include "listen.h"
#include "interface.h"
#include "conf.h"
#include <unistd.h>
#include <stdio.h>
...
...
@@ -44,14 +45,27 @@ int establish(unsigned short port) {
int
allowReuse
=
ALLOW_REUSE
;
int
sock
;
struct
sockaddr_in
sockAddr
;
struct
hostent
*
he
;
memset
(
&
sockAddr
,
0
,
sizeof
(
struct
sockaddr_in
));
sockAddr
.
sin_family
=
AF_INET
;
sockAddr
.
sin_port
=
htons
(
port
);
sockAddr
.
sin_addr
.
s_addr
=
INADDR_ANY
;
if
(
strcmp
((
getConf
())[
CONF_BIND_TO_ADDRESS
],
"any"
)
==
0
)
{
sockAddr
.
sin_family
=
AF_INET
;
sockAddr
.
sin_addr
.
s_addr
=
INADDR_ANY
;
}
else
{
if
(
!
(
he
=
gethostbyname
((
getConf
())[
CONF_BIND_TO_ADDRESS
])))
{
fprintf
(
stderr
,
"can't lookup host
\"
%s
\"\n
"
,
(
getConf
())[
CONF_BIND_TO_ADDRESS
]);
exit
(
-
1
);
}
sockAddr
.
sin_family
=
he
->
h_addrtype
;
bcopy
((
char
*
)
he
->
h_addr
,(
char
*
)
&
sockAddr
.
sin_addr
.
s_addr
,
he
->
h_length
);
}
if
((
sock
=
socket
(
AF_INET
,
SOCK_STREAM
,
0
))
<
0
)
{
if
((
sock
=
socket
(
sockAddr
.
sin_family
,
SOCK_STREAM
,
0
))
<
0
)
{
fprintf
(
stderr
,
"socket < 0
\n
"
);
return
-
1
;
}
...
...
listen.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2002 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
ls.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
ls.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
ltmain.sh
View file @
53f5a137
...
...
@@ -49,14 +49,14 @@ EOF
fi
# The name of this program.
progname
=
`
$echo
"
$0
"
|
sed
's%^.*/%%'
`
progname
=
`
$echo
"
$0
"
|
${
SED
}
's%^.*/%%'
`
modename
=
"
$progname
"
# Constants.
PROGRAM
=
ltmain.sh
PACKAGE
=
libtool
VERSION
=
1.4.
1
TIMESTAMP
=
" (1.922.2.
34 2001/09/03 01:22:13
)"
VERSION
=
1.4.
3
TIMESTAMP
=
" (1.922.2.
111 2002/10/23 02:54:36
)"
default_mode
=
help
=
"Try
\`
$progname
--help' for more information."
...
...
@@ -67,10 +67,19 @@ rm="rm -f"
# Sed substitution that helps us do robust quoting. It backslashifies
# metacharacters that are still active within double-quoted strings.
Xsed
=
'sed
-e 1s/^X//'
Xsed
=
"
${
SED
}
"
'
-e 1s/^X//'
sed_quote_subst
=
's/\([\\`\\"$\\\\]\)/\\\1/g'
SP2NL
=
'tr \040 \012'
NL2SP
=
'tr \015\012 \040\040'
# test EBCDIC or ASCII
case
`
echo
A|od
-x
`
in
*
[
Cc]1
*
)
# EBCDIC based system
SP2NL
=
"tr '
\1
00' '
\n
'"
NL2SP
=
"tr '
\r\n
' '
\1
00
\1
00'"
;;
*
)
# Assume ASCII based system
SP2NL
=
"tr '
\0
40' '
\0
12'"
NL2SP
=
"tr '
\0
15
\0
12' '
\0
40
\0
40'"
;;
esac
# NLS nuisances.
# Only set LANG and LC_ALL to C if already set.
...
...
@@ -84,6 +93,9 @@ if test "${LANG+set}" = set; then
save_LANG
=
"
$LANG
"
;
LANG
=
C
;
export
LANG
fi
# Make sure IFS has a sensible default
:
${
IFS
=
" "
}
if
test
"
$build_libtool_libs
"
!=
yes
&&
test
"
$build_old_libs
"
!=
yes
;
then
echo
"
$modename
: not configured to build any kind of library"
1>&2
echo
"Fatal configuration error. See the
$PACKAGE
docs for more information."
1>&2
...
...
@@ -141,7 +153,7 @@ do
;;
--config
)
sed
-e
'1,/^# ### BEGIN LIBTOOL CONFIG/d'
-e
'/^# ### END LIBTOOL CONFIG/,$d'
$0
${
SED
}
-e
'1,/^# ### BEGIN LIBTOOL CONFIG/d'
-e
'/^# ### END LIBTOOL CONFIG/,$d'
$0
exit
0
;;
...
...
@@ -214,7 +226,7 @@ if test -z "$show_help"; then
# Infer the operation mode.
if
test
-z
"
$mode
"
;
then
case
$nonopt
in
*
cc
|
*
++
|
gcc
*
|
*
-gcc
*
)
*
cc
|
*
++
|
gcc
*
|
*
-gcc
*
|
g++
*
|
xlc
*
)
mode
=
link
for
arg
do
...
...
@@ -336,7 +348,7 @@ if test -z "$show_help"; then
-Wc
,
*
)
args
=
`
$echo
"X
$arg
"
|
$Xsed
-e
"s/^-Wc,//"
`
lastarg
=
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
','
save_ifs
=
"
$IFS
"
;
IFS
=
','
for
arg
in
$args
;
do
IFS
=
"
$save_ifs
"
...
...
@@ -887,7 +899,7 @@ compiler."
prev
=
continue
;;
inst_prefix
)
inst_prefix
)
inst_prefix_dir
=
"
$arg
"
prev
=
continue
...
...
@@ -994,15 +1006,15 @@ compiler."
;;
-inst-prefix-dir
)
prev
=
inst_prefix
continue
;;
prev
=
inst_prefix
continue
;;
# The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
# so, if we see these flags be careful not to treat them like -L
-L
[
A-Z][A-Z]
*
:
*
)
case
$with_gcc
/
$host
in
no/
*
-
*
-irix
*
)
no/
*
-
*
-irix
*
|
no/
*
-
*
-nonstopux
*
)
compile_command
=
"
$compile_command
$arg
"
finalize_command
=
"
$finalize_command
$arg
"
;;
...
...
@@ -1053,15 +1065,14 @@ compiler."
# These systems don't actually have a C library (as such)
test
"X
$arg
"
=
"X-lc"
&&
continue
;;
*
-
*
-openbsd
*
)
*
-
*
-openbsd
*
|
*
-
*
-freebsd
*
)
# Do not include libc due to us having libc/libc_r.
test
"X
$arg
"
=
"X-lc"
&&
continue
;;
esac
fi
if
test
"X
$arg
"
=
"X-lc_r"
;
then
elif
test
"X
$arg
"
=
"X-lc_r"
;
then
case
$host
in
*
-
*
-open
bsd
*
)
*
-
*
-openbsd
*
|
*
-
*
-free
bsd
*
)
# Do not include libc_r directly, use -pthread flag.
continue
;;
...
...
@@ -1156,7 +1167,7 @@ compiler."
-Wc
,
*
)
args
=
`
$echo
"X
$arg
"
|
$Xsed
-e
"
$sed_quote_subst
"
-e
's/^-Wc,//'
`
arg
=
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
','
save_ifs
=
"
$IFS
"
;
IFS
=
','
for
flag
in
$args
;
do
IFS
=
"
$save_ifs
"
case
$flag
in
...
...
@@ -1174,7 +1185,7 @@ compiler."
-Wl
,
*
)
args
=
`
$echo
"X
$arg
"
|
$Xsed
-e
"
$sed_quote_subst
"
-e
's/^-Wl,//'
`
arg
=
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
','
save_ifs
=
"
$IFS
"
;
IFS
=
','
for
flag
in
$args
;
do
IFS
=
"
$save_ifs
"
case
$flag
in
...
...
@@ -1200,6 +1211,11 @@ compiler."
continue
;;
-Kthread
|
-mthreads
|
-mt
|
-pthread
|
-pthreads
|
-threads
|
-qthreaded
|
-kthread
)
compiler_flags
=
"
$compiler_flags
$arg
"
continue
;;
# Some other compiler flag.
-
*
|
+
*
)
# Unknown arguments in both finalize_command and compile_command need
...
...
@@ -1348,25 +1364,6 @@ compiler."
fi
libs
=
"
$libs
$deplib
"
done
if
test
"
$linkmode
"
=
lib
;
then
libs
=
"
$predeps
$libs
$compiler_lib_search_path
$postdeps
"
# Compute libraries that are listed more than once in $predeps
# $postdeps and mark them as special (i.e., whose duplicates are
# not to be eliminated).
pre_post_deps
=
if
test
"X
$duplicate_deps
"
=
"Xyes"
;
then
for
pre_post_dep
in
$predeps
$postdeps
;
do
case
"
$pre_post_deps
"
in
*
"
$pre_post_dep
"
*
)
specialdeplibs
=
"
$specialdeplibs
$pre_post_deps
"
;;
esac
pre_post_deps
=
"
$pre_post_deps
$pre_post_dep
"
done
fi
pre_post_deps
=
fi
deplibs
=
newdependency_libs
=
newlib_search_path
=
...
...
@@ -1398,7 +1395,7 @@ compiler."
;;
esac
for
pass
in
$passes
;
do
if
test
"
$linkmode
"
=
prog
;
then
if
test
$linkmode
=
prog
;
then
# Determine which files to process
case
$pass
in
dlopen
)
...
...
@@ -1415,11 +1412,11 @@ compiler."
found
=
no
case
$deplib
in
-l
*
)
if
test
"
$linkmode
"
=
oldlib
&&
test
"
$linkmode
"
=
obj
;
then
if
test
$linkmode
=
oldlib
&&
test
$linkmode
=
obj
;
then
$echo
"
$modename
: warning:
\`
-l' is ignored for archives/objects:
$deplib
"
1>&2
continue
fi
if
test
"
$pass
"
=
conv
;
then
if
test
$pass
=
conv
;
then
deplibs
=
"
$deplib
$deplibs
"
continue
fi
...
...
@@ -1439,7 +1436,7 @@ compiler."
finalize_deplibs
=
"
$deplib
$finalize_deplibs
"
else
deplibs
=
"
$deplib
$deplibs
"
test
"
$linkmode
"
=
lib
&&
newdependency_libs
=
"
$deplib
$newdependency_libs
"
test
$linkmode
=
lib
&&
newdependency_libs
=
"
$deplib
$newdependency_libs
"
fi
continue
fi
...
...
@@ -1448,16 +1445,16 @@ compiler."
case
$linkmode
in
lib
)
deplibs
=
"
$deplib
$deplibs
"
test
"
$pass
"
=
conv
&&
continue
test
$pass
=
conv
&&
continue
newdependency_libs
=
"
$deplib
$newdependency_libs
"
newlib_search_path
=
"
$newlib_search_path
"
`
$echo
"X
$deplib
"
|
$Xsed
-e
's/^-L//'
`
;;
prog
)
if
test
"
$pass
"
=
conv
;
then
if
test
$pass
=
conv
;
then
deplibs
=
"
$deplib
$deplibs
"
continue
fi
if
test
"
$pass
"
=
scan
;
then
if
test
$pass
=
scan
;
then
deplibs
=
"
$deplib
$deplibs
"
newlib_search_path
=
"
$newlib_search_path
"
`
$echo
"X
$deplib
"
|
$Xsed
-e
's/^-L//'
`
else
...
...
@@ -1472,7 +1469,7 @@ compiler."
continue
;;
# -L
-R
*
)
if
test
"
$pass
"
=
link
;
then
if
test
$pass
=
link
;
then
dir
=
`
$echo
"X
$deplib
"
|
$Xsed
-e
's/^-R//'
`
# Make sure the xrpath contains only unique directories.
case
"
$xrpath
"
in
...
...
@@ -1485,7 +1482,7 @@ compiler."
;;
*
.la
)
lib
=
"
$deplib
"
;;
*
.
$libext
)
if
test
"
$pass
"
=
conv
;
then
if
test
$pass
=
conv
;
then
deplibs
=
"
$deplib
$deplibs
"
continue
fi
...
...
@@ -1493,10 +1490,12 @@ compiler."
lib
)
if
test
"
$deplibs_check_method
"
!=
pass_all
;
then
echo
echo
"*** Warning: T
his library needs some functionality provided by
$deplib
."
echo
"*** Warning: T
rying to link with static lib archive
$deplib
."
echo
"*** I have the capability to make that library automatically link in when"
echo
"*** you link to this library. But I can only do this if you have a"
echo
"*** shared version of the library, which you do not appear to have."
echo
"*** shared version of the library, which you do not appear to have"
echo
"*** because the file extensions .
$libext
of this argument makes me believe"
echo
"*** that it is just a static archive that I should not used here."
else
echo
echo
"*** Warning: Linking the shared library
$output
against the"
...
...
@@ -1506,7 +1505,7 @@ compiler."
continue
;;
prog
)
if
test
"
$pass
"
!=
link
;
then
if
test
$pass
!=
link
;
then
deplibs
=
"
$deplib
$deplibs
"
else
compile_deplibs
=
"
$deplib
$compile_deplibs
"
...
...
@@ -1517,7 +1516,7 @@ compiler."
esac
# linkmode
;;
# *.$libext
*
.lo
|
*
.
$objext
)
if
test
"
$pass
"
=
dlpreopen
||
test
"
$dlopen_support
"
!=
yes
||
test
"
$build_libtool_libs
"
=
no
;
then
if
test
$pass
=
dlpreopen
||
test
"
$dlopen_support
"
!=
yes
||
test
"
$build_libtool_libs
"
=
no
;
then
# If there is no dlopen support or we're linking statically,
# we need to preload.
newdlprefiles
=
"
$newdlprefiles
$deplib
"
...
...
@@ -1540,7 +1539,7 @@ compiler."
fi
# Check to see that this really is a libtool archive.
if
(
sed
-e
'2q'
$lib
| egrep
"^# Generated by .*
$PACKAGE
"
)
>
/dev/null 2>&1
;
then
:
if
(
${
SED
}
-e
'2q'
$lib
| egrep
"^# Generated by .*
$PACKAGE
"
)
>
/dev/null 2>&1
;
then
:
else
$echo
"
$modename
:
\`
$lib
' is not a valid libtool archive"
1>&2
exit
1
...
...
@@ -1567,13 +1566,13 @@ compiler."
if
test
"
$linkmode
,
$pass
"
=
"lib,link"
||
test
"
$linkmode
,
$pass
"
=
"prog,scan"
||
{
test
"
$linkmode
"
=
oldlib
&&
test
"
$linkmode
"
=
obj
;
}
;
then
{
test
$linkmode
=
oldlib
&&
test
$linkmode
=
obj
;
}
;
then
# Add dl[pre]opened files of deplib
test
-n
"
$dlopen
"
&&
dlfiles
=
"
$dlfiles
$dlopen
"
test
-n
"
$dlpreopen
"
&&
dlprefiles
=
"
$dlprefiles
$dlpreopen
"
fi
if
test
"
$pass
"
=
conv
;
then
if
test
$pass
=
conv
;
then
# Only check for convenience libraries
deplibs
=
"
$lib
$deplibs
"
if
test
-z
"
$libdir
"
;
then
...
...
@@ -1594,7 +1593,7 @@ compiler."
fi
tmp_libs
=
"
$tmp_libs
$deplib
"
done
elif
test
"
$linkmode
"
!=
prog
&&
test
"
$linkmode
"
!=
lib
;
then
elif
test
$linkmode
!=
prog
&&
test
$linkmode
!=
lib
;
then
$echo
"
$modename
:
\`
$lib
' is not a convenience library"
1>&2
exit
1
fi
...
...
@@ -1612,7 +1611,7 @@ compiler."
fi
# This library was specified with -dlopen.
if
test
"
$pass
"
=
dlopen
;
then
if
test
$pass
=
dlopen
;
then
if
test
-z
"
$libdir
"
;
then
$echo
"
$modename
: cannot -dlopen a convenience library:
\`
$lib
'"
1>&2
exit
1
...
...
@@ -1661,7 +1660,7 @@ compiler."
name
=
`
$echo
"X
$laname
"
|
$Xsed
-e
's/\.la$//'
-e
's/^lib//'
`
# This library was specified with -dlpreopen.
if
test
"
$pass
"
=
dlpreopen
;
then
if
test
$pass
=
dlpreopen
;
then
if
test
-z
"
$libdir
"
;
then
$echo
"
$modename
: cannot -dlpreopen a convenience library:
\`
$lib
'"
1>&2
exit
1
...
...
@@ -1680,7 +1679,7 @@ compiler."
if
test
-z
"
$libdir
"
;
then
# Link the convenience library
if
test
"
$linkmode
"
=
lib
;
then
if
test
$linkmode
=
lib
;
then
deplibs
=
"
$dir
/
$old_library
$deplibs
"
elif
test
"
$linkmode
,
$pass
"
=
"prog,link"
;
then
compile_deplibs
=
"
$dir
/
$old_library
$compile_deplibs
"
...
...
@@ -1691,7 +1690,7 @@ compiler."
continue
fi
if
test
"
$linkmode
"
=
prog
&&
test
"
$pass
"
!=
link
;
then
if
test
$linkmode
=
prog
&&
test
$pass
!=
link
;
then
newlib_search_path
=
"
$newlib_search_path
$ladir
"
deplibs
=
"
$lib
$deplibs
"
...
...
@@ -1730,7 +1729,7 @@ compiler."
# Link against this shared library
if
test
"
$linkmode
,
$pass
"
=
"prog,link"
||
{
test
"
$linkmode
"
=
lib
&&
test
"
$hardcode_into_libs
"
=
yes
;
}
;
then
{
test
$linkmode
=
lib
&&
test
$hardcode_into_libs
=
yes
;
}
;
then
# Hardcode the library path.
# Skip directories that are in the system default run-time
# search path.
...
...
@@ -1752,7 +1751,7 @@ compiler."
esac
;;
esac
if
test
"
$linkmode
"
=
prog
;
then
if
test
$linkmode
=
prog
;
then
# We need to hardcode the library path
if
test
-n
"
$shlibpath_var
"
;
then
# Make sure the rpath contains only unique directories.
...
...
@@ -1802,14 +1801,14 @@ compiler."
# Make a new name for the extract_expsyms_cmds to use
soroot
=
"
$soname
"
soname
=
`
echo
$soroot
|
sed
-e
's/^.*\///'
`
newlib
=
"libimp-
`
echo
$soname
|
sed
's/^lib//;s/\.dll$//'
`
.a"
soname
=
`
echo
$soroot
|
${
SED
}
-e
's/^.*\///'
`
newlib
=
"libimp-
`
echo
$soname
|
${
SED
}
's/^lib//;s/\.dll$//'
`
.a"
# If the library has no export list, then create one now
if
test
-f
"
$output_objdir
/
$soname
-def"
;
then
:
else
$show
"extracting exported symbol list from
\`
$soname
'"
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
eval
cmds
=
\"
$extract_expsyms_cmds
\"
for
cmd
in
$cmds
;
do
IFS
=
"
$save_ifs
"
...
...
@@ -1822,7 +1821,7 @@ compiler."
# Create $newlib
if
test
-f
"
$output_objdir
/
$newlib
"
;
then
:
;
else
$show
"generating import library for
\`
$soname
'"
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
eval
cmds
=
\"
$old_archive_from_expsyms_cmds
\"
for
cmd
in
$cmds
;
do
IFS
=
"
$save_ifs
"
...
...
@@ -1836,7 +1835,7 @@ compiler."
linklib
=
$newlib
fi
# test -n $old_archive_from_expsyms_cmds
if
test
"
$linkmode
"
=
prog
||
test
"
$mode
"
!=
relink
;
then
if
test
$linkmode
=
prog
||
test
"
$mode
"
!=
relink
;
then
add_shlibpath
=
add_dir
=
add
=
...
...
@@ -1863,6 +1862,14 @@ compiler."
add
=
"
$dir
/
$linklib
"
elif
test
"
$hardcode_minus_L
"
=
yes
;
then
add_dir
=
"-L
$dir
"
# Try looking first in the location we're being installed to.
if
test
-n
"
$inst_prefix_dir
"
;
then
case
"
$libdir
"
in
[
\/
]
*
)
add_dir
=
"-L
$inst_prefix_dir$libdir
$add_dir
"
;;
esac
fi
add
=
"-l
$name
"
elif
test
"
$hardcode_shlibpath_var
"
=
yes
;
then
add_shlibpath
=
"
$dir
"
...
...
@@ -1885,7 +1892,7 @@ compiler."
*
)
compile_shlibpath
=
"
$compile_shlibpath$add_shlibpath
:"
;;
esac
fi
if
test
"
$linkmode
"
=
prog
;
then
if
test
$linkmode
=
prog
;
then
test
-n
"
$add_dir
"
&&
compile_deplibs
=
"
$add_dir
$compile_deplibs
"
test
-n
"
$add
"
&&
compile_deplibs
=
"
$add
$compile_deplibs
"
else
...
...
@@ -1902,7 +1909,7 @@ compiler."
fi
fi
if
test
"
$linkmode
"
=
prog
||
test
"
$mode
"
=
relink
;
then
if
test
$linkmode
=
prog
||
test
"
$mode
"
=
relink
;
then
add_shlibpath
=
add_dir
=
add
=
...
...
@@ -1910,16 +1917,7 @@ compiler."
if
test
"
$hardcode_direct
"
=
yes
;
then
add
=
"
$libdir
/
$linklib
"
elif
test
"
$hardcode_minus_L
"
=
yes
;
then
# Try looking first in the location we're being installed to.
add_dir
=
if
test
-n
"
$inst_prefix_dir
"
;
then
case
"
$libdir
"
in
[
\\
/]
*
)
add_dir
=
"-L
$inst_prefix_dir$libdir
"
;;
esac
fi
add_dir
=
"
$add_dir
-L
$libdir
"
add_dir
=
"-L
$libdir
"
add
=
"-l
$name
"
elif
test
"
$hardcode_shlibpath_var
"
=
yes
;
then
case
:
$finalize_shlibpath
:
in
...
...
@@ -1929,20 +1927,19 @@ compiler."
add
=
"-l
$name
"
else
# We cannot seem to hardcode it, guess we'll fake it.
add_dir
=
"-L
$libdir
"
# Try looking first in the location we're being installed to.
add_dir
=
if
test
-n
"
$inst_prefix_dir
"
;
then
case
"
$libdir
"
in
[
\
\
/]
*
)
add_dir
=
"-L
$inst_prefix_dir$libdir
"
[
\/
]
*
)
add_dir
=
"-L
$inst_prefix_dir$libdir
$add_dir
"
;;
esac
fi
add_dir
=
"
$add_dir
-L
$libdir
"
add
=
"-l
$name
"
fi
if
test
"
$linkmode
"
=
prog
;
then
if
test
$linkmode
=
prog
;
then
test
-n
"
$add_dir
"
&&
finalize_deplibs
=
"
$add_dir
$finalize_deplibs
"
test
-n
"
$add
"
&&
finalize_deplibs
=
"
$add
$finalize_deplibs
"
else
...
...
@@ -1950,7 +1947,7 @@ compiler."
test
-n
"
$add
"
&&
deplibs
=
"
$add
$deplibs
"
fi
fi
elif
test
"
$linkmode
"
=
prog
;
then
elif
test
$linkmode
=
prog
;
then
if
test
"
$alldeplibs
"
=
yes
&&
{
test
"
$deplibs_check_method
"
=
pass_all
||
{
test
"
$build_libtool_libs
"
=
yes
&&
...
...
@@ -1980,13 +1977,14 @@ compiler."
# Just print a warning and add the library to dependency_libs so
# that the program can be linked against the static library.
echo
echo
"*** Warning: This
library needs some functionality provided by
$lib
."
echo
"*** Warning: This
system can not link to static lib archive
$lib
."
echo
"*** I have the capability to make that library automatically link in when"
echo
"*** you link to this library. But I can only do this if you have a"
echo
"*** shared version of the library, which you do not appear to have."
if
test
"
$module
"
=
yes
;
then
echo
"*** Therefore, libtool will create a static module, that should work "
echo
"*** as long as the dlopening application is linked with the -dlopen flag."
echo
"*** But as you try to build a module library, libtool will still create "
echo
"*** a static module, that should work as long as the dlopening application"
echo
"*** is linked with the -dlopen flag to resolve symbols at runtime."
if
test
-z
"
$global_symbol_pipe
"
;
then
echo
echo
"*** However, this would only work if libtool was able to extract symbol"
...
...
@@ -2009,9 +2007,9 @@ compiler."
fi
fi
# link shared/static library?
if
test
"
$linkmode
"
=
lib
;
then
if
test
$linkmode
=
lib
;
then
if
test
-n
"
$dependency_libs
"
&&
{
test
"
$hardcode_into_libs
"
!=
yes
||
test
$build_old_libs
=
yes
||
{
test
$hardcode_into_libs
!=
yes
||
test
$build_old_libs
=
yes
||
test
$link_static
=
yes
;
}
;
then
# Extract -R from dependency_libs
temp_deplibs
=
...
...
@@ -2043,7 +2041,7 @@ compiler."
tmp_libs
=
"
$tmp_libs
$deplib
"
done
if
test
"
$link_all_deplibs
"
!=
no
;
then
if
test
$link_all_deplibs
!=
no
;
then
# Add the search paths of all dependency libraries
for
deplib
in
$dependency_libs
;
do
case
$deplib
in
...
...
@@ -2065,7 +2063,7 @@ compiler."
if
grep
"^installed=no"
$deplib
>
/dev/null
;
then
path
=
"-L
$absdir
/
$objdir
"
else
eval
libdir
=
`
sed
-n
-e
's/^libdir=\(.*\)$/\1/p'
$deplib
`
eval
libdir
=
`
${
SED
}
-n
-e
's/^libdir=\(.*\)$/\1/p'
$deplib
`
if
test
-z
"
$libdir
"
;
then
$echo
"
$modename
:
\`
$deplib
' is not a valid libtool archive"
1>&2
exit
1
...
...
@@ -2086,15 +2084,15 @@ compiler."
fi
# link_all_deplibs != no
fi
# linkmode = lib
done
# for deplib in $libs
if
test
"
$pass
"
=
dlpreopen
;
then
if
test
$pass
=
dlpreopen
;
then
# Link the dlpreopened libraries before other libraries
for
deplib
in
$save_deplibs
;
do
deplibs
=
"
$deplib
$deplibs
"
done
fi
if
test
"
$pass
"
!=
dlopen
;
then
test
"
$pass
"
!=
scan
&&
dependency_libs
=
"
$newdependency_libs
"
if
test
"
$pass
"
!=
conv
;
then
if
test
$pass
!=
dlopen
;
then
test
$pass
!=
scan
&&
dependency_libs
=
"
$newdependency_libs
"
if
test
$pass
!=
conv
;
then
# Make sure lib_search_path contains only unique directories.
lib_search_path
=
for
dir
in
$newlib_search_path
;
do
...
...
@@ -2152,7 +2150,7 @@ compiler."
deplibs
=
fi
done
# for pass
if
test
"
$linkmode
"
=
prog
;
then
if
test
$linkmode
=
prog
;
then
dlfiles
=
"
$newdlfiles
"
dlprefiles
=
"
$newdlprefiles
"
fi
...
...
@@ -2254,7 +2252,7 @@ compiler."
else
# Parse the version information argument.
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
':'
save_ifs
=
"
$IFS
"
;
IFS
=
':'
set
dummy
$vinfo
0 0 0
IFS
=
"
$save_ifs
"
...
...
@@ -2270,7 +2268,7 @@ compiler."
# Check that each of the things are valid numbers.
case
$current
in
[
0-9]
*
)
;;
0
|
[
1-9]
|
[
1-9][0-9]
|
[
1-9][0-9][0-9]
)
;;
*
)
$echo
"
$modename
: CURRENT
\`
$current
' is not a nonnegative integer"
1>&2
$echo
"
$modename
:
\`
$vinfo
' is not valid version information"
1>&2
...
...
@@ -2279,7 +2277,7 @@ compiler."
esac
case
$revision
in
[
0-9]
*
)
;;
0
|
[
1-9]
|
[
1-9][0-9]
|
[
1-9][0-9][0-9]
)
;;
*
)
$echo
"
$modename
: REVISION
\`
$revision
' is not a nonnegative integer"
1>&2
$echo
"
$modename
:
\`
$vinfo
' is not valid version information"
1>&2
...
...
@@ -2288,7 +2286,7 @@ compiler."
esac
case
$age
in
[
0-9]
*
)
;;
0
|
[
1-9]
|
[
1-9][0-9]
|
[
1-9][0-9][0-9]
)
;;
*
)
$echo
"
$modename
: AGE
\`
$age
' is not a nonnegative integer"
1>&2
$echo
"
$modename
:
\`
$vinfo
' is not valid version information"
1>&2
...
...
@@ -2329,16 +2327,21 @@ compiler."
versuffix
=
".
$current
"
;
;;
irix
)
irix
|
nonstopux
)
major
=
`
expr
$current
-
$age
+ 1
`
verstring
=
"sgi
$major
.
$revision
"
case
$version_type
in
nonstopux
)
verstring_prefix
=
nonstopux
;;
*
)
verstring_prefix
=
sgi
;;
esac
verstring
=
"
$verstring_prefix$major
.
$revision
"
# Add in all the interfaces that we are compatible with.
loop
=
$revision
while
test
$loop
!=
0
;
do
iface
=
`
expr
$revision
-
$loop
`
loop
=
`
expr
$loop
- 1
`
verstring
=
"
sgi
$major
.
$iface
:
$verstring
"
verstring
=
"
$verstring_prefix
$major
.
$iface
:
$verstring
"
done
# Before this point, $major must not contain `.'.
...
...
@@ -2352,7 +2355,7 @@ compiler."
;;
osf
)
major
=
`
expr
$current
-
$age
`
major
=
.
`
expr
$current
-
$age
`
versuffix
=
".
$current
.
$age
.
$revision
"
verstring
=
"
$current
.
$age
.
$revision
"
...
...
@@ -2444,9 +2447,9 @@ compiler."
# Eliminate all temporary directories.
for
path
in
$notinst_path
;
do
lib_search_path
=
`
echo
"
$lib_search_path
"
|
sed
-e
's% $path % %g'
`
deplibs
=
`
echo
"
$deplibs
"
|
sed
-e
's% -L$path % %g'
`
dependency_libs
=
`
echo
"
$dependency_libs
"
|
sed
-e
's% -L$path % %g'
`
lib_search_path
=
`
echo
"
$lib_search_path
"
|
${
SED
}
-e
's% $path % %g'
`
deplibs
=
`
echo
"
$deplibs
"
|
${
SED
}
-e
's% -L$path % %g'
`
dependency_libs
=
`
echo
"
$dependency_libs
"
|
${
SED
}
-e
's% -L$path % %g'
`
done
if
test
-n
"
$xrpath
"
;
then
...
...
@@ -2497,12 +2500,12 @@ compiler."
*
-
*
-netbsd
*
)
# Don't link with libc until the a.out ld.so is fixed.
;;
*
-
*
-openbsd
*
)
*
-
*
-openbsd
*
|
*
-
*
-freebsd
*
)
# Do not include libc due to us having libc/libc_r.
;;
*
)
# Add libc to deplibs on all other systems if necessary.
if
test
"
$build_libtool_need_lc
"
=
"yes"
;
then
if
test
$build_libtool_need_lc
=
"yes"
;
then
deplibs
=
"
$deplibs
-lc"
fi
;;
...
...
@@ -2558,18 +2561,20 @@ EOF
else
droppeddeps
=
yes
echo
echo
"*** Warning:
This library needs some functionality provided b
y
$i
."
echo
"*** Warning:
dynamic linker does not accept needed librar
y
$i
."
echo
"*** I have the capability to make that library automatically link in when"
echo
"*** you link to this library. But I can only do this if you have a"
echo
"*** shared version of the library, which you do not appear to have."
echo
"*** shared version of the library, which I believe you do not have"
echo
"*** because a test_compile did reveal that the linker did not use it for"
echo
"*** its dynamic dependency list that programs get resolved with at runtime."
fi
else
newdeplibs
=
"
$newdeplibs
$i
"
fi
done
else
# Error occured in the first compile. Let's try to salvage
the situation:
#
Compile a sepe
rate program for each library.
# Error occured in the first compile. Let's try to salvage
#
the situation: Compile a sepa
rate program for each library.
for
i
in
$deplibs
;
do
name
=
"
`
expr
$i
:
'-l\(.*\)'
`
"
# If $name is empty we are operating on a -L argument.
...
...
@@ -2588,10 +2593,12 @@ EOF
else
droppeddeps
=
yes
echo
echo
"*** Warning:
This library needs some functionality provided b
y
$i
."
echo
"*** Warning:
dynamic linker does not accept needed librar
y
$i
."
echo
"*** I have the capability to make that library automatically link in when"
echo
"*** you link to this library. But I can only do this if you have a"
echo
"*** shared version of the library, which you do not appear to have."
echo
"*** shared version of the library, which you do not appear to have"
echo
"*** because a test_compile did reveal that the linker did not use this one"
echo
"*** as a dynamic dependency that programs can get resolved with at runtime."
fi
else
droppeddeps
=
yes
...
...
@@ -2630,14 +2637,14 @@ EOF
# but so what?
potlib
=
"
$potent_lib
"
while
test
-h
"
$potlib
"
2>/dev/null
;
do
potliblink
=
`
ls
-ld
$potlib
|
sed
's/.* -> //'
`
potliblink
=
`
ls
-ld
$potlib
|
${
SED
}
's/.* -> //'
`
case
$potliblink
in
[
\\
/]
*
|
[
A-Za-z]:[
\\
/]
*
)
potlib
=
"
$potliblink
"
;;
*
)
potlib
=
`
$echo
"X
$potlib
"
|
$Xsed
-e
's,[^/]*$,,'
`
"
$potliblink
"
;;
esac
done
if
eval
$file_magic_cmd
\"\$
potlib
\"
2>/dev/null
\
|
sed
10q
\
|
${
SED
}
10q
\
| egrep
"
$file_magic_regex
"
>
/dev/null
;
then
newdeplibs
=
"
$newdeplibs
$a_deplib
"
a_deplib
=
""
...
...
@@ -2648,10 +2655,17 @@ EOF
if
test
-n
"
$a_deplib
"
;
then
droppeddeps
=
yes
echo
echo
"*** Warning:
This library needs some functionality provided b
y
$a_deplib
."
echo
"*** Warning:
linker path does not have real file for librar
y
$a_deplib
."
echo
"*** I have the capability to make that library automatically link in when"
echo
"*** you link to this library. But I can only do this if you have a"
echo
"*** shared version of the library, which you do not appear to have."
echo
"*** shared version of the library, which you do not appear to have"
echo
"*** because I did check the linker path looking for a file starting"
if
test
-z
"
$potlib
"
;
then
echo
"*** with
$libname
but no candidates were found. (...for file magic test)"
else
echo
"*** with
$libname
and none of the candidates passed a file format test"
echo
"*** using a file magic. Last file checked:
$potlib
"
fi
fi
else
# Add a -L argument.
...
...
@@ -2670,8 +2684,9 @@ EOF
for
i
in
$lib_search_path
$sys_lib_search_path
$shlib_search_path
;
do
potential_libs
=
`
ls
$i
/
$libname
[
.-]
*
2>/dev/null
`
for
potent_lib
in
$potential_libs
;
do
potlib
=
"
$potent_lib
"
# see symlink-check below in file_magic test
if
eval echo
\"
$potent_lib
\"
2>/dev/null
\
|
sed
10q
\
|
${
SED
}
10q
\
| egrep
"
$match_pattern_regex
"
>
/dev/null
;
then
newdeplibs
=
"
$newdeplibs
$a_deplib
"
a_deplib
=
""
...
...
@@ -2682,10 +2697,17 @@ EOF
if
test
-n
"
$a_deplib
"
;
then
droppeddeps
=
yes
echo
echo
"*** Warning:
This library needs some functionality provided b
y
$a_deplib
."
echo
"*** Warning:
linker path does not have real file for librar
y
$a_deplib
."
echo
"*** I have the capability to make that library automatically link in when"
echo
"*** you link to this library. But I can only do this if you have a"
echo
"*** shared version of the library, which you do not appear to have."
echo
"*** shared version of the library, which you do not appear to have"
echo
"*** because I did check the linker path looking for a file starting"
if
test
-z
"
$potlib
"
;
then
echo
"*** with
$libname
but no candidates were found. (...for regex pattern test)"
else
echo
"*** with
$libname
and none of the candidates passed a file format test"
echo
"*** using a regex pattern. Last file checked:
$potlib
"
fi
fi
else
# Add a -L argument.
...
...
@@ -2775,7 +2797,7 @@ EOF
# Test again, we may have decided not to build it any more
if
test
"
$build_libtool_libs
"
=
yes
;
then
if
test
"
$hardcode_into_libs
"
=
yes
;
then
if
test
$hardcode_into_libs
=
yes
;
then
# Hardcode the library paths
hardcode_libdirs
=
dep_rpath
=
...
...
@@ -2876,7 +2898,7 @@ EOF
export_symbols
=
"
$output_objdir
/
$libname
.exp"
$run
$rm
$export_symbols
eval
cmds
=
\"
$export_symbols_cmds
\"
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
for
cmd
in
$cmds
;
do
IFS
=
"
$save_ifs
"
$show
"
$cmd
"
...
...
@@ -2950,9 +2972,20 @@ EOF
if
test
-n
"
$export_symbols
"
&&
test
-n
"
$archive_expsym_cmds
"
;
then
eval
cmds
=
\"
$archive_expsym_cmds
\"
else
save_deplibs
=
"
$deplibs
"
for
conv
in
$convenience
;
do
tmp_deplibs
=
for
test_deplib
in
$deplibs
;
do
if
test
"
$test_deplib
"
!=
"
$conv
"
;
then
tmp_deplibs
=
"
$tmp_deplibs
$test_deplib
"
fi
done
deplibs
=
"
$tmp_deplibs
"
done
eval
cmds
=
\"
$archive_cmds
\"
deplibs
=
"
$save_deplibs
"
fi
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
for
cmd
in
$cmds
;
do
IFS
=
"
$save_ifs
"
$show
"
$cmd
"
...
...
@@ -3080,7 +3113,7 @@ EOF
output
=
"
$obj
"
eval
cmds
=
\"
$reload_cmds
\"
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
for
cmd
in
$cmds
;
do
IFS
=
"
$save_ifs
"
$show
"
$cmd
"
...
...
@@ -3116,7 +3149,7 @@ EOF
reload_objs
=
"
$libobjs
$reload_conv_objs
"
output
=
"
$libobj
"
eval
cmds
=
\"
$reload_cmds
\"
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
for
cmd
in
$cmds
;
do
IFS
=
"
$save_ifs
"
$show
"
$cmd
"
...
...
@@ -3149,7 +3182,7 @@ EOF
prog
)
case
$host
in
*
cygwin
*
)
output
=
`
echo
$output
|
sed
-e
's,.exe$,,;s,$,.exe,'
`
;;
*
cygwin
*
)
output
=
`
echo
$output
|
${
SED
}
-e
's,.exe$,,;s,$,.exe,'
`
;;
esac
if
test
-n
"
$vinfo
"
;
then
$echo
"
$modename
: warning:
\`
-version-info' is ignored for programs"
1>&2
...
...
@@ -3171,6 +3204,13 @@ EOF
# On Rhapsody replace the C library is the System framework
compile_deplibs
=
`
$echo
"X
$compile_deplibs
"
|
$Xsed
-e
's/ -lc / -framework System /'
`
finalize_deplibs
=
`
$echo
"X
$finalize_deplibs
"
|
$Xsed
-e
's/ -lc / -framework System /'
`
case
$host
in
*
darwin
*
)
# Don't allow lazy linking, it breaks C++ global constructors
compile_command
=
"
$compile_command
${
wl
}
-bind_at_load"
finalize_command
=
"
$finalize_command
${
wl
}
-bind_at_load"
;;
esac
;;
esac
...
...
@@ -3337,9 +3377,9 @@ extern \"C\" {
if
test
-z
"
$export_symbols
"
;
then
export_symbols
=
"
$output_objdir
/
$output
.exp"
$run
$rm
$export_symbols
$run
eval
"
sed
-n -e '/^: @PROGRAM@
$/
d' -e 's/^.*
\(
.*
\)
$/
\1
/p' "
'< "$nlist" > "$export_symbols"'
$run
eval
"
${
SED
}
-n -e '/^: @PROGRAM@
$/
d' -e 's/^.*
\(
.*
\)
$/
\1
/p' "
'< "$nlist" > "$export_symbols"'
else
$run
eval
"
sed
-e 's/
\(
[][.*^
$]
\)
/
\\\1
/g' -e 's/^/ /' -e 's/
$/$/
'"
' < "$export_symbols" > "$output_objdir/$output.exp"'
$run
eval
"
${
SED
}
-e 's/
\(
[][.*^
$]
\)
/
\\\1
/g' -e 's/^/ /' -e 's/
$/$/
'"
' < "$export_symbols" > "$output_objdir/$output.exp"'
$run
eval
'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
$run
eval
'mv "$nlist"T "$nlist"'
fi
...
...
@@ -3347,7 +3387,7 @@ extern \"C\" {
for
arg
in
$dlprefiles
;
do
$show
"extracting global C symbols from
\`
$arg
'"
name
=
`
echo
"
$arg
"
|
sed
-e
's%^.*/%%'
`
name
=
`
echo
"
$arg
"
|
${
SED
}
-e
's%^.*/%%'
`
$run
eval
'echo ": $name " >> "$nlist"'
$run
eval
"
$NM
$arg
|
$global_symbol_pipe
>> '
$nlist
'"
done
...
...
@@ -3362,7 +3402,13 @@ extern \"C\" {
fi
# Try sorting and uniquifying the output.
if
grep
-v
"^: "
<
"
$nlist
"
|
sort
+2 |
uniq
>
"
$nlist
"
S
;
then
if
grep
-v
"^: "
<
"
$nlist
"
|
if
sort
-k
3 </dev/null
>
/dev/null 2>&1
;
then
sort
-k
3
else
sort
+2
fi
|
uniq
>
"
$nlist
"
S
;
then
:
else
grep
-v
"^: "
<
"
$nlist
"
>
"
$nlist
"
S
...
...
@@ -3584,7 +3630,7 @@ static const void *lt_preloaded_setup() {
relink_command
=
"
$var
=
\"
$var_value
\"
; export
$var
;
$relink_command
"
fi
done
relink_command
=
"
cd
`
pwd
`
;
$relink_command
"
relink_command
=
"
(cd
`
pwd
`
;
$relink_command
)
"
relink_command
=
`
$echo
"X
$relink_command
"
|
$Xsed
-e
"
$sed_quote_subst
"
`
fi
...
...
@@ -3604,7 +3650,7 @@ static const void *lt_preloaded_setup() {
# win32 will think the script is a binary if it has
# a .exe suffix, so we strip it off here.
case
$output
in
*
.exe
)
output
=
`
echo
$output
|
sed
's,.exe$,,'
`
;;
*
.exe
)
output
=
`
echo
$output
|
${
SED
}
's,.exe$,,'
`
;;
esac
# test for cygwin because mv fails w/o .exe extensions
case
$host
in
...
...
@@ -3628,7 +3674,7 @@ static const void *lt_preloaded_setup() {
# Sed substitution that helps us do robust quoting. It backslashifies
# metacharacters that are still active within double-quoted strings.
Xsed=
'sed
-e 1s/^X//'
Xsed=
"
${
SED
}
"'
-e 1s/^X//'
sed_quote_subst='
$sed_quote_subst
'
# The HP-UX ksh and POSIX shell print the target directory to stdout
...
...
@@ -3666,7 +3712,7 @@ else
test
\"
x
\$
thisdir
\"
=
\"
x
\$
file
\"
&& thisdir=.
# Follow symbolic links until we get to the real thisdir.
file=
\`
ls -ld
\"\$
file
\"
|
sed
-n 's/.*-> //p'
\`
file=
\`
ls -ld
\"\$
file
\"
|
${
SED
}
-n 's/.*-> //p'
\`
while test -n
\"\$
file
\"
; do
destdir=
\`\$
echo
\"
X
\$
file
\"
|
\$
Xsed -e 's%/[^/]*
\$
%%'
\`
...
...
@@ -3679,7 +3725,7 @@ else
fi
file=
\`\$
echo
\"
X
\$
file
\"
|
\$
Xsed -e 's%^.*/%%'
\`
file=
\`
ls -ld
\"\$
thisdir/
\$
file
\"
|
sed
-n 's/.*-> //p'
\`
file=
\`
ls -ld
\"\$
thisdir/
\$
file
\"
|
${
SED
}
-n 's/.*-> //p'
\`
done
# Try to get the absolute directory name.
...
...
@@ -3693,7 +3739,7 @@ else
progdir=
\"\$
thisdir/
$objdir
\"
if test ! -f
\"\$
progdir/
\$
program
\"
||
\\
{ file=
\`
ls -1dt
\"\$
progdir/
\$
program
\"
\"\$
progdir/../
\$
program
\"
2>/dev/null |
sed
1q
\`
;
\\
{ file=
\`
ls -1dt
\"\$
progdir/
\$
program
\"
\"\$
progdir/../
\$
program
\"
2>/dev/null |
${
SED
}
1q
\`
;
\\
test
\"
X
\$
file
\"
!=
\"
X
\$
progdir/
\$
program
\"
; }; then
file=
\"\$\$
-
\$
program
\"
...
...
@@ -3739,7 +3785,7 @@ else
$shlibpath_var
=
\"
$temp_rpath
\$
$shlibpath_var
\"
# Some systems cannot cope with colon-terminated
$shlibpath_var
# The second colon is a workaround for a bug in BeOS R4
sed
# The second colon is a workaround for a bug in BeOS R4
${
SED
}
$shlibpath_var
=
\`\$
echo
\"
X
\$
$shlibpath_var
\"
|
\$
Xsed -e 's/::*
\$
//'
\`
export
$shlibpath_var
...
...
@@ -3881,7 +3927,7 @@ fi\
eval
cmds
=
\"
$old_archive_cmds
\"
fi
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
for
cmd
in
$cmds
;
do
IFS
=
"
$save_ifs
"
$show
"
$cmd
"
...
...
@@ -3914,7 +3960,7 @@ fi\
fi
done
# Quote the link command for shipping.
relink_command
=
"
cd
`
pwd
`
;
$SHELL
$0
--mode=relink
$libtool_args
@inst_prefix_dir@
"
relink_command
=
"
(cd
`
pwd
`
;
$SHELL
$0
--mode=relink
$libtool_args
@inst_prefix_dir@)
"
relink_command
=
`
$echo
"X
$relink_command
"
|
$Xsed
-e
"
$sed_quote_subst
"
`
# Only create the output if not a dry run.
...
...
@@ -3931,58 +3977,21 @@ fi\
case
$deplib
in
*
.la
)
name
=
`
$echo
"X
$deplib
"
|
$Xsed
-e
's%^.*/%%'
`
eval
libdir
=
`
sed
-n
-e
's/^libdir=\(.*\)$/\1/p'
$deplib
`
eval
libdir
=
`
${
SED
}
-n
-e
's/^libdir=\(.*\)$/\1/p'
$deplib
`
if
test
-z
"
$libdir
"
;
then
$echo
"
$modename
:
\`
$deplib
' is not a valid libtool archive"
1>&2
exit
1
fi
# We do not want portage's install root ($D) present. Check only for
# this if the .la is being installed.
if
test
"
$installed
"
=
yes
&&
test
"
$D
"
;
then
eval
mynewdependency_lib
=
"
`
echo
"
$libdir
/
$name
"
|sed
-e
"s:
$D
::g"
-e
's://:/:g'
`
"
else
mynewdependency_lib
=
"
$libdir
/
$name
"
fi
# Do not add duplicates
if
test
"
$mynewdependency_lib
"
;
then
if
test
-z
"
`
echo
$newdependency_libs
|grep
-e
"
$mynewdependency_lib
"
`
"
;
then
newdependency_libs
=
"
$newdependency_libs
$mynewdependency_lib
"
fi
fi
;;
*
)
if
test
"
$installed
"
=
yes
;
then
# Rather use S=WORKDIR if our version of portage supports it.
# This is because some ebuild (gcc) do not use $S as buildroot.
if
test
"
$PWORKDIR
"
;
then
S
=
"
$PWORKDIR
"
fi
# We do not want portage's build root ($S) present.
if
test
-n
"
`
echo
$deplib
|grep
-e
"
$S
"
`
"
&&
test
"
$S
"
;
then
mynewdependency_lib
=
""
# We do not want portage's install root ($D) present.
elif
test
-n
"
`
echo
$deplib
|grep
-e
"
$D
"
`
"
&&
test
"
$D
"
;
then
eval
mynewdependency_lib
=
"
`
echo
"
$deplib
"
|sed
-e
"s:
$D
::g"
-e
's://:/:g'
`
"
else
mynewdependency_lib
=
"
$deplib
"
fi
else
mynewdependency_lib
=
"
$deplib
"
fi
# Do not add duplicates
if
test
"
$mynewdependency_lib
"
;
then
if
test
-z
"
`
echo
$newdependency_libs
|grep
-e
"
$mynewdependency_lib
"
`
"
;
then
newdependency_libs
=
"
$newdependency_libs
$mynewdependency_lib
"
fi
fi
newdependency_libs
=
"
$newdependency_libs
$libdir
/
$name
"
;;
*
)
newdependency_libs
=
"
$newdependency_libs
$deplib
"
;;
esac
done
dependency_libs
=
"
$newdependency_libs
"
newdlfiles
=
for
lib
in
$dlfiles
;
do
name
=
`
$echo
"X
$lib
"
|
$Xsed
-e
's%^.*/%%'
`
eval
libdir
=
`
sed
-n
-e
's/^libdir=\(.*\)$/\1/p'
$lib
`
eval
libdir
=
`
${
SED
}
-n
-e
's/^libdir=\(.*\)$/\1/p'
$lib
`
if
test
-z
"
$libdir
"
;
then
$echo
"
$modename
:
\`
$lib
' is not a valid libtool archive"
1>&2
exit
1
...
...
@@ -3993,7 +4002,7 @@ fi\
newdlprefiles
=
for
lib
in
$dlprefiles
;
do
name
=
`
$echo
"X
$lib
"
|
$Xsed
-e
's%^.*/%%'
`
eval
libdir
=
`
sed
-n
-e
's/^libdir=\(.*\)$/\1/p'
$lib
`
eval
libdir
=
`
${
SED
}
-n
-e
's/^libdir=\(.*\)$/\1/p'
$lib
`
if
test
-z
"
$libdir
"
;
then
$echo
"
$modename
:
\`
$lib
' is not a valid libtool archive"
1>&2
exit
1
...
...
@@ -4008,10 +4017,6 @@ fi\
case
$host
,
$output
,
$installed
,
$module
,
$dlname
in
*
cygwin
*
,
*
lai,yes,no,
*
.dll
)
tdlname
=
../bin/
$dlname
;;
esac
# Do not add duplicates
if
test
"
$installed
"
=
yes
&&
test
"
$D
"
;
then
install_libdir
=
"
`
echo
"
$install_libdir
"
|sed
-e
"s:
$D
::g"
-e
's://:/:g'
`
"
fi
$echo
>
$output
"
\
#
$outputname
- a libtool library file
# Generated by
$PROGRAM
- GNU
$PACKAGE
$VERSION$TIMESTAMP
...
...
@@ -4221,7 +4226,7 @@ relink_command=\"$relink_command\""
*
.la
)
# Check to see that this really is a libtool archive.
if
(
sed
-e
'2q'
$file
| egrep
"^# Generated by .*
$PACKAGE
"
)
>
/dev/null 2>&1
;
then
:
if
(
${
SED
}
-e
'2q'
$file
| egrep
"^# Generated by .*
$PACKAGE
"
)
>
/dev/null 2>&1
;
then
:
else
$echo
"
$modename
:
\`
$file
' is not a valid libtool archive"
1>&2
$echo
"
$help
"
1>&2
...
...
@@ -4256,23 +4261,23 @@ relink_command=\"$relink_command\""
dir
=
"
$dir$objdir
"
if
test
-n
"
$relink_command
"
;
then
# Determine the prefix the user has applied to our future dir.
inst_prefix_dir
=
`
$echo
"
$destdir
"
|
sed
"s%
$libdir
\$
%%"
`
# Don't allow the user to place us outside of our expected
# location b/c this prevents finding dependent libraries that
# are installed to the same prefix.
if
test
"
$inst_prefix_dir
"
=
"
$destdir
"
;
then
$echo
"
$modename
: error: cannot install
\`
$file
' to a directory not ending in
$libdir
"
1>&2
exit
1
fi
if
test
-n
"
$inst_prefix_dir
"
;
then
# Stick the inst_prefix_dir data into the link command.
relink_command
=
`
$echo
"
$relink_command
"
|
sed
"s%@inst_prefix_dir@%-inst-prefix-dir
$inst_prefix_dir
%"
`
else
relink_command
=
`
$echo
"
$relink_command
"
|
sed
"s%@inst_prefix_dir@%%"
`
fi
# Determine the prefix the user has applied to our future dir.
inst_prefix_dir
=
`
$echo
"
$destdir
"
|
sed
"s%
$libdir
\$
%%"
`
# Don't allow the user to place us outside of our expected
# location b/c this prevents finding dependent libraries that
# are installed to the same prefix.
if
test
"
$inst_prefix_dir
"
=
"
$destdir
"
;
then
$echo
"
$modename
: error: cannot install
\`
$file
' to a directory not ending in
$libdir
"
1>&2
exit
1
fi
if
test
-n
"
$inst_prefix_dir
"
;
then
# Stick the inst_prefix_dir data into the link command.
relink_command
=
`
$echo
"
$relink_command
"
|
sed
"s%@inst_prefix_dir@%-inst-prefix-dir
$inst_prefix_dir
%"
`
else
relink_command
=
`
$echo
"
$relink_command
"
|
sed
"s%@inst_prefix_dir@%%"
`
fi
$echo
"
$modename
: warning: relinking
\`
$file
'"
1>&2
$show
"
$relink_command
"
...
...
@@ -4315,7 +4320,7 @@ relink_command=\"$relink_command\""
# Do each command in the postinstall commands.
lib
=
"
$destdir
/
$realname
"
eval
cmds
=
\"
$postinstall_cmds
\"
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
for
cmd
in
$cmds
;
do
IFS
=
"
$save_ifs
"
$show
"
$cmd
"
...
...
@@ -4388,19 +4393,27 @@ relink_command=\"$relink_command\""
fi
# Do a test to see if this is really a libtool program.
if
(
sed
-e
'4q'
$file
| egrep
"^# Generated by .*
$PACKAGE
"
)
>
/dev/null 2>&1
;
then
case
$host
in
*
cygwin
*
|
*
mingw
*
)
wrapper
=
`
echo
$file
|
${
SED
}
-e
's,.exe$,,'
`
;;
*
)
wrapper
=
$file
;;
esac
if
(
${
SED
}
-e
'4q'
$wrapper
| egrep
"^# Generated by .*
$PACKAGE
"
)>
/dev/null 2>&1
;
then
notinst_deplibs
=
relink_command
=
# If there is no directory component, then add one.
case
$file
in
*
/
*
|
*
\\
*
)
.
$
file
;;
*
)
.
./
$
file
;;
*
/
*
|
*
\\
*
)
.
$
wrapper
;;
*
)
.
./
$
wrapper
;;
esac
# Check the variables that should have been set.
if
test
-z
"
$notinst_deplibs
"
;
then
$echo
"
$modename
: invalid libtool wrapper script
\`
$
file
'"
1>&2
$echo
"
$modename
: invalid libtool wrapper script
\`
$
wrapper
'"
1>&2
exit
1
fi
...
...
@@ -4425,8 +4438,8 @@ relink_command=\"$relink_command\""
relink_command
=
# If there is no directory component, then add one.
case
$file
in
*
/
*
|
*
\\
*
)
.
$
file
;;
*
)
.
./
$
file
;;
*
/
*
|
*
\\
*
)
.
$
wrapper
;;
*
)
.
./
$
wrapper
;;
esac
outputname
=
...
...
@@ -4434,11 +4447,7 @@ relink_command=\"$relink_command\""
if
test
"
$finalize
"
=
yes
&&
test
-z
"
$run
"
;
then
tmpdir
=
"/tmp"
test
-n
"
$TMPDIR
"
&&
tmpdir
=
"
$TMPDIR
"
tmpdir
=
`
mktemp
-d
$tmpdir
/libtool-XXXXXX 2> /dev/null
`
if
test
$?
=
0
;
then
:
else
tmpdir
=
"
$tmpdir
/libtool-
$$
"
fi
tmpdir
=
"
$tmpdir
/libtool-
$$
"
if
$mkdir
-p
"
$tmpdir
"
&&
chmod
700
"
$tmpdir
"
;
then
:
else
$echo
"
$modename
: error: cannot create temporary directory
\`
$tmpdir
'"
1>&2
...
...
@@ -4478,7 +4487,7 @@ relink_command=\"$relink_command\""
destfile
=
$destfile
.exe
;;
*
:
*
.exe
)
destfile
=
`
echo
$destfile
|
sed
-e
's,.exe$,,'
`
destfile
=
`
echo
$destfile
|
${
SED
}
-e
's,.exe$,,'
`
;;
esac
;;
...
...
@@ -4506,7 +4515,7 @@ relink_command=\"$relink_command\""
# Do each command in the postinstall commands.
eval
cmds
=
\"
$old_postinstall_cmds
\"
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
for
cmd
in
$cmds
;
do
IFS
=
"
$save_ifs
"
$show
"
$cmd
"
...
...
@@ -4544,7 +4553,7 @@ relink_command=\"$relink_command\""
if
test
-n
"
$finish_cmds
"
;
then
# Do each command in the finish commands.
eval
cmds
=
\"
$finish_cmds
\"
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
for
cmd
in
$cmds
;
do
IFS
=
"
$save_ifs
"
$show
"
$cmd
"
...
...
@@ -4626,7 +4635,7 @@ relink_command=\"$relink_command\""
case
$file
in
*
.la
)
# Check to see that this really is a libtool archive.
if
(
sed
-e
'2q'
$file
| egrep
"^# Generated by .*
$PACKAGE
"
)
>
/dev/null 2>&1
;
then
:
if
(
${
SED
}
-e
'2q'
$file
| egrep
"^# Generated by .*
$PACKAGE
"
)
>
/dev/null 2>&1
;
then
:
else
$echo
"
$modename
:
\`
$lib
' is not a valid libtool archive"
1>&2
$echo
"
$help
"
1>&2
...
...
@@ -4697,7 +4706,7 @@ relink_command=\"$relink_command\""
-
*
)
;;
*
)
# Do a test to see if this is really a libtool program.
if
(
sed
-e
'4q'
$file
| egrep
"^# Generated by .*
$PACKAGE
"
)
>
/dev/null 2>&1
;
then
if
(
${
SED
}
-e
'4q'
$file
| egrep
"^# Generated by .*
$PACKAGE
"
)
>
/dev/null 2>&1
;
then
# If there is no directory component, then add one.
case
$file
in
*
/
*
|
*
\\
*
)
.
$file
;;
...
...
@@ -4729,7 +4738,7 @@ relink_command=\"$relink_command\""
fi
# Now prepare to actually exec the command.
exec_cmd
=
'"$cmd"$args'
exec_cmd
=
"
\$
cmd
$args
"
else
# Display what would be done.
if
test
-n
"
$shlibpath_var
"
;
then
...
...
@@ -4806,7 +4815,7 @@ relink_command=\"$relink_command\""
case
$name
in
*
.la
)
# Possibly a libtool archive, so verify it.
if
(
sed
-e
'2q'
$file
| egrep
"^# Generated by .*
$PACKAGE
"
)
>
/dev/null 2>&1
;
then
if
(
${
SED
}
-e
'2q'
$file
| egrep
"^# Generated by .*
$PACKAGE
"
)
>
/dev/null 2>&1
;
then
.
$dir
/
$name
# Delete the libtool libraries and symlinks.
...
...
@@ -4820,7 +4829,7 @@ relink_command=\"$relink_command\""
if
test
-n
"
$library_names
"
;
then
# Do each command in the postuninstall commands.
eval
cmds
=
\"
$postuninstall_cmds
\"
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
for
cmd
in
$cmds
;
do
IFS
=
"
$save_ifs
"
$show
"
$cmd
"
...
...
@@ -4835,7 +4844,7 @@ relink_command=\"$relink_command\""
if
test
-n
"
$old_library
"
;
then
# Do each command in the old_postuninstall commands.
eval
cmds
=
\"
$old_postuninstall_cmds
\"
IFS
=
"
${
IFS
=
}
"
;
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
save_ifs
=
"
$IFS
"
;
IFS
=
'~'
for
cmd
in
$cmds
;
do
IFS
=
"
$save_ifs
"
$show
"
$cmd
"
...
...
@@ -4861,7 +4870,7 @@ relink_command=\"$relink_command\""
*
)
# Do a test to see if this is a libtool program.
if
test
$mode
=
clean
&&
(
sed
-e
'4q'
$file
| egrep
"^# Generated by .*
$PACKAGE
"
)
>
/dev/null 2>&1
;
then
(
${
SED
}
-e
'4q'
$file
| egrep
"^# Generated by .*
$PACKAGE
"
)
>
/dev/null 2>&1
;
then
relink_command
=
.
$dir
/
$file
...
...
main.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2002 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -28,6 +28,7 @@
#include "buffer.h"
#include "stats.h"
#include "sig_handlers.h"
#include "audio.h"
#include <unistd.h>
#include <stdio.h>
...
...
@@ -98,10 +99,14 @@ int main(int argc, char * argv[]) {
}
else
{
getcwd
(
playlistDir
,
MAXPATHLEN
-
strlen
(
playlistDirArg
)
-
1
);
strcat
(
playlistDir
,
"/"
);
if
(
playlistDir
[
strlen
(
playlistDir
)
-
1
]
!=
'/'
)
{
strcat
(
playlistDir
,
"/"
);
}
strcat
(
playlistDir
,
playlistDirArg
);
}
strcat
(
playlistDir
,
"/"
);
if
(
playlistDir
[
strlen
(
playlistDir
)
-
1
]
!=
'/'
)
{
strcat
(
playlistDir
,
"/"
);
}
if
((
stat
(
playlistDir
,
&
st
))
<
0
)
{
fprintf
(
stderr
,
"problem stat'ing
\"
%s
\"\n
"
,
playlistDirArg
);
return
-
1
;
...
...
@@ -116,10 +121,10 @@ int main(int argc, char * argv[]) {
}
else
{
getcwd
(
musicDir
,
MAXPATHLEN
-
strlen
(
musicDirArg
)
-
1
);
strcat
(
musicDir
,
"/"
);
if
(
musicDir
[
strlen
(
musicDir
)
-
1
]
!=
'/'
)
strcat
(
musicDir
,
"/"
);
strcat
(
musicDir
,
musicDirArg
);
}
strcat
(
musicDir
,
"/"
);
if
(
musicDir
[
strlen
(
musicDir
)
-
1
]
!=
'/'
)
strcat
(
musicDir
,
"/"
);
if
((
stat
(
musicDir
,
&
st
))
<
0
)
{
fprintf
(
stderr
,
"problem stat'ing
\"
%s
\"\n
"
,
musicDirArg
);
return
-
1
;
...
...
@@ -142,6 +147,8 @@ int main(int argc, char * argv[]) {
}
}
initAudioDriver
();
initSigHandlers
();
initInterfaces
();
...
...
@@ -175,6 +182,7 @@ int main(int argc, char * argv[]) {
closeMp3Directory
();
closeTables
();
freeBuffer
();
finishAudioDriver
();
return
0
;
}
mkinstalldirs
View file @
53f5a137
...
...
@@ -12,29 +12,18 @@ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
# process command line arguments
while
test
$#
-gt
0
;
do
case
$1
in
-h
|
--help
|
--h
*
)
# -h for help
echo
"
$usage
"
1>&2
exit
0
;;
-m
)
# -m PERM arg
shift
test
$#
-eq
0
&&
{
echo
"
$usage
"
1>&2
;
exit
1
;
}
dirmode
=
$1
shift
;;
--
)
# stop option processing
shift
break
;;
-
*
)
# unknown option
echo
"
$usage
"
1>&2
exit
1
;;
*
)
# first non-opt arg
break
;;
esac
case
"
${
1
}
"
in
-h
|
--help
|
--h
*
)
# -h for help
echo
"
${
usage
}
"
1>&2
;
exit
0
;;
-m
)
# -m PERM arg
shift
test
$#
-eq
0
&&
{
echo
"
${
usage
}
"
1>&2
;
exit
1
;
}
dirmode
=
"
${
1
}
"
shift
;;
--
)
shift
;
break
;;
# stop option processing
-
*
)
echo
"
${
usage
}
"
1>&2
;
exit
1
;;
# unknown option
*
)
break
;;
# first non-opt arg
esac
done
for
file
...
...
@@ -47,65 +36,64 @@ do
done
case
$#
in
0
)
exit
0
;;
0
)
exit
0
;;
esac
case
$dirmode
in
''
)
if
mkdir
-p
--
.
2>/dev/null
;
then
echo
"mkdir -p --
$*
"
exec mkdir
-p
--
"
$@
"
fi
;;
*
)
if
mkdir
-m
"
$dirmode
"
-p
--
.
2>/dev/null
;
then
echo
"mkdir -m
$dirmode
-p --
$*
"
exec mkdir
-m
"
$dirmode
"
-p
--
"
$@
"
fi
;;
''
)
if
mkdir
-p
--
.
2>/dev/null
;
then
echo
"mkdir -p --
$*
"
exec mkdir
-p
--
"
$@
"
fi
;;
*
)
if
mkdir
-m
"
$dirmode
"
-p
--
.
2>/dev/null
;
then
echo
"mkdir -m
$dirmode
-p --
$*
"
exec mkdir
-m
"
$dirmode
"
-p
--
"
$@
"
fi
;;
esac
for
file
do
set
fnord
`
echo
":
$file
"
|
sed
-ne
's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'
`
shift
pathcomp
=
for
d
do
pathcomp
=
"
$pathcomp$d
"
case
$pathcomp
in
-
*
)
pathcomp
=
./
$pathcomp
;;
esac
if
test
!
-d
"
$pathcomp
"
;
then
echo
"mkdir
$pathcomp
"
mkdir
"
$pathcomp
"
||
lasterr
=
$?
if
test
!
-d
"
$pathcomp
"
;
then
errstatus
=
$lasterr
else
if
test
!
-z
"
$dirmode
"
;
then
echo
"chmod
$dirmode
$pathcomp
"
lasterr
=
""
chmod
"
$dirmode
"
"
$pathcomp
"
||
lasterr
=
$?
if
test
!
-z
"
$lasterr
"
;
then
errstatus
=
$lasterr
fi
fi
fi
fi
pathcomp
=
"
$pathcomp
/"
done
set
fnord
`
echo
":
$file
"
|
sed
-ne
's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'
`
shift
pathcomp
=
for
d
do
pathcomp
=
"
$pathcomp$d
"
case
"
$pathcomp
"
in
-
*
)
pathcomp
=
./
$pathcomp
;;
esac
if
test
!
-d
"
$pathcomp
"
;
then
echo
"mkdir
$pathcomp
"
mkdir
"
$pathcomp
"
||
lasterr
=
$?
if
test
!
-d
"
$pathcomp
"
;
then
errstatus
=
$lasterr
else
if
test
!
-z
"
$dirmode
"
;
then
echo
"chmod
$dirmode
$pathcomp
"
lasterr
=
""
chmod
"
$dirmode
"
"
$pathcomp
"
||
lasterr
=
$?
if
test
!
-z
"
$lasterr
"
;
then
errstatus
=
$lasterr
fi
fi
fi
fi
pathcomp
=
"
$pathcomp
/"
done
done
exit
$errstatus
# Local Variables:
# mode: shell-script
# sh-indentation:
2
# sh-indentation:
3
# End:
# mkinstalldirs ends here
mp3_decode.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -34,6 +34,7 @@
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/socket.h>
...
...
@@ -263,7 +264,7 @@ ao_device * initAoDeviceFromMp3DecodeData(mp3DecodeData * data) {
format
.
byte_format
=
AO_FMT_LITTLE
;
format
.
channels
=
MAD_NCHANNELS
(
&
(
data
->
frame
).
header
);
device
=
ao_open_live
(
audio_ao_driver_id
,
&
format
,
NULL
);
device
=
ao_open_live
(
audio_ao_driver_id
,
&
format
,
audio_ao_options
);
return
device
;
}
...
...
@@ -370,8 +371,7 @@ int mp3_decode(char * file, FILE * in, FILE * out) {
mp3_device
=
initAoDeviceFromMp3DecodeData
(
&
data
);
if
(
mp3_device
==
NULL
)
{
fprintf
(
stderr
,
"%s Error opening device.
\n
"
,
PLAYER_ERROR
);
fflush
(
stderr
);
audioError
();
pid
=
mp3_decode_pid
;
if
(
pid
>
0
)
kill
(
pid
,
SIGTERM
);
return
PLAYER_EXIT_ERROR_AUDIO
;
...
...
mp3_decode.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
mpd.1
View file @
53f5a137
...
...
@@ -13,7 +13,7 @@ through the server's audio device. The daemon stores info about all available
music, and this info can be easily searched and retrieved. Player control, info
retrieval, and playlist management can all be managed remotely.
Read more about MPD on http://
musicpd.sourceforge.net
Read more about MPD on http://
www.musicpd.org
.SH PARAMETERS
Below are a list of paramters that can be specified in the config file. Each line in the config file should be of the form:
.br
...
...
@@ -58,5 +58,24 @@ This specifies the maximum size a command list can be (in kilobytes). The defaul
.B max_output_buffer_size <size in kB>
This specifies the maximum size of the output buffer to a client (in kilobytes).
The default is 2048 kilobytes.
.TP
.B ao_driver <ao plugin>
This specifies the ao plugin to use for audio output. Typical values for
linux include "oss" and "alsa09". The default value is "default".
.TP
.B ao_driver_options <ao plugin options>
This specifies the options to use for the selected ao_driver. For oss, the
only option available is "dsp". For alsa09, the available options are:
"dev", "buf_size", and "periods". Options are assigned using "=" and ";" is
used to seperate options. An example for oss: "dsp=/dev/dsp". An example for
alsa09: "dev=hw:0,0;buf_size=4096". The default value is "".
.TP
.B save_absolute_paths_in_playlists <yes or no>
This specifies whether relative or absolute paths for song filenames are
used when saving playlists. The default value is "no".
.TP
.B bind_to_address <ip address or hostname or any>
This specifies which address mpd binds to and listens on. The default is "any",
which binds to all available addresses.
.SH FILES
A file is created in the playlist directory called ".mpddb". This file is used to store information about songs located in the music directory.
mpdconf.example
View file @
53f5a137
port "2100"
music_directory "/home/shank/mp3"
playlist_directory "/home/shank/playlists"
log_file "/home/shank/mpd.log"
error_file "/home/shank/mpd.error"
connection_timeout "60"
mixer_device "/dev/mixer"
max_connections "5"
max_playlist_length "4096"
buffer_before_play "25%"
stop_on_error "yes"
max_command_list_size "2048"
max_output_buffer_size "2048"
# required
port "2100"
music_directory "/home/shank/mp3"
playlist_directory "/home/shank/playlists"
log_file "/home/shank/mpd.log"
error_file "/home/shank/mpd.error"
# optional
connection_timeout "60"
mixer_device "/dev/mixer"
max_connections "5"
max_playlist_length "4096"
buffer_before_play "25%"
stop_on_error "yes"
max_command_list_size "2048"
max_output_buffer_size "2048"
ao_driver "oss"
ao_driver_options "dsp=/dev/dsp"
save_absolute_paths_in_playlists "no"
# when bind_to_address is set to "any", mpd binds all availabe addresses
bind_to_address "any"
ogg_decode.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -173,10 +173,10 @@ int ogg_decode(char * file, FILE * in, FILE * out) {
initAudio
();
ogg_device
=
ao_open_live
(
audio_ao_driver_id
,
&
format
,
NULL
);
ogg_device
=
ao_open_live
(
audio_ao_driver_id
,
&
format
,
audio_ao_options
);
if
(
ogg_device
==
NULL
)
{
fprintf
(
stderr
,
"%s Error opening device.
\n
"
,
PLAYER_ERROR
);
fflush
(
stderr
);
audioError
();
pid
=
ogg_decode_pid
;
if
(
pid
>
0
)
kill
(
pid
,
SIGTERM
);
return
PLAYER_EXIT_ERROR_AUDIO
;
...
...
ogg_decode.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
path.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
path.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
player.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -184,7 +184,10 @@ int playerPlay(FILE * fp, char * file) {
if
(
fp
==
NULL
)
fp
=
stderr
;
if
(
isMp3
(
file
))
playerType
=
PLAYER_TYPE_MP3
;
if
(
0
);
#ifdef HAVE_MAD
else
if
(
isMp3
(
file
))
playerType
=
PLAYER_TYPE_MP3
;
#endif
#ifdef HAVE_OGG
else
if
(
isOgg
(
file
))
playerType
=
PLAYER_TYPE_OGG
;
#endif
...
...
@@ -192,8 +195,8 @@ int playerPlay(FILE * fp, char * file) {
else
if
(
isFlac
(
file
))
playerType
=
PLAYER_TYPE_FLAC
;
#endif
else
{
myfprintf
(
fp
,
"%s
\"
%s
\"
is not a file or unknown file type
\n
"
,
COMMAND_RESPOND_ERROR
,
file
);
return
-
1
;
snprintf
(
player_error
,
sizeof
(
player_error
),
"
\"
%s
\"
is not a file or unknown file type
\n
"
,
file
);
return
0
;
}
if
(
playerStop
(
fp
)
<
0
)
return
-
1
;
...
...
player.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
playlist.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -25,6 +25,7 @@
#include "directory.h"
#include "stats.h"
#include "myfprintf.h"
#include "path.h"
#include <string.h>
#include <stdlib.h>
...
...
@@ -36,6 +37,8 @@
#define BITS_FOR_VERSION 31
#define PLAYLIST_COMMENT '#'
#define PLAYLIST_STATE_STOP 0
#define PLAYLIST_STATE_PLAY 1
#define PLAYLIST_PREV_UNLESS_ELAPSED 10
...
...
@@ -48,6 +51,8 @@ int playlist_state = PLAYLIST_STATE_STOP;
int
playlist_max_length
;
int
playlist_stopOnError
;
int
playlist_saveAbsolutePaths
;
void
incrPlaylistVersion
()
{
static
unsigned
long
max
=
((
unsigned
long
)
1
<<
BITS_FOR_VERSION
)
-
1
;
playlist
.
version
++
;
...
...
@@ -78,6 +83,19 @@ void initPlaylist() {
exit
(
-
1
);
}
if
(
strcmp
(
"yes"
,(
getConf
())[
CONF_SAVE_ABSOLUTE_PATHS_IN_PLAYLISTS
])
==
0
)
{
playlist_saveAbsolutePaths
=
1
;
}
else
if
(
strcmp
(
"no"
,(
getConf
())[
CONF_SAVE_ABSOLUTE_PATHS_IN_PLAYLISTS
])
==
0
)
{
playlist_saveAbsolutePaths
=
0
;
}
else
{
fprintf
(
stderr
,
"save_absolute_paths_in_playlist
\"
%s
\"
is not yes or no
\n
"
,(
getConf
())[
CONF_SAVE_ABSOLUTE_PATHS_IN_PLAYLISTS
]);
exit
(
-
1
);
}
playlist
.
songs
=
malloc
(
sizeof
(
Song
*
)
*
playlist_max_length
);
memset
(
playlist
.
songs
,(
int
)
NULL
,
sizeof
(
char
*
)
*
playlist_max_length
);
...
...
@@ -88,7 +106,7 @@ int clearPlaylist(FILE * fp) {
if
(
stopPlaylist
(
fp
)
<
0
)
return
-
1
;
for
(
i
=
0
;
i
<
playlist
.
length
;
i
++
)
freeSong
(
playlist
.
songs
[
i
])
;
for
(
i
=
0
;
i
<
playlist
.
length
;
i
++
)
playlist
.
songs
[
i
]
=
NULL
;
playlist
.
length
=
0
;
incrPlaylistVersion
();
...
...
@@ -108,7 +126,7 @@ int addToPlaylist(FILE * fp, char * file) {
return
-
1
;
}
playlist
.
songs
[
playlist
.
length
]
=
song
Dup
(
song
)
;
playlist
.
songs
[
playlist
.
length
]
=
song
;
playlist
.
length
++
;
incrPlaylistVersion
();
...
...
@@ -170,10 +188,10 @@ int deleteFromPlaylist(FILE * fp, int song) {
return
-
1
;
}
f
reeSong
(
playlist
.
songs
[
song
]);
playlist
.
songs
[
song
]
=
NULL
;
for
(
i
=
song
;
i
<
playlist
.
length
-
1
;
i
++
)
swapSongs
(
i
,
i
+
1
)
;
f
or
(
i
=
song
;
i
<
playlist
.
length
-
1
;
i
++
)
{
playlist
.
songs
[
i
]
=
playlist
.
songs
[
i
+
1
]
;
}
playlist
.
songs
[
playlist
.
length
-
1
]
=
NULL
;
playlist
.
length
--
;
incrPlaylistVersion
();
...
...
@@ -189,6 +207,27 @@ int deleteFromPlaylist(FILE * fp, int song) {
return
0
;
}
void
deleteASongFromPlaylist
(
Song
*
song
)
{
int
i
;
for
(
i
=
0
;
i
<
playlist
.
length
;
i
++
)
{
if
(
song
==
playlist
.
songs
[
i
])
{
deleteFromPlaylist
(
stderr
,
i
);
}
}
}
void
deleteSongsFromPlaylist
(
SongList
*
songList
)
{
ListNode
*
node
=
songList
->
firstNode
;
Song
*
song
;
while
(
node
)
{
song
=
(
Song
*
)
node
->
data
;
deleteASongFromPlaylist
(
song
);
node
=
node
->
nextNode
;
}
}
int
stopPlaylist
(
FILE
*
fp
)
{
if
(
playerStop
(
fp
)
<
0
)
return
-
1
;
playlist_state
=
PLAYLIST_STATE_STOP
;
...
...
@@ -345,7 +384,13 @@ int savePlaylist(FILE * fp, char * file) {
}
for
(
i
=
0
;
i
<
playlist
.
length
;
i
++
)
{
fprintf
(
fileP
,
"%s
\n
"
,(
playlist
.
songs
[
i
])
->
file
);
if
(
playlist_saveAbsolutePaths
)
{
fprintf
(
fileP
,
"%s%s
\n
"
,
musicDir
,
(
playlist
.
songs
[
i
])
->
file
);
}
else
{
fprintf
(
fileP
,
"%s
\n
"
,(
playlist
.
songs
[
i
])
->
file
);
}
}
fclose
(
fileP
);
...
...
@@ -364,10 +409,16 @@ int loadPlaylist(FILE * fp, char * file) {
}
while
((
s
[
slength
]
=
fgetc
(
fileP
))
!=
EOF
)
{
if
(
s
[
slength
]
==
'\n'
)
{
if
(
s
[
slength
]
==
'\n'
||
s
[
slength
]
==
'\0'
)
{
s
[
slength
]
=
'\0'
;
if
((
addToPlaylist
(
fp
,
s
))
<
0
)
return
-
1
;
if
(
strncmp
(
s
,
musicDir
,
strlen
(
musicDir
))
==
0
)
{
strcpy
(
s
,
&
(
s
[
strlen
(
musicDir
)]));
}
slength
=
0
;
if
(
s
[
0
]
==
PLAYLIST_COMMENT
&&
!
getSong
(
s
))
continue
;
if
((
addToPlaylist
(
fp
,
s
))
<
0
)
{
return
-
1
;
}
}
else
if
(
slength
==
MAXPATHLEN
)
{
s
[
slength
]
=
'\0'
;
...
...
playlist.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -63,6 +63,10 @@ int savePlaylist(FILE * fp, char * file);
int
deletePlaylist
(
FILE
*
fp
,
char
*
file
);
void
deleteASongFromPlaylist
(
Song
*
song
);
void
deleteSongsFromPlaylist
(
SongList
*
songList
);
int
loadPlaylist
(
FILE
*
fp
,
char
*
file
);
int
getPlaylistRepeatStatus
();
...
...
song.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
song.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
stats.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
stats.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
tables.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -34,9 +34,28 @@ List * albumTable;
List
*
artistTable
;
List
*
songTable
;
typedef
struct
_ArtistData
{
SongList
*
songs
;
SongList
*
albums
;
}
ArtistData
;
ArtistData
*
newArtistData
()
{
ArtistData
*
ad
=
malloc
(
sizeof
(
ArtistData
));
ad
->
songs
=
makeList
(
NULL
);
ad
->
albums
=
makeList
(
freeList
);
return
ad
;
}
void
freeArtistData
(
ArtistData
*
ad
)
{
freeList
(
ad
->
songs
);
freeList
(
ad
->
albums
);
}
void
initTables
()
{
albumTable
=
makeList
(
freeList
);
artistTable
=
makeList
(
freeList
);
artistTable
=
makeList
(
(
ListFreeDataFunc
*
)
freeArtistData
);
songTable
=
makeList
(
NULL
);
}
...
...
@@ -46,32 +65,35 @@ void closeTables() {
freeList
(
songTable
);
}
void
addSongTo
AlbumTable
(
Song
*
song
)
{
void
addSongTo
SomeAlbumTable
(
List
*
table
,
Song
*
song
)
{
void
*
album
;
if
(
!
song
->
tag
)
return
;
if
(
!
song
->
tag
->
title
)
return
;
if
(
findInList
(
albumT
able
,
song
->
tag
->
album
,
&
album
))
{
if
(
!
song
->
tag
->
title
||
!
strlen
(
song
->
tag
->
title
)
)
return
;
if
(
findInList
(
t
able
,
song
->
tag
->
album
,
&
album
))
{
insertInList
((
SongList
*
)
album
,
song
->
file
,
song
);
}
else
{
album
=
makeList
(
NULL
);
insertInList
(
albumT
able
,
song
->
tag
->
album
,
album
);
insertInList
(
t
able
,
song
->
tag
->
album
,
album
);
insertInList
(
album
,
song
->
file
,
song
);
}
}
void
addSongToAlbumTable
(
Song
*
song
)
{
addSongToSomeAlbumTable
(
albumTable
,
song
);
}
void
addSongToArtistTable
(
Song
*
song
)
{
void
*
artist
;
if
(
!
song
->
tag
)
return
;
if
(
!
song
->
tag
->
artist
)
return
;
if
(
findInList
(
artistTable
,
song
->
tag
->
artist
,
&
artist
))
{
insertInList
((
SongList
*
)
artist
,
song
->
file
,
song
);
}
else
{
artist
=
makeList
(
NULL
);
if
(
!
song
->
tag
->
artist
||
!
strlen
(
song
->
tag
->
artist
))
return
;
if
(
!
findInList
(
artistTable
,
song
->
tag
->
artist
,
&
artist
))
{
artist
=
newArtistData
();
insertInList
(
artistTable
,
song
->
tag
->
artist
,
artist
);
insertInList
(
artist
,
song
->
file
,
song
);
}
insertInList
(((
ArtistData
*
)
artist
)
->
songs
,
song
->
file
,
song
);
addSongToSomeAlbumTable
(((
ArtistData
*
)
artist
)
->
albums
,
song
);
}
void
addSongToSongTable
(
Song
*
song
)
{
...
...
@@ -101,7 +123,7 @@ int findAndPrintSongsInArtistTable(FILE * fp,char * find) {
return
-
1
;
}
return
printSongInfoFromList
(
fp
,(
SongList
*
)
artist
);
return
printSongInfoFromList
(
fp
,(
(
ArtistData
*
)
artist
)
->
songs
);
}
int
findAndPrintSongsInTable
(
FILE
*
fp
,
char
*
table
,
char
*
find
)
{
...
...
@@ -142,7 +164,7 @@ int searchForSongsInAlbumTable(FILE * fp,char * search) {
}
int
searchForSongsInArtistTable
(
FILE
*
fp
,
char
*
search
)
{
SongList
*
artist
;
ArtistData
*
artist
;
ListNode
*
node
=
artistTable
->
firstNode
;
char
*
dup
;
char
*
dupSearch
=
strDupToUpper
(
search
);
...
...
@@ -150,8 +172,8 @@ int searchForSongsInArtistTable(FILE * fp,char * search) {
while
(
node
)
{
dup
=
strDupToUpper
(
node
->
key
);
if
(
strstr
(
dup
,
dupSearch
))
{
artist
=
(
SongList
*
)
node
->
data
;
if
(
printSongInfoFromList
(
fp
,
artist
)
<
0
)
{
artist
=
(
ArtistData
*
)
node
->
data
;
if
(
printSongInfoFromList
(
fp
,
artist
->
songs
)
<
0
)
{
free
(
dup
);
free
(
dupSearch
);
return
-
1
;
...
...
@@ -174,17 +196,17 @@ int searchForSongsInSongTableByTitle(FILE * fp,char * search) {
while
(
node
)
{
song
=
(
Song
*
)
node
->
data
;
if
(
!
song
->
tag
)
break
;
if
(
!
song
->
tag
->
title
)
break
;
dup
=
strDupToUpper
(
song
->
tag
->
title
);
if
(
strstr
(
dup
,
dupSearch
)
)
{
if
(
printSongInfo
(
fp
,
song
)
<
0
)
{
free
(
dup
);
free
(
dupSearch
)
;
return
-
1
;
if
(
song
->
tag
&&
song
->
tag
->
title
&&
strlen
(
song
->
tag
->
title
))
{
dup
=
strDupToUpper
(
song
->
tag
->
title
)
;
if
(
strstr
(
dup
,
dupSearch
))
{
if
(
printSongInfo
(
fp
,
song
)
<
0
)
{
free
(
dup
);
free
(
dupSearch
);
return
-
1
;
}
}
free
(
dup
);
}
free
(
dup
);
node
=
node
->
nextNode
;
}
...
...
@@ -236,27 +258,33 @@ int searchForSongsInTable(FILE * fp, char * table, char * search) {
return
-
1
;
}
void
removeSongFrom
AlbumTable
(
Song
*
song
)
{
void
removeSongFrom
SomeAlbumTable
(
List
*
table
,
Song
*
song
)
{
void
*
album
;
if
(
!
song
->
tag
)
return
;
if
(
!
song
->
tag
->
album
)
return
;
if
(
findInList
(
albumT
able
,
song
->
tag
->
album
,
&
album
))
{
if
(
!
song
->
tag
->
album
||
!
strlen
(
song
->
tag
->
album
)
)
return
;
if
(
findInList
(
t
able
,
song
->
tag
->
album
,
&
album
))
{
deleteFromList
((
SongList
*
)
album
,
song
->
file
);
if
(((
SongList
*
)
album
)
->
numberOfNodes
==
0
)
{
deleteFromList
(
albumT
able
,
song
->
tag
->
album
);
deleteFromList
(
t
able
,
song
->
tag
->
album
);
}
}
}
void
removeSongFromAlbumTable
(
Song
*
song
)
{
removeSongFromSomeAlbumTable
(
albumTable
,
song
);
}
void
removeSongFromArtistTable
(
Song
*
song
)
{
void
*
artist
;
if
(
!
song
->
tag
)
return
;
if
(
!
song
->
tag
->
artist
)
return
;
if
(
!
song
->
tag
->
artist
||
!
strlen
(
song
->
tag
->
artist
)
)
return
;
if
(
findInList
(
artistTable
,
song
->
tag
->
artist
,
&
artist
))
{
deleteFromList
((
SongList
*
)
artist
,
song
->
file
);
if
(((
SongList
*
)
artist
)
->
numberOfNodes
==
0
)
{
deleteFromList
(((
ArtistData
*
)
artist
)
->
songs
,
song
->
file
);
removeSongFromSomeAlbumTable
(((
ArtistData
*
)
artist
)
->
albums
,
song
);
if
(((
ArtistData
*
)
artist
)
->
songs
->
numberOfNodes
==
0
)
{
deleteFromList
(
artistTable
,
song
->
tag
->
artist
);
}
}
...
...
@@ -315,3 +343,60 @@ Song * getSongFromSongTable(char * file) {
return
song
;
}
int
printAllArtists
(
FILE
*
fp
)
{
ListNode
*
node
=
artistTable
->
firstNode
;
while
(
node
)
{
myfprintf
(
fp
,
"Artist: %s
\n
"
,
node
->
key
);
node
=
node
->
nextNode
;
}
return
0
;
}
int
printAllAlbums
(
FILE
*
fp
,
char
*
artist
)
{
if
(
artist
==
NULL
)
{
ListNode
*
node
=
albumTable
->
firstNode
;
while
(
node
)
{
myfprintf
(
fp
,
"Album: %s
\n
"
,
node
->
key
);
node
=
node
->
nextNode
;
}
}
else
{
void
*
ad
;
if
(
findInList
(
artistTable
,
artist
,
&
ad
))
{
ListNode
*
node
=
((
ArtistData
*
)
ad
)
->
albums
->
firstNode
;
while
(
node
)
{
myfprintf
(
fp
,
"Album: %s
\n
"
,
node
->
key
);
node
=
node
->
nextNode
;
}
}
else
{
myfprintf
(
fp
,
"%s artist
\"
%s
\"
not found
\n
"
,
COMMAND_RESPOND_ERROR
,
artist
);
return
-
1
;
}
}
return
0
;
}
int
printAllKeysOfTable
(
FILE
*
fp
,
char
*
table
,
char
*
arg1
)
{
if
(
strcmp
(
table
,
TABLES_ARTIST
)
==
0
)
{
if
(
arg1
!=
NULL
)
{
myfprintf
(
fp
,
"%s %s table takes no args
\n
"
,
COMMAND_RESPOND_ERROR
);
return
-
1
;
}
return
printAllArtists
(
fp
);
}
else
if
(
strcmp
(
table
,
TABLES_ALBUM
)
==
0
)
{
return
printAllAlbums
(
fp
,
arg1
);
}
else
{
myfprintf
(
fp
,
"%s table
\"
%s
\"
does not exist or not available for listing
\n
"
);
return
-
1
;
}
}
tables.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -46,4 +46,6 @@ unsigned long numberOfAlbums();
Song
*
getSongFromSongTable
(
char
*
file
);
int
printAllKeysOfTable
(
FILE
*
fp
,
char
*
table
,
char
*
arg1
);
#endif
tag.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
tag.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
utils.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
utils.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
volume.c
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
volume.h
View file @
53f5a137
/* the Music Player Daemon (MPD)
* (c)2003 by Warren Dukes (shank@mercury.chem.pitt.edu)
* This project's homepage is: http://
musicpd.sourceforge.net
* This project's homepage is: http://
www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
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