Changes of Revision 6
ncmpc.changes
Changed
x
1
2
-------------------------------------------------------------------
3
+Tue Aug 26 14:02:26 UTC 2014 - pascal.bleser@opensuse.org
4
+
5
+- enable chat screen feature from 0.21
6
+- update to 0.24:
7
+ * fix crash on "jump" (hotkey ".")
8
+ * save keys to path specified by --key-file
9
+- changes from 0.22:
10
+ * rename "playlist" to "queue"
11
+ * remove useless "Connected to ..." message
12
+ * require libmpdclient 2.3, MPD 0.16
13
+ * patched color line-flags
14
+ * configuration option "search-format"
15
+ * remove broken leoslyrics plugin
16
+ * show audio format in song screen
17
+
18
+-------------------------------------------------------------------
19
Mon Feb 10 09:51:54 UTC 2014 - pascal.bleser@opensuse.org
20
21
- update to 0.21:
22
ncmpc.spec
Changed
35
1
2
3
4
Name: ncmpc
5
-Version: 0.21
6
+Version: 0.24
7
Release: 1
8
Summary: Curses Client for the Music Player Daemon
9
License: GPL-2.0+
10
Group: Productivity/Multimedia/Sound/Players
11
-Source: http://www.musicpd.org/download/ncmpc/0/ncmpc-%{version}.tar.bz2
12
+Source: http://www.musicpd.org/download/ncmpc/0/ncmpc-%{version}.tar.xz
13
URL: http://mpd.wikia.com/wiki/Client:Ncmpc
14
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
15
-BuildRequires: glib2-devel libmpdclient-devel pkgconfig ncurses-devel
16
+BuildRequires: glib2-devel
17
+BuildRequires: libmpdclient-devel >= 2.3
18
+BuildRequires: pkgconfig
19
+BuildRequires: ncurses-devel
20
21
%description
22
ncmpc is a curses client for the Music Player Daemon (MPD). ncmpc connects to
23
24
--enable-key-screen \
25
--disable-lyrics-screen \
26
--enable-outputs-screen \
27
+ --enable-chat-screen \
28
--disable-werror
29
30
-%__make %{?_smp_mflags}
31
+%__make %{?_smp_mflags} V=1
32
33
%install
34
%makeinstall
35
ncmpc-0.21.tar.bz2/build/mkinstalldirs
Deleted
164
1
2
-#! /bin/sh
3
-# mkinstalldirs --- make directory hierarchy
4
-
5
-scriptversion=2009-04-28.21; # UTC
6
-
7
-# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
8
-# Created: 1993-05-16
9
-# Public domain.
10
-#
11
-# This file is maintained in Automake, please report
12
-# bugs to <bug-automake@gnu.org> or send patches to
13
-# <automake-patches@gnu.org>.
14
-
15
-nl='
16
-'
17
-IFS=" "" $nl"
18
-errstatus=0
19
-dirmode=
20
-
21
-usage="\
22
-Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
23
-
24
-Create each directory DIR (with mode MODE, if specified), including all
25
-leading file name components.
26
-
27
-Report bugs to <bug-automake@gnu.org>."
28
-
29
-# process command line arguments
30
-while test $# -gt 0 ; do
31
- case $1 in
32
- -h | --help | --h*) # -h for help
33
- echo "$usage"
34
- exit $?
35
- ;;
36
- -m) # -m PERM arg
37
- shift
38
- test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
39
- dirmode=$1
40
- shift
41
- ;;
42
- --version)
43
- echo "$0 $scriptversion"
44
- exit $?
45
- ;;
46
- --) # stop option processing
47
- shift
48
- break
49
- ;;
50
- -*) # unknown option
51
- echo "$usage" 1>&2
52
- exit 1
53
- ;;
54
- *) # first non-opt arg
55
- break
56
- ;;
57
- esac
58
-done
59
-
60
-for file
61
-do
62
- if test -d "$file"; then
63
- shift
64
- else
65
- break
66
- fi
67
-done
68
-
69
-case $# in
70
- 0) exit 0 ;;
71
-esac
72
-
73
-# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
74
-# mkdir -p a/c at the same time, both will detect that a is missing,
75
-# one will create a, then the other will try to create a and die with
76
-# a "File exists" error. This is a problem when calling mkinstalldirs
77
-# from a parallel make. We use --version in the probe to restrict
78
-# ourselves to GNU mkdir, which is thread-safe.
79
-case $dirmode in
80
- '')
81
- if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
82
- echo "mkdir -p -- $*"
83
- exec mkdir -p -- "$@"
84
- else
85
- # On NextStep and OpenStep, the `mkdir' command does not
86
- # recognize any option. It will interpret all options as
87
- # directories to create, and then abort because `.' already
88
- # exists.
89
- test -d ./-p && rmdir ./-p
90
- test -d ./--version && rmdir ./--version
91
- fi
92
- ;;
93
- *)
94
- if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
95
- test ! -d ./--version; then
96
- echo "mkdir -m $dirmode -p -- $*"
97
- exec mkdir -m "$dirmode" -p -- "$@"
98
- else
99
- # Clean up after NextStep and OpenStep mkdir.
100
- for d in ./-m ./-p ./--version "./$dirmode";
101
- do
102
- test -d $d && rmdir $d
103
- done
104
- fi
105
- ;;
106
-esac
107
-
108
-for file
109
-do
110
- case $file in
111
- /*) pathcomp=/ ;;
112
- *) pathcomp= ;;
113
- esac
114
- oIFS=$IFS
115
- IFS=/
116
- set fnord $file
117
- shift
118
- IFS=$oIFS
119
-
120
- for d
121
- do
122
- test "x$d" = x && continue
123
-
124
- pathcomp=$pathcomp$d
125
- case $pathcomp in
126
- -*) pathcomp=./$pathcomp ;;
127
- esac
128
-
129
- if test ! -d "$pathcomp"; then
130
- echo "mkdir $pathcomp"
131
-
132
- mkdir "$pathcomp" || lasterr=$?
133
-
134
- if test ! -d "$pathcomp"; then
135
- errstatus=$lasterr
136
- else
137
- if test ! -z "$dirmode"; then
138
- echo "chmod $dirmode $pathcomp"
139
- lasterr=
140
- chmod "$dirmode" "$pathcomp" || lasterr=$?
141
-
142
- if test ! -z "$lasterr"; then
143
- errstatus=$lasterr
144
- fi
145
- fi
146
- fi
147
- fi
148
-
149
- pathcomp=$pathcomp/
150
- done
151
-done
152
-
153
-exit $errstatus
154
-
155
-# Local Variables:
156
-# mode: shell-script
157
-# sh-indentation: 2
158
-# eval: (add-hook 'write-file-hooks 'time-stamp)
159
-# time-stamp-start: "scriptversion="
160
-# time-stamp-format: "%:y-%02m-%02d.%02H"
161
-# time-stamp-time-zone: "UTC"
162
-# time-stamp-end: "; # UTC"
163
-# End:
164
ncmpc-0.21.tar.bz2/lyrics/15-leoslyrics.sh
Deleted
23
1
2
-#!/bin/bash
3
-
4
-set -e
5
-
6
-search="http://api.leoslyrics.com/api_search.php?auth=ncmpc"
7
-lyrics="http://api.leoslyrics.com/api_lyrics.php?auth=ncmpc"
8
-cache="$HOME/.lyrics/$1 - $2.txt"
9
-
10
-hid=$(wget -q -O- "$search&artist=$1&songtitle=$2" |
11
- sed -n 's/.*hid="\([^"]*\)".*exactMatch="true".*/\1/p' |
12
- head -n 1)
13
-
14
-test "$hid"
15
-
16
-mkdir -p "$(dirname "$cache")"
17
-
18
-wget -q -O- "$lyrics&hid=$hid" | awk '
19
- /<text>/ { go=1; sub(".*<text>", "") };
20
- /<\/text>/ { go=0; sub("</text>.*", "") };
21
- go { sub("
", ""); print };
22
-' | tee "$cache"
23
ncmpc-0.21.tar.bz2/lyrics/30-leoslyrics.py
Deleted
98
1
2
-#!/usr/bin/python
3
-#
4
-# (c) 2004-2008 The Music Player Daemon Project
5
-# http://www.musicpd.org/
6
-#
7
-# This program is free software; you can redistribute it and/or modify
8
-# it under the terms of the GNU General Public License as published by
9
-# the Free Software Foundation; either version 2 of the License, or
10
-# (at your option) any later version.
11
-#
12
-# This program is distributed in the hope that it will be useful,
13
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
-# GNU General Public License for more details.
16
-# You should have received a copy of the GNU General Public License
17
-# along with this program; if not, write to the Free Software
18
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
-#
20
-
21
-#
22
-# Load lyrics from leoslyrics.com
23
-#
24
-
25
-from sys import argv, exit, stderr
26
-from urllib import urlencode, urlopen
27
-from xml.sax import make_parser, SAXException
28
-from xml.sax.handler import ContentHandler
29
-
30
-class SearchContentHandler(ContentHandler):
31
- def __init__(self):
32
- self.code = None
33
- self.hid = None
34
-
35
- def startElement(self, name, attrs):
36
- if name == 'response':
37
- self.code = int(attrs['code'])
38
- elif name == 'result':
39
- if self.hid is None or attrs['exactMatch'] == 'true':
40
- self.hid = attrs['hid']
41
-
42
-def search(artist, title):
43
- query = urlencode({'auth': 'ncmpc',
44
- 'artist': artist,
45
- 'songtitle': title})
46
- url = "http://api.leoslyrics.com/api_search.php?" + query
47
- try:
48
- f = urlopen(url)
49
- except IOError:
50
- stderr.write("Failed to connect to http://api.leoslyrics.com, it seems down!\n")
51
- exit(1)
52
- handler = SearchContentHandler()
53
- parser = make_parser()
54
- parser.setContentHandler(handler)
55
- try:
56
- parser.parse(f)
57
- except SAXException:
58
- stderr.write("Failed to parse the search result!\n")
59
- exit(1)
60
- return handler.hid
61
-
62
-class LyricsContentHandler(ContentHandler):
63
- def __init__(self):
64
- self.code = None
65
- self.is_text = False
66
- self.text = None
67
-
68
- def startElement(self, name, attrs):
69
- if name == 'text':
70
- self.text = ''
71
- self.is_text = True
72
- else:
73
- self.is_text = False
74
-
75
- def characters(self, chars):
76
- if self.is_text:
77
- self.text += chars
78
-
79
-def lyrics(hid):
80
- query = urlencode({'auth': 'ncmpc',
81
- 'hid': hid})
82
- url = "http://api.leoslyrics.com/api_lyrics.php?" + query
83
- f = urlopen(url)
84
- handler = LyricsContentHandler()
85
- parser = make_parser()
86
- parser.setContentHandler(handler)
87
- try:
88
- parser.parse(f)
89
- except SAXException:
90
- stderr.write("Failed to parse the lyrics!\n")
91
- exit(1)
92
- return handler.text
93
-
94
-hid = search(argv[1], argv[2])
95
-if hid is None:
96
- exit(69)
97
-print lyrics(hid).encode('utf-8').rstrip()
98
ncmpc-0.21.tar.bz2/src/glib_compat.h
Deleted
64
1
2
-/*
3
- * Copyright (C) 2003-2009 The Music Player Daemon Project
4
- * http://www.musicpd.org
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License along
17
- * with this program; if not, write to the Free Software Foundation, Inc.,
18
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
- */
20
-
21
-/*
22
- * Compatibility with older GLib versions. Some of this isn't
23
- * implemented properly, just "good enough" to allow users with older
24
- * operating systems to run MPD.
25
- */
26
-
27
-#ifndef MPD_GLIB_COMPAT_H
28
-#define MPD_GLIB_COMPAT_H
29
-
30
-#include <glib.h>
31
-
32
-#if !GLIB_CHECK_VERSION(2,14,0)
33
-
34
-#define g_queue_clear(q) do { g_queue_free(q); q = g_queue_new(); } while (0)
35
-
36
-static inline guint
37
-g_timeout_add_seconds(guint interval, GSourceFunc function, gpointer data)
38
-{
39
- return g_timeout_add(interval * 1000, function, data);
40
-}
41
-
42
-#endif /* !2.14 */
43
-
44
-#if !GLIB_CHECK_VERSION(2,16,0)
45
-
46
-static inline void
47
-g_propagate_prefixed_error(GError **dest_r, GError *src,
48
- G_GNUC_UNUSED const gchar *format, ...)
49
-{
50
- g_propagate_error(dest_r, src);
51
-}
52
-
53
-static inline char *
54
-g_uri_escape_string(const char *unescaped,
55
- G_GNUC_UNUSED const char *reserved_chars_allowed,
56
- G_GNUC_UNUSED gboolean allow_utf8)
57
-{
58
- return g_strdup(unescaped);
59
-}
60
-
61
-#endif /* !2.16 */
62
-
63
-#endif
64
ncmpc-0.21.tar.bz2/src/resolver.c
Deleted
198
1
2
-/* libmpdclient
3
- (c) 2008 Max Kellermann <max@duempel.org>
4
- This project's homepage is: http://www.musicpd.org
5
-
6
- Redistribution and use in source and binary forms, with or without
7
- modification, are permitted provided that the following conditions
8
- are met:
9
-
10
- - Redistributions of source code must retain the above copyright
11
- notice, this list of conditions and the following disclaimer.
12
-
13
- - Redistributions in binary form must reproduce the above copyright
14
- notice, this list of conditions and the following disclaimer in the
15
- documentation and/or other materials provided with the distribution.
16
-
17
- - Neither the name of the Music Player Daemon nor the names of its
18
- contributors may be used to endorse or promote products derived from
19
- this software without specific prior written permission.
20
-
21
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22
- ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
25
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
28
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
-*/
33
-
34
-#include "config.h"
35
-#include "resolver.h"
36
-
37
-#include <stdio.h>
38
-#include <stdlib.h>
39
-#include <string.h>
40
-
41
-#ifdef WIN32
42
-# include <ws2tcpip.h>
43
-# include <winsock.h>
44
-#else
45
-# include <netdb.h>
46
-# include <netinet/in.h>
47
-# include <arpa/inet.h>
48
-# include <sys/socket.h>
49
-# include <sys/un.h>
50
-# include <netdb.h>
51
-#endif
52
-
53
-#ifndef MPD_NO_GAI
54
-# ifdef AI_ADDRCONFIG
55
-# define MPD_HAVE_GAI
56
-# endif
57
-#endif
58
-
59
-struct resolver {
60
- enum {
61
- TYPE_ZERO, TYPE_ONE, TYPE_ANY
62
- } type;
63
-
64
-#ifdef MPD_HAVE_GAI
65
- struct addrinfo *ai;
66
- const struct addrinfo *next;
67
-#else
68
- struct sockaddr_in sin;
69
-#endif
70
-
71
- struct resolver_address current;
72
-
73
-#ifndef WIN32
74
- struct sockaddr_un saun;
75
-#endif
76
-};
77
-
78
-struct resolver *
79
-resolver_new(const char *host, int port)
80
-{
81
- struct resolver *resolver;
82
-
83
- resolver = malloc(sizeof(*resolver));
84
- if (resolver == NULL)
85
- return NULL;
86
-
87
-#ifndef WIN32
88
- if (host[0] == '/') {
89
- size_t path_length = strlen(host);
90
- if (path_length >= sizeof(resolver->saun.sun_path)) {
91
- free(resolver);
92
- return NULL;
93
- }
94
-
95
- resolver->saun.sun_family = AF_UNIX;
96
- memcpy(resolver->saun.sun_path, host, path_length + 1);
97
-
98
- resolver->current.family = PF_UNIX;
99
- resolver->current.protocol = 0;
100
- resolver->current.addrlen = sizeof(resolver->saun);
101
- resolver->current.addr = (const struct sockaddr *)&resolver->saun;
102
- resolver->type = TYPE_ONE;
103
- } else {
104
-#endif
105
-#ifdef MPD_HAVE_GAI
106
- struct addrinfo hints;
107
- char service[20];
108
- int ret;
109
-
110
- memset(&hints, 0, sizeof(hints));
111
- hints.ai_flags = AI_ADDRCONFIG;
112
- hints.ai_family = PF_UNSPEC;
113
- hints.ai_socktype = SOCK_STREAM;
114
- hints.ai_protocol = IPPROTO_TCP;
115
-
116
- snprintf(service, sizeof(service), "%d", port);
117
-
118
- ret = getaddrinfo(host, service, &hints, &resolver->ai);
119
- if (ret != 0) {
120
- free(resolver);
121
- return NULL;
122
- }
123
-
124
- resolver->next = resolver->ai;
125
- resolver->type = TYPE_ANY;
126
-#else
127
- const struct hostent *he;
128
-
129
- he = gethostbyname(host);
130
- if (he == NULL) {
131
- free(resolver);
132
- return NULL;
133
- }
134
-
135
- if (he->h_addrtype != AF_INET) {
136
- free(resolver);
137
- return NULL;
138
- }
139
-
140
-
141
- memset(&resolver->sin, 0, sizeof(resolver->sin));
142
- resolver->sin.sin_family = AF_INET;
143
- resolver->sin.sin_port = htons(port);
144
- memcpy((char *)&resolver->sin.sin_addr.s_addr,
145
- (char *)he->h_addr, he->h_length);
146
-
147
- resolver->current.family = PF_INET;
148
- resolver->current.protocol = 0;
149
- resolver->current.addrlen = sizeof(resolver->sin);
150
- resolver->current.addr = (const struct sockaddr *)&resolver->sin;
151
-
152
- resolver->type = TYPE_ONE;
153
-#endif
154
-#ifndef WIN32
155
- }
156
-#endif
157
-
158
- return resolver;
159
-}
160
-
161
-void
162
-resolver_free(struct resolver *resolver)
163
-{
164
-#ifdef MPD_HAVE_GAI
165
- if (resolver->type == TYPE_ANY)
166
- freeaddrinfo(resolver->ai);
167
-#endif
168
- free(resolver);
169
-}
170
-
171
-const struct resolver_address *
172
-resolver_next(struct resolver *resolver)
173
-{
174
- if (resolver->type == TYPE_ZERO)
175
- return NULL;
176
-
177
- if (resolver->type == TYPE_ONE) {
178
- resolver->type = TYPE_ZERO;
179
- return &resolver->current;
180
- }
181
-
182
-#ifdef MPD_HAVE_GAI
183
- if (resolver->next == NULL)
184
- return NULL;
185
-
186
- resolver->current.family = resolver->next->ai_family;
187
- resolver->current.protocol = resolver->next->ai_protocol;
188
- resolver->current.addrlen = resolver->next->ai_addrlen;
189
- resolver->current.addr = resolver->next->ai_addr;
190
-
191
- resolver->next = resolver->next->ai_next;
192
-
193
- return &resolver->current;
194
-#else
195
- return NULL;
196
-#endif
197
-}
198
ncmpc-0.21.tar.bz2/src/resolver.h
Deleted
58
1
2
-/* libmpdclient
3
- (c) 2008 Max Kellermann <max@duempel.org>
4
- This project's homepage is: http://www.musicpd.org
5
-
6
- Redistribution and use in source and binary forms, with or without
7
- modification, are permitted provided that the following conditions
8
- are met:
9
-
10
- - Redistributions of source code must retain the above copyright
11
- notice, this list of conditions and the following disclaimer.
12
-
13
- - Redistributions in binary form must reproduce the above copyright
14
- notice, this list of conditions and the following disclaimer in the
15
- documentation and/or other materials provided with the distribution.
16
-
17
- - Neither the name of the Music Player Daemon nor the names of its
18
- contributors may be used to endorse or promote products derived from
19
- this software without specific prior written permission.
20
-
21
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22
- ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
25
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
28
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
-*/
33
-
34
-#ifndef LIBMPDCLIENT_RESOLVER_H
35
-#define LIBMPDCLIENT_RESOLVER_H
36
-
37
-#include <stddef.h>
38
-
39
-struct resolver;
40
-
41
-struct resolver_address {
42
- int family;
43
- int protocol;
44
- size_t addrlen;
45
- const struct sockaddr *addr;
46
-};
47
-
48
-struct resolver *
49
-resolver_new(const char *host, int port);
50
-
51
-void
52
-resolver_free(struct resolver *resolver);
53
-
54
-const struct resolver_address *
55
-resolver_next(struct resolver *resolver);
56
-
57
-#endif
58
ncmpc-0.21.tar.bz2/INSTALL -> ncmpc-0.24.tar.xz/INSTALL
Changed
10
1
2
------------
3
4
* a C99 compliant compiler (e.g. gcc)
5
- * libmpdclient 2.2
6
+ * libmpdclient 2.3
7
* ncurses (ncursesw for unicode / wide character support)
8
* GLib 2.14
9
10
ncmpc-0.21.tar.bz2/Makefile.am -> ncmpc-0.24.tar.xz/Makefile.am
Changed
38
1
2
po
3
4
ACLOCAL_AMFLAGS = -I m4
5
-AUTOMAKE_OPTIONS = foreign 1.10 dist-bzip2 subdir-objects
6
+AUTOMAKE_OPTIONS = foreign 1.11 dist-xz subdir-objects
7
8
AM_CPPFLAGS = \
9
$(LIBMPDCLIENT_CFLAGS) \
10
11
-DSYSCONFDIR=\""$(sysconfdir)"\"
12
13
ncmpc_headers = \
14
- src/glib_compat.h \
15
- src/resolver.h \
16
src/gidle.h \
17
src/mpdclient.h \
18
src/playlist.h \
19
20
$(LIBLIRCCLIENT_LIBS)
21
22
src_ncmpc_SOURCES = \
23
+ src/Compiler.h \
24
$(ncmpc_headers) \
25
- src/resolver.c \
26
src/main.c \
27
src/gidle.c \
28
src/mpdclient.c \
29
30
# lyrics plugins
31
#
32
33
-lyrics_plugins = lyrics/10-hd.sh lyrics/15-leoslyrics.sh lyrics/20-lyricwiki.rb lyrics/30-leoslyrics.py
34
+lyrics_plugins = lyrics/10-hd.sh lyrics/20-lyricwiki.rb
35
36
if ENABLE_LYRICS_SCREEN
37
38
ncmpc-0.21.tar.bz2/Makefile.in -> ncmpc-0.24.tar.xz/Makefile.in
Changed
878
1
2
-# Makefile.in generated by automake 1.11.6 from Makefile.am.
3
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
4
# @configure_input@
5
6
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
7
-# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
8
-# Foundation, Inc.
9
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
10
+
11
# This Makefile.in is free software; the Free Software Foundation
12
# gives unlimited permission to copy and/or distribute it,
13
# with or without modifications, as long as this notice is preserved.
14
15
16
17
VPATH = @srcdir@
18
-am__make_dryrun = \
19
- { \
20
- am__dry=no; \
21
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
22
+am__make_running_with_option = \
23
+ case $${target_option-} in \
24
+ ?) ;; \
25
+ *) echo "am__make_running_with_option: internal error: invalid" \
26
+ "target option '$${target_option-}' specified" >&2; \
27
+ exit 1;; \
28
+ esac; \
29
+ has_opt=no; \
30
+ sane_makeflags=$$MAKEFLAGS; \
31
+ if $(am__is_gnu_make); then \
32
+ sane_makeflags=$$MFLAGS; \
33
+ else \
34
case $$MAKEFLAGS in \
35
*\\[\ \ ]*) \
36
- echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
37
- | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
38
- *) \
39
- for am__flg in $$MAKEFLAGS; do \
40
- case $$am__flg in \
41
- *=*|--*) ;; \
42
- *n*) am__dry=yes; break;; \
43
- esac; \
44
- done;; \
45
+ bs=\\; \
46
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
47
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
48
esac; \
49
- test $$am__dry = yes; \
50
- }
51
+ fi; \
52
+ skip_next=no; \
53
+ strip_trailopt () \
54
+ { \
55
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
56
+ }; \
57
+ for flg in $$sane_makeflags; do \
58
+ test $$skip_next = yes && { skip_next=no; continue; }; \
59
+ case $$flg in \
60
+ *=*|--*) continue;; \
61
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
62
+ -*I?*) strip_trailopt 'I';; \
63
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
64
+ -*O?*) strip_trailopt 'O';; \
65
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
66
+ -*l?*) strip_trailopt 'l';; \
67
+ -[dEDm]) skip_next=yes;; \
68
+ -[JT]) skip_next=yes;; \
69
+ esac; \
70
+ case $$flg in \
71
+ *$$target_option*) has_opt=yes; break;; \
72
+ esac; \
73
+ done; \
74
+ test $$has_opt = yes
75
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
76
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
77
pkgdatadir = $(datadir)/@PACKAGE@
78
pkgincludedir = $(includedir)/@PACKAGE@
79
pkglibdir = $(libdir)/@PACKAGE@
80
81
@ENABLE_LIRC_TRUE@am__append_12 = src/lirc.c
82
check_PROGRAMS = test/run_hscroll$(EXEEXT)
83
subdir = .
84
-DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
85
- $(srcdir)/Makefile.in $(srcdir)/config.h.in \
86
- $(top_srcdir)/configure $(top_srcdir)/doc/doxygen.conf.in \
87
- $(top_srcdir)/src/win/ncmpc_win32_rc.rc.in AUTHORS COPYING \
88
- INSTALL NEWS build/config.guess build/config.sub build/depcomp \
89
- build/install-sh build/missing build/mkinstalldirs
90
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
91
+ $(top_srcdir)/configure $(am__configure_deps) \
92
+ $(srcdir)/config.h.in \
93
+ $(top_srcdir)/src/win/ncmpc_win32_rc.rc.in \
94
+ $(top_srcdir)/doc/doxygen.conf.in $(top_srcdir)/build/depcomp \
95
+ AUTHORS COPYING INSTALL NEWS README build/compile \
96
+ build/config.guess build/config.sub build/depcomp \
97
+ build/install-sh build/missing $(top_srcdir)/build/compile \
98
+ $(top_srcdir)/build/config.guess \
99
+ $(top_srcdir)/build/config.sub $(top_srcdir)/build/install-sh \
100
+ $(top_srcdir)/build/missing
101
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
102
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_append_compile_flags.m4 \
103
$(top_srcdir)/m4/ax_append_flag.m4 \
104
+ $(top_srcdir)/m4/ax_append_link_flags.m4 \
105
$(top_srcdir)/m4/ax_check_compile_flag.m4 \
106
+ $(top_srcdir)/m4/ax_check_link_flag.m4 \
107
$(top_srcdir)/m4/ax_with_curses.m4 \
108
$(top_srcdir)/m4/glib-gettext.m4 $(top_srcdir)/m4/nls.m4 \
109
$(top_srcdir)/m4/pkg.m4 $(top_srcdir)/m4/po.m4 \
110
111
$(ACLOCAL_M4)
112
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
113
configure.lineno config.status.lineno
114
-mkinstalldirs = $(SHELL) $(top_srcdir)/build/mkinstalldirs
115
+mkinstalldirs = $(install_sh) -d
116
CONFIG_HEADER = config.h
117
CONFIG_CLEAN_FILES = src/win/ncmpc_win32_rc.rc doc/doxygen.conf
118
CONFIG_CLEAN_VPATH_FILES =
119
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(lyricsdir)" \
120
"$(DESTDIR)$(man1dir)" "$(DESTDIR)$(docdir)"
121
PROGRAMS = $(bin_PROGRAMS)
122
-am__src_ncmpc_SOURCES_DIST = src/glib_compat.h src/resolver.h \
123
- src/gidle.h src/mpdclient.h src/playlist.h src/filelist.h \
124
- src/options.h src/conf.h src/command.h src/ncu.h src/ncfix.h \
125
+am__src_ncmpc_SOURCES_DIST = src/Compiler.h src/gidle.h \
126
+ src/mpdclient.h src/playlist.h src/filelist.h src/options.h \
127
+ src/conf.h src/command.h src/ncu.h src/ncfix.h \
128
src/player_command.h src/window.h src/title_bar.h \
129
src/progress_bar.h src/status_bar.h src/screen.h \
130
src/screen_status.h src/screen_interface.h src/screen_list.h \
131
132
src/screen_search.h src/screen_song.h src/screen_keydef.h \
133
src/screen_lyrics.h src/screen_outputs.h src/screen_chat.h \
134
src/screen_text.h src/plugin.h src/lyrics.h src/lirc.h \
135
- src/ncmpc_curses.h src/resolver.c src/main.c src/gidle.c \
136
- src/mpdclient.c src/playlist.c src/filelist.c src/options.c \
137
- src/command.c src/ncu.c src/player_command.c src/title_bar.c \
138
+ src/ncmpc_curses.h src/main.c src/gidle.c src/mpdclient.c \
139
+ src/playlist.c src/filelist.c src/options.c src/command.c \
140
+ src/ncu.c src/player_command.c src/title_bar.c \
141
src/progress_bar.c src/status_bar.c src/screen.c \
142
src/screen_status.c src/screen_list.c src/screen_find.c \
143
src/screen_utils.c src/screen_client.c src/screen_queue.c \
144
145
@ENABLE_OUTPUTS_SCREEN_TRUE@ src/screen_outputs.$(OBJEXT)
146
@ENABLE_CHAT_SCREEN_TRUE@am__objects_12 = src/screen_chat.$(OBJEXT)
147
@ENABLE_LIRC_TRUE@am__objects_13 = src/lirc.$(OBJEXT)
148
-am_src_ncmpc_OBJECTS = $(am__objects_1) src/resolver.$(OBJEXT) \
149
- src/main.$(OBJEXT) src/gidle.$(OBJEXT) src/mpdclient.$(OBJEXT) \
150
+am_src_ncmpc_OBJECTS = $(am__objects_1) src/main.$(OBJEXT) \
151
+ src/gidle.$(OBJEXT) src/mpdclient.$(OBJEXT) \
152
src/playlist.$(OBJEXT) src/filelist.$(OBJEXT) \
153
src/options.$(OBJEXT) src/command.$(OBJEXT) src/ncu.$(OBJEXT) \
154
src/player_command.$(OBJEXT) src/title_bar.$(OBJEXT) \
155
156
$(am__cd) "$$dir" && rm -f $$files; }; \
157
}
158
SCRIPTS = $(lyrics_SCRIPTS)
159
+AM_V_P = $(am__v_P_@AM_V@)
160
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
161
+am__v_P_0 = false
162
+am__v_P_1 = :
163
+AM_V_GEN = $(am__v_GEN_@AM_V@)
164
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
165
+am__v_GEN_0 = @echo " GEN " $@;
166
+am__v_GEN_1 =
167
+AM_V_at = $(am__v_at_@AM_V@)
168
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
169
+am__v_at_0 = @
170
+am__v_at_1 =
171
DEFAULT_INCLUDES = -I.@am__isrc@
172
depcomp = $(SHELL) $(top_srcdir)/build/depcomp
173
am__depfiles_maybe = depfiles
174
am__mv = mv -f
175
+AM_V_lt = $(am__v_lt_@AM_V@)
176
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
177
+am__v_lt_0 = --silent
178
+am__v_lt_1 =
179
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
180
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
181
+AM_V_CC = $(am__v_CC_@AM_V@)
182
+am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
183
+am__v_CC_0 = @echo " CC " $@;
184
+am__v_CC_1 =
185
CCLD = $(CC)
186
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
187
+AM_V_CCLD = $(am__v_CCLD_@AM_V@)
188
+am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
189
+am__v_CCLD_0 = @echo " CCLD " $@;
190
+am__v_CCLD_1 =
191
SOURCES = $(src_ncmpc_SOURCES) $(test_run_hscroll_SOURCES)
192
DIST_SOURCES = $(am__src_ncmpc_SOURCES_DIST) \
193
$(test_run_hscroll_SOURCES)
194
-RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
195
- html-recursive info-recursive install-data-recursive \
196
- install-dvi-recursive install-exec-recursive \
197
- install-html-recursive install-info-recursive \
198
- install-pdf-recursive install-ps-recursive install-recursive \
199
- installcheck-recursive installdirs-recursive pdf-recursive \
200
- ps-recursive uninstall-recursive
201
+RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
202
+ ctags-recursive dvi-recursive html-recursive info-recursive \
203
+ install-data-recursive install-dvi-recursive \
204
+ install-exec-recursive install-html-recursive \
205
+ install-info-recursive install-pdf-recursive \
206
+ install-ps-recursive install-recursive installcheck-recursive \
207
+ installdirs-recursive pdf-recursive ps-recursive \
208
+ tags-recursive uninstall-recursive
209
am__can_run_installinfo = \
210
case $$AM_UPDATE_INFO_DIR in \
211
n|no|NO) false;; \
212
213
DATA = $(doc_DATA) $(noinst_DATA)
214
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
215
distclean-recursive maintainer-clean-recursive
216
-AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
217
- $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
218
- distdir dist dist-all distcheck
219
+am__recursive_targets = \
220
+ $(RECURSIVE_TARGETS) \
221
+ $(RECURSIVE_CLEAN_TARGETS) \
222
+ $(am__extra_recursive_targets)
223
+AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
224
+ cscope distdir dist dist-all distcheck
225
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
226
+ $(LISP)config.h.in
227
+# Read a list of newline-separated strings from the standard input,
228
+# and print each of them once, without duplicates. Input order is
229
+# *not* preserved.
230
+am__uniquify_input = $(AWK) '\
231
+ BEGIN { nonempty = 0; } \
232
+ { items[$$0] = 1; nonempty = 1; } \
233
+ END { if (nonempty) { for (i in items) print i; }; } \
234
+'
235
+# Make sure the list of sources is unique. This is necessary because,
236
+# e.g., the same source file might be shared among _SOURCES variables
237
+# for different programs/libraries.
238
+am__define_uniq_tagged_files = \
239
+ list='$(am__tagged_files)'; \
240
+ unique=`for i in $$list; do \
241
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
242
+ done | $(am__uniquify_input)`
243
ETAGS = etags
244
CTAGS = ctags
245
+CSCOPE = cscope
246
DIST_SUBDIRS = $(SUBDIRS)
247
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
248
distdir = $(PACKAGE)-$(VERSION)
249
250
&& rm -rf "$(distdir)" \
251
|| { sleep 5 && rm -rf "$(distdir)"; }; \
252
else :; fi
253
+am__post_remove_distdir = $(am__remove_distdir)
254
am__relativize = \
255
dir0=`pwd`; \
256
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
257
258
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
259
done; \
260
reldir="$$dir2"
261
-DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
262
+DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.xz
263
GZIP_ENV = --best
264
+DIST_TARGETS = dist-xz dist-gzip
265
distuninstallcheck_listfiles = find . -type f -print
266
am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
267
| sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
268
269
ACLOCAL = @ACLOCAL@
270
AMTAR = @AMTAR@
271
AM_CFLAGS = @AM_CFLAGS@
272
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
273
AUTOCONF = @AUTOCONF@
274
AUTOHEADER = @AUTOHEADER@
275
AUTOMAKE = @AUTOMAKE@
276
277
PACKAGE_VERSION = @PACKAGE_VERSION@
278
PATH_SEPARATOR = @PATH_SEPARATOR@
279
PKG_CONFIG = @PKG_CONFIG@
280
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
281
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
282
POFILES = @POFILES@
283
POSUB = @POSUB@
284
PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
285
PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
286
+SED = @SED@
287
SET_MAKE = @SET_MAKE@
288
SHELL = @SHELL@
289
STRIP = @STRIP@
290
291
po
292
293
ACLOCAL_AMFLAGS = -I m4
294
-AUTOMAKE_OPTIONS = foreign 1.10 dist-bzip2 subdir-objects
295
+AUTOMAKE_OPTIONS = foreign 1.11 dist-xz subdir-objects
296
AM_CPPFLAGS = \
297
$(LIBMPDCLIENT_CFLAGS) \
298
$(GLIB_CFLAGS) \
299
300
-DSYSCONFDIR=\""$(sysconfdir)"\"
301
302
ncmpc_headers = \
303
- src/glib_compat.h \
304
- src/resolver.h \
305
src/gidle.h \
306
src/mpdclient.h \
307
src/playlist.h \
308
309
$(GLIB_LIBS) \
310
$(LIBLIRCCLIENT_LIBS)
311
312
-src_ncmpc_SOURCES = $(ncmpc_headers) src/resolver.c src/main.c \
313
+src_ncmpc_SOURCES = src/Compiler.h $(ncmpc_headers) src/main.c \
314
src/gidle.c src/mpdclient.c src/playlist.c src/filelist.c \
315
src/options.c src/command.c src/ncu.c src/player_command.c \
316
src/title_bar.c src/progress_bar.c src/status_bar.c \
317
318
#
319
# lyrics plugins
320
#
321
-lyrics_plugins = lyrics/10-hd.sh lyrics/15-leoslyrics.sh lyrics/20-lyricwiki.rb lyrics/30-leoslyrics.py
322
+lyrics_plugins = lyrics/10-hd.sh lyrics/20-lyricwiki.rb
323
@ENABLE_LYRICS_SCREEN_TRUE@lyricsdir = $(lyrics_plugin_dir)
324
@ENABLE_LYRICS_SCREEN_TRUE@lyrics_SCRIPTS = $(lyrics_plugins)
325
326
327
$(am__aclocal_m4_deps):
328
329
config.h: stamp-h1
330
- @if test ! -f $@; then rm -f stamp-h1; else :; fi
331
- @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
332
+ @test -f $@ || rm -f stamp-h1
333
+ @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
334
335
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
336
@rm -f stamp-h1
337
338
fi; \
339
for p in $$list; do echo "$$p $$p"; done | \
340
sed 's/$(EXEEXT)$$//' | \
341
- while read p p1; do if test -f $$p; \
342
- then echo "$$p"; echo "$$p"; else :; fi; \
343
+ while read p p1; do if test -f $$p \
344
+ ; then echo "$$p"; echo "$$p"; else :; fi; \
345
done | \
346
- sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
347
+ sed -e 'p;s,.*/,,;n;h' \
348
+ -e 's|.*|.|' \
349
-e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
350
sed 'N;N;N;s,\n, ,g' | \
351
$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
352
353
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
354
files=`for p in $$list; do echo "$$p"; done | \
355
sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
356
- -e 's/$$/$(EXEEXT)/' `; \
357
+ -e 's/$$/$(EXEEXT)/' \
358
+ `; \
359
test -n "$$list" || exit 0; \
360
echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
361
cd "$(DESTDIR)$(bindir)" && rm -f $$files
362
363
src/$(DEPDIR)/$(am__dirstamp):
364
@$(MKDIR_P) src/$(DEPDIR)
365
@: > src/$(DEPDIR)/$(am__dirstamp)
366
-src/resolver.$(OBJEXT): src/$(am__dirstamp) \
367
- src/$(DEPDIR)/$(am__dirstamp)
368
src/main.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
369
src/gidle.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
370
src/mpdclient.$(OBJEXT): src/$(am__dirstamp) \
371
372
src/screen_chat.$(OBJEXT): src/$(am__dirstamp) \
373
src/$(DEPDIR)/$(am__dirstamp)
374
src/lirc.$(OBJEXT): src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp)
375
+
376
src/ncmpc$(EXEEXT): $(src_ncmpc_OBJECTS) $(src_ncmpc_DEPENDENCIES) $(EXTRA_src_ncmpc_DEPENDENCIES) src/$(am__dirstamp)
377
@rm -f src/ncmpc$(EXEEXT)
378
- $(src_ncmpc_LINK) $(src_ncmpc_OBJECTS) $(src_ncmpc_LDADD) $(LIBS)
379
+ $(AM_V_CCLD)$(src_ncmpc_LINK) $(src_ncmpc_OBJECTS) $(src_ncmpc_LDADD) $(LIBS)
380
test/$(am__dirstamp):
381
@$(MKDIR_P) test
382
@: > test/$(am__dirstamp)
383
384
src/$(DEPDIR)/$(am__dirstamp)
385
src/test_run_hscroll-charset.$(OBJEXT): src/$(am__dirstamp) \
386
src/$(DEPDIR)/$(am__dirstamp)
387
+
388
test/run_hscroll$(EXEEXT): $(test_run_hscroll_OBJECTS) $(test_run_hscroll_DEPENDENCIES) $(EXTRA_test_run_hscroll_DEPENDENCIES) test/$(am__dirstamp)
389
@rm -f test/run_hscroll$(EXEEXT)
390
- $(LINK) $(test_run_hscroll_OBJECTS) $(test_run_hscroll_LDADD) $(LIBS)
391
+ $(AM_V_CCLD)$(LINK) $(test_run_hscroll_OBJECTS) $(test_run_hscroll_LDADD) $(LIBS)
392
install-lyricsSCRIPTS: $(lyrics_SCRIPTS)
393
@$(NORMAL_INSTALL)
394
@list='$(lyrics_SCRIPTS)'; test -n "$(lyricsdir)" || list=; \
395
396
397
mostlyclean-compile:
398
-rm -f *.$(OBJEXT)
399
- -rm -f src/charset.$(OBJEXT)
400
- -rm -f src/colors.$(OBJEXT)
401
- -rm -f src/command.$(OBJEXT)
402
- -rm -f src/conf.$(OBJEXT)
403
- -rm -f src/filelist.$(OBJEXT)
404
- -rm -f src/gidle.$(OBJEXT)
405
- -rm -f src/hscroll.$(OBJEXT)
406
- -rm -f src/lirc.$(OBJEXT)
407
- -rm -f src/list_window.$(OBJEXT)
408
- -rm -f src/lyrics.$(OBJEXT)
409
- -rm -f src/main.$(OBJEXT)
410
- -rm -f src/match.$(OBJEXT)
411
- -rm -f src/mpdclient.$(OBJEXT)
412
- -rm -f src/ncu.$(OBJEXT)
413
- -rm -f src/options.$(OBJEXT)
414
- -rm -f src/player_command.$(OBJEXT)
415
- -rm -f src/playlist.$(OBJEXT)
416
- -rm -f src/plugin.$(OBJEXT)
417
- -rm -f src/progress_bar.$(OBJEXT)
418
- -rm -f src/resolver.$(OBJEXT)
419
- -rm -f src/screen.$(OBJEXT)
420
- -rm -f src/screen_artist.$(OBJEXT)
421
- -rm -f src/screen_browser.$(OBJEXT)
422
- -rm -f src/screen_chat.$(OBJEXT)
423
- -rm -f src/screen_client.$(OBJEXT)
424
- -rm -f src/screen_file.$(OBJEXT)
425
- -rm -f src/screen_find.$(OBJEXT)
426
- -rm -f src/screen_help.$(OBJEXT)
427
- -rm -f src/screen_keydef.$(OBJEXT)
428
- -rm -f src/screen_list.$(OBJEXT)
429
- -rm -f src/screen_lyrics.$(OBJEXT)
430
- -rm -f src/screen_outputs.$(OBJEXT)
431
- -rm -f src/screen_queue.$(OBJEXT)
432
- -rm -f src/screen_search.$(OBJEXT)
433
- -rm -f src/screen_song.$(OBJEXT)
434
- -rm -f src/screen_status.$(OBJEXT)
435
- -rm -f src/screen_text.$(OBJEXT)
436
- -rm -f src/screen_utils.$(OBJEXT)
437
- -rm -f src/song_paint.$(OBJEXT)
438
- -rm -f src/status_bar.$(OBJEXT)
439
- -rm -f src/strfsong.$(OBJEXT)
440
- -rm -f src/test_run_hscroll-charset.$(OBJEXT)
441
- -rm -f src/test_run_hscroll-hscroll.$(OBJEXT)
442
- -rm -f src/title_bar.$(OBJEXT)
443
- -rm -f src/utils.$(OBJEXT)
444
- -rm -f src/wreadln.$(OBJEXT)
445
- -rm -f test/test_run_hscroll-run_hscroll.$(OBJEXT)
446
+ -rm -f src/*.$(OBJEXT)
447
+ -rm -f test/*.$(OBJEXT)
448
449
distclean-compile:
450
-rm -f *.tab.c
451
452
@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/playlist.Po@am__quote@
453
@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/plugin.Po@am__quote@
454
@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/progress_bar.Po@am__quote@
455
-@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/resolver.Po@am__quote@
456
@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/screen.Po@am__quote@
457
@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/screen_artist.Po@am__quote@
458
@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/screen_browser.Po@am__quote@
459
460
@AMDEP_TRUE@@am__include@ @am__quote@test/$(DEPDIR)/test_run_hscroll-run_hscroll.Po@am__quote@
461
462
.c.o:
463
-@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
464
+@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
465
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
466
@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
467
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
468
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
469
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
470
-@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ $<
471
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
472
473
.c.obj:
474
-@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
475
+@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
476
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
477
@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
478
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
479
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
480
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
481
-@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
482
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
483
484
test/test_run_hscroll-run_hscroll.o: test/run_hscroll.c
485
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test/test_run_hscroll-run_hscroll.o -MD -MP -MF test/$(DEPDIR)/test_run_hscroll-run_hscroll.Tpo -c -o test/test_run_hscroll-run_hscroll.o `test -f 'test/run_hscroll.c' || echo '$(srcdir)/'`test/run_hscroll.c
486
-@am__fastdepCC_TRUE@ $(am__mv) test/$(DEPDIR)/test_run_hscroll-run_hscroll.Tpo test/$(DEPDIR)/test_run_hscroll-run_hscroll.Po
487
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test/run_hscroll.c' object='test/test_run_hscroll-run_hscroll.o' libtool=no @AMDEPBACKSLASH@
488
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test/test_run_hscroll-run_hscroll.o -MD -MP -MF test/$(DEPDIR)/test_run_hscroll-run_hscroll.Tpo -c -o test/test_run_hscroll-run_hscroll.o `test -f 'test/run_hscroll.c' || echo '$(srcdir)/'`test/run_hscroll.c
489
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) test/$(DEPDIR)/test_run_hscroll-run_hscroll.Tpo test/$(DEPDIR)/test_run_hscroll-run_hscroll.Po
490
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test/run_hscroll.c' object='test/test_run_hscroll-run_hscroll.o' libtool=no @AMDEPBACKSLASH@
491
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
492
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test/test_run_hscroll-run_hscroll.o `test -f 'test/run_hscroll.c' || echo '$(srcdir)/'`test/run_hscroll.c
493
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test/test_run_hscroll-run_hscroll.o `test -f 'test/run_hscroll.c' || echo '$(srcdir)/'`test/run_hscroll.c
494
495
test/test_run_hscroll-run_hscroll.obj: test/run_hscroll.c
496
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test/test_run_hscroll-run_hscroll.obj -MD -MP -MF test/$(DEPDIR)/test_run_hscroll-run_hscroll.Tpo -c -o test/test_run_hscroll-run_hscroll.obj `if test -f 'test/run_hscroll.c'; then $(CYGPATH_W) 'test/run_hscroll.c'; else $(CYGPATH_W) '$(srcdir)/test/run_hscroll.c'; fi`
497
-@am__fastdepCC_TRUE@ $(am__mv) test/$(DEPDIR)/test_run_hscroll-run_hscroll.Tpo test/$(DEPDIR)/test_run_hscroll-run_hscroll.Po
498
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test/run_hscroll.c' object='test/test_run_hscroll-run_hscroll.obj' libtool=no @AMDEPBACKSLASH@
499
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test/test_run_hscroll-run_hscroll.obj -MD -MP -MF test/$(DEPDIR)/test_run_hscroll-run_hscroll.Tpo -c -o test/test_run_hscroll-run_hscroll.obj `if test -f 'test/run_hscroll.c'; then $(CYGPATH_W) 'test/run_hscroll.c'; else $(CYGPATH_W) '$(srcdir)/test/run_hscroll.c'; fi`
500
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) test/$(DEPDIR)/test_run_hscroll-run_hscroll.Tpo test/$(DEPDIR)/test_run_hscroll-run_hscroll.Po
501
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test/run_hscroll.c' object='test/test_run_hscroll-run_hscroll.obj' libtool=no @AMDEPBACKSLASH@
502
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
503
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test/test_run_hscroll-run_hscroll.obj `if test -f 'test/run_hscroll.c'; then $(CYGPATH_W) 'test/run_hscroll.c'; else $(CYGPATH_W) '$(srcdir)/test/run_hscroll.c'; fi`
504
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test/test_run_hscroll-run_hscroll.obj `if test -f 'test/run_hscroll.c'; then $(CYGPATH_W) 'test/run_hscroll.c'; else $(CYGPATH_W) '$(srcdir)/test/run_hscroll.c'; fi`
505
506
src/test_run_hscroll-hscroll.o: src/hscroll.c
507
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/test_run_hscroll-hscroll.o -MD -MP -MF src/$(DEPDIR)/test_run_hscroll-hscroll.Tpo -c -o src/test_run_hscroll-hscroll.o `test -f 'src/hscroll.c' || echo '$(srcdir)/'`src/hscroll.c
508
-@am__fastdepCC_TRUE@ $(am__mv) src/$(DEPDIR)/test_run_hscroll-hscroll.Tpo src/$(DEPDIR)/test_run_hscroll-hscroll.Po
509
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/hscroll.c' object='src/test_run_hscroll-hscroll.o' libtool=no @AMDEPBACKSLASH@
510
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/test_run_hscroll-hscroll.o -MD -MP -MF src/$(DEPDIR)/test_run_hscroll-hscroll.Tpo -c -o src/test_run_hscroll-hscroll.o `test -f 'src/hscroll.c' || echo '$(srcdir)/'`src/hscroll.c
511
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/test_run_hscroll-hscroll.Tpo src/$(DEPDIR)/test_run_hscroll-hscroll.Po
512
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/hscroll.c' object='src/test_run_hscroll-hscroll.o' libtool=no @AMDEPBACKSLASH@
513
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
514
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/test_run_hscroll-hscroll.o `test -f 'src/hscroll.c' || echo '$(srcdir)/'`src/hscroll.c
515
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/test_run_hscroll-hscroll.o `test -f 'src/hscroll.c' || echo '$(srcdir)/'`src/hscroll.c
516
517
src/test_run_hscroll-hscroll.obj: src/hscroll.c
518
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/test_run_hscroll-hscroll.obj -MD -MP -MF src/$(DEPDIR)/test_run_hscroll-hscroll.Tpo -c -o src/test_run_hscroll-hscroll.obj `if test -f 'src/hscroll.c'; then $(CYGPATH_W) 'src/hscroll.c'; else $(CYGPATH_W) '$(srcdir)/src/hscroll.c'; fi`
519
-@am__fastdepCC_TRUE@ $(am__mv) src/$(DEPDIR)/test_run_hscroll-hscroll.Tpo src/$(DEPDIR)/test_run_hscroll-hscroll.Po
520
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/hscroll.c' object='src/test_run_hscroll-hscroll.obj' libtool=no @AMDEPBACKSLASH@
521
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/test_run_hscroll-hscroll.obj -MD -MP -MF src/$(DEPDIR)/test_run_hscroll-hscroll.Tpo -c -o src/test_run_hscroll-hscroll.obj `if test -f 'src/hscroll.c'; then $(CYGPATH_W) 'src/hscroll.c'; else $(CYGPATH_W) '$(srcdir)/src/hscroll.c'; fi`
522
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/test_run_hscroll-hscroll.Tpo src/$(DEPDIR)/test_run_hscroll-hscroll.Po
523
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/hscroll.c' object='src/test_run_hscroll-hscroll.obj' libtool=no @AMDEPBACKSLASH@
524
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
525
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/test_run_hscroll-hscroll.obj `if test -f 'src/hscroll.c'; then $(CYGPATH_W) 'src/hscroll.c'; else $(CYGPATH_W) '$(srcdir)/src/hscroll.c'; fi`
526
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/test_run_hscroll-hscroll.obj `if test -f 'src/hscroll.c'; then $(CYGPATH_W) 'src/hscroll.c'; else $(CYGPATH_W) '$(srcdir)/src/hscroll.c'; fi`
527
528
src/test_run_hscroll-charset.o: src/charset.c
529
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/test_run_hscroll-charset.o -MD -MP -MF src/$(DEPDIR)/test_run_hscroll-charset.Tpo -c -o src/test_run_hscroll-charset.o `test -f 'src/charset.c' || echo '$(srcdir)/'`src/charset.c
530
-@am__fastdepCC_TRUE@ $(am__mv) src/$(DEPDIR)/test_run_hscroll-charset.Tpo src/$(DEPDIR)/test_run_hscroll-charset.Po
531
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/charset.c' object='src/test_run_hscroll-charset.o' libtool=no @AMDEPBACKSLASH@
532
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/test_run_hscroll-charset.o -MD -MP -MF src/$(DEPDIR)/test_run_hscroll-charset.Tpo -c -o src/test_run_hscroll-charset.o `test -f 'src/charset.c' || echo '$(srcdir)/'`src/charset.c
533
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/test_run_hscroll-charset.Tpo src/$(DEPDIR)/test_run_hscroll-charset.Po
534
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/charset.c' object='src/test_run_hscroll-charset.o' libtool=no @AMDEPBACKSLASH@
535
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
536
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/test_run_hscroll-charset.o `test -f 'src/charset.c' || echo '$(srcdir)/'`src/charset.c
537
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/test_run_hscroll-charset.o `test -f 'src/charset.c' || echo '$(srcdir)/'`src/charset.c
538
539
src/test_run_hscroll-charset.obj: src/charset.c
540
-@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/test_run_hscroll-charset.obj -MD -MP -MF src/$(DEPDIR)/test_run_hscroll-charset.Tpo -c -o src/test_run_hscroll-charset.obj `if test -f 'src/charset.c'; then $(CYGPATH_W) 'src/charset.c'; else $(CYGPATH_W) '$(srcdir)/src/charset.c'; fi`
541
-@am__fastdepCC_TRUE@ $(am__mv) src/$(DEPDIR)/test_run_hscroll-charset.Tpo src/$(DEPDIR)/test_run_hscroll-charset.Po
542
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='src/charset.c' object='src/test_run_hscroll-charset.obj' libtool=no @AMDEPBACKSLASH@
543
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/test_run_hscroll-charset.obj -MD -MP -MF src/$(DEPDIR)/test_run_hscroll-charset.Tpo -c -o src/test_run_hscroll-charset.obj `if test -f 'src/charset.c'; then $(CYGPATH_W) 'src/charset.c'; else $(CYGPATH_W) '$(srcdir)/src/charset.c'; fi`
544
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/$(DEPDIR)/test_run_hscroll-charset.Tpo src/$(DEPDIR)/test_run_hscroll-charset.Po
545
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/charset.c' object='src/test_run_hscroll-charset.obj' libtool=no @AMDEPBACKSLASH@
546
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
547
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/test_run_hscroll-charset.obj `if test -f 'src/charset.c'; then $(CYGPATH_W) 'src/charset.c'; else $(CYGPATH_W) '$(srcdir)/src/charset.c'; fi`
548
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_run_hscroll_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/test_run_hscroll-charset.obj `if test -f 'src/charset.c'; then $(CYGPATH_W) 'src/charset.c'; else $(CYGPATH_W) '$(srcdir)/src/charset.c'; fi`
549
install-man1: $(man_MANS)
550
@$(NORMAL_INSTALL)
551
@list1=''; \
552
553
dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir)
554
555
# This directory's subdirectories are mostly independent; you can cd
556
-# into them and run `make' without going through this Makefile.
557
-# To change the values of `make' variables: instead of editing Makefiles,
558
-# (1) if the variable is set in `config.status', edit `config.status'
559
-# (which will cause the Makefiles to be regenerated when you run `make');
560
-# (2) otherwise, pass the desired values on the `make' command line.
561
-$(RECURSIVE_TARGETS):
562
- @fail= failcom='exit 1'; \
563
- for f in x $$MAKEFLAGS; do \
564
- case $$f in \
565
- *=* | --[!k]*);; \
566
- *k*) failcom='fail=yes';; \
567
- esac; \
568
- done; \
569
+# into them and run 'make' without going through this Makefile.
570
+# To change the values of 'make' variables: instead of editing Makefiles,
571
+# (1) if the variable is set in 'config.status', edit 'config.status'
572
+# (which will cause the Makefiles to be regenerated when you run 'make');
573
+# (2) otherwise, pass the desired values on the 'make' command line.
574
+$(am__recursive_targets):
575
+ @fail=; \
576
+ if $(am__make_keepgoing); then \
577
+ failcom='fail=yes'; \
578
+ else \
579
+ failcom='exit 1'; \
580
+ fi; \
581
dot_seen=no; \
582
target=`echo $@ | sed s/-recursive//`; \
583
- list='$(SUBDIRS)'; for subdir in $$list; do \
584
+ case "$@" in \
585
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
586
+ *) list='$(SUBDIRS)' ;; \
587
+ esac; \
588
+ for subdir in $$list; do \
589
echo "Making $$target in $$subdir"; \
590
if test "$$subdir" = "."; then \
591
dot_seen=yes; \
592
593
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
594
fi; test -z "$$fail"
595
596
-$(RECURSIVE_CLEAN_TARGETS):
597
- @fail= failcom='exit 1'; \
598
- for f in x $$MAKEFLAGS; do \
599
- case $$f in \
600
- *=* | --[!k]*);; \
601
- *k*) failcom='fail=yes';; \
602
- esac; \
603
- done; \
604
- dot_seen=no; \
605
- case "$@" in \
606
- distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
607
- *) list='$(SUBDIRS)' ;; \
608
- esac; \
609
- rev=''; for subdir in $$list; do \
610
- if test "$$subdir" = "."; then :; else \
611
- rev="$$subdir $$rev"; \
612
- fi; \
613
- done; \
614
- rev="$$rev ."; \
615
- target=`echo $@ | sed s/-recursive//`; \
616
- for subdir in $$rev; do \
617
- echo "Making $$target in $$subdir"; \
618
- if test "$$subdir" = "."; then \
619
- local_target="$$target-am"; \
620
- else \
621
- local_target="$$target"; \
622
- fi; \
623
- ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
624
- || eval $$failcom; \
625
- done && test -z "$$fail"
626
-tags-recursive:
627
- list='$(SUBDIRS)'; for subdir in $$list; do \
628
- test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
629
- done
630
-ctags-recursive:
631
- list='$(SUBDIRS)'; for subdir in $$list; do \
632
- test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
633
- done
634
+ID: $(am__tagged_files)
635
+ $(am__define_uniq_tagged_files); mkid -fID $$unique
636
+tags: tags-recursive
637
+TAGS: tags
638
639
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
640
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
641
- unique=`for i in $$list; do \
642
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
643
- done | \
644
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
645
- END { if (nonempty) { for (i in files) print i; }; }'`; \
646
- mkid -fID $$unique
647
-tags: TAGS
648
-
649
-TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
650
- $(TAGS_FILES) $(LISP)
651
+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
652
set x; \
653
here=`pwd`; \
654
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
655
656
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
657
fi; \
658
done; \
659
- list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
660
- unique=`for i in $$list; do \
661
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
662
- done | \
663
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
664
- END { if (nonempty) { for (i in files) print i; }; }'`; \
665
+ $(am__define_uniq_tagged_files); \
666
shift; \
667
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
668
test -n "$$unique" || unique=$$empty_fix; \
669
670
$$unique; \
671
fi; \
672
fi
673
-ctags: CTAGS
674
-CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
675
- $(TAGS_FILES) $(LISP)
676
- list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
677
- unique=`for i in $$list; do \
678
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
679
- done | \
680
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
681
- END { if (nonempty) { for (i in files) print i; }; }'`; \
682
+ctags: ctags-recursive
683
+
684
+CTAGS: ctags
685
+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
686
+ $(am__define_uniq_tagged_files); \
687
test -z "$(CTAGS_ARGS)$$unique" \
688
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
689
$$unique
690
691
here=`$(am__cd) $(top_builddir) && pwd` \
692
&& $(am__cd) $(top_srcdir) \
693
&& gtags -i $(GTAGS_ARGS) "$$here"
694
+cscope: cscope.files
695
+ test ! -s cscope.files \
696
+ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
697
+clean-cscope:
698
+ -rm -f cscope.files
699
+cscope.files: clean-cscope cscopelist
700
+cscopelist: cscopelist-recursive
701
+
702
+cscopelist-am: $(am__tagged_files)
703
+ list='$(am__tagged_files)'; \
704
+ case "$(srcdir)" in \
705
+ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
706
+ *) sdir=$(subdir)/$(srcdir) ;; \
707
+ esac; \
708
+ for i in $$list; do \
709
+ if test -f "$$i"; then \
710
+ echo "$(subdir)/$$i"; \
711
+ else \
712
+ echo "$$sdir/$$i"; \
713
+ fi; \
714
+ done >> $(top_builddir)/cscope.files
715
716
distclean-tags:
717
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
718
+ -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
719
720
distdir: $(DISTFILES)
721
- @list='$(MANS)'; if test -n "$$list"; then \
722
- list=`for p in $$list; do \
723
- if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
724
- if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
725
- if test -n "$$list" && \
726
- grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
727
- echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
728
- grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
729
- echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
730
- echo " typically \`make maintainer-clean' will remove them" >&2; \
731
- exit 1; \
732
- else :; fi; \
733
- else :; fi
734
$(am__remove_distdir)
735
test -d "$(distdir)" || mkdir "$(distdir)"
736
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
737
738
|| chmod -R a+r "$(distdir)"
739
dist-gzip: distdir
740
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
741
- $(am__remove_distdir)
742
+ $(am__post_remove_distdir)
743
+
744
dist-bzip2: distdir
745
tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
746
- $(am__remove_distdir)
747
+ $(am__post_remove_distdir)
748
749
dist-lzip: distdir
750
tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
751
- $(am__remove_distdir)
752
-
753
-dist-lzma: distdir
754
- tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
755
- $(am__remove_distdir)
756
-
757
+ $(am__post_remove_distdir)
758
dist-xz: distdir
759
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
760
- $(am__remove_distdir)
761
+ $(am__post_remove_distdir)
762
763
dist-tarZ: distdir
764
+ @echo WARNING: "Support for shar distribution archives is" \
765
+ "deprecated." >&2
766
+ @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
767
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
768
- $(am__remove_distdir)
769
+ $(am__post_remove_distdir)
770
771
dist-shar: distdir
772
+ @echo WARNING: "Support for distribution archives compressed with" \
773
+ "legacy program 'compress' is deprecated." >&2
774
+ @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
775
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
776
- $(am__remove_distdir)
777
+ $(am__post_remove_distdir)
778
779
dist-zip: distdir
780
-rm -f $(distdir).zip
781
zip -rq $(distdir).zip $(distdir)
782
- $(am__remove_distdir)
783
+ $(am__post_remove_distdir)
784
785
-dist dist-all: distdir
786
- tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
787
- tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
788
- $(am__remove_distdir)
789
+dist dist-all:
790
+ $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
791
+ $(am__post_remove_distdir)
792
793
# This target untars the dist file and tries a VPATH configuration. Then
794
# it guarantees that the distribution is self-contained by making another
795
796
GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
797
*.tar.bz2*) \
798
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
799
- *.tar.lzma*) \
800
- lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
801
*.tar.lz*) \
802
lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
803
*.tar.xz*) \
804
805
*.zip*) \
806
unzip $(distdir).zip ;;\
807
esac
808
- chmod -R a-w $(distdir); chmod u+w $(distdir)
809
- mkdir $(distdir)/_build
810
- mkdir $(distdir)/_inst
811
+ chmod -R a-w $(distdir)
812
+ chmod u+w $(distdir)
813
+ mkdir $(distdir)/_build $(distdir)/_inst
814
chmod a-w $(distdir)
815
test -d $(distdir)/_build || exit 0; \
816
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
817
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
818
&& am__cwd=`pwd` \
819
&& $(am__cd) $(distdir)/_build \
820
- && ../configure --srcdir=.. --prefix="$$dc_install_base" \
821
+ && ../configure \
822
$(AM_DISTCHECK_CONFIGURE_FLAGS) \
823
$(DISTCHECK_CONFIGURE_FLAGS) \
824
+ --srcdir=.. --prefix="$$dc_install_base" \
825
&& $(MAKE) $(AM_MAKEFLAGS) \
826
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
827
&& $(MAKE) $(AM_MAKEFLAGS) check \
828
829
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
830
&& cd "$$am__cwd" \
831
|| exit 1
832
- $(am__remove_distdir)
833
+ $(am__post_remove_distdir)
834
@(echo "$(distdir) archives ready for distribution: "; \
835
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
836
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
837
838
839
uninstall-man: uninstall-man1
840
841
-.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check-am \
842
- ctags-recursive install-am install-strip tags-recursive
843
-
844
-.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
845
- all all-am all-local am--refresh check check-am clean \
846
- clean-binPROGRAMS clean-checkPROGRAMS clean-generic \
847
- clean-local ctags ctags-recursive dist dist-all dist-bzip2 \
848
- dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \
849
- dist-zip distcheck distclean distclean-compile \
850
- distclean-generic distclean-hdr distclean-tags distcleancheck \
851
- distdir distuninstallcheck dvi dvi-am html html-am info \
852
- info-am install install-am install-binPROGRAMS install-data \
853
+.MAKE: $(am__recursive_targets) all check-am install-am install-strip
854
+
855
+.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am all-local \
856
+ am--refresh check check-am clean clean-binPROGRAMS \
857
+ clean-checkPROGRAMS clean-cscope clean-generic clean-local \
858
+ cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
859
+ dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
860
+ distcheck distclean distclean-compile distclean-generic \
861
+ distclean-hdr distclean-tags distcleancheck distdir \
862
+ distuninstallcheck dvi dvi-am html html-am info info-am \
863
+ install install-am install-binPROGRAMS install-data \
864
install-data-am install-docDATA install-dvi install-dvi-am \
865
install-exec install-exec-am install-html install-html-am \
866
install-info install-info-am install-lyricsSCRIPTS install-man \
867
868
install-ps-am install-strip installcheck installcheck-am \
869
installdirs installdirs-am maintainer-clean \
870
maintainer-clean-generic mostlyclean mostlyclean-compile \
871
- mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \
872
- uninstall uninstall-am uninstall-binPROGRAMS uninstall-docDATA \
873
+ mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
874
+ uninstall-am uninstall-binPROGRAMS uninstall-docDATA \
875
uninstall-lyricsSCRIPTS uninstall-man uninstall-man1
876
877
878
ncmpc-0.21.tar.bz2/NEWS -> ncmpc-0.24.tar.xz/NEWS
Changed
24
1
2
+ncmpc 0.24 - (2014-07-14)
3
+* fix crash on "jump" (hotkey ".")
4
+* save keys to path specified by --key-file
5
+
6
+
7
+ncmpc 0.23 - (2014-07-10)
8
+* fix broken l10n in out-of-tree builds
9
+
10
+
11
+ncmpc 0.22 - (2014-06-09)
12
+* rename "playlist" to "queue"
13
+* remove useless "Connected to ..." message
14
+* require libmpdclient 2.3, MPD 0.16
15
+* patched color line-flags
16
+* configuration option "search-format"
17
+* remove broken leoslyrics plugin
18
+* show audio format in song screen
19
+
20
+
21
ncmpc 0.21 - (2013-04-11)
22
* add a chat screen for communication with other clients on the same server
23
* song format: evaluate literal strings as true
24
ncmpc-0.21.tar.bz2/README -> ncmpc-0.24.tar.xz/README
Changed
18
1
2
-------------------------------------------------------------------------------
3
4
Home page and download:
5
- http://mpd.wikia.com/wiki/Client:ncmpc
6
+ http://www.musicpd.org/clients/ncmpc/
7
8
MPD's home page:
9
http://www.musicpd.org/
10
11
Bug tracker:
12
- http://www.musicpd.org/mantis/
13
+ http://bugs.musicpd.org/
14
15
Forum:
16
- http://www.musicpd.org/forum
17
+ http://forum.musicpd.org/
18
ncmpc-0.21.tar.bz2/aclocal.m4 -> ncmpc-0.24.tar.xz/aclocal.m4
Changed
1177
1
2
-# generated automatically by aclocal 1.11.6 -*- Autoconf -*-
3
+# generated automatically by aclocal 1.14.1 -*- Autoconf -*-
4
+
5
+# Copyright (C) 1996-2013 Free Software Foundation, Inc.
6
7
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
8
-# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
9
-# Inc.
10
# This file is free software; the Free Software Foundation
11
# gives unlimited permission to copy and/or distribute it,
12
# with or without modifications, as long as this notice is preserved.
13
14
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
15
# PARTICULAR PURPOSE.
16
17
+m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
18
m4_ifndef([AC_AUTOCONF_VERSION],
19
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
20
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
21
[m4_warning([this file was generated for autoconf 2.69.
22
You have another version of autoconf. It may work, but is not guaranteed to.
23
If you have problems, you may need to regenerate the build system entirely.
24
-To do so, use the procedure documented by the package, typically `autoreconf'.])])
25
+To do so, use the procedure documented by the package, typically 'autoreconf'.])])
26
+
27
+# ===========================================================================
28
+# http://www.gnu.org/software/autoconf-archive/ax_require_defined.html
29
+# ===========================================================================
30
+#
31
+# SYNOPSIS
32
+#
33
+# AX_REQUIRE_DEFINED(MACRO)
34
+#
35
+# DESCRIPTION
36
+#
37
+# AX_REQUIRE_DEFINED is a simple helper for making sure other macros have
38
+# been defined and thus are available for use. This avoids random issues
39
+# where a macro isn't expanded. Instead the configure script emits a
40
+# non-fatal:
41
+#
42
+# ./configure: line 1673: AX_CFLAGS_WARN_ALL: command not found
43
+#
44
+# It's like AC_REQUIRE except it doesn't expand the required macro.
45
+#
46
+# Here's an example:
47
+#
48
+# AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG])
49
+#
50
+# LICENSE
51
+#
52
+# Copyright (c) 2014 Mike Frysinger <vapier@gentoo.org>
53
+#
54
+# Copying and distribution of this file, with or without modification, are
55
+# permitted in any medium without royalty provided the copyright notice
56
+# and this notice are preserved. This file is offered as-is, without any
57
+# warranty.
58
+
59
+#serial 1
60
+
61
+AC_DEFUN([AX_REQUIRE_DEFINED], [dnl
62
+ m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])])
63
+])dnl AX_REQUIRE_DEFINED
64
65
-# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
66
-# Foundation, Inc.
67
+# Copyright (C) 2002-2013 Free Software Foundation, Inc.
68
#
69
# This file is free software; the Free Software Foundation
70
# gives unlimited permission to copy and/or distribute it,
71
# with or without modifications, as long as this notice is preserved.
72
73
-# serial 1
74
-
75
# AM_AUTOMAKE_VERSION(VERSION)
76
# ----------------------------
77
# Automake X.Y traces this macro to ensure aclocal.m4 has been
78
# generated from the m4 files accompanying Automake X.Y.
79
# (This private macro should not be called outside this file.)
80
AC_DEFUN([AM_AUTOMAKE_VERSION],
81
-[am__api_version='1.11'
82
+[am__api_version='1.14'
83
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
84
dnl require some minimum version. Point them to the right macro.
85
-m4_if([$1], [1.11.6], [],
86
+m4_if([$1], [1.14.1], [],
87
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
88
])
89
90
91
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
92
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
93
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
94
-[AM_AUTOMAKE_VERSION([1.11.6])dnl
95
+[AM_AUTOMAKE_VERSION([1.14.1])dnl
96
m4_ifndef([AC_AUTOCONF_VERSION],
97
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
98
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
99
100
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
101
102
-# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
103
+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
104
#
105
# This file is free software; the Free Software Foundation
106
# gives unlimited permission to copy and/or distribute it,
107
# with or without modifications, as long as this notice is preserved.
108
109
-# serial 1
110
-
111
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
112
-# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
113
-# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
114
+# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
115
+# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
116
#
117
# Of course, Automake must honor this variable whenever it calls a
118
# tool from the auxiliary directory. The problem is that $srcdir (and
119
120
#
121
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
122
# are both prefixed by $srcdir. In an in-source build this is usually
123
-# harmless because $srcdir is `.', but things will broke when you
124
+# harmless because $srcdir is '.', but things will broke when you
125
# start a VPATH build or use an absolute $srcdir.
126
#
127
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
128
129
130
# AM_CONDITIONAL -*- Autoconf -*-
131
132
-# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
133
-# Free Software Foundation, Inc.
134
+# Copyright (C) 1997-2013 Free Software Foundation, Inc.
135
#
136
# This file is free software; the Free Software Foundation
137
# gives unlimited permission to copy and/or distribute it,
138
# with or without modifications, as long as this notice is preserved.
139
140
-# serial 9
141
-
142
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
143
# -------------------------------------
144
# Define a conditional.
145
AC_DEFUN([AM_CONDITIONAL],
146
-[AC_PREREQ(2.52)dnl
147
- ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
148
- [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
149
+[AC_PREREQ([2.52])dnl
150
+ m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
151
+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
152
AC_SUBST([$1_TRUE])dnl
153
AC_SUBST([$1_FALSE])dnl
154
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
155
156
Usually this means the macro was only invoked conditionally.]])
157
fi])])
158
159
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
160
-# 2010, 2011 Free Software Foundation, Inc.
161
+# Copyright (C) 1999-2013 Free Software Foundation, Inc.
162
#
163
# This file is free software; the Free Software Foundation
164
# gives unlimited permission to copy and/or distribute it,
165
# with or without modifications, as long as this notice is preserved.
166
167
-# serial 12
168
169
-# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
170
+# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
171
# written in clear, in which case automake, when reading aclocal.m4,
172
# will think it sees a *use*, and therefore will trigger all it's
173
# C support machinery. Also note that it means that autoscan, seeing
174
175
# _AM_DEPENDENCIES(NAME)
176
# ----------------------
177
# See how the compiler implements dependency checking.
178
-# NAME is "CC", "CXX", "GCJ", or "OBJC".
179
+# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
180
# We try a few techniques and use that to set a single cache variable.
181
#
182
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
183
184
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
185
AC_REQUIRE([AM_DEP_TRACK])dnl
186
187
-ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
188
- [$1], CXX, [depcc="$CXX" am_compiler_list=],
189
- [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
190
- [$1], UPC, [depcc="$UPC" am_compiler_list=],
191
- [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
192
- [depcc="$$1" am_compiler_list=])
193
+m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
194
+ [$1], [CXX], [depcc="$CXX" am_compiler_list=],
195
+ [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
196
+ [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
197
+ [$1], [UPC], [depcc="$UPC" am_compiler_list=],
198
+ [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
199
+ [depcc="$$1" am_compiler_list=])
200
201
AC_CACHE_CHECK([dependency style of $depcc],
202
[am_cv_$1_dependencies_compiler_type],
203
204
# We make a subdir and do the tests there. Otherwise we can end up
205
# making bogus files that we don't know about and never remove. For
206
# instance it was reported that on HP-UX the gcc test will end up
207
- # making a dummy file named `D' -- because `-MD' means `put the output
208
- # in D'.
209
+ # making a dummy file named 'D' -- because '-MD' means "put the output
210
+ # in D".
211
rm -rf conftest.dir
212
mkdir conftest.dir
213
# Copy depcomp to subdir because otherwise we won't find it if we're
214
215
: > sub/conftest.c
216
for i in 1 2 3 4 5 6; do
217
echo '#include "conftst'$i'.h"' >> sub/conftest.c
218
- # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
219
- # Solaris 8's {/usr,}/bin/sh.
220
- touch sub/conftst$i.h
221
+ # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
222
+ # Solaris 10 /bin/sh.
223
+ echo '/* dummy */' > sub/conftst$i.h
224
done
225
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
226
227
- # We check with `-c' and `-o' for the sake of the "dashmstdout"
228
+ # We check with '-c' and '-o' for the sake of the "dashmstdout"
229
# mode. It turns out that the SunPro C++ compiler does not properly
230
- # handle `-M -o', and we need to detect this. Also, some Intel
231
- # versions had trouble with output in subdirs
232
+ # handle '-M -o', and we need to detect this. Also, some Intel
233
+ # versions had trouble with output in subdirs.
234
am__obj=sub/conftest.${OBJEXT-o}
235
am__minus_obj="-o $am__obj"
236
case $depmode in
237
238
test "$am__universal" = false || continue
239
;;
240
nosideeffect)
241
- # after this tag, mechanisms are not by side-effect, so they'll
242
- # only be used when explicitly requested
243
+ # After this tag, mechanisms are not by side-effect, so they'll
244
+ # only be used when explicitly requested.
245
if test "x$enable_dependency_tracking" = xyes; then
246
continue
247
else
248
249
fi
250
;;
251
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
252
- # This compiler won't grok `-c -o', but also, the minuso test has
253
+ # This compiler won't grok '-c -o', but also, the minuso test has
254
# not run yet. These depmodes are late enough in the game, and
255
# so weak that their functioning should not be impacted.
256
am__obj=conftest.${OBJEXT-o}
257
258
# AM_SET_DEPDIR
259
# -------------
260
# Choose a directory name for dependency files.
261
-# This macro is AC_REQUIREd in _AM_DEPENDENCIES
262
+# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
263
AC_DEFUN([AM_SET_DEPDIR],
264
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
265
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
266
267
# AM_DEP_TRACK
268
# ------------
269
AC_DEFUN([AM_DEP_TRACK],
270
-[AC_ARG_ENABLE(dependency-tracking,
271
-[ --disable-dependency-tracking speeds up one-time build
272
- --enable-dependency-tracking do not reject slow dependency extractors])
273
+[AC_ARG_ENABLE([dependency-tracking], [dnl
274
+AS_HELP_STRING(
275
+ [--enable-dependency-tracking],
276
+ [do not reject slow dependency extractors])
277
+AS_HELP_STRING(
278
+ [--disable-dependency-tracking],
279
+ [speeds up one-time build])])
280
if test "x$enable_dependency_tracking" != xno; then
281
am_depcomp="$ac_aux_dir/depcomp"
282
AMDEPBACKSLASH='\'
283
284
285
# Generate code to set up dependency tracking. -*- Autoconf -*-
286
287
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
288
-# Free Software Foundation, Inc.
289
+# Copyright (C) 1999-2013 Free Software Foundation, Inc.
290
#
291
# This file is free software; the Free Software Foundation
292
# gives unlimited permission to copy and/or distribute it,
293
# with or without modifications, as long as this notice is preserved.
294
295
-#serial 5
296
297
# _AM_OUTPUT_DEPENDENCY_COMMANDS
298
# ------------------------------
299
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
300
[{
301
- # Autoconf 2.62 quotes --file arguments for eval, but not when files
302
+ # Older Autoconf quotes --file arguments for eval, but not when files
303
# are listed without --file. Let's play safe and only enable the eval
304
# if we detect the quoting.
305
case $CONFIG_FILES in
306
307
# Strip MF so we end up with the name of the file.
308
mf=`echo "$mf" | sed -e 's/:.*$//'`
309
# Check whether this is an Automake generated Makefile or not.
310
- # We used to match only the files named `Makefile.in', but
311
+ # We used to match only the files named 'Makefile.in', but
312
# some people rename them; so instead we look at the file content.
313
# Grep'ing the first line is not enough: some people post-process
314
# each Makefile.in and add a new line on top of each file to say so.
315
316
continue
317
fi
318
# Extract the definition of DEPDIR, am__include, and am__quote
319
- # from the Makefile without running `make'.
320
+ # from the Makefile without running 'make'.
321
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
322
test -z "$DEPDIR" && continue
323
am__include=`sed -n 's/^am__include = //p' < "$mf"`
324
- test -z "am__include" && continue
325
+ test -z "$am__include" && continue
326
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
327
- # When using ansi2knr, U may be empty or an underscore; expand it
328
- U=`sed -n 's/^U = //p' < "$mf"`
329
# Find all dependency output files, they are included files with
330
# $(DEPDIR) in their names. We invoke sed twice because it is the
331
# simplest approach to changing $(DEPDIR) to its actual value in the
332
# expansion.
333
for file in `sed -n "
334
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
335
- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
336
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
337
# Make sure the directory exists.
338
test -f "$dirpart/$file" && continue
339
fdir=`AS_DIRNAME(["$file"])`
340
341
# This macro should only be invoked once -- use via AC_REQUIRE.
342
#
343
# This code is only required when automatic dependency tracking
344
-# is enabled. FIXME. This creates each `.P' file that we will
345
+# is enabled. FIXME. This creates each '.P' file that we will
346
# need in order to bootstrap the dependency handling code.
347
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
348
[AC_CONFIG_COMMANDS([depfiles],
349
350
351
# Do all the work for Automake. -*- Autoconf -*-
352
353
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
354
-# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
355
+# Copyright (C) 1996-2013 Free Software Foundation, Inc.
356
#
357
# This file is free software; the Free Software Foundation
358
# gives unlimited permission to copy and/or distribute it,
359
# with or without modifications, as long as this notice is preserved.
360
361
-# serial 16
362
-
363
# This macro actually does too much. Some checks are only needed if
364
# your package does certain things. But this isn't really a big deal.
365
366
+dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
367
+m4_define([AC_PROG_CC],
368
+m4_defn([AC_PROG_CC])
369
+[_AM_PROG_CC_C_O
370
+])
371
+
372
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
373
# AM_INIT_AUTOMAKE([OPTIONS])
374
# -----------------------------------------------
375
376
# arguments mandatory, and then we can depend on a new Autoconf
377
# release and drop the old call support.
378
AC_DEFUN([AM_INIT_AUTOMAKE],
379
-[AC_PREREQ([2.62])dnl
380
+[AC_PREREQ([2.65])dnl
381
dnl Autoconf wants to disallow AM_ names. We explicitly allow
382
dnl the ones we care about.
383
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
384
385
# Define the identity of the package.
386
dnl Distinguish between old-style and new-style calls.
387
m4_ifval([$2],
388
-[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
389
+[AC_DIAGNOSE([obsolete],
390
+ [$0: two- and three-arguments forms are deprecated.])
391
+m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
392
AC_SUBST([PACKAGE], [$1])dnl
393
AC_SUBST([VERSION], [$2])],
394
[_AM_SET_OPTIONS([$1])dnl
395
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
396
-m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
397
+m4_if(
398
+ m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
399
+ [ok:ok],,
400
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
401
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
402
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
403
404
_AM_IF_OPTION([no-define],,
405
-[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
406
- AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
407
+[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
408
+ AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
409
410
# Some tools Automake needs.
411
AC_REQUIRE([AM_SANITY_CHECK])dnl
412
AC_REQUIRE([AC_ARG_PROGRAM])dnl
413
-AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
414
-AM_MISSING_PROG(AUTOCONF, autoconf)
415
-AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
416
-AM_MISSING_PROG(AUTOHEADER, autoheader)
417
-AM_MISSING_PROG(MAKEINFO, makeinfo)
418
+AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
419
+AM_MISSING_PROG([AUTOCONF], [autoconf])
420
+AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
421
+AM_MISSING_PROG([AUTOHEADER], [autoheader])
422
+AM_MISSING_PROG([MAKEINFO], [makeinfo])
423
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
424
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
425
-AC_REQUIRE([AM_PROG_MKDIR_P])dnl
426
+AC_REQUIRE([AC_PROG_MKDIR_P])dnl
427
+# For better backward compatibility. To be removed once Automake 1.9.x
428
+# dies out for good. For more background, see:
429
+# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
430
+# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
431
+AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
432
# We need awk for the "check" target. The system "awk" is bad on
433
# some platforms.
434
AC_REQUIRE([AC_PROG_AWK])dnl
435
436
[_AM_PROG_TAR([v7])])])
437
_AM_IF_OPTION([no-dependencies],,
438
[AC_PROVIDE_IFELSE([AC_PROG_CC],
439
- [_AM_DEPENDENCIES(CC)],
440
- [define([AC_PROG_CC],
441
- defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
442
+ [_AM_DEPENDENCIES([CC])],
443
+ [m4_define([AC_PROG_CC],
444
+ m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
445
AC_PROVIDE_IFELSE([AC_PROG_CXX],
446
- [_AM_DEPENDENCIES(CXX)],
447
- [define([AC_PROG_CXX],
448
- defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
449
+ [_AM_DEPENDENCIES([CXX])],
450
+ [m4_define([AC_PROG_CXX],
451
+ m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
452
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
453
- [_AM_DEPENDENCIES(OBJC)],
454
- [define([AC_PROG_OBJC],
455
- defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
456
+ [_AM_DEPENDENCIES([OBJC])],
457
+ [m4_define([AC_PROG_OBJC],
458
+ m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
459
+AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
460
+ [_AM_DEPENDENCIES([OBJCXX])],
461
+ [m4_define([AC_PROG_OBJCXX],
462
+ m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
463
])
464
-_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
465
-dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
466
-dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
467
-dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
468
+AC_REQUIRE([AM_SILENT_RULES])dnl
469
+dnl The testsuite driver may need to know about EXEEXT, so add the
470
+dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
471
+dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
472
AC_CONFIG_COMMANDS_PRE(dnl
473
[m4_provide_if([_AM_COMPILER_EXEEXT],
474
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
475
+
476
+# POSIX will say in a future version that running "rm -f" with no argument
477
+# is OK; and we want to be able to make that assumption in our Makefile
478
+# recipes. So use an aggressive probe to check that the usage we want is
479
+# actually supported "in the wild" to an acceptable degree.
480
+# See automake bug#10828.
481
+# To make any issue more visible, cause the running configure to be aborted
482
+# by default if the 'rm' program in use doesn't match our expectations; the
483
+# user can still override this though.
484
+if rm -f && rm -fr && rm -rf; then : OK; else
485
+ cat >&2 <<'END'
486
+Oops!
487
+
488
+Your 'rm' program seems unable to run without file operands specified
489
+on the command line, even when the '-f' option is present. This is contrary
490
+to the behaviour of most rm programs out there, and not conforming with
491
+the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
492
+
493
+Please tell bug-automake@gnu.org about your system, including the value
494
+of your $PATH and any error possibly output before this message. This
495
+can help us improve future automake versions.
496
+
497
+END
498
+ if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
499
+ echo 'Configuration will proceed anyway, since you have set the' >&2
500
+ echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
501
+ echo >&2
502
+ else
503
+ cat >&2 <<'END'
504
+Aborting the configuration process, to ensure you take notice of the issue.
505
+
506
+You can download and install GNU coreutils to get an 'rm' implementation
507
+that behaves properly: <http://www.gnu.org/software/coreutils/>.
508
+
509
+If you want to complete the configuration process using your problematic
510
+'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
511
+to "yes", and re-run configure.
512
+
513
+END
514
+ AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
515
+ fi
516
+fi
517
])
518
519
-dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
520
+dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
521
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
522
dnl mangled by Autoconf and run in a shell conditional statement.
523
m4_define([_AC_COMPILER_EXEEXT],
524
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
525
526
-
527
# When config.status generates a header, we must update the stamp-h file.
528
# This file resides in the same directory as the config header
529
# that is generated. The stamp files are numbered to have different names.
530
531
done
532
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
533
534
-# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
535
-# Inc.
536
+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
537
#
538
# This file is free software; the Free Software Foundation
539
# gives unlimited permission to copy and/or distribute it,
540
# with or without modifications, as long as this notice is preserved.
541
542
-# serial 1
543
-
544
# AM_PROG_INSTALL_SH
545
# ------------------
546
# Define $install_sh.
547
548
install_sh="\${SHELL} $am_aux_dir/install-sh"
549
esac
550
fi
551
-AC_SUBST(install_sh)])
552
+AC_SUBST([install_sh])])
553
554
-# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
555
+# Copyright (C) 2003-2013 Free Software Foundation, Inc.
556
#
557
# This file is free software; the Free Software Foundation
558
# gives unlimited permission to copy and/or distribute it,
559
# with or without modifications, as long as this notice is preserved.
560
561
-# serial 2
562
-
563
# Check whether the underlying file-system supports filenames
564
# with a leading dot. For instance MS-DOS doesn't.
565
AC_DEFUN([AM_SET_LEADING_DOT],
566
567
568
# Check to see how 'make' treats includes. -*- Autoconf -*-
569
570
-# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
571
+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
572
#
573
# This file is free software; the Free Software Foundation
574
# gives unlimited permission to copy and/or distribute it,
575
# with or without modifications, as long as this notice is preserved.
576
577
-# serial 4
578
-
579
# AM_MAKE_INCLUDE()
580
# -----------------
581
# Check to see how make treats includes.
582
583
_am_result=none
584
# First try GNU make style include.
585
echo "include confinc" > confmf
586
-# Ignore all kinds of additional output from `make'.
587
+# Ignore all kinds of additional output from 'make'.
588
case `$am_make -s -f confmf 2> /dev/null` in #(
589
*the\ am__doit\ target*)
590
am__include=include
591
592
593
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
594
595
-# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
596
-# Free Software Foundation, Inc.
597
+# Copyright (C) 1997-2013 Free Software Foundation, Inc.
598
#
599
# This file is free software; the Free Software Foundation
600
# gives unlimited permission to copy and/or distribute it,
601
# with or without modifications, as long as this notice is preserved.
602
603
-# serial 6
604
-
605
# AM_MISSING_PROG(NAME, PROGRAM)
606
# ------------------------------
607
AC_DEFUN([AM_MISSING_PROG],
608
609
$1=${$1-"${am_missing_run}$2"}
610
AC_SUBST($1)])
611
612
-
613
# AM_MISSING_HAS_RUN
614
# ------------------
615
-# Define MISSING if not defined so far and test if it supports --run.
616
-# If it does, set am_missing_run to use it, otherwise, to nothing.
617
+# Define MISSING if not defined so far and test if it is modern enough.
618
+# If it is, set am_missing_run to use it, otherwise, to nothing.
619
AC_DEFUN([AM_MISSING_HAS_RUN],
620
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
621
AC_REQUIRE_AUX_FILE([missing])dnl
622
623
esac
624
fi
625
# Use eval to expand $SHELL
626
-if eval "$MISSING --run true"; then
627
- am_missing_run="$MISSING --run "
628
+if eval "$MISSING --is-lightweight"; then
629
+ am_missing_run="$MISSING "
630
else
631
am_missing_run=
632
- AC_MSG_WARN([`missing' script is too old or missing])
633
+ AC_MSG_WARN(['missing' script is too old or missing])
634
fi
635
])
636
637
-# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
638
-# Inc.
639
-#
640
-# This file is free software; the Free Software Foundation
641
-# gives unlimited permission to copy and/or distribute it,
642
-# with or without modifications, as long as this notice is preserved.
643
-
644
-# serial 1
645
-
646
-# AM_PROG_MKDIR_P
647
-# ---------------
648
-# Check for `mkdir -p'.
649
-AC_DEFUN([AM_PROG_MKDIR_P],
650
-[AC_PREREQ([2.60])dnl
651
-AC_REQUIRE([AC_PROG_MKDIR_P])dnl
652
-dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
653
-dnl while keeping a definition of mkdir_p for backward compatibility.
654
-dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
655
-dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
656
-dnl Makefile.ins that do not define MKDIR_P, so we do our own
657
-dnl adjustment using top_builddir (which is defined more often than
658
-dnl MKDIR_P).
659
-AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
660
-case $mkdir_p in
661
- [[\\/$]]* | ?:[[\\/]]*) ;;
662
- */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
663
-esac
664
-])
665
-
666
# Helper functions for option handling. -*- Autoconf -*-
667
668
-# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
669
-# Foundation, Inc.
670
+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
671
#
672
# This file is free software; the Free Software Foundation
673
# gives unlimited permission to copy and/or distribute it,
674
# with or without modifications, as long as this notice is preserved.
675
676
-# serial 5
677
-
678
# _AM_MANGLE_OPTION(NAME)
679
# -----------------------
680
AC_DEFUN([_AM_MANGLE_OPTION],
681
682
# --------------------
683
# Set option NAME. Presently that only means defining a flag for this option.
684
AC_DEFUN([_AM_SET_OPTION],
685
-[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
686
+[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
687
688
# _AM_SET_OPTIONS(OPTIONS)
689
# ------------------------
690
691
AC_DEFUN([_AM_IF_OPTION],
692
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
693
694
-# Check to make sure that the build environment is sane. -*- Autoconf -*-
695
+# Copyright (C) 1999-2013 Free Software Foundation, Inc.
696
+#
697
+# This file is free software; the Free Software Foundation
698
+# gives unlimited permission to copy and/or distribute it,
699
+# with or without modifications, as long as this notice is preserved.
700
+
701
+# _AM_PROG_CC_C_O
702
+# ---------------
703
+# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
704
+# to automatically call this.
705
+AC_DEFUN([_AM_PROG_CC_C_O],
706
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
707
+AC_REQUIRE_AUX_FILE([compile])dnl
708
+AC_LANG_PUSH([C])dnl
709
+AC_CACHE_CHECK(
710
+ [whether $CC understands -c and -o together],
711
+ [am_cv_prog_cc_c_o],
712
+ [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
713
+ # Make sure it works both with $CC and with simple cc.
714
+ # Following AC_PROG_CC_C_O, we do the test twice because some
715
+ # compilers refuse to overwrite an existing .o file with -o,
716
+ # though they will create one.
717
+ am_cv_prog_cc_c_o=yes
718
+ for am_i in 1 2; do
719
+ if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
720
+ && test -f conftest2.$ac_objext; then
721
+ : OK
722
+ else
723
+ am_cv_prog_cc_c_o=no
724
+ break
725
+ fi
726
+ done
727
+ rm -f core conftest*
728
+ unset am_i])
729
+if test "$am_cv_prog_cc_c_o" != yes; then
730
+ # Losing compiler, so override with the script.
731
+ # FIXME: It is wrong to rewrite CC.
732
+ # But if we don't then we get into trouble of one sort or another.
733
+ # A longer-term fix would be to have automake use am__CC in this case,
734
+ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
735
+ CC="$am_aux_dir/compile $CC"
736
+fi
737
+AC_LANG_POP([C])])
738
+
739
+# For backward compatibility.
740
+AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
741
742
-# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
743
-# Free Software Foundation, Inc.
744
+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
745
#
746
# This file is free software; the Free Software Foundation
747
# gives unlimited permission to copy and/or distribute it,
748
# with or without modifications, as long as this notice is preserved.
749
750
-# serial 5
751
+# AM_RUN_LOG(COMMAND)
752
+# -------------------
753
+# Run COMMAND, save the exit status in ac_status, and log it.
754
+# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
755
+AC_DEFUN([AM_RUN_LOG],
756
+[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
757
+ ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
758
+ ac_status=$?
759
+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
760
+ (exit $ac_status); }])
761
+
762
+# Check to make sure that the build environment is sane. -*- Autoconf -*-
763
+
764
+# Copyright (C) 1996-2013 Free Software Foundation, Inc.
765
+#
766
+# This file is free software; the Free Software Foundation
767
+# gives unlimited permission to copy and/or distribute it,
768
+# with or without modifications, as long as this notice is preserved.
769
770
# AM_SANITY_CHECK
771
# ---------------
772
AC_DEFUN([AM_SANITY_CHECK],
773
[AC_MSG_CHECKING([whether build environment is sane])
774
-# Just in case
775
-sleep 1
776
-echo timestamp > conftest.file
777
# Reject unsafe characters in $srcdir or the absolute working directory
778
# name. Accept space and tab only in the latter.
779
am_lf='
780
781
esac
782
case $srcdir in
783
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
784
- AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
785
+ AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
786
esac
787
788
-# Do `set' in a subshell so we don't clobber the current shell's
789
+# Do 'set' in a subshell so we don't clobber the current shell's
790
# arguments. Must try -L first in case configure is actually a
791
# symlink; some systems play weird games with the mod time of symlinks
792
# (eg FreeBSD returns the mod time of the symlink's containing
793
# directory).
794
if (
795
- set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
796
- if test "$[*]" = "X"; then
797
- # -L didn't work.
798
- set X `ls -t "$srcdir/configure" conftest.file`
799
- fi
800
- rm -f conftest.file
801
- if test "$[*]" != "X $srcdir/configure conftest.file" \
802
- && test "$[*]" != "X conftest.file $srcdir/configure"; then
803
-
804
- # If neither matched, then we have a broken ls. This can happen
805
- # if, for instance, CONFIG_SHELL is bash and it inherits a
806
- # broken ls alias from the environment. This has actually
807
- # happened. Such a system could not be considered "sane".
808
- AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
809
-alias in your environment])
810
- fi
811
-
812
+ am_has_slept=no
813
+ for am_try in 1 2; do
814
+ echo "timestamp, slept: $am_has_slept" > conftest.file
815
+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
816
+ if test "$[*]" = "X"; then
817
+ # -L didn't work.
818
+ set X `ls -t "$srcdir/configure" conftest.file`
819
+ fi
820
+ if test "$[*]" != "X $srcdir/configure conftest.file" \
821
+ && test "$[*]" != "X conftest.file $srcdir/configure"; then
822
+
823
+ # If neither matched, then we have a broken ls. This can happen
824
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
825
+ # broken ls alias from the environment. This has actually
826
+ # happened. Such a system could not be considered "sane".
827
+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
828
+ alias in your environment])
829
+ fi
830
+ if test "$[2]" = conftest.file || test $am_try -eq 2; then
831
+ break
832
+ fi
833
+ # Just in case.
834
+ sleep 1
835
+ am_has_slept=yes
836
+ done
837
test "$[2]" = conftest.file
838
)
839
then
840
841
AC_MSG_ERROR([newly created file is older than distributed files!
842
Check your system clock])
843
fi
844
-AC_MSG_RESULT(yes)])
845
+AC_MSG_RESULT([yes])
846
+# If we didn't sleep, we still need to ensure time stamps of config.status and
847
+# generated files are strictly newer.
848
+am_sleep_pid=
849
+if grep 'slept: no' conftest.file >/dev/null 2>&1; then
850
+ ( sleep 1 ) &
851
+ am_sleep_pid=$!
852
+fi
853
+AC_CONFIG_COMMANDS_PRE(
854
+ [AC_MSG_CHECKING([that generated files are newer than configure])
855
+ if test -n "$am_sleep_pid"; then
856
+ # Hide warnings about reused PIDs.
857
+ wait $am_sleep_pid 2>/dev/null
858
+ fi
859
+ AC_MSG_RESULT([done])])
860
+rm -f conftest.file
861
+])
862
863
-# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
864
+# Copyright (C) 2009-2013 Free Software Foundation, Inc.
865
#
866
# This file is free software; the Free Software Foundation
867
# gives unlimited permission to copy and/or distribute it,
868
# with or without modifications, as long as this notice is preserved.
869
870
-# serial 1
871
+# AM_SILENT_RULES([DEFAULT])
872
+# --------------------------
873
+# Enable less verbose build rules; with the default set to DEFAULT
874
+# ("yes" being less verbose, "no" or empty being verbose).
875
+AC_DEFUN([AM_SILENT_RULES],
876
+[AC_ARG_ENABLE([silent-rules], [dnl
877
+AS_HELP_STRING(
878
+ [--enable-silent-rules],
879
+ [less verbose build output (undo: "make V=1")])
880
+AS_HELP_STRING(
881
+ [--disable-silent-rules],
882
+ [verbose build output (undo: "make V=0")])dnl
883
+])
884
+case $enable_silent_rules in @%:@ (((
885
+ yes) AM_DEFAULT_VERBOSITY=0;;
886
+ no) AM_DEFAULT_VERBOSITY=1;;
887
+ *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
888
+esac
889
+dnl
890
+dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
891
+dnl do not support nested variable expansions.
892
+dnl See automake bug#9928 and bug#10237.
893
+am_make=${MAKE-make}
894
+AC_CACHE_CHECK([whether $am_make supports nested variables],
895
+ [am_cv_make_support_nested_variables],
896
+ [if AS_ECHO([['TRUE=$(BAR$(V))
897
+BAR0=false
898
+BAR1=true
899
+V=1
900
+am__doit:
901
+ @$(TRUE)
902
+.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
903
+ am_cv_make_support_nested_variables=yes
904
+else
905
+ am_cv_make_support_nested_variables=no
906
+fi])
907
+if test $am_cv_make_support_nested_variables = yes; then
908
+ dnl Using '$V' instead of '$(V)' breaks IRIX make.
909
+ AM_V='$(V)'
910
+ AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
911
+else
912
+ AM_V=$AM_DEFAULT_VERBOSITY
913
+ AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
914
+fi
915
+AC_SUBST([AM_V])dnl
916
+AM_SUBST_NOTMAKE([AM_V])dnl
917
+AC_SUBST([AM_DEFAULT_V])dnl
918
+AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
919
+AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
920
+AM_BACKSLASH='\'
921
+AC_SUBST([AM_BACKSLASH])dnl
922
+_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
923
+])
924
+
925
+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
926
+#
927
+# This file is free software; the Free Software Foundation
928
+# gives unlimited permission to copy and/or distribute it,
929
+# with or without modifications, as long as this notice is preserved.
930
931
# AM_PROG_INSTALL_STRIP
932
# ---------------------
933
-# One issue with vendor `install' (even GNU) is that you can't
934
+# One issue with vendor 'install' (even GNU) is that you can't
935
# specify the program used to strip binaries. This is especially
936
# annoying in cross-compiling environments, where the build's strip
937
# is unlikely to handle the host's binaries.
938
# Fortunately install-sh will honor a STRIPPROG variable, so we
939
-# always use install-sh in `make install-strip', and initialize
940
+# always use install-sh in "make install-strip", and initialize
941
# STRIPPROG with the value of the STRIP variable (set by the user).
942
AC_DEFUN([AM_PROG_INSTALL_STRIP],
943
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
944
-# Installed binaries are usually stripped using `strip' when the user
945
-# run `make install-strip'. However `strip' might not be the right
946
+# Installed binaries are usually stripped using 'strip' when the user
947
+# run "make install-strip". However 'strip' might not be the right
948
# tool to use in cross-compilation environments, therefore Automake
949
-# will honor the `STRIP' environment variable to overrule this program.
950
-dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
951
+# will honor the 'STRIP' environment variable to overrule this program.
952
+dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
953
if test "$cross_compiling" != no; then
954
AC_CHECK_TOOL([STRIP], [strip], :)
955
fi
956
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
957
AC_SUBST([INSTALL_STRIP_PROGRAM])])
958
959
-# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
960
+# Copyright (C) 2006-2013 Free Software Foundation, Inc.
961
#
962
# This file is free software; the Free Software Foundation
963
# gives unlimited permission to copy and/or distribute it,
964
# with or without modifications, as long as this notice is preserved.
965
966
-# serial 3
967
-
968
# _AM_SUBST_NOTMAKE(VARIABLE)
969
# ---------------------------
970
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
971
972
973
# Check how to create a tarball. -*- Autoconf -*-
974
975
-# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
976
+# Copyright (C) 2004-2013 Free Software Foundation, Inc.
977
#
978
# This file is free software; the Free Software Foundation
979
# gives unlimited permission to copy and/or distribute it,
980
# with or without modifications, as long as this notice is preserved.
981
982
-# serial 2
983
-
984
# _AM_PROG_TAR(FORMAT)
985
# --------------------
986
# Check how to create a tarball in format FORMAT.
987
-# FORMAT should be one of `v7', `ustar', or `pax'.
988
+# FORMAT should be one of 'v7', 'ustar', or 'pax'.
989
#
990
# Substitute a variable $(am__tar) that is a command
991
# writing to stdout a FORMAT-tarball containing the directory
992
993
# Substitute a variable $(am__untar) that extract such
994
# a tarball read from stdin.
995
# $(am__untar) < result.tar
996
+#
997
AC_DEFUN([_AM_PROG_TAR],
998
[# Always define AMTAR for backward compatibility. Yes, it's still used
999
# in the wild :-( We should find a proper way to deprecate it ...
1000
AC_SUBST([AMTAR], ['$${TAR-tar}'])
1001
-m4_if([$1], [v7],
1002
- [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1003
- [m4_case([$1], [ustar],, [pax],,
1004
- [m4_fatal([Unknown tar format])])
1005
-AC_MSG_CHECKING([how to create a $1 tar archive])
1006
-# Loop over all known methods to create a tar archive until one works.
1007
+
1008
+# We'll loop over all known methods to create a tar archive until one works.
1009
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1010
-_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1011
-# Do not fold the above two line into one, because Tru64 sh and
1012
-# Solaris sh will not grok spaces in the rhs of `-'.
1013
-for _am_tool in $_am_tools
1014
-do
1015
- case $_am_tool in
1016
- gnutar)
1017
- for _am_tar in tar gnutar gtar;
1018
- do
1019
- AM_RUN_LOG([$_am_tar --version]) && break
1020
- done
1021
- am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1022
- am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1023
- am__untar="$_am_tar -xf -"
1024
- ;;
1025
- plaintar)
1026
- # Must skip GNU tar: if it does not support --format= it doesn't create
1027
- # ustar tarball either.
1028
- (tar --version) >/dev/null 2>&1 && continue
1029
- am__tar='tar chf - "$$tardir"'
1030
- am__tar_='tar chf - "$tardir"'
1031
- am__untar='tar xf -'
1032
- ;;
1033
- pax)
1034
- am__tar='pax -L -x $1 -w "$$tardir"'
1035
- am__tar_='pax -L -x $1 -w "$tardir"'
1036
- am__untar='pax -r'
1037
- ;;
1038
- cpio)
1039
- am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1040
- am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1041
- am__untar='cpio -i -H $1 -d'
1042
- ;;
1043
- none)
1044
- am__tar=false
1045
- am__tar_=false
1046
- am__untar=false
1047
- ;;
1048
- esac
1049
1050
- # If the value was cached, stop now. We just wanted to have am__tar
1051
- # and am__untar set.
1052
- test -n "${am_cv_prog_tar_$1}" && break
1053
+m4_if([$1], [v7],
1054
+ [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1055
+
1056
+ [m4_case([$1],
1057
+ [ustar],
1058
+ [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1059
+ # There is notably a 21 bits limit for the UID and the GID. In fact,
1060
+ # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1061
+ # and bug#13588).
1062
+ am_max_uid=2097151 # 2^21 - 1
1063
+ am_max_gid=$am_max_uid
1064
+ # The $UID and $GID variables are not portable, so we need to resort
1065
+ # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1066
+ # below are definitely unexpected, so allow the users to see them
1067
+ # (that is, avoid stderr redirection).
1068
+ am_uid=`id -u || echo unknown`
1069
+ am_gid=`id -g || echo unknown`
1070
+ AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1071
+ if test $am_uid -le $am_max_uid; then
1072
+ AC_MSG_RESULT([yes])
1073
+ else
1074
+ AC_MSG_RESULT([no])
1075
+ _am_tools=none
1076
+ fi
1077
+ AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1078
+ if test $am_gid -le $am_max_gid; then
1079
+ AC_MSG_RESULT([yes])
1080
+ else
1081
+ AC_MSG_RESULT([no])
1082
+ _am_tools=none
1083
+ fi],
1084
+
1085
+ [pax],
1086
+ [],
1087
+
1088
+ [m4_fatal([Unknown tar format])])
1089
+
1090
+ AC_MSG_CHECKING([how to create a $1 tar archive])
1091
+
1092
+ # Go ahead even if we have the value already cached. We do so because we
1093
+ # need to set the values for the 'am__tar' and 'am__untar' variables.
1094
+ _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1095
+
1096
+ for _am_tool in $_am_tools; do
1097
+ case $_am_tool in
1098
+ gnutar)
1099
+ for _am_tar in tar gnutar gtar; do
1100
+ AM_RUN_LOG([$_am_tar --version]) && break
1101
+ done
1102
+ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1103
+ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1104
+ am__untar="$_am_tar -xf -"
1105
+ ;;
1106
+ plaintar)
1107
+ # Must skip GNU tar: if it does not support --format= it doesn't create
1108
+ # ustar tarball either.
1109
+ (tar --version) >/dev/null 2>&1 && continue
1110
+ am__tar='tar chf - "$$tardir"'
1111
+ am__tar_='tar chf - "$tardir"'
1112
+ am__untar='tar xf -'
1113
+ ;;
1114
+ pax)
1115
+ am__tar='pax -L -x $1 -w "$$tardir"'
1116
+ am__tar_='pax -L -x $1 -w "$tardir"'
1117
+ am__untar='pax -r'
1118
+ ;;
1119
+ cpio)
1120
+ am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1121
+ am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1122
+ am__untar='cpio -i -H $1 -d'
1123
+ ;;
1124
+ none)
1125
+ am__tar=false
1126
+ am__tar_=false
1127
+ am__untar=false
1128
+ ;;
1129
+ esac
1130
1131
- # tar/untar a dummy directory, and stop if the command works
1132
- rm -rf conftest.dir
1133
- mkdir conftest.dir
1134
- echo GrepMe > conftest.dir/file
1135
- AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1136
+ # If the value was cached, stop now. We just wanted to have am__tar
1137
+ # and am__untar set.
1138
+ test -n "${am_cv_prog_tar_$1}" && break
1139
+
1140
+ # tar/untar a dummy directory, and stop if the command works.
1141
+ rm -rf conftest.dir
1142
+ mkdir conftest.dir
1143
+ echo GrepMe > conftest.dir/file
1144
+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1145
+ rm -rf conftest.dir
1146
+ if test -s conftest.tar; then
1147
+ AM_RUN_LOG([$am__untar <conftest.tar])
1148
+ AM_RUN_LOG([cat conftest.dir/file])
1149
+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1150
+ fi
1151
+ done
1152
rm -rf conftest.dir
1153
- if test -s conftest.tar; then
1154
- AM_RUN_LOG([$am__untar <conftest.tar])
1155
- grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1156
- fi
1157
-done
1158
-rm -rf conftest.dir
1159
1160
-AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1161
-AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1162
+ AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1163
+ AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1164
+
1165
AC_SUBST([am__tar])
1166
AC_SUBST([am__untar])
1167
]) # _AM_PROG_TAR
1168
1169
m4_include([m4/ax_append_compile_flags.m4])
1170
m4_include([m4/ax_append_flag.m4])
1171
+m4_include([m4/ax_append_link_flags.m4])
1172
m4_include([m4/ax_check_compile_flag.m4])
1173
+m4_include([m4/ax_check_link_flag.m4])
1174
m4_include([m4/ax_with_curses.m4])
1175
m4_include([m4/glib-gettext.m4])
1176
m4_include([m4/nls.m4])
1177
ncmpc-0.24.tar.xz/build/compile
Added
349
1
2
+#! /bin/sh
3
+# Wrapper for compilers which do not understand '-c -o'.
4
+
5
+scriptversion=2012-10-14.11; # UTC
6
+
7
+# Copyright (C) 1999-2013 Free Software Foundation, Inc.
8
+# Written by Tom Tromey <tromey@cygnus.com>.
9
+#
10
+# This program is free software; you can redistribute it and/or modify
11
+# it under the terms of the GNU General Public License as published by
12
+# the Free Software Foundation; either version 2, or (at your option)
13
+# any later version.
14
+#
15
+# This program is distributed in the hope that it will be useful,
16
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
17
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
+# GNU General Public License for more details.
19
+#
20
+# You should have received a copy of the GNU General Public License
21
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
22
+
23
+# As a special exception to the GNU General Public License, if you
24
+# distribute this file as part of a program that contains a
25
+# configuration script generated by Autoconf, you may include it under
26
+# the same distribution terms that you use for the rest of that program.
27
+
28
+# This file is maintained in Automake, please report
29
+# bugs to <bug-automake@gnu.org> or send patches to
30
+# <automake-patches@gnu.org>.
31
+
32
+nl='
33
+'
34
+
35
+# We need space, tab and new line, in precisely that order. Quoting is
36
+# there to prevent tools from complaining about whitespace usage.
37
+IFS=" "" $nl"
38
+
39
+file_conv=
40
+
41
+# func_file_conv build_file lazy
42
+# Convert a $build file to $host form and store it in $file
43
+# Currently only supports Windows hosts. If the determined conversion
44
+# type is listed in (the comma separated) LAZY, no conversion will
45
+# take place.
46
+func_file_conv ()
47
+{
48
+ file=$1
49
+ case $file in
50
+ / | /[!/]*) # absolute file, and not a UNC file
51
+ if test -z "$file_conv"; then
52
+ # lazily determine how to convert abs files
53
+ case `uname -s` in
54
+ MINGW*)
55
+ file_conv=mingw
56
+ ;;
57
+ CYGWIN*)
58
+ file_conv=cygwin
59
+ ;;
60
+ *)
61
+ file_conv=wine
62
+ ;;
63
+ esac
64
+ fi
65
+ case $file_conv/,$2, in
66
+ *,$file_conv,*)
67
+ ;;
68
+ mingw/*)
69
+ file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
70
+ ;;
71
+ cygwin/*)
72
+ file=`cygpath -m "$file" || echo "$file"`
73
+ ;;
74
+ wine/*)
75
+ file=`winepath -w "$file" || echo "$file"`
76
+ ;;
77
+ esac
78
+ ;;
79
+ esac
80
+}
81
+
82
+# func_cl_dashL linkdir
83
+# Make cl look for libraries in LINKDIR
84
+func_cl_dashL ()
85
+{
86
+ func_file_conv "$1"
87
+ if test -z "$lib_path"; then
88
+ lib_path=$file
89
+ else
90
+ lib_path="$lib_path;$file"
91
+ fi
92
+ linker_opts="$linker_opts -LIBPATH:$file"
93
+}
94
+
95
+# func_cl_dashl library
96
+# Do a library search-path lookup for cl
97
+func_cl_dashl ()
98
+{
99
+ lib=$1
100
+ found=no
101
+ save_IFS=$IFS
102
+ IFS=';'
103
+ for dir in $lib_path $LIB
104
+ do
105
+ IFS=$save_IFS
106
+ if $shared && test -f "$dir/$lib.dll.lib"; then
107
+ found=yes
108
+ lib=$dir/$lib.dll.lib
109
+ break
110
+ fi
111
+ if test -f "$dir/$lib.lib"; then
112
+ found=yes
113
+ lib=$dir/$lib.lib
114
+ break
115
+ fi
116
+ if test -f "$dir/lib$lib.a"; then
117
+ found=yes
118
+ lib=$dir/lib$lib.a
119
+ break
120
+ fi
121
+ done
122
+ IFS=$save_IFS
123
+
124
+ if test "$found" != yes; then
125
+ lib=$lib.lib
126
+ fi
127
+}
128
+
129
+# func_cl_wrapper cl arg...
130
+# Adjust compile command to suit cl
131
+func_cl_wrapper ()
132
+{
133
+ # Assume a capable shell
134
+ lib_path=
135
+ shared=:
136
+ linker_opts=
137
+ for arg
138
+ do
139
+ if test -n "$eat"; then
140
+ eat=
141
+ else
142
+ case $1 in
143
+ -o)
144
+ # configure might choose to run compile as 'compile cc -o foo foo.c'.
145
+ eat=1
146
+ case $2 in
147
+ *.o | *.[oO][bB][jJ])
148
+ func_file_conv "$2"
149
+ set x "$@" -Fo"$file"
150
+ shift
151
+ ;;
152
+ *)
153
+ func_file_conv "$2"
154
+ set x "$@" -Fe"$file"
155
+ shift
156
+ ;;
157
+ esac
158
+ ;;
159
+ -I)
160
+ eat=1
161
+ func_file_conv "$2" mingw
162
+ set x "$@" -I"$file"
163
+ shift
164
+ ;;
165
+ -I*)
166
+ func_file_conv "${1#-I}" mingw
167
+ set x "$@" -I"$file"
168
+ shift
169
+ ;;
170
+ -l)
171
+ eat=1
172
+ func_cl_dashl "$2"
173
+ set x "$@" "$lib"
174
+ shift
175
+ ;;
176
+ -l*)
177
+ func_cl_dashl "${1#-l}"
178
+ set x "$@" "$lib"
179
+ shift
180
+ ;;
181
+ -L)
182
+ eat=1
183
+ func_cl_dashL "$2"
184
+ ;;
185
+ -L*)
186
+ func_cl_dashL "${1#-L}"
187
+ ;;
188
+ -static)
189
+ shared=false
190
+ ;;
191
+ -Wl,*)
192
+ arg=${1#-Wl,}
193
+ save_ifs="$IFS"; IFS=','
194
+ for flag in $arg; do
195
+ IFS="$save_ifs"
196
+ linker_opts="$linker_opts $flag"
197
+ done
198
+ IFS="$save_ifs"
199
+ ;;
200
+ -Xlinker)
201
+ eat=1
202
+ linker_opts="$linker_opts $2"
203
+ ;;
204
+ -*)
205
+ set x "$@" "$1"
206
+ shift
207
+ ;;
208
+ *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
209
+ func_file_conv "$1"
210
+ set x "$@" -Tp"$file"
211
+ shift
212
+ ;;
213
+ *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
214
+ func_file_conv "$1" mingw
215
+ set x "$@" "$file"
216
+ shift
217
+ ;;
218
+ *)
219
+ set x "$@" "$1"
220
+ shift
221
+ ;;
222
+ esac
223
+ fi
224
+ shift
225
+ done
226
+ if test -n "$linker_opts"; then
227
+ linker_opts="-link$linker_opts"
228
+ fi
229
+ exec "$@" $linker_opts
230
+ exit 1
231
+}
232
+
233
+eat=
234
+
235
+case $1 in
236
+ '')
237
+ echo "$0: No command. Try '$0 --help' for more information." 1>&2
238
+ exit 1;
239
+ ;;
240
+ -h | --h*)
241
+ cat <<\EOF
242
+Usage: compile [--help] [--version] PROGRAM [ARGS]
243
+
244
+Wrapper for compilers which do not understand '-c -o'.
245
+Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
246
+arguments, and rename the output as expected.
247
+
248
+If you are trying to build a whole package this is not the
249
+right script to run: please start by reading the file 'INSTALL'.
250
+
251
+Report bugs to <bug-automake@gnu.org>.
252
+EOF
253
+ exit $?
254
+ ;;
255
+ -v | --v*)
256
+ echo "compile $scriptversion"
257
+ exit $?
258
+ ;;
259
+ cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
260
+ func_cl_wrapper "$@" # Doesn't return...
261
+ ;;
262
+esac
263
+
264
+ofile=
265
+cfile=
266
+
267
+for arg
268
+do
269
+ if test -n "$eat"; then
270
+ eat=
271
+ else
272
+ case $1 in
273
+ -o)
274
+ # configure might choose to run compile as 'compile cc -o foo foo.c'.
275
+ # So we strip '-o arg' only if arg is an object.
276
+ eat=1
277
+ case $2 in
278
+ *.o | *.obj)
279
+ ofile=$2
280
+ ;;
281
+ *)
282
+ set x "$@" -o "$2"
283
+ shift
284
+ ;;
285
+ esac
286
+ ;;
287
+ *.c)
288
+ cfile=$1
289
+ set x "$@" "$1"
290
+ shift
291
+ ;;
292
+ *)
293
+ set x "$@" "$1"
294
+ shift
295
+ ;;
296
+ esac
297
+ fi
298
+ shift
299
+done
300
+
301
+if test -z "$ofile" || test -z "$cfile"; then
302
+ # If no '-o' option was seen then we might have been invoked from a
303
+ # pattern rule where we don't need one. That is ok -- this is a
304
+ # normal compilation that the losing compiler can handle. If no
305
+ # '.c' file was seen then we are probably linking. That is also
306
+ # ok.
307
+ exec "$@"
308
+fi
309
+
310
+# Name of file we expect compiler to create.
311
+cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
312
+
313
+# Create the lock directory.
314
+# Note: use '[/\\:.-]' here to ensure that we don't use the same name
315
+# that we are using for the .o file. Also, base the name on the expected
316
+# object file name, since that is what matters with a parallel build.
317
+lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
318
+while true; do
319
+ if mkdir "$lockdir" >/dev/null 2>&1; then
320
+ break
321
+ fi
322
+ sleep 1
323
+done
324
+# FIXME: race condition here if user kills between mkdir and trap.
325
+trap "rmdir '$lockdir'; exit 1" 1 2 15
326
+
327
+# Run the compile.
328
+"$@"
329
+ret=$?
330
+
331
+if test -f "$cofile"; then
332
+ test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
333
+elif test -f "${cofile}bj"; then
334
+ test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
335
+fi
336
+
337
+rmdir "$lockdir"
338
+exit $ret
339
+
340
+# Local Variables:
341
+# mode: shell-script
342
+# sh-indentation: 2
343
+# eval: (add-hook 'write-file-hooks 'time-stamp)
344
+# time-stamp-start: "scriptversion="
345
+# time-stamp-format: "%:y-%02m-%02d.%02H"
346
+# time-stamp-time-zone: "UTC"
347
+# time-stamp-end: "; # UTC"
348
+# End:
349
ncmpc-0.21.tar.bz2/build/config.guess -> ncmpc-0.24.tar.xz/build/config.guess
Changed
527
1
2
#! /bin/sh
3
# Attempt to guess a canonical system name.
4
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
5
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
6
-# 2011, 2012 Free Software Foundation, Inc.
7
+# Copyright 1992-2014 Free Software Foundation, Inc.
8
9
-timestamp='2012-02-10'
10
+timestamp='2014-03-23'
11
12
# This file is free software; you can redistribute it and/or modify it
13
# under the terms of the GNU General Public License as published by
14
-# the Free Software Foundation; either version 2 of the License, or
15
+# the Free Software Foundation; either version 3 of the License, or
16
# (at your option) any later version.
17
#
18
# This program is distributed in the hope that it will be useful, but
19
20
# As a special exception to the GNU General Public License, if you
21
# distribute this file as part of a program that contains a
22
# configuration script generated by Autoconf, you may include it under
23
-# the same distribution terms that you use for the rest of that program.
24
-
25
-
26
-# Originally written by Per Bothner. Please send patches (context
27
-# diff format) to <config-patches@gnu.org> and include a ChangeLog
28
-# entry.
29
+# the same distribution terms that you use for the rest of that
30
+# program. This Exception is an additional permission under section 7
31
+# of the GNU General Public License, version 3 ("GPLv3").
32
#
33
-# This script attempts to guess a canonical system name similar to
34
-# config.sub. If it succeeds, it prints the system name on stdout, and
35
-# exits with 0. Otherwise, it exits with 1.
36
+# Originally written by Per Bothner.
37
#
38
# You can get the latest version of this script from:
39
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
40
+#
41
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
42
+
43
44
me=`echo "$0" | sed -e 's,.*/,,'`
45
46
47
GNU config.guess ($timestamp)
48
49
Originally written by Per Bothner.
50
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
51
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
52
-Free Software Foundation, Inc.
53
+Copyright 1992-2014 Free Software Foundation, Inc.
54
55
This is free software; see the source for copying conditions. There is NO
56
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
57
58
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
59
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
60
61
+case "${UNAME_SYSTEM}" in
62
+Linux|GNU|GNU/*)
63
+ # If the system lacks a compiler, then just pick glibc.
64
+ # We could probably try harder.
65
+ LIBC=gnu
66
+
67
+ eval $set_cc_for_build
68
+ cat <<-EOF > $dummy.c
69
+ #include <features.h>
70
+ #if defined(__UCLIBC__)
71
+ LIBC=uclibc
72
+ #elif defined(__dietlibc__)
73
+ LIBC=dietlibc
74
+ #else
75
+ LIBC=gnu
76
+ #endif
77
+ EOF
78
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
79
+ ;;
80
+esac
81
+
82
# Note: order is significant - the case branches are not exclusive.
83
84
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
85
86
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
87
echo "${machine}-${os}${release}"
88
exit ;;
89
+ *:Bitrig:*:*)
90
+ UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
91
+ echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
92
+ exit ;;
93
*:OpenBSD:*:*)
94
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
95
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
96
97
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
98
echo arm-acorn-riscix${UNAME_RELEASE}
99
exit ;;
100
- arm:riscos:*:*|arm:RISCOS:*:*)
101
+ arm*:riscos:*:*|arm*:RISCOS:*:*)
102
echo arm-unknown-riscos
103
exit ;;
104
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
105
106
i*:CYGWIN*:*)
107
echo ${UNAME_MACHINE}-pc-cygwin
108
exit ;;
109
+ *:MINGW64*:*)
110
+ echo ${UNAME_MACHINE}-pc-mingw64
111
+ exit ;;
112
*:MINGW*:*)
113
echo ${UNAME_MACHINE}-pc-mingw32
114
exit ;;
115
- i*:MSYS*:*)
116
+ *:MSYS*:*)
117
echo ${UNAME_MACHINE}-pc-msys
118
exit ;;
119
i*:windows32*:*)
120
121
exit ;;
122
*:GNU:*:*)
123
# the GNU system
124
- echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
125
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
126
exit ;;
127
*:GNU/*:*:*)
128
# other systems with GNU libc and userland
129
- echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
130
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
131
exit ;;
132
i*86:Minix:*:*)
133
echo ${UNAME_MACHINE}-pc-minix
134
exit ;;
135
aarch64:Linux:*:*)
136
- echo ${UNAME_MACHINE}-unknown-linux-gnu
137
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
138
exit ;;
139
aarch64_be:Linux:*:*)
140
UNAME_MACHINE=aarch64_be
141
- echo ${UNAME_MACHINE}-unknown-linux-gnu
142
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
143
exit ;;
144
alpha:Linux:*:*)
145
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
146
147
EV68*) UNAME_MACHINE=alphaev68 ;;
148
esac
149
objdump --private-headers /bin/sh | grep -q ld.so.1
150
- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
151
- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
152
+ if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
153
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
154
+ exit ;;
155
+ arc:Linux:*:* | arceb:Linux:*:*)
156
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
157
exit ;;
158
arm*:Linux:*:*)
159
eval $set_cc_for_build
160
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
161
| grep -q __ARM_EABI__
162
then
163
- echo ${UNAME_MACHINE}-unknown-linux-gnu
164
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
165
else
166
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
167
| grep -q __ARM_PCS_VFP
168
then
169
- echo ${UNAME_MACHINE}-unknown-linux-gnueabi
170
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
171
else
172
- echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
173
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
174
fi
175
fi
176
exit ;;
177
avr32*:Linux:*:*)
178
- echo ${UNAME_MACHINE}-unknown-linux-gnu
179
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
180
exit ;;
181
cris:Linux:*:*)
182
- echo ${UNAME_MACHINE}-axis-linux-gnu
183
+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
184
exit ;;
185
crisv32:Linux:*:*)
186
- echo ${UNAME_MACHINE}-axis-linux-gnu
187
+ echo ${UNAME_MACHINE}-axis-linux-${LIBC}
188
exit ;;
189
frv:Linux:*:*)
190
- echo ${UNAME_MACHINE}-unknown-linux-gnu
191
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
192
exit ;;
193
hexagon:Linux:*:*)
194
- echo ${UNAME_MACHINE}-unknown-linux-gnu
195
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
196
exit ;;
197
i*86:Linux:*:*)
198
- LIBC=gnu
199
- eval $set_cc_for_build
200
- sed 's/^ //' << EOF >$dummy.c
201
- #ifdef __dietlibc__
202
- LIBC=dietlibc
203
- #endif
204
-EOF
205
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
206
- echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
207
+ echo ${UNAME_MACHINE}-pc-linux-${LIBC}
208
exit ;;
209
ia64:Linux:*:*)
210
- echo ${UNAME_MACHINE}-unknown-linux-gnu
211
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
212
exit ;;
213
m32r*:Linux:*:*)
214
- echo ${UNAME_MACHINE}-unknown-linux-gnu
215
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
216
exit ;;
217
m68*:Linux:*:*)
218
- echo ${UNAME_MACHINE}-unknown-linux-gnu
219
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
220
exit ;;
221
mips:Linux:*:* | mips64:Linux:*:*)
222
eval $set_cc_for_build
223
224
#endif
225
EOF
226
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
227
- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
228
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
229
;;
230
- or32:Linux:*:*)
231
- echo ${UNAME_MACHINE}-unknown-linux-gnu
232
+ openrisc*:Linux:*:*)
233
+ echo or1k-unknown-linux-${LIBC}
234
+ exit ;;
235
+ or32:Linux:*:* | or1k*:Linux:*:*)
236
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
237
exit ;;
238
padre:Linux:*:*)
239
- echo sparc-unknown-linux-gnu
240
+ echo sparc-unknown-linux-${LIBC}
241
exit ;;
242
parisc64:Linux:*:* | hppa64:Linux:*:*)
243
- echo hppa64-unknown-linux-gnu
244
+ echo hppa64-unknown-linux-${LIBC}
245
exit ;;
246
parisc:Linux:*:* | hppa:Linux:*:*)
247
# Look for CPU level
248
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
249
- PA7*) echo hppa1.1-unknown-linux-gnu ;;
250
- PA8*) echo hppa2.0-unknown-linux-gnu ;;
251
- *) echo hppa-unknown-linux-gnu ;;
252
+ PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
253
+ PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
254
+ *) echo hppa-unknown-linux-${LIBC} ;;
255
esac
256
exit ;;
257
ppc64:Linux:*:*)
258
- echo powerpc64-unknown-linux-gnu
259
+ echo powerpc64-unknown-linux-${LIBC}
260
exit ;;
261
ppc:Linux:*:*)
262
- echo powerpc-unknown-linux-gnu
263
+ echo powerpc-unknown-linux-${LIBC}
264
+ exit ;;
265
+ ppc64le:Linux:*:*)
266
+ echo powerpc64le-unknown-linux-${LIBC}
267
+ exit ;;
268
+ ppcle:Linux:*:*)
269
+ echo powerpcle-unknown-linux-${LIBC}
270
exit ;;
271
s390:Linux:*:* | s390x:Linux:*:*)
272
- echo ${UNAME_MACHINE}-ibm-linux
273
+ echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
274
exit ;;
275
sh64*:Linux:*:*)
276
- echo ${UNAME_MACHINE}-unknown-linux-gnu
277
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
278
exit ;;
279
sh*:Linux:*:*)
280
- echo ${UNAME_MACHINE}-unknown-linux-gnu
281
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
282
exit ;;
283
sparc:Linux:*:* | sparc64:Linux:*:*)
284
- echo ${UNAME_MACHINE}-unknown-linux-gnu
285
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
286
exit ;;
287
tile*:Linux:*:*)
288
- echo ${UNAME_MACHINE}-unknown-linux-gnu
289
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
290
exit ;;
291
vax:Linux:*:*)
292
- echo ${UNAME_MACHINE}-dec-linux-gnu
293
+ echo ${UNAME_MACHINE}-dec-linux-${LIBC}
294
exit ;;
295
x86_64:Linux:*:*)
296
- echo ${UNAME_MACHINE}-unknown-linux-gnu
297
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
298
exit ;;
299
xtensa*:Linux:*:*)
300
- echo ${UNAME_MACHINE}-unknown-linux-gnu
301
+ echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
302
exit ;;
303
i*86:DYNIX/ptx:4*:*)
304
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
305
306
BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
307
echo i586-pc-haiku
308
exit ;;
309
+ x86_64:Haiku:*:*)
310
+ echo x86_64-unknown-haiku
311
+ exit ;;
312
SX-4:SUPER-UX:*:*)
313
echo sx4-nec-superux${UNAME_RELEASE}
314
exit ;;
315
316
exit ;;
317
*:Darwin:*:*)
318
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
319
- case $UNAME_PROCESSOR in
320
- i386)
321
- eval $set_cc_for_build
322
- if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
323
- if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
324
- (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
325
- grep IS_64BIT_ARCH >/dev/null
326
- then
327
- UNAME_PROCESSOR="x86_64"
328
- fi
329
- fi ;;
330
- unknown) UNAME_PROCESSOR=powerpc ;;
331
- esac
332
+ eval $set_cc_for_build
333
+ if test "$UNAME_PROCESSOR" = unknown ; then
334
+ UNAME_PROCESSOR=powerpc
335
+ fi
336
+ if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
337
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
338
+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
339
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
340
+ grep IS_64BIT_ARCH >/dev/null
341
+ then
342
+ case $UNAME_PROCESSOR in
343
+ i386) UNAME_PROCESSOR=x86_64 ;;
344
+ powerpc) UNAME_PROCESSOR=powerpc64 ;;
345
+ esac
346
+ fi
347
+ fi
348
+ elif test "$UNAME_PROCESSOR" = i386 ; then
349
+ # Avoid executing cc on OS X 10.9, as it ships with a stub
350
+ # that puts up a graphical alert prompting to install
351
+ # developer tools. Any system running Mac OS X 10.7 or
352
+ # later (Darwin 11 and later) is required to have a 64-bit
353
+ # processor. This is not true of the ARM version of Darwin
354
+ # that Apple uses in portable devices.
355
+ UNAME_PROCESSOR=x86_64
356
+ fi
357
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
358
exit ;;
359
*:procnto*:*:* | *:QNX:[0123456789]*:*)
360
361
NEO-?:NONSTOP_KERNEL:*:*)
362
echo neo-tandem-nsk${UNAME_RELEASE}
363
exit ;;
364
- NSE-?:NONSTOP_KERNEL:*:*)
365
+ NSE-*:NONSTOP_KERNEL:*:*)
366
echo nse-tandem-nsk${UNAME_RELEASE}
367
exit ;;
368
NSR-?:NONSTOP_KERNEL:*:*)
369
370
exit ;;
371
esac
372
373
-#echo '(No uname command or uname output not recognized.)' 1>&2
374
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
375
-
376
-eval $set_cc_for_build
377
-cat >$dummy.c <<EOF
378
-#ifdef _SEQUENT_
379
-# include <sys/types.h>
380
-# include <sys/utsname.h>
381
-#endif
382
-main ()
383
-{
384
-#if defined (sony)
385
-#if defined (MIPSEB)
386
- /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
387
- I don't know.... */
388
- printf ("mips-sony-bsd\n"); exit (0);
389
-#else
390
-#include <sys/param.h>
391
- printf ("m68k-sony-newsos%s\n",
392
-#ifdef NEWSOS4
393
- "4"
394
-#else
395
- ""
396
-#endif
397
- ); exit (0);
398
-#endif
399
-#endif
400
-
401
-#if defined (__arm) && defined (__acorn) && defined (__unix)
402
- printf ("arm-acorn-riscix\n"); exit (0);
403
-#endif
404
-
405
-#if defined (hp300) && !defined (hpux)
406
- printf ("m68k-hp-bsd\n"); exit (0);
407
-#endif
408
-
409
-#if defined (NeXT)
410
-#if !defined (__ARCHITECTURE__)
411
-#define __ARCHITECTURE__ "m68k"
412
-#endif
413
- int version;
414
- version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
415
- if (version < 4)
416
- printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
417
- else
418
- printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
419
- exit (0);
420
-#endif
421
-
422
-#if defined (MULTIMAX) || defined (n16)
423
-#if defined (UMAXV)
424
- printf ("ns32k-encore-sysv\n"); exit (0);
425
-#else
426
-#if defined (CMU)
427
- printf ("ns32k-encore-mach\n"); exit (0);
428
-#else
429
- printf ("ns32k-encore-bsd\n"); exit (0);
430
-#endif
431
-#endif
432
-#endif
433
-
434
-#if defined (__386BSD__)
435
- printf ("i386-pc-bsd\n"); exit (0);
436
-#endif
437
-
438
-#if defined (sequent)
439
-#if defined (i386)
440
- printf ("i386-sequent-dynix\n"); exit (0);
441
-#endif
442
-#if defined (ns32000)
443
- printf ("ns32k-sequent-dynix\n"); exit (0);
444
-#endif
445
-#endif
446
-
447
-#if defined (_SEQUENT_)
448
- struct utsname un;
449
-
450
- uname(&un);
451
-
452
- if (strncmp(un.version, "V2", 2) == 0) {
453
- printf ("i386-sequent-ptx2\n"); exit (0);
454
- }
455
- if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
456
- printf ("i386-sequent-ptx1\n"); exit (0);
457
- }
458
- printf ("i386-sequent-ptx\n"); exit (0);
459
-
460
-#endif
461
-
462
-#if defined (vax)
463
-# if !defined (ultrix)
464
-# include <sys/param.h>
465
-# if defined (BSD)
466
-# if BSD == 43
467
- printf ("vax-dec-bsd4.3\n"); exit (0);
468
-# else
469
-# if BSD == 199006
470
- printf ("vax-dec-bsd4.3reno\n"); exit (0);
471
-# else
472
- printf ("vax-dec-bsd\n"); exit (0);
473
-# endif
474
-# endif
475
-# else
476
- printf ("vax-dec-bsd\n"); exit (0);
477
-# endif
478
-# else
479
- printf ("vax-dec-ultrix\n"); exit (0);
480
-# endif
481
-#endif
482
-
483
-#if defined (alliant) && defined (i860)
484
- printf ("i860-alliant-bsd\n"); exit (0);
485
-#endif
486
-
487
- exit (1);
488
-}
489
-EOF
490
-
491
-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
492
- { echo "$SYSTEM_NAME"; exit; }
493
-
494
-# Apollos put the system type in the environment.
495
-
496
-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
497
-
498
-# Convex versions that predate uname can use getsysinfo(1)
499
-
500
-if [ -x /usr/convex/getsysinfo ]
501
-then
502
- case `getsysinfo -f cpu_type` in
503
- c1*)
504
- echo c1-convex-bsd
505
- exit ;;
506
- c2*)
507
- if getsysinfo -f scalar_acc
508
- then echo c32-convex-bsd
509
- else echo c2-convex-bsd
510
- fi
511
- exit ;;
512
- c34*)
513
- echo c34-convex-bsd
514
- exit ;;
515
- c38*)
516
- echo c38-convex-bsd
517
- exit ;;
518
- c4*)
519
- echo c4-convex-bsd
520
- exit ;;
521
- esac
522
-fi
523
-
524
cat >&2 <<EOF
525
$0: unable to guess system type
526
527
ncmpc-0.21.tar.bz2/build/config.sub -> ncmpc-0.24.tar.xz/build/config.sub
Changed
294
1
2
#! /bin/sh
3
# Configuration validation subroutine script.
4
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
5
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
6
-# 2011, 2012 Free Software Foundation, Inc.
7
+# Copyright 1992-2014 Free Software Foundation, Inc.
8
9
-timestamp='2012-04-18'
10
+timestamp='2014-05-01'
11
12
-# This file is (in principle) common to ALL GNU software.
13
-# The presence of a machine in this file suggests that SOME GNU software
14
-# can handle that machine. It does not imply ALL GNU software can.
15
-#
16
-# This file is free software; you can redistribute it and/or modify
17
-# it under the terms of the GNU General Public License as published by
18
-# the Free Software Foundation; either version 2 of the License, or
19
+# This file is free software; you can redistribute it and/or modify it
20
+# under the terms of the GNU General Public License as published by
21
+# the Free Software Foundation; either version 3 of the License, or
22
# (at your option) any later version.
23
#
24
-# This program is distributed in the hope that it will be useful,
25
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
26
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27
-# GNU General Public License for more details.
28
+# This program is distributed in the hope that it will be useful, but
29
+# WITHOUT ANY WARRANTY; without even the implied warranty of
30
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
31
+# General Public License for more details.
32
#
33
# You should have received a copy of the GNU General Public License
34
# along with this program; if not, see <http://www.gnu.org/licenses/>.
35
36
# As a special exception to the GNU General Public License, if you
37
# distribute this file as part of a program that contains a
38
# configuration script generated by Autoconf, you may include it under
39
-# the same distribution terms that you use for the rest of that program.
40
+# the same distribution terms that you use for the rest of that
41
+# program. This Exception is an additional permission under section 7
42
+# of the GNU General Public License, version 3 ("GPLv3").
43
44
45
-# Please send patches to <config-patches@gnu.org>. Submit a context
46
-# diff and a properly formatted GNU ChangeLog entry.
47
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
48
#
49
# Configuration subroutine to validate and canonicalize a configuration type.
50
# Supply the specified configuration type as an argument.
51
52
version="\
53
GNU config.sub ($timestamp)
54
55
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
56
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
57
-Free Software Foundation, Inc.
58
+Copyright 1992-2014 Free Software Foundation, Inc.
59
60
This is free software; see the source for copying conditions. There is NO
61
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
62
63
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
64
case $maybe_os in
65
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
66
- linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
67
+ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
68
knetbsd*-gnu* | netbsd*-gnu* | \
69
kopensolaris*-gnu* | \
70
storm-chaos* | os2-emx* | rtmk-nova*)
71
72
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
73
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
74
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
75
- -apple | -axis | -knuth | -cray | -microblaze)
76
+ -apple | -axis | -knuth | -cray | -microblaze*)
77
os=
78
basic_machine=$1
79
;;
80
81
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
82
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
83
| am33_2.0 \
84
- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
85
- | be32 | be64 \
86
+ | arc | arceb \
87
+ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
88
+ | avr | avr32 \
89
+ | be32 | be64 \
90
| bfin \
91
- | c4x | clipper \
92
+ | c4x | c8051 | clipper \
93
| d10v | d30v | dlx | dsp16xx \
94
| epiphany \
95
| fido | fr30 | frv \
96
97
| hexagon \
98
| i370 | i860 | i960 | ia64 \
99
| ip2k | iq2000 \
100
+ | k1om \
101
| le32 | le64 \
102
| lm32 \
103
| m32c | m32r | m32rle | m68000 | m68k | m88k \
104
- | maxq | mb | microblaze | mcore | mep | metag \
105
+ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
106
| mips | mipsbe | mipseb | mipsel | mipsle \
107
| mips16 \
108
| mips64 | mips64el \
109
110
| mips64vr5900 | mips64vr5900el \
111
| mipsisa32 | mipsisa32el \
112
| mipsisa32r2 | mipsisa32r2el \
113
+ | mipsisa32r6 | mipsisa32r6el \
114
| mipsisa64 | mipsisa64el \
115
| mipsisa64r2 | mipsisa64r2el \
116
+ | mipsisa64r6 | mipsisa64r6el \
117
| mipsisa64sb1 | mipsisa64sb1el \
118
| mipsisa64sr71k | mipsisa64sr71kel \
119
+ | mipsr5900 | mipsr5900el \
120
| mipstx39 | mipstx39el \
121
| mn10200 | mn10300 \
122
| moxie \
123
| mt \
124
| msp430 \
125
| nds32 | nds32le | nds32be \
126
- | nios | nios2 \
127
+ | nios | nios2 | nios2eb | nios2el \
128
| ns16k | ns32k \
129
- | open8 \
130
- | or32 \
131
+ | open8 | or1k | or1knd | or32 \
132
| pdp10 | pdp11 | pj | pjl \
133
| powerpc | powerpc64 | powerpc64le | powerpcle \
134
| pyramid \
135
136
c6x)
137
basic_machine=tic6x-unknown
138
;;
139
- m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
140
+ m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
141
basic_machine=$basic_machine-unknown
142
os=-none
143
;;
144
145
| aarch64-* | aarch64_be-* \
146
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
147
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
148
- | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
149
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
150
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
151
| avr-* | avr32-* \
152
| be32-* | be64-* \
153
| bfin-* | bs2000-* \
154
| c[123]* | c30-* | [cjt]90-* | c4x-* \
155
- | clipper-* | craynv-* | cydra-* \
156
+ | c8051-* | clipper-* | craynv-* | cydra-* \
157
| d10v-* | d30v-* | dlx-* \
158
| elxsi-* \
159
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
160
161
| hexagon-* \
162
| i*86-* | i860-* | i960-* | ia64-* \
163
| ip2k-* | iq2000-* \
164
+ | k1om-* \
165
| le32-* | le64-* \
166
| lm32-* \
167
| m32c-* | m32r-* | m32rle-* \
168
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
169
- | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
170
+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
171
+ | microblaze-* | microblazeel-* \
172
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
173
| mips16-* \
174
| mips64-* | mips64el-* \
175
176
| mips64vr5900-* | mips64vr5900el-* \
177
| mipsisa32-* | mipsisa32el-* \
178
| mipsisa32r2-* | mipsisa32r2el-* \
179
+ | mipsisa32r6-* | mipsisa32r6el-* \
180
| mipsisa64-* | mipsisa64el-* \
181
| mipsisa64r2-* | mipsisa64r2el-* \
182
+ | mipsisa64r6-* | mipsisa64r6el-* \
183
| mipsisa64sb1-* | mipsisa64sb1el-* \
184
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
185
+ | mipsr5900-* | mipsr5900el-* \
186
| mipstx39-* | mipstx39el-* \
187
| mmix-* \
188
| mt-* \
189
| msp430-* \
190
| nds32-* | nds32le-* | nds32be-* \
191
- | nios-* | nios2-* \
192
+ | nios-* | nios2-* | nios2eb-* | nios2el-* \
193
| none-* | np1-* | ns16k-* | ns32k-* \
194
| open8-* \
195
+ | or1k*-* \
196
| orion-* \
197
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
198
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
199
200
basic_machine=ns32k-utek
201
os=-sysv
202
;;
203
- microblaze)
204
+ microblaze*)
205
basic_machine=microblaze-xilinx
206
;;
207
+ mingw64)
208
+ basic_machine=x86_64-pc
209
+ os=-mingw64
210
+ ;;
211
mingw32)
212
- basic_machine=i386-pc
213
+ basic_machine=i686-pc
214
os=-mingw32
215
;;
216
mingw32ce)
217
218
basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
219
;;
220
msys)
221
- basic_machine=i386-pc
222
+ basic_machine=i686-pc
223
os=-msys
224
;;
225
mvs)
226
227
basic_machine=i586-unknown
228
os=-pw32
229
;;
230
- rdos)
231
+ rdos | rdos64)
232
+ basic_machine=x86_64-pc
233
+ os=-rdos
234
+ ;;
235
+ rdos32)
236
basic_machine=i386-pc
237
os=-rdos
238
;;
239
240
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
241
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
242
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
243
- | -sym* | -kopensolaris* \
244
+ | -sym* | -kopensolaris* | -plan9* \
245
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
246
| -aos* | -aros* \
247
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
248
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
249
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
250
- | -openbsd* | -solidbsd* \
251
+ | -bitrig* | -openbsd* | -solidbsd* \
252
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
253
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
254
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
255
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
256
| -chorusos* | -chorusrdb* | -cegcc* \
257
| -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
258
- | -mingw32* | -linux-gnu* | -linux-android* \
259
- | -linux-newlib* | -linux-uclibc* \
260
+ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
261
+ | -linux-newlib* | -linux-musl* | -linux-uclibc* \
262
| -uxpv* | -beos* | -mpeix* | -udk* \
263
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
264
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
265
266
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
267
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
268
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
269
- | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
270
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
271
# Remember, each alternative MUST END IN *, to match a version number.
272
;;
273
-qnx*)
274
275
-aros*)
276
os=-aros
277
;;
278
- -kaos*)
279
- os=-kaos
280
- ;;
281
-zvmoe)
282
os=-zvmoe
283
;;
284
285
c4x-* | tic4x-*)
286
os=-coff
287
;;
288
+ c8051-*)
289
+ os=-elf
290
+ ;;
291
hexagon-*)
292
os=-elf
293
;;
294
ncmpc-0.21.tar.bz2/build/depcomp -> ncmpc-0.24.tar.xz/build/depcomp
Changed
685
1
2
#! /bin/sh
3
# depcomp - compile a program generating dependencies as side-effects
4
5
-scriptversion=2012-03-27.16; # UTC
6
+scriptversion=2013-05-30.07; # UTC
7
8
-# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
9
-# 2011, 2012 Free Software Foundation, Inc.
10
+# Copyright (C) 1999-2013 Free Software Foundation, Inc.
11
12
# This program is free software; you can redistribute it and/or modify
13
# it under the terms of the GNU General Public License as published by
14
15
16
case $1 in
17
'')
18
- echo "$0: No command. Try '$0 --help' for more information." 1>&2
19
- exit 1;
20
- ;;
21
+ echo "$0: No command. Try '$0 --help' for more information." 1>&2
22
+ exit 1;
23
+ ;;
24
-h | --h*)
25
cat <<\EOF
26
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
27
28
;;
29
esac
30
31
+# Get the directory component of the given path, and save it in the
32
+# global variables '$dir'. Note that this directory component will
33
+# be either empty or ending with a '/' character. This is deliberate.
34
+set_dir_from ()
35
+{
36
+ case $1 in
37
+ */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
38
+ *) dir=;;
39
+ esac
40
+}
41
+
42
+# Get the suffix-stripped basename of the given path, and save it the
43
+# global variable '$base'.
44
+set_base_from ()
45
+{
46
+ base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
47
+}
48
+
49
+# If no dependency file was actually created by the compiler invocation,
50
+# we still have to create a dummy depfile, to avoid errors with the
51
+# Makefile "include basename.Plo" scheme.
52
+make_dummy_depfile ()
53
+{
54
+ echo "#dummy" > "$depfile"
55
+}
56
+
57
+# Factor out some common post-processing of the generated depfile.
58
+# Requires the auxiliary global variable '$tmpdepfile' to be set.
59
+aix_post_process_depfile ()
60
+{
61
+ # If the compiler actually managed to produce a dependency file,
62
+ # post-process it.
63
+ if test -f "$tmpdepfile"; then
64
+ # Each line is of the form 'foo.o: dependency.h'.
65
+ # Do two passes, one to just change these to
66
+ # $object: dependency.h
67
+ # and one to simply output
68
+ # dependency.h:
69
+ # which is needed to avoid the deleted-header problem.
70
+ { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
71
+ sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
72
+ } > "$depfile"
73
+ rm -f "$tmpdepfile"
74
+ else
75
+ make_dummy_depfile
76
+ fi
77
+}
78
+
79
# A tabulation character.
80
tab=' '
81
# A newline character.
82
nl='
83
'
84
+# Character ranges might be problematic outside the C locale.
85
+# These definitions help.
86
+upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
87
+lower=abcdefghijklmnopqrstuvwxyz
88
+digits=0123456789
89
+alpha=${upper}${lower}
90
91
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
92
echo "depcomp: Variables source, object and depmode must be set" 1>&2
93
94
95
rm -f "$tmpdepfile"
96
97
+# Avoid interferences from the environment.
98
+gccflag= dashmflag=
99
+
100
# Some modes work just like other modes, but use different flags. We
101
# parameterize here, but still list the modes in the big case below,
102
# to make depend.m4 easier to write. Note that we *cannot* use a case
103
104
fi
105
106
if test "$depmode" = dashXmstdout; then
107
- # This is just like dashmstdout with a different argument.
108
- dashmflag=-xM
109
- depmode=dashmstdout
110
+ # This is just like dashmstdout with a different argument.
111
+ dashmflag=-xM
112
+ depmode=dashmstdout
113
fi
114
115
cygpath_u="cygpath -u -f -"
116
if test "$depmode" = msvcmsys; then
117
- # This is just like msvisualcpp but w/o cygpath translation.
118
- # Just convert the backslash-escaped backslashes to single forward
119
- # slashes to satisfy depend.m4
120
- cygpath_u='sed s,\\\\,/,g'
121
- depmode=msvisualcpp
122
+ # This is just like msvisualcpp but w/o cygpath translation.
123
+ # Just convert the backslash-escaped backslashes to single forward
124
+ # slashes to satisfy depend.m4
125
+ cygpath_u='sed s,\\\\,/,g'
126
+ depmode=msvisualcpp
127
fi
128
129
if test "$depmode" = msvc7msys; then
130
- # This is just like msvc7 but w/o cygpath translation.
131
- # Just convert the backslash-escaped backslashes to single forward
132
- # slashes to satisfy depend.m4
133
- cygpath_u='sed s,\\\\,/,g'
134
- depmode=msvc7
135
+ # This is just like msvc7 but w/o cygpath translation.
136
+ # Just convert the backslash-escaped backslashes to single forward
137
+ # slashes to satisfy depend.m4
138
+ cygpath_u='sed s,\\\\,/,g'
139
+ depmode=msvc7
140
fi
141
142
if test "$depmode" = xlc; then
143
- # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations.
144
- gccflag=-qmakedep=gcc,-MF
145
- depmode=gcc
146
+ # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
147
+ gccflag=-qmakedep=gcc,-MF
148
+ depmode=gcc
149
fi
150
151
case "$depmode" in
152
153
done
154
"$@"
155
stat=$?
156
- if test $stat -eq 0; then :
157
- else
158
+ if test $stat -ne 0; then
159
rm -f "$tmpdepfile"
160
exit $stat
161
fi
162
163
;;
164
165
gcc)
166
+## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
167
+## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
168
+## (see the conditional assignment to $gccflag above).
169
## There are various ways to get dependency output from gcc. Here's
170
## why we pick this rather obscure method:
171
## - Don't want to use -MD because we'd like the dependencies to end
172
## up in a subdir. Having to rename by hand is ugly.
173
## (We might end up doing this anyway to support other compilers.)
174
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
175
-## -MM, not -M (despite what the docs say).
176
+## -MM, not -M (despite what the docs say). Also, it might not be
177
+## supported by the other compilers which use the 'gcc' depmode.
178
## - Using -M directly means running the compiler twice (even worse
179
## than renaming).
180
if test -z "$gccflag"; then
181
182
fi
183
"$@" -Wp,"$gccflag$tmpdepfile"
184
stat=$?
185
- if test $stat -eq 0; then :
186
- else
187
+ if test $stat -ne 0; then
188
rm -f "$tmpdepfile"
189
exit $stat
190
fi
191
rm -f "$depfile"
192
echo "$object : \\" > "$depfile"
193
- alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
194
-## The second -e expression handles DOS-style file names with drive letters.
195
+ # The second -e expression handles DOS-style file names with drive
196
+ # letters.
197
sed -e 's/^[^:]*: / /' \
198
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
199
## This next piece of magic avoids the "deleted header file" problem.
200
201
## typically no way to rebuild the header). We avoid this by adding
202
## dummy dependencies for each header file. Too bad gcc doesn't do
203
## this for us directly.
204
- tr ' ' "$nl" < "$tmpdepfile" |
205
## Some versions of gcc put a space before the ':'. On the theory
206
## that the space means something, we add a space to the output as
207
## well. hp depmode also adds that space, but also prefixes the VPATH
208
## to the object. Take care to not repeat it in the output.
209
## Some versions of the HPUX 10.20 sed can't process this invocation
210
## correctly. Breaking it into two sed invocations is a workaround.
211
- sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
212
- | sed -e 's/$/ :/' >> "$depfile"
213
+ tr ' ' "$nl" < "$tmpdepfile" \
214
+ | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
215
+ | sed -e 's/$/ :/' >> "$depfile"
216
rm -f "$tmpdepfile"
217
;;
218
219
220
"$@" -MDupdate "$tmpdepfile"
221
fi
222
stat=$?
223
- if test $stat -eq 0; then :
224
- else
225
+ if test $stat -ne 0; then
226
rm -f "$tmpdepfile"
227
exit $stat
228
fi
229
230
231
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
232
echo "$object : \\" > "$depfile"
233
-
234
# Clip off the initial element (the dependent). Don't try to be
235
# clever and replace this with sed code, as IRIX sed won't handle
236
# lines with more than a fixed number of characters (4096 in
237
238
# the IRIX cc adds comments like '#:fec' to the end of the
239
# dependency line.
240
tr ' ' "$nl" < "$tmpdepfile" \
241
- | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
242
- tr "$nl" ' ' >> "$depfile"
243
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
244
+ | tr "$nl" ' ' >> "$depfile"
245
echo >> "$depfile"
246
-
247
# The second pass generates a dummy entry for each header file.
248
tr ' ' "$nl" < "$tmpdepfile" \
249
- | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
250
- >> "$depfile"
251
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
252
+ >> "$depfile"
253
else
254
- # The sourcefile does not contain any dependencies, so just
255
- # store a dummy comment line, to avoid errors with the Makefile
256
- # "include basename.Plo" scheme.
257
- echo "#dummy" > "$depfile"
258
+ make_dummy_depfile
259
fi
260
rm -f "$tmpdepfile"
261
;;
262
263
# current directory. Also, the AIX compiler puts '$object:' at the
264
# start of each line; $object doesn't have directory information.
265
# Version 6 uses the directory in both cases.
266
- dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
267
- test "x$dir" = "x$object" && dir=
268
- base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
269
+ set_dir_from "$object"
270
+ set_base_from "$object"
271
if test "$libtool" = yes; then
272
tmpdepfile1=$dir$base.u
273
tmpdepfile2=$base.u
274
275
"$@" -M
276
fi
277
stat=$?
278
-
279
- if test $stat -eq 0; then :
280
- else
281
+ if test $stat -ne 0; then
282
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
283
exit $stat
284
fi
285
286
do
287
test -f "$tmpdepfile" && break
288
done
289
- if test -f "$tmpdepfile"; then
290
- # Each line is of the form 'foo.o: dependent.h'.
291
- # Do two passes, one to just change these to
292
- # '$object: dependent.h' and one to simply 'dependent.h:'.
293
- sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
294
- sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
295
- else
296
- # The sourcefile does not contain any dependencies, so just
297
- # store a dummy comment line, to avoid errors with the Makefile
298
- # "include basename.Plo" scheme.
299
- echo "#dummy" > "$depfile"
300
+ aix_post_process_depfile
301
+ ;;
302
+
303
+tcc)
304
+ # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
305
+ # FIXME: That version still under development at the moment of writing.
306
+ # Make that this statement remains true also for stable, released
307
+ # versions.
308
+ # It will wrap lines (doesn't matter whether long or short) with a
309
+ # trailing '\', as in:
310
+ #
311
+ # foo.o : \
312
+ # foo.c \
313
+ # foo.h \
314
+ #
315
+ # It will put a trailing '\' even on the last line, and will use leading
316
+ # spaces rather than leading tabs (at least since its commit 0394caf7
317
+ # "Emit spaces for -MD").
318
+ "$@" -MD -MF "$tmpdepfile"
319
+ stat=$?
320
+ if test $stat -ne 0; then
321
+ rm -f "$tmpdepfile"
322
+ exit $stat
323
fi
324
+ rm -f "$depfile"
325
+ # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
326
+ # We have to change lines of the first kind to '$object: \'.
327
+ sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
328
+ # And for each line of the second kind, we have to emit a 'dep.h:'
329
+ # dummy dependency, to avoid the deleted-header problem.
330
+ sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
331
rm -f "$tmpdepfile"
332
;;
333
334
-icc)
335
- # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'.
336
- # However on
337
- # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c
338
- # ICC 7.0 will fill foo.d with something like
339
- # foo.o: sub/foo.c
340
- # foo.o: sub/foo.h
341
- # which is wrong. We want
342
- # sub/foo.o: sub/foo.c
343
- # sub/foo.o: sub/foo.h
344
- # sub/foo.c:
345
- # sub/foo.h:
346
- # ICC 7.1 will output
347
+## The order of this option in the case statement is important, since the
348
+## shell code in configure will try each of these formats in the order
349
+## listed in this file. A plain '-MD' option would be understood by many
350
+## compilers, so we must ensure this comes after the gcc and icc options.
351
+pgcc)
352
+ # Portland's C compiler understands '-MD'.
353
+ # Will always output deps to 'file.d' where file is the root name of the
354
+ # source file under compilation, even if file resides in a subdirectory.
355
+ # The object file name does not affect the name of the '.d' file.
356
+ # pgcc 10.2 will output
357
# foo.o: sub/foo.c sub/foo.h
358
- # and will wrap long lines using '\':
359
+ # and will wrap long lines using '\' :
360
# foo.o: sub/foo.c ... \
361
# sub/foo.h ... \
362
# ...
363
- # tcc 0.9.26 (FIXME still under development at the moment of writing)
364
- # will emit a similar output, but also prepend the continuation lines
365
- # with horizontal tabulation characters.
366
- "$@" -MD -MF "$tmpdepfile"
367
- stat=$?
368
- if test $stat -eq 0; then :
369
- else
370
+ set_dir_from "$object"
371
+ # Use the source, not the object, to determine the base name, since
372
+ # that's sadly what pgcc will do too.
373
+ set_base_from "$source"
374
+ tmpdepfile=$base.d
375
+
376
+ # For projects that build the same source file twice into different object
377
+ # files, the pgcc approach of using the *source* file root name can cause
378
+ # problems in parallel builds. Use a locking strategy to avoid stomping on
379
+ # the same $tmpdepfile.
380
+ lockdir=$base.d-lock
381
+ trap "
382
+ echo '$0: caught signal, cleaning up...' >&2
383
+ rmdir '$lockdir'
384
+ exit 1
385
+ " 1 2 13 15
386
+ numtries=100
387
+ i=$numtries
388
+ while test $i -gt 0; do
389
+ # mkdir is a portable test-and-set.
390
+ if mkdir "$lockdir" 2>/dev/null; then
391
+ # This process acquired the lock.
392
+ "$@" -MD
393
+ stat=$?
394
+ # Release the lock.
395
+ rmdir "$lockdir"
396
+ break
397
+ else
398
+ # If the lock is being held by a different process, wait
399
+ # until the winning process is done or we timeout.
400
+ while test -d "$lockdir" && test $i -gt 0; do
401
+ sleep 1
402
+ i=`expr $i - 1`
403
+ done
404
+ fi
405
+ i=`expr $i - 1`
406
+ done
407
+ trap - 1 2 13 15
408
+ if test $i -le 0; then
409
+ echo "$0: failed to acquire lock after $numtries attempts" >&2
410
+ echo "$0: check lockdir '$lockdir'" >&2
411
+ exit 1
412
+ fi
413
+
414
+ if test $stat -ne 0; then
415
rm -f "$tmpdepfile"
416
exit $stat
417
fi
418
rm -f "$depfile"
419
- # Each line is of the form 'foo.o: dependent.h',
420
- # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'.
421
+ # Each line is of the form `foo.o: dependent.h',
422
+ # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
423
# Do two passes, one to just change these to
424
- # '$object: dependent.h' and one to simply 'dependent.h:'.
425
- sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \
426
- < "$tmpdepfile" > "$depfile"
427
- sed '
428
- s/[ '"$tab"'][ '"$tab"']*/ /g
429
- s/^ *//
430
- s/ *\\*$//
431
- s/^[^:]*: *//
432
- /^$/d
433
- /:$/d
434
- s/$/ :/
435
- ' < "$tmpdepfile" >> "$depfile"
436
+ # `$object: dependent.h' and one to simply `dependent.h:'.
437
+ sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
438
+ # Some versions of the HPUX 10.20 sed can't process this invocation
439
+ # correctly. Breaking it into two sed invocations is a workaround.
440
+ sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
441
+ | sed -e 's/$/ :/' >> "$depfile"
442
rm -f "$tmpdepfile"
443
;;
444
445
446
# 'foo.d', which lands next to the object file, wherever that
447
# happens to be.
448
# Much of this is similar to the tru64 case; see comments there.
449
- dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
450
- test "x$dir" = "x$object" && dir=
451
- base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
452
+ set_dir_from "$object"
453
+ set_base_from "$object"
454
if test "$libtool" = yes; then
455
tmpdepfile1=$dir$base.d
456
tmpdepfile2=$dir.libs/$base.d
457
458
"$@" +Maked
459
fi
460
stat=$?
461
- if test $stat -eq 0; then :
462
- else
463
+ if test $stat -ne 0; then
464
rm -f "$tmpdepfile1" "$tmpdepfile2"
465
exit $stat
466
fi
467
468
test -f "$tmpdepfile" && break
469
done
470
if test -f "$tmpdepfile"; then
471
- sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
472
+ sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
473
# Add 'dependent.h:' lines.
474
sed -ne '2,${
475
- s/^ *//
476
- s/ \\*$//
477
- s/$/:/
478
- p
479
- }' "$tmpdepfile" >> "$depfile"
480
+ s/^ *//
481
+ s/ \\*$//
482
+ s/$/:/
483
+ p
484
+ }' "$tmpdepfile" >> "$depfile"
485
else
486
- echo "#dummy" > "$depfile"
487
+ make_dummy_depfile
488
fi
489
rm -f "$tmpdepfile" "$tmpdepfile2"
490
;;
491
492
tru64)
493
- # The Tru64 compiler uses -MD to generate dependencies as a side
494
- # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
495
- # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
496
- # dependencies in 'foo.d' instead, so we check for that too.
497
- # Subdirectories are respected.
498
- dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
499
- test "x$dir" = "x$object" && dir=
500
- base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
501
-
502
- if test "$libtool" = yes; then
503
- # With Tru64 cc, shared objects can also be used to make a
504
- # static library. This mechanism is used in libtool 1.4 series to
505
- # handle both shared and static libraries in a single compilation.
506
- # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
507
- #
508
- # With libtool 1.5 this exception was removed, and libtool now
509
- # generates 2 separate objects for the 2 libraries. These two
510
- # compilations output dependencies in $dir.libs/$base.o.d and
511
- # in $dir$base.o.d. We have to check for both files, because
512
- # one of the two compilations can be disabled. We should prefer
513
- # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
514
- # automatically cleaned when .libs/ is deleted, while ignoring
515
- # the former would cause a distcleancheck panic.
516
- tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
517
- tmpdepfile2=$dir$base.o.d # libtool 1.5
518
- tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
519
- tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
520
- "$@" -Wc,-MD
521
- else
522
- tmpdepfile1=$dir$base.o.d
523
- tmpdepfile2=$dir$base.d
524
- tmpdepfile3=$dir$base.d
525
- tmpdepfile4=$dir$base.d
526
- "$@" -MD
527
- fi
528
-
529
- stat=$?
530
- if test $stat -eq 0; then :
531
- else
532
- rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
533
- exit $stat
534
- fi
535
-
536
- for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
537
- do
538
- test -f "$tmpdepfile" && break
539
- done
540
- if test -f "$tmpdepfile"; then
541
- sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
542
- sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
543
- else
544
- echo "#dummy" > "$depfile"
545
- fi
546
- rm -f "$tmpdepfile"
547
- ;;
548
+ # The Tru64 compiler uses -MD to generate dependencies as a side
549
+ # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
550
+ # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
551
+ # dependencies in 'foo.d' instead, so we check for that too.
552
+ # Subdirectories are respected.
553
+ set_dir_from "$object"
554
+ set_base_from "$object"
555
+
556
+ if test "$libtool" = yes; then
557
+ # Libtool generates 2 separate objects for the 2 libraries. These
558
+ # two compilations output dependencies in $dir.libs/$base.o.d and
559
+ # in $dir$base.o.d. We have to check for both files, because
560
+ # one of the two compilations can be disabled. We should prefer
561
+ # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
562
+ # automatically cleaned when .libs/ is deleted, while ignoring
563
+ # the former would cause a distcleancheck panic.
564
+ tmpdepfile1=$dir$base.o.d # libtool 1.5
565
+ tmpdepfile2=$dir.libs/$base.o.d # Likewise.
566
+ tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
567
+ "$@" -Wc,-MD
568
+ else
569
+ tmpdepfile1=$dir$base.d
570
+ tmpdepfile2=$dir$base.d
571
+ tmpdepfile3=$dir$base.d
572
+ "$@" -MD
573
+ fi
574
+
575
+ stat=$?
576
+ if test $stat -ne 0; then
577
+ rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
578
+ exit $stat
579
+ fi
580
+
581
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
582
+ do
583
+ test -f "$tmpdepfile" && break
584
+ done
585
+ # Same post-processing that is required for AIX mode.
586
+ aix_post_process_depfile
587
+ ;;
588
589
msvc7)
590
if test "$libtool" = yes; then
591
592
"$@" $showIncludes > "$tmpdepfile"
593
stat=$?
594
grep -v '^Note: including file: ' "$tmpdepfile"
595
- if test "$stat" = 0; then :
596
- else
597
+ if test $stat -ne 0; then
598
rm -f "$tmpdepfile"
599
exit $stat
600
fi
601
602
G
603
p
604
}' >> "$depfile"
605
+ echo >> "$depfile" # make sure the fragment doesn't end with a backslash
606
rm -f "$tmpdepfile"
607
;;
608
609
610
# in the target name. This is to cope with DOS-style filenames:
611
# a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
612
"$@" $dashmflag |
613
- sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile"
614
+ sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
615
rm -f "$depfile"
616
cat < "$tmpdepfile" > "$depfile"
617
- tr ' ' "$nl" < "$tmpdepfile" | \
618
-## Some versions of the HPUX 10.20 sed can't process this invocation
619
-## correctly. Breaking it into two sed invocations is a workaround.
620
- sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
621
+ # Some versions of the HPUX 10.20 sed can't process this sed invocation
622
+ # correctly. Breaking it into two sed invocations is a workaround.
623
+ tr ' ' "$nl" < "$tmpdepfile" \
624
+ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
625
+ | sed -e 's/$/ :/' >> "$depfile"
626
rm -f "$tmpdepfile"
627
;;
628
629
630
# makedepend may prepend the VPATH from the source file name to the object.
631
# No need to regex-escape $object, excess matching of '.' is harmless.
632
sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
633
- sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \
634
-## Some versions of the HPUX 10.20 sed can't process this invocation
635
-## correctly. Breaking it into two sed invocations is a workaround.
636
- sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
637
+ # Some versions of the HPUX 10.20 sed can't process the last invocation
638
+ # correctly. Breaking it into two sed invocations is a workaround.
639
+ sed '1,2d' "$tmpdepfile" \
640
+ | tr ' ' "$nl" \
641
+ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
642
+ | sed -e 's/$/ :/' >> "$depfile"
643
rm -f "$tmpdepfile" "$tmpdepfile".bak
644
;;
645
646
647
esac
648
done
649
650
- "$@" -E |
651
- sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
652
- -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
653
- sed '$ s: \\$::' > "$tmpdepfile"
654
+ "$@" -E \
655
+ | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
656
+ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
657
+ | sed '$ s: \\$::' > "$tmpdepfile"
658
rm -f "$depfile"
659
echo "$object : \\" > "$depfile"
660
cat < "$tmpdepfile" >> "$depfile"
661
662
shift
663
;;
664
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
665
- set fnord "$@"
666
- shift
667
- shift
668
- ;;
669
+ set fnord "$@"
670
+ shift
671
+ shift
672
+ ;;
673
*)
674
- set fnord "$@" "$arg"
675
- shift
676
- shift
677
- ;;
678
+ set fnord "$@" "$arg"
679
+ shift
680
+ shift
681
+ ;;
682
esac
683
done
684
"$@" -E 2>/dev/null |
685
ncmpc-0.21.tar.bz2/build/install-sh -> ncmpc-0.24.tar.xz/build/install-sh
Changed
64
1
2
#!/bin/sh
3
# install - install a program, script, or datafile
4
5
-scriptversion=2011-01-19.21; # UTC
6
+scriptversion=2011-11-20.07; # UTC
7
8
# This originates from X11R5 (mit/util/scripts/install.sh), which was
9
# later released in X11R6 (xc/config/util/install.sh) with the
10
11
# FSF changes to this file are in the public domain.
12
#
13
# Calling this script install-sh is preferred over install.sh, to prevent
14
-# `make' implicit rules from creating a file called install from it
15
+# 'make' implicit rules from creating a file called install from it
16
# when there is no Makefile.
17
#
18
# This script is compatible with the BSD install script, but was written
19
20
-s) stripcmd=$stripprog;;
21
22
-t) dst_arg=$2
23
- # Protect names problematic for `test' and other utilities.
24
+ # Protect names problematic for 'test' and other utilities.
25
case $dst_arg in
26
-* | [=\(\)!]) dst_arg=./$dst_arg;;
27
esac
28
29
fi
30
shift # arg
31
dst_arg=$arg
32
- # Protect names problematic for `test' and other utilities.
33
+ # Protect names problematic for 'test' and other utilities.
34
case $dst_arg in
35
-* | [=\(\)!]) dst_arg=./$dst_arg;;
36
esac
37
38
echo "$0: no input file specified." >&2
39
exit 1
40
fi
41
- # It's OK to call `install-sh -d' without argument.
42
+ # It's OK to call 'install-sh -d' without argument.
43
# This can happen when creating conditional directories.
44
exit 0
45
fi
46
47
48
for src
49
do
50
- # Protect names problematic for `test' and other utilities.
51
+ # Protect names problematic for 'test' and other utilities.
52
case $src in
53
-* | [=\(\)!]) src=./$src;;
54
esac
55
56
if test -z "$dir_arg" || {
57
# Check for POSIX incompatibilities with -m.
58
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
59
- # other-writeable bit of parent directory when it shouldn't.
60
+ # other-writable bit of parent directory when it shouldn't.
61
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
62
ls_ld_tmpdir=`ls -ld "$tmpdir"`
63
case $ls_ld_tmpdir in
64
ncmpc-0.21.tar.bz2/build/missing -> ncmpc-0.24.tar.xz/build/missing
Changed
460
1
2
#! /bin/sh
3
-# Common stub for a few missing GNU programs while installing.
4
+# Common wrapper for a few potentially missing GNU programs.
5
6
-scriptversion=2012-01-06.13; # UTC
7
+scriptversion=2013-10-28.13; # UTC
8
9
-# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
10
-# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
11
-# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
12
+# Copyright (C) 1996-2013 Free Software Foundation, Inc.
13
+# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
14
15
# This program is free software; you can redistribute it and/or modify
16
# it under the terms of the GNU General Public License as published by
17
18
# the same distribution terms that you use for the rest of that program.
19
20
if test $# -eq 0; then
21
- echo 1>&2 "Try \`$0 --help' for more information"
22
+ echo 1>&2 "Try '$0 --help' for more information"
23
exit 1
24
fi
25
26
-run=:
27
-sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
28
-sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
29
-
30
-# In the cases where this matters, `missing' is being run in the
31
-# srcdir already.
32
-if test -f configure.ac; then
33
- configure_ac=configure.ac
34
-else
35
- configure_ac=configure.in
36
-fi
37
+case $1 in
38
39
-msg="missing on your system"
40
+ --is-lightweight)
41
+ # Used by our autoconf macros to check whether the available missing
42
+ # script is modern enough.
43
+ exit 0
44
+ ;;
45
46
-case $1 in
47
---run)
48
- # Try to run requested program, and just exit if it succeeds.
49
- run=
50
- shift
51
- "$@" && exit 0
52
- # Exit code 63 means version mismatch. This often happens
53
- # when the user try to use an ancient version of a tool on
54
- # a file that requires a minimum version. In this case we
55
- # we should proceed has if the program had been absent, or
56
- # if --run hadn't been passed.
57
- if test $? = 63; then
58
- run=:
59
- msg="probably too old"
60
- fi
61
- ;;
62
+ --run)
63
+ # Back-compat with the calling convention used by older automake.
64
+ shift
65
+ ;;
66
67
-h|--h|--he|--hel|--help)
68
echo "\
69
$0 [OPTION]... PROGRAM [ARGUMENT]...
70
71
-Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
72
-error status if there is no known handling for PROGRAM.
73
+Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
74
+to PROGRAM being missing or too old.
75
76
Options:
77
-h, --help display this help and exit
78
-v, --version output version information and exit
79
- --run try to run the given command, and emulate it if it fails
80
81
Supported PROGRAM values:
82
- aclocal touch file \`aclocal.m4'
83
- autoconf touch file \`configure'
84
- autoheader touch file \`config.h.in'
85
- autom4te touch the output file, or create a stub one
86
- automake touch all \`Makefile.in' files
87
- bison create \`y.tab.[ch]', if possible, from existing .[ch]
88
- flex create \`lex.yy.c', if possible, from existing .c
89
- help2man touch the output file
90
- lex create \`lex.yy.c', if possible, from existing .c
91
- makeinfo touch the output file
92
- yacc create \`y.tab.[ch]', if possible, from existing .[ch]
93
+ aclocal autoconf autoheader autom4te automake makeinfo
94
+ bison yacc flex lex help2man
95
96
-Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
97
-\`g' are ignored when checking the name.
98
+Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
99
+'g' are ignored when checking the name.
100
101
Send bug reports to <bug-automake@gnu.org>."
102
exit $?
103
104
;;
105
106
-*)
107
- echo 1>&2 "$0: Unknown \`$1' option"
108
- echo 1>&2 "Try \`$0 --help' for more information"
109
+ echo 1>&2 "$0: unknown '$1' option"
110
+ echo 1>&2 "Try '$0 --help' for more information"
111
exit 1
112
;;
113
114
esac
115
116
-# normalize program name to check for.
117
-program=`echo "$1" | sed '
118
- s/^gnu-//; t
119
- s/^gnu//; t
120
- s/^g//; t'`
121
-
122
-# Now exit if we have it, but it failed. Also exit now if we
123
-# don't have it and --version was passed (most likely to detect
124
-# the program). This is about non-GNU programs, so use $1 not
125
-# $program.
126
-case $1 in
127
- lex*|yacc*)
128
- # Not GNU programs, they don't have --version.
129
- ;;
130
-
131
- *)
132
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
133
- # We have it, but it failed.
134
- exit 1
135
- elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
136
- # Could not run --version or --help. This is probably someone
137
- # running `$TOOL --version' or `$TOOL --help' to check whether
138
- # $TOOL exists and not knowing $TOOL uses missing.
139
- exit 1
140
- fi
141
- ;;
142
-esac
143
-
144
-# If it does not exist, or fails to run (possibly an outdated version),
145
-# try to emulate it.
146
-case $program in
147
- aclocal*)
148
- echo 1>&2 "\
149
-WARNING: \`$1' is $msg. You should only need it if
150
- you modified \`acinclude.m4' or \`${configure_ac}'. You might want
151
- to install the \`Automake' and \`Perl' packages. Grab them from
152
- any GNU archive site."
153
- touch aclocal.m4
154
- ;;
155
-
156
- autoconf*)
157
- echo 1>&2 "\
158
-WARNING: \`$1' is $msg. You should only need it if
159
- you modified \`${configure_ac}'. You might want to install the
160
- \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
161
- archive site."
162
- touch configure
163
- ;;
164
-
165
- autoheader*)
166
- echo 1>&2 "\
167
-WARNING: \`$1' is $msg. You should only need it if
168
- you modified \`acconfig.h' or \`${configure_ac}'. You might want
169
- to install the \`Autoconf' and \`GNU m4' packages. Grab them
170
- from any GNU archive site."
171
- files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
172
- test -z "$files" && files="config.h"
173
- touch_files=
174
- for f in $files; do
175
- case $f in
176
- *:*) touch_files="$touch_files "`echo "$f" |
177
- sed -e 's/^[^:]*://' -e 's/:.*//'`;;
178
- *) touch_files="$touch_files $f.in";;
179
- esac
180
- done
181
- touch $touch_files
182
- ;;
183
-
184
- automake*)
185
- echo 1>&2 "\
186
-WARNING: \`$1' is $msg. You should only need it if
187
- you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
188
- You might want to install the \`Automake' and \`Perl' packages.
189
- Grab them from any GNU archive site."
190
- find . -type f -name Makefile.am -print |
191
- sed 's/\.am$/.in/' |
192
- while read f; do touch "$f"; done
193
- ;;
194
-
195
- autom4te*)
196
- echo 1>&2 "\
197
-WARNING: \`$1' is needed, but is $msg.
198
- You might have modified some files without having the
199
- proper tools for further handling them.
200
- You can get \`$1' as part of \`Autoconf' from any GNU
201
- archive site."
202
-
203
- file=`echo "$*" | sed -n "$sed_output"`
204
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
205
- if test -f "$file"; then
206
- touch $file
207
- else
208
- test -z "$file" || exec >$file
209
- echo "#! /bin/sh"
210
- echo "# Created by GNU Automake missing as a replacement of"
211
- echo "# $ $@"
212
- echo "exit 0"
213
- chmod +x $file
214
- exit 1
215
- fi
216
- ;;
217
-
218
- bison*|yacc*)
219
- echo 1>&2 "\
220
-WARNING: \`$1' $msg. You should only need it if
221
- you modified a \`.y' file. You may need the \`Bison' package
222
- in order for those modifications to take effect. You can get
223
- \`Bison' from any GNU archive site."
224
- rm -f y.tab.c y.tab.h
225
- if test $# -ne 1; then
226
- eval LASTARG=\${$#}
227
- case $LASTARG in
228
- *.y)
229
- SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
230
- if test -f "$SRCFILE"; then
231
- cp "$SRCFILE" y.tab.c
232
- fi
233
- SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
234
- if test -f "$SRCFILE"; then
235
- cp "$SRCFILE" y.tab.h
236
- fi
237
- ;;
238
- esac
239
- fi
240
- if test ! -f y.tab.h; then
241
- echo >y.tab.h
242
- fi
243
- if test ! -f y.tab.c; then
244
- echo 'main() { return 0; }' >y.tab.c
245
- fi
246
- ;;
247
-
248
- lex*|flex*)
249
- echo 1>&2 "\
250
-WARNING: \`$1' is $msg. You should only need it if
251
- you modified a \`.l' file. You may need the \`Flex' package
252
- in order for those modifications to take effect. You can get
253
- \`Flex' from any GNU archive site."
254
- rm -f lex.yy.c
255
- if test $# -ne 1; then
256
- eval LASTARG=\${$#}
257
- case $LASTARG in
258
- *.l)
259
- SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
260
- if test -f "$SRCFILE"; then
261
- cp "$SRCFILE" lex.yy.c
262
- fi
263
- ;;
264
- esac
265
- fi
266
- if test ! -f lex.yy.c; then
267
- echo 'main() { return 0; }' >lex.yy.c
268
- fi
269
- ;;
270
-
271
- help2man*)
272
- echo 1>&2 "\
273
-WARNING: \`$1' is $msg. You should only need it if
274
- you modified a dependency of a manual page. You may need the
275
- \`Help2man' package in order for those modifications to take
276
- effect. You can get \`Help2man' from any GNU archive site."
277
-
278
- file=`echo "$*" | sed -n "$sed_output"`
279
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
280
- if test -f "$file"; then
281
- touch $file
282
- else
283
- test -z "$file" || exec >$file
284
- echo ".ab help2man is required to generate this page"
285
- exit $?
286
- fi
287
- ;;
288
-
289
- makeinfo*)
290
- echo 1>&2 "\
291
-WARNING: \`$1' is $msg. You should only need it if
292
- you modified a \`.texi' or \`.texinfo' file, or any other file
293
- indirectly affecting the aspect of the manual. The spurious
294
- call might also be the consequence of using a buggy \`make' (AIX,
295
- DU, IRIX). You might want to install the \`Texinfo' package or
296
- the \`GNU make' package. Grab either from any GNU archive site."
297
- # The file to touch is that specified with -o ...
298
- file=`echo "$*" | sed -n "$sed_output"`
299
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
300
- if test -z "$file"; then
301
- # ... or it is the one specified with @setfilename ...
302
- infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
303
- file=`sed -n '
304
- /^@setfilename/{
305
- s/.* \([^ ]*\) *$/\1/
306
- p
307
- q
308
- }' $infile`
309
- # ... or it is derived from the source name (dir/f.texi becomes f.info)
310
- test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
311
- fi
312
- # If the file does not exist, the user really needs makeinfo;
313
- # let's fail without touching anything.
314
- test -f $file || exit 1
315
- touch $file
316
- ;;
317
+# Run the given program, remember its exit status.
318
+"$@"; st=$?
319
+
320
+# If it succeeded, we are done.
321
+test $st -eq 0 && exit 0
322
+
323
+# Also exit now if we it failed (or wasn't found), and '--version' was
324
+# passed; such an option is passed most likely to detect whether the
325
+# program is present and works.
326
+case $2 in --version|--help) exit $st;; esac
327
+
328
+# Exit code 63 means version mismatch. This often happens when the user
329
+# tries to use an ancient version of a tool on a file that requires a
330
+# minimum version.
331
+if test $st -eq 63; then
332
+ msg="probably too old"
333
+elif test $st -eq 127; then
334
+ # Program was missing.
335
+ msg="missing on your system"
336
+else
337
+ # Program was found and executed, but failed. Give up.
338
+ exit $st
339
+fi
340
341
- *)
342
- echo 1>&2 "\
343
-WARNING: \`$1' is needed, and is $msg.
344
- You might have modified some files without having the
345
- proper tools for further handling them. Check the \`README' file,
346
- it often tells you about the needed prerequisites for installing
347
- this package. You may also peek at any GNU archive site, in case
348
- some other package would contain this missing \`$1' program."
349
- exit 1
350
+perl_URL=http://www.perl.org/
351
+flex_URL=http://flex.sourceforge.net/
352
+gnu_software_URL=http://www.gnu.org/software
353
+
354
+program_details ()
355
+{
356
+ case $1 in
357
+ aclocal|automake)
358
+ echo "The '$1' program is part of the GNU Automake package:"
359
+ echo "<$gnu_software_URL/automake>"
360
+ echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
361
+ echo "<$gnu_software_URL/autoconf>"
362
+ echo "<$gnu_software_URL/m4/>"
363
+ echo "<$perl_URL>"
364
+ ;;
365
+ autoconf|autom4te|autoheader)
366
+ echo "The '$1' program is part of the GNU Autoconf package:"
367
+ echo "<$gnu_software_URL/autoconf/>"
368
+ echo "It also requires GNU m4 and Perl in order to run:"
369
+ echo "<$gnu_software_URL/m4/>"
370
+ echo "<$perl_URL>"
371
+ ;;
372
+ esac
373
+}
374
+
375
+give_advice ()
376
+{
377
+ # Normalize program name to check for.
378
+ normalized_program=`echo "$1" | sed '
379
+ s/^gnu-//; t
380
+ s/^gnu//; t
381
+ s/^g//; t'`
382
+
383
+ printf '%s\n' "'$1' is $msg."
384
+
385
+ configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
386
+ case $normalized_program in
387
+ autoconf*)
388
+ echo "You should only need it if you modified 'configure.ac',"
389
+ echo "or m4 files included by it."
390
+ program_details 'autoconf'
391
+ ;;
392
+ autoheader*)
393
+ echo "You should only need it if you modified 'acconfig.h' or"
394
+ echo "$configure_deps."
395
+ program_details 'autoheader'
396
+ ;;
397
+ automake*)
398
+ echo "You should only need it if you modified 'Makefile.am' or"
399
+ echo "$configure_deps."
400
+ program_details 'automake'
401
+ ;;
402
+ aclocal*)
403
+ echo "You should only need it if you modified 'acinclude.m4' or"
404
+ echo "$configure_deps."
405
+ program_details 'aclocal'
406
+ ;;
407
+ autom4te*)
408
+ echo "You might have modified some maintainer files that require"
409
+ echo "the 'autom4te' program to be rebuilt."
410
+ program_details 'autom4te'
411
+ ;;
412
+ bison*|yacc*)
413
+ echo "You should only need it if you modified a '.y' file."
414
+ echo "You may want to install the GNU Bison package:"
415
+ echo "<$gnu_software_URL/bison/>"
416
+ ;;
417
+ lex*|flex*)
418
+ echo "You should only need it if you modified a '.l' file."
419
+ echo "You may want to install the Fast Lexical Analyzer package:"
420
+ echo "<$flex_URL>"
421
+ ;;
422
+ help2man*)
423
+ echo "You should only need it if you modified a dependency" \
424
+ "of a man page."
425
+ echo "You may want to install the GNU Help2man package:"
426
+ echo "<$gnu_software_URL/help2man/>"
427
;;
428
-esac
429
-
430
-exit 0
431
+ makeinfo*)
432
+ echo "You should only need it if you modified a '.texi' file, or"
433
+ echo "any other file indirectly affecting the aspect of the manual."
434
+ echo "You might want to install the Texinfo package:"
435
+ echo "<$gnu_software_URL/texinfo/>"
436
+ echo "The spurious makeinfo call might also be the consequence of"
437
+ echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
438
+ echo "want to install GNU make:"
439
+ echo "<$gnu_software_URL/make/>"
440
+ ;;
441
+ *)
442
+ echo "You might have modified some files without having the proper"
443
+ echo "tools for further handling them. Check the 'README' file, it"
444
+ echo "often tells you about the needed prerequisites for installing"
445
+ echo "this package. You may also peek at any GNU archive site, in"
446
+ echo "case some other package contains this missing '$1' program."
447
+ ;;
448
+ esac
449
+}
450
+
451
+give_advice "$1" | sed -e '1s/^/WARNING: /' \
452
+ -e '2,$s/^/ /' >&2
453
+
454
+# Propagate the correct exit status (expected to be 127 for a program
455
+# not found, 63 for a program that failed due to version mismatch).
456
+exit $st
457
458
# Local variables:
459
# eval: (add-hook 'write-file-hooks 'time-stamp)
460
ncmpc-0.21.tar.bz2/configure -> ncmpc-0.24.tar.xz/configure
Changed
1594
1
2
#! /bin/sh
3
# Guess values for system-dependent variables and create Makefiles.
4
-# Generated by GNU Autoconf 2.69 for ncmpc 0.21.
5
+# Generated by GNU Autoconf 2.69 for ncmpc 0.24.
6
#
7
# Report bugs to <max@duempel.org>.
8
#
9
10
# Identity of this package.
11
PACKAGE_NAME='ncmpc'
12
PACKAGE_TARNAME='ncmpc'
13
-PACKAGE_VERSION='0.21'
14
-PACKAGE_STRING='ncmpc 0.21'
15
+PACKAGE_VERSION='0.24'
16
+PACKAGE_STRING='ncmpc 0.24'
17
PACKAGE_BUGREPORT='max@duempel.org'
18
PACKAGE_URL=''
19
20
21
GMSGFMT_015
22
MSGFMT_015
23
GETTEXT_MACRO_VERSION
24
+SED
25
GETTEXT_PACKAGE
26
MKINSTALLDIRS
27
POSUB
28
29
LIBMPDCLIENT_CFLAGS
30
GLIB_LIBS
31
GLIB_CFLAGS
32
+PKG_CONFIG_LIBDIR
33
+PKG_CONFIG_PATH
34
PKG_CONFIG
35
HAVE_WINDOWS_FALSE
36
HAVE_WINDOWS_TRUE
37
38
LDFLAGS
39
CFLAGS
40
CC
41
+AM_BACKSLASH
42
+AM_DEFAULT_VERBOSITY
43
+AM_DEFAULT_V
44
+AM_V
45
am__untar
46
am__tar
47
AMTAR
48
49
ac_subst_files=''
50
ac_user_opts='
51
enable_option_checking
52
+enable_silent_rules
53
enable_dependency_tracking
54
with_ncurses
55
with_ncursesw
56
57
CPPFLAGS
58
CURSES_LIB
59
PKG_CONFIG
60
+PKG_CONFIG_PATH
61
+PKG_CONFIG_LIBDIR
62
GLIB_CFLAGS
63
GLIB_LIBS
64
LIBMPDCLIENT_CFLAGS
65
66
# Omit some internal or obsolete options to make the list less imposing.
67
# This message is too long to be a string in the A/UX 3.1 sh.
68
cat <<_ACEOF
69
-\`configure' configures ncmpc 0.21 to adapt to many kinds of systems.
70
+\`configure' configures ncmpc 0.24 to adapt to many kinds of systems.
71
72
Usage: $0 [OPTION]... [VAR=VALUE]...
73
74
75
76
if test -n "$ac_init_help"; then
77
case $ac_init_help in
78
- short | recursive ) echo "Configuration of ncmpc 0.21:";;
79
+ short | recursive ) echo "Configuration of ncmpc 0.24:";;
80
esac
81
cat <<\_ACEOF
82
83
84
--disable-option-checking ignore unrecognized --enable/--with options
85
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
86
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
87
- --disable-dependency-tracking speeds up one-time build
88
- --enable-dependency-tracking do not reject slow dependency extractors
89
+ --enable-silent-rules less verbose build output (undo: "make V=1")
90
+ --disable-silent-rules verbose build output (undo: "make V=0")
91
+ --enable-dependency-tracking
92
+ do not reject slow dependency extractors
93
+ --disable-dependency-tracking
94
+ speeds up one-time build
95
--enable-mini Build ncmpc-mini, i.e. without all optional features
96
[default=no]
97
--disable-multibyte Disable multibyte character support [default=yes]
98
99
you have headers in a nonstandard directory <include dir>
100
CURSES_LIB linker library for Curses, e.g. -lcurses
101
PKG_CONFIG path to pkg-config utility
102
+ PKG_CONFIG_PATH
103
+ directories to add to pkg-config's search path
104
+ PKG_CONFIG_LIBDIR
105
+ path overriding pkg-config's built-in search path
106
GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
107
GLIB_LIBS linker flags for GLIB, overriding pkg-config
108
LIBMPDCLIENT_CFLAGS
109
110
test -n "$ac_init_help" && exit $ac_status
111
if $ac_init_version; then
112
cat <<\_ACEOF
113
-ncmpc configure 0.21
114
+ncmpc configure 0.24
115
generated by GNU Autoconf 2.69
116
117
Copyright (C) 2012 Free Software Foundation, Inc.
118
119
This file contains any messages produced by compilers while
120
running configure, to aid debugging if configure makes a mistake.
121
122
-It was created by ncmpc $as_me 0.21, which was
123
+It was created by ncmpc $as_me 0.24, which was
124
generated by GNU Autoconf 2.69. Invocation command line was
125
126
$ $0 $@
127
128
129
130
VERSION_MAJOR=0
131
-VERSION_MINOR=21
132
+VERSION_MINOR=24
133
VERSION_REVISION=0
134
VERSION_EXTRA=0
135
136
137
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
138
139
140
-am__api_version='1.11'
141
+am__api_version='1.14'
142
143
# Find a good install program. We prefer a C program (faster),
144
# so one script is as good as another. But avoid the broken or
145
146
147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
148
$as_echo_n "checking whether build environment is sane... " >&6; }
149
-# Just in case
150
-sleep 1
151
-echo timestamp > conftest.file
152
# Reject unsafe characters in $srcdir or the absolute working directory
153
# name. Accept space and tab only in the latter.
154
am_lf='
155
156
esac
157
case $srcdir in
158
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
159
- as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
160
+ as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
161
esac
162
163
-# Do `set' in a subshell so we don't clobber the current shell's
164
+# Do 'set' in a subshell so we don't clobber the current shell's
165
# arguments. Must try -L first in case configure is actually a
166
# symlink; some systems play weird games with the mod time of symlinks
167
# (eg FreeBSD returns the mod time of the symlink's containing
168
# directory).
169
if (
170
- set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
171
- if test "$*" = "X"; then
172
- # -L didn't work.
173
- set X `ls -t "$srcdir/configure" conftest.file`
174
- fi
175
- rm -f conftest.file
176
- if test "$*" != "X $srcdir/configure conftest.file" \
177
- && test "$*" != "X conftest.file $srcdir/configure"; then
178
-
179
- # If neither matched, then we have a broken ls. This can happen
180
- # if, for instance, CONFIG_SHELL is bash and it inherits a
181
- # broken ls alias from the environment. This has actually
182
- # happened. Such a system could not be considered "sane".
183
- as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
184
-alias in your environment" "$LINENO" 5
185
- fi
186
+ am_has_slept=no
187
+ for am_try in 1 2; do
188
+ echo "timestamp, slept: $am_has_slept" > conftest.file
189
+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
190
+ if test "$*" = "X"; then
191
+ # -L didn't work.
192
+ set X `ls -t "$srcdir/configure" conftest.file`
193
+ fi
194
+ if test "$*" != "X $srcdir/configure conftest.file" \
195
+ && test "$*" != "X conftest.file $srcdir/configure"; then
196
197
+ # If neither matched, then we have a broken ls. This can happen
198
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
199
+ # broken ls alias from the environment. This has actually
200
+ # happened. Such a system could not be considered "sane".
201
+ as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
202
+ alias in your environment" "$LINENO" 5
203
+ fi
204
+ if test "$2" = conftest.file || test $am_try -eq 2; then
205
+ break
206
+ fi
207
+ # Just in case.
208
+ sleep 1
209
+ am_has_slept=yes
210
+ done
211
test "$2" = conftest.file
212
)
213
then
214
215
fi
216
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
217
$as_echo "yes" >&6; }
218
+# If we didn't sleep, we still need to ensure time stamps of config.status and
219
+# generated files are strictly newer.
220
+am_sleep_pid=
221
+if grep 'slept: no' conftest.file >/dev/null 2>&1; then
222
+ ( sleep 1 ) &
223
+ am_sleep_pid=$!
224
+fi
225
+
226
+rm -f conftest.file
227
+
228
test "$program_prefix" != NONE &&
229
program_transform_name="s&^&$program_prefix&;$program_transform_name"
230
# Use a double $ so make ignores it.
231
232
esac
233
fi
234
# Use eval to expand $SHELL
235
-if eval "$MISSING --run true"; then
236
- am_missing_run="$MISSING --run "
237
+if eval "$MISSING --is-lightweight"; then
238
+ am_missing_run="$MISSING "
239
else
240
am_missing_run=
241
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
242
-$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
243
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
244
+$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
245
fi
246
247
if test x"${install_sh}" != xset; then
248
249
esac
250
fi
251
252
-# Installed binaries are usually stripped using `strip' when the user
253
-# run `make install-strip'. However `strip' might not be the right
254
+# Installed binaries are usually stripped using 'strip' when the user
255
+# run "make install-strip". However 'strip' might not be the right
256
# tool to use in cross-compilation environments, therefore Automake
257
-# will honor the `STRIP' environment variable to overrule this program.
258
+# will honor the 'STRIP' environment variable to overrule this program.
259
if test "$cross_compiling" != no; then
260
if test -n "$ac_tool_prefix"; then
261
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
262
263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
264
$as_echo "$MKDIR_P" >&6; }
265
266
-mkdir_p="$MKDIR_P"
267
-case $mkdir_p in
268
- [\\/$]* | ?:[\\/]*) ;;
269
- */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
270
-esac
271
-
272
for ac_prog in gawk mawk nawk awk
273
do
274
# Extract the first word of "$ac_prog", so it can be a program name with args.
275
276
fi
277
rmdir .tst 2>/dev/null
278
279
+# Check whether --enable-silent-rules was given.
280
+if test "${enable_silent_rules+set}" = set; then :
281
+ enableval=$enable_silent_rules;
282
+fi
283
+
284
+case $enable_silent_rules in # (((
285
+ yes) AM_DEFAULT_VERBOSITY=0;;
286
+ no) AM_DEFAULT_VERBOSITY=1;;
287
+ *) AM_DEFAULT_VERBOSITY=1;;
288
+esac
289
+am_make=${MAKE-make}
290
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
291
+$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
292
+if ${am_cv_make_support_nested_variables+:} false; then :
293
+ $as_echo_n "(cached) " >&6
294
+else
295
+ if $as_echo 'TRUE=$(BAR$(V))
296
+BAR0=false
297
+BAR1=true
298
+V=1
299
+am__doit:
300
+ @$(TRUE)
301
+.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
302
+ am_cv_make_support_nested_variables=yes
303
+else
304
+ am_cv_make_support_nested_variables=no
305
+fi
306
+fi
307
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
308
+$as_echo "$am_cv_make_support_nested_variables" >&6; }
309
+if test $am_cv_make_support_nested_variables = yes; then
310
+ AM_V='$(V)'
311
+ AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
312
+else
313
+ AM_V=$AM_DEFAULT_VERBOSITY
314
+ AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
315
+fi
316
+AM_BACKSLASH='\'
317
+
318
if test "`cd $srcdir && pwd`" != "`pwd`"; then
319
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
320
# is not polluted with repeated "-I."
321
322
323
# Define the identity of the package.
324
PACKAGE='ncmpc'
325
- VERSION='0.21'
326
+ VERSION='0.24'
327
328
329
cat >>confdefs.h <<_ACEOF
330
331
332
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
333
334
+# For better backward compatibility. To be removed once Automake 1.9.x
335
+# dies out for good. For more background, see:
336
+# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
337
+# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
338
+mkdir_p='$(MKDIR_P)'
339
+
340
# We need awk for the "check" target. The system "awk" is bad on
341
# some platforms.
342
# Always define AMTAR for backward compatibility. Yes, it's still used
343
# in the wild :-( We should find a proper way to deprecate it ...
344
AMTAR='$${TAR-tar}'
345
346
+
347
+# We'll loop over all known methods to create a tar archive until one works.
348
+_am_tools='gnutar pax cpio none'
349
+
350
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
351
352
353
354
355
356
+
357
+# POSIX will say in a future version that running "rm -f" with no argument
358
+# is OK; and we want to be able to make that assumption in our Makefile
359
+# recipes. So use an aggressive probe to check that the usage we want is
360
+# actually supported "in the wild" to an acceptable degree.
361
+# See automake bug#10828.
362
+# To make any issue more visible, cause the running configure to be aborted
363
+# by default if the 'rm' program in use doesn't match our expectations; the
364
+# user can still override this though.
365
+if rm -f && rm -fr && rm -rf; then : OK; else
366
+ cat >&2 <<'END'
367
+Oops!
368
+
369
+Your 'rm' program seems unable to run without file operands specified
370
+on the command line, even when the '-f' option is present. This is contrary
371
+to the behaviour of most rm programs out there, and not conforming with
372
+the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
373
+
374
+Please tell bug-automake@gnu.org about your system, including the value
375
+of your $PATH and any error possibly output before this message. This
376
+can help us improve future automake versions.
377
+
378
+END
379
+ if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
380
+ echo 'Configuration will proceed anyway, since you have set the' >&2
381
+ echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
382
+ echo >&2
383
+ else
384
+ cat >&2 <<'END'
385
+Aborting the configuration process, to ensure you take notice of the issue.
386
+
387
+You can download and install GNU coreutils to get an 'rm' implementation
388
+that behaves properly: <http://www.gnu.org/software/coreutils/>.
389
+
390
+If you want to complete the configuration process using your problematic
391
+'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
392
+to "yes", and re-run configure.
393
+
394
+END
395
+ as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
396
+ fi
397
+fi
398
+
399
+# Check whether --enable-silent-rules was given.
400
+if test "${enable_silent_rules+set}" = set; then :
401
+ enableval=$enable_silent_rules;
402
+fi
403
+
404
+case $enable_silent_rules in # (((
405
+ yes) AM_DEFAULT_VERBOSITY=0;;
406
+ no) AM_DEFAULT_VERBOSITY=1;;
407
+ *) AM_DEFAULT_VERBOSITY=1;;
408
+esac
409
+am_make=${MAKE-make}
410
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
411
+$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
412
+if ${am_cv_make_support_nested_variables+:} false; then :
413
+ $as_echo_n "(cached) " >&6
414
+else
415
+ if $as_echo 'TRUE=$(BAR$(V))
416
+BAR0=false
417
+BAR1=true
418
+V=1
419
+am__doit:
420
+ @$(TRUE)
421
+.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
422
+ am_cv_make_support_nested_variables=yes
423
+else
424
+ am_cv_make_support_nested_variables=no
425
+fi
426
+fi
427
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
428
+$as_echo "$am_cv_make_support_nested_variables" >&6; }
429
+if test $am_cv_make_support_nested_variables = yes; then
430
+ AM_V='$(V)'
431
+ AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
432
+else
433
+ AM_V=$AM_DEFAULT_VERBOSITY
434
+ AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
435
+fi
436
+AM_BACKSLASH='\'
437
+
438
ac_config_headers="$ac_config_headers config.h"
439
440
441
442
+
443
DEPDIR="${am__leading_dot}deps"
444
445
ac_config_commands="$ac_config_commands depfiles"
446
447
_am_result=none
448
# First try GNU make style include.
449
echo "include confinc" > confmf
450
-# Ignore all kinds of additional output from `make'.
451
+# Ignore all kinds of additional output from 'make'.
452
case `$am_make -s -f confmf 2> /dev/null` in #(
453
*the\ am__doit\ target*)
454
am__include=include
455
456
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
457
ac_compiler_gnu=$ac_cv_c_compiler_gnu
458
459
+ac_ext=c
460
+ac_cpp='$CPP $CPPFLAGS'
461
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
462
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
463
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
464
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
465
+$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
466
+if ${am_cv_prog_cc_c_o+:} false; then :
467
+ $as_echo_n "(cached) " >&6
468
+else
469
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
470
+/* end confdefs.h. */
471
+
472
+int
473
+main ()
474
+{
475
+
476
+ ;
477
+ return 0;
478
+}
479
+_ACEOF
480
+ # Make sure it works both with $CC and with simple cc.
481
+ # Following AC_PROG_CC_C_O, we do the test twice because some
482
+ # compilers refuse to overwrite an existing .o file with -o,
483
+ # though they will create one.
484
+ am_cv_prog_cc_c_o=yes
485
+ for am_i in 1 2; do
486
+ if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
487
+ ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
488
+ ac_status=$?
489
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
490
+ (exit $ac_status); } \
491
+ && test -f conftest2.$ac_objext; then
492
+ : OK
493
+ else
494
+ am_cv_prog_cc_c_o=no
495
+ break
496
+ fi
497
+ done
498
+ rm -f core conftest*
499
+ unset am_i
500
+fi
501
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
502
+$as_echo "$am_cv_prog_cc_c_o" >&6; }
503
+if test "$am_cv_prog_cc_c_o" != yes; then
504
+ # Losing compiler, so override with the script.
505
+ # FIXME: It is wrong to rewrite CC.
506
+ # But if we don't then we get into trouble of one sort or another.
507
+ # A longer-term fix would be to have automake use am__CC in this case,
508
+ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
509
+ CC="$am_aux_dir/compile $CC"
510
+fi
511
+ac_ext=c
512
+ac_cpp='$CPP $CPPFLAGS'
513
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
514
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
515
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
516
+
517
+
518
depcc="$CC" am_compiler_list=
519
520
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
521
522
# We make a subdir and do the tests there. Otherwise we can end up
523
# making bogus files that we don't know about and never remove. For
524
# instance it was reported that on HP-UX the gcc test will end up
525
- # making a dummy file named `D' -- because `-MD' means `put the output
526
- # in D'.
527
+ # making a dummy file named 'D' -- because '-MD' means "put the output
528
+ # in D".
529
rm -rf conftest.dir
530
mkdir conftest.dir
531
# Copy depcomp to subdir because otherwise we won't find it if we're
532
533
: > sub/conftest.c
534
for i in 1 2 3 4 5 6; do
535
echo '#include "conftst'$i'.h"' >> sub/conftest.c
536
- # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
537
- # Solaris 8's {/usr,}/bin/sh.
538
- touch sub/conftst$i.h
539
+ # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
540
+ # Solaris 10 /bin/sh.
541
+ echo '/* dummy */' > sub/conftst$i.h
542
done
543
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
544
545
- # We check with `-c' and `-o' for the sake of the "dashmstdout"
546
+ # We check with '-c' and '-o' for the sake of the "dashmstdout"
547
# mode. It turns out that the SunPro C++ compiler does not properly
548
- # handle `-M -o', and we need to detect this. Also, some Intel
549
- # versions had trouble with output in subdirs
550
+ # handle '-M -o', and we need to detect this. Also, some Intel
551
+ # versions had trouble with output in subdirs.
552
am__obj=sub/conftest.${OBJEXT-o}
553
am__minus_obj="-o $am__obj"
554
case $depmode in
555
556
test "$am__universal" = false || continue
557
;;
558
nosideeffect)
559
- # after this tag, mechanisms are not by side-effect, so they'll
560
- # only be used when explicitly requested
561
+ # After this tag, mechanisms are not by side-effect, so they'll
562
+ # only be used when explicitly requested.
563
if test "x$enable_dependency_tracking" = xyes; then
564
continue
565
else
566
567
fi
568
;;
569
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
570
- # This compiler won't grok `-c -o', but also, the minuso test has
571
+ # This compiler won't grok '-c -o', but also, the minuso test has
572
# not run yet. These depmodes are late enough in the game, and
573
# so weak that their functioning should not be impacted.
574
am__obj=conftest.${OBJEXT-o}
575
576
fi
577
578
579
-ALL_LINGUAS=`grep -v '^\#' po/LINGUAS`
580
+ALL_LINGUAS=`grep -v '^\#' $srcdir/po/LINGUAS`
581
582
set -- $CFLAGS
583
584
585
586
587
588
+
589
+
590
+
591
+
592
+
593
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
594
if test -n "$ac_tool_prefix"; then
595
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
596
597
$as_echo "no" >&6; }
598
PKG_CONFIG=""
599
fi
600
-
601
fi
602
603
pkg_failed=no
604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
605
$as_echo_n "checking for GLIB... " >&6; }
606
607
-if test -n "$PKG_CONFIG"; then
608
- if test -n "$GLIB_CFLAGS"; then
609
- pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
610
- else
611
- if test -n "$PKG_CONFIG" && \
612
+if test -n "$GLIB_CFLAGS"; then
613
+ pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
614
+ elif test -n "$PKG_CONFIG"; then
615
+ if test -n "$PKG_CONFIG" && \
616
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.14\""; } >&5
617
($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.14") 2>&5
618
ac_status=$?
619
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
620
test $ac_status = 0; }; then
621
pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.14" 2>/dev/null`
622
+ test "x$?" != "x0" && pkg_failed=yes
623
else
624
pkg_failed=yes
625
fi
626
- fi
627
-else
628
- pkg_failed=untried
629
+ else
630
+ pkg_failed=untried
631
fi
632
-if test -n "$PKG_CONFIG"; then
633
- if test -n "$GLIB_LIBS"; then
634
- pkg_cv_GLIB_LIBS="$GLIB_LIBS"
635
- else
636
- if test -n "$PKG_CONFIG" && \
637
+if test -n "$GLIB_LIBS"; then
638
+ pkg_cv_GLIB_LIBS="$GLIB_LIBS"
639
+ elif test -n "$PKG_CONFIG"; then
640
+ if test -n "$PKG_CONFIG" && \
641
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.14\""; } >&5
642
($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.14") 2>&5
643
ac_status=$?
644
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
645
test $ac_status = 0; }; then
646
pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.14" 2>/dev/null`
647
+ test "x$?" != "x0" && pkg_failed=yes
648
else
649
pkg_failed=yes
650
fi
651
- fi
652
-else
653
- pkg_failed=untried
654
+ else
655
+ pkg_failed=untried
656
fi
657
658
659
660
if test $pkg_failed = yes; then
661
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
662
+$as_echo "no" >&6; }
663
664
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
665
_pkg_short_errors_supported=yes
666
667
_pkg_short_errors_supported=no
668
fi
669
if test $_pkg_short_errors_supported = yes; then
670
- GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.14"`
671
+ GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.14" 2>&1`
672
else
673
- GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.14"`
674
+ GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.14" 2>&1`
675
fi
676
# Put the nasty error message in config.log where it belongs
677
echo "$GLIB_PKG_ERRORS" >&5
678
679
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
680
-$as_echo "no" >&6; }
681
- as_fn_error $? "glib 2.14 is required" "$LINENO" 5
682
+ as_fn_error $? "glib 2.14 is required" "$LINENO" 5
683
elif test $pkg_failed = untried; then
684
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
685
+$as_echo "no" >&6; }
686
as_fn_error $? "glib 2.14 is required" "$LINENO" 5
687
else
688
GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
689
GLIB_LIBS=$pkg_cv_GLIB_LIBS
690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
691
$as_echo "yes" >&6; }
692
- :
693
+
694
fi
695
696
697
698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMPDCLIENT" >&5
699
$as_echo_n "checking for LIBMPDCLIENT... " >&6; }
700
701
-if test -n "$PKG_CONFIG"; then
702
- if test -n "$LIBMPDCLIENT_CFLAGS"; then
703
- pkg_cv_LIBMPDCLIENT_CFLAGS="$LIBMPDCLIENT_CFLAGS"
704
- else
705
- if test -n "$PKG_CONFIG" && \
706
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdclient >= 2.2\""; } >&5
707
- ($PKG_CONFIG --exists --print-errors "libmpdclient >= 2.2") 2>&5
708
+if test -n "$LIBMPDCLIENT_CFLAGS"; then
709
+ pkg_cv_LIBMPDCLIENT_CFLAGS="$LIBMPDCLIENT_CFLAGS"
710
+ elif test -n "$PKG_CONFIG"; then
711
+ if test -n "$PKG_CONFIG" && \
712
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdclient >= 2.3\""; } >&5
713
+ ($PKG_CONFIG --exists --print-errors "libmpdclient >= 2.3") 2>&5
714
ac_status=$?
715
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
716
test $ac_status = 0; }; then
717
- pkg_cv_LIBMPDCLIENT_CFLAGS=`$PKG_CONFIG --cflags "libmpdclient >= 2.2" 2>/dev/null`
718
+ pkg_cv_LIBMPDCLIENT_CFLAGS=`$PKG_CONFIG --cflags "libmpdclient >= 2.3" 2>/dev/null`
719
+ test "x$?" != "x0" && pkg_failed=yes
720
else
721
pkg_failed=yes
722
fi
723
- fi
724
-else
725
- pkg_failed=untried
726
+ else
727
+ pkg_failed=untried
728
fi
729
-if test -n "$PKG_CONFIG"; then
730
- if test -n "$LIBMPDCLIENT_LIBS"; then
731
- pkg_cv_LIBMPDCLIENT_LIBS="$LIBMPDCLIENT_LIBS"
732
- else
733
- if test -n "$PKG_CONFIG" && \
734
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdclient >= 2.2\""; } >&5
735
- ($PKG_CONFIG --exists --print-errors "libmpdclient >= 2.2") 2>&5
736
+if test -n "$LIBMPDCLIENT_LIBS"; then
737
+ pkg_cv_LIBMPDCLIENT_LIBS="$LIBMPDCLIENT_LIBS"
738
+ elif test -n "$PKG_CONFIG"; then
739
+ if test -n "$PKG_CONFIG" && \
740
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdclient >= 2.3\""; } >&5
741
+ ($PKG_CONFIG --exists --print-errors "libmpdclient >= 2.3") 2>&5
742
ac_status=$?
743
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
744
test $ac_status = 0; }; then
745
- pkg_cv_LIBMPDCLIENT_LIBS=`$PKG_CONFIG --libs "libmpdclient >= 2.2" 2>/dev/null`
746
+ pkg_cv_LIBMPDCLIENT_LIBS=`$PKG_CONFIG --libs "libmpdclient >= 2.3" 2>/dev/null`
747
+ test "x$?" != "x0" && pkg_failed=yes
748
else
749
pkg_failed=yes
750
fi
751
- fi
752
-else
753
- pkg_failed=untried
754
+ else
755
+ pkg_failed=untried
756
fi
757
758
759
760
if test $pkg_failed = yes; then
761
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
762
+$as_echo "no" >&6; }
763
764
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
765
_pkg_short_errors_supported=yes
766
767
_pkg_short_errors_supported=no
768
fi
769
if test $_pkg_short_errors_supported = yes; then
770
- LIBMPDCLIENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libmpdclient >= 2.2"`
771
+ LIBMPDCLIENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmpdclient >= 2.3" 2>&1`
772
else
773
- LIBMPDCLIENT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmpdclient >= 2.2"`
774
+ LIBMPDCLIENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmpdclient >= 2.3" 2>&1`
775
fi
776
# Put the nasty error message in config.log where it belongs
777
echo "$LIBMPDCLIENT_PKG_ERRORS" >&5
778
779
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
780
-$as_echo "no" >&6; }
781
- as_fn_error $? "libmpdclient2 is required" "$LINENO" 5
782
+ as_fn_error $? "libmpdclient2 is required" "$LINENO" 5
783
elif test $pkg_failed = untried; then
784
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
785
+$as_echo "no" >&6; }
786
as_fn_error $? "libmpdclient2 is required" "$LINENO" 5
787
else
788
LIBMPDCLIENT_CFLAGS=$pkg_cv_LIBMPDCLIENT_CFLAGS
789
LIBMPDCLIENT_LIBS=$pkg_cv_LIBMPDCLIENT_LIBS
790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
791
$as_echo "yes" >&6; }
792
- :
793
+
794
fi
795
796
if test -n "$PKG_CONFIG" && \
797
798
$as_echo "$as_me: WARNING: NLS support disabled!" >&2;}
799
fi
800
else
801
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
802
+$as_echo_n "checking for a sed that does not truncate output... " >&6; }
803
+if ${ac_cv_path_SED+:} false; then :
804
+ $as_echo_n "(cached) " >&6
805
+else
806
+ ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
807
+ for ac_i in 1 2 3 4 5 6 7; do
808
+ ac_script="$ac_script$as_nl$ac_script"
809
+ done
810
+ echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
811
+ { ac_script=; unset ac_script;}
812
+ if test -z "$SED"; then
813
+ ac_path_SED_found=false
814
+ # Loop through the user's path and test for each of PROGNAME-LIST
815
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
816
+for as_dir in $PATH
817
+do
818
+ IFS=$as_save_IFS
819
+ test -z "$as_dir" && as_dir=.
820
+ for ac_prog in sed gsed; do
821
+ for ac_exec_ext in '' $ac_executable_extensions; do
822
+ ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
823
+ as_fn_executable_p "$ac_path_SED" || continue
824
+# Check for GNU ac_path_SED and select it if it is found.
825
+ # Check for GNU $ac_path_SED
826
+case `"$ac_path_SED" --version 2>&1` in
827
+*GNU*)
828
+ ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
829
+*)
830
+ ac_count=0
831
+ $as_echo_n 0123456789 >"conftest.in"
832
+ while :
833
+ do
834
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
835
+ mv "conftest.tmp" "conftest.in"
836
+ cp "conftest.in" "conftest.nl"
837
+ $as_echo '' >> "conftest.nl"
838
+ "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
839
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
840
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
841
+ if test $ac_count -gt ${ac_path_SED_max-0}; then
842
+ # Best one so far, save it but keep looking for a better one
843
+ ac_cv_path_SED="$ac_path_SED"
844
+ ac_path_SED_max=$ac_count
845
+ fi
846
+ # 10*(2^10) chars as input seems more than enough
847
+ test $ac_count -gt 10 && break
848
+ done
849
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
850
+esac
851
+
852
+ $ac_path_SED_found && break 3
853
+ done
854
+ done
855
+ done
856
+IFS=$as_save_IFS
857
+ if test -z "$ac_cv_path_SED"; then
858
+ as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
859
+ fi
860
+else
861
+ ac_cv_path_SED=$SED
862
+fi
863
+
864
+fi
865
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
866
+$as_echo "$ac_cv_path_SED" >&6; }
867
+ SED="$ac_cv_path_SED"
868
+ rm -f conftest.sed
869
870
871
- GETTEXT_MACRO_VERSION=0.17
872
+
873
+ GETTEXT_MACRO_VERSION=0.18
874
875
876
877
878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBLIRCCLIENT" >&5
879
$as_echo_n "checking for LIBLIRCCLIENT... " >&6; }
880
881
-if test -n "$PKG_CONFIG"; then
882
- if test -n "$LIBLIRCCLIENT_CFLAGS"; then
883
- pkg_cv_LIBLIRCCLIENT_CFLAGS="$LIBLIRCCLIENT_CFLAGS"
884
- else
885
- if test -n "$PKG_CONFIG" && \
886
+if test -n "$LIBLIRCCLIENT_CFLAGS"; then
887
+ pkg_cv_LIBLIRCCLIENT_CFLAGS="$LIBLIRCCLIENT_CFLAGS"
888
+ elif test -n "$PKG_CONFIG"; then
889
+ if test -n "$PKG_CONFIG" && \
890
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblircclient0\""; } >&5
891
($PKG_CONFIG --exists --print-errors "liblircclient0") 2>&5
892
ac_status=$?
893
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
894
test $ac_status = 0; }; then
895
pkg_cv_LIBLIRCCLIENT_CFLAGS=`$PKG_CONFIG --cflags "liblircclient0" 2>/dev/null`
896
+ test "x$?" != "x0" && pkg_failed=yes
897
else
898
pkg_failed=yes
899
fi
900
- fi
901
-else
902
- pkg_failed=untried
903
+ else
904
+ pkg_failed=untried
905
fi
906
-if test -n "$PKG_CONFIG"; then
907
- if test -n "$LIBLIRCCLIENT_LIBS"; then
908
- pkg_cv_LIBLIRCCLIENT_LIBS="$LIBLIRCCLIENT_LIBS"
909
- else
910
- if test -n "$PKG_CONFIG" && \
911
+if test -n "$LIBLIRCCLIENT_LIBS"; then
912
+ pkg_cv_LIBLIRCCLIENT_LIBS="$LIBLIRCCLIENT_LIBS"
913
+ elif test -n "$PKG_CONFIG"; then
914
+ if test -n "$PKG_CONFIG" && \
915
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblircclient0\""; } >&5
916
($PKG_CONFIG --exists --print-errors "liblircclient0") 2>&5
917
ac_status=$?
918
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
919
test $ac_status = 0; }; then
920
pkg_cv_LIBLIRCCLIENT_LIBS=`$PKG_CONFIG --libs "liblircclient0" 2>/dev/null`
921
+ test "x$?" != "x0" && pkg_failed=yes
922
else
923
pkg_failed=yes
924
fi
925
- fi
926
-else
927
- pkg_failed=untried
928
+ else
929
+ pkg_failed=untried
930
fi
931
932
933
934
if test $pkg_failed = yes; then
935
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
936
+$as_echo "no" >&6; }
937
938
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
939
_pkg_short_errors_supported=yes
940
941
_pkg_short_errors_supported=no
942
fi
943
if test $_pkg_short_errors_supported = yes; then
944
- LIBLIRCCLIENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "liblircclient0"`
945
+ LIBLIRCCLIENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblircclient0" 2>&1`
946
else
947
- LIBLIRCCLIENT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "liblircclient0"`
948
+ LIBLIRCCLIENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblircclient0" 2>&1`
949
fi
950
# Put the nasty error message in config.log where it belongs
951
echo "$LIBLIRCCLIENT_PKG_ERRORS" >&5
952
953
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
954
-$as_echo "no" >&6; }
955
- as_fn_error $? "liblircclient0 not found" "$LINENO" 5
956
+ as_fn_error $? "liblircclient0 not found" "$LINENO" 5
957
elif test $pkg_failed = untried; then
958
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
959
+$as_echo "no" >&6; }
960
as_fn_error $? "liblircclient0 not found" "$LINENO" 5
961
else
962
LIBLIRCCLIENT_CFLAGS=$pkg_cv_LIBLIRCCLIENT_CFLAGS
963
LIBLIRCCLIENT_LIBS=$pkg_cv_LIBLIRCCLIENT_LIBS
964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
965
$as_echo "yes" >&6; }
966
- :
967
+
968
fi
969
970
$as_echo "#define ENABLE_LIRC 1" >>confdefs.h
971
972
973
974
if test "x$enable_werror" = xyes; then
975
- for flag in -Werror; do
976
+
977
+
978
+
979
+
980
+for flag in -Werror; do
981
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
983
$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
984
985
986
if test "x$enable_debug" = xno; then
987
AM_CFLAGS="$AM_CFLAGS -DNDEBUG"
988
+
989
+
990
+
991
+
992
+
993
+for flag in -ffunction-sections; do
994
+ as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
995
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
996
+$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
997
+if eval \${$as_CACHEVAR+:} false; then :
998
+ $as_echo_n "(cached) " >&6
999
+else
1000
+
1001
+ ax_check_save_flags=$CFLAGS
1002
+ CFLAGS="$CFLAGS $flag"
1003
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1004
+/* end confdefs.h. */
1005
+
1006
+int
1007
+main ()
1008
+{
1009
+
1010
+ ;
1011
+ return 0;
1012
+}
1013
+_ACEOF
1014
+if ac_fn_c_try_compile "$LINENO"; then :
1015
+ eval "$as_CACHEVAR=yes"
1016
+else
1017
+ eval "$as_CACHEVAR=no"
1018
+fi
1019
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1020
+ CFLAGS=$ax_check_save_flags
1021
+fi
1022
+eval ac_res=\$$as_CACHEVAR
1023
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1024
+$as_echo "$ac_res" >&6; }
1025
+if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
1026
+ if ${CFLAGS+:} false; then :
1027
+ case " $CFLAGS " in
1028
+ *" $flag "*)
1029
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
1030
+ (: CFLAGS already contains $flag) 2>&5
1031
+ ac_status=$?
1032
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1033
+ test $ac_status = 0; }
1034
+ ;;
1035
+ *)
1036
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
1037
+ (: CFLAGS="$CFLAGS $flag") 2>&5
1038
+ ac_status=$?
1039
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1040
+ test $ac_status = 0; }
1041
+ CFLAGS="$CFLAGS $flag"
1042
+ ;;
1043
+ esac
1044
+else
1045
+ CFLAGS="$flag"
1046
+fi
1047
+
1048
+else
1049
+ :
1050
+fi
1051
+
1052
+done
1053
+
1054
+
1055
+
1056
+
1057
+
1058
+for flag in -fdata-sections; do
1059
+ as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
1060
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
1061
+$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
1062
+if eval \${$as_CACHEVAR+:} false; then :
1063
+ $as_echo_n "(cached) " >&6
1064
+else
1065
+
1066
+ ax_check_save_flags=$CFLAGS
1067
+ CFLAGS="$CFLAGS $flag"
1068
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1069
+/* end confdefs.h. */
1070
+
1071
+int
1072
+main ()
1073
+{
1074
+
1075
+ ;
1076
+ return 0;
1077
+}
1078
+_ACEOF
1079
+if ac_fn_c_try_compile "$LINENO"; then :
1080
+ eval "$as_CACHEVAR=yes"
1081
+else
1082
+ eval "$as_CACHEVAR=no"
1083
+fi
1084
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1085
+ CFLAGS=$ax_check_save_flags
1086
+fi
1087
+eval ac_res=\$$as_CACHEVAR
1088
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1089
+$as_echo "$ac_res" >&6; }
1090
+if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
1091
+ if ${CFLAGS+:} false; then :
1092
+ case " $CFLAGS " in
1093
+ *" $flag "*)
1094
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
1095
+ (: CFLAGS already contains $flag) 2>&5
1096
+ ac_status=$?
1097
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1098
+ test $ac_status = 0; }
1099
+ ;;
1100
+ *)
1101
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
1102
+ (: CFLAGS="$CFLAGS $flag") 2>&5
1103
+ ac_status=$?
1104
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1105
+ test $ac_status = 0; }
1106
+ CFLAGS="$CFLAGS $flag"
1107
+ ;;
1108
+ esac
1109
+else
1110
+ CFLAGS="$flag"
1111
+fi
1112
+
1113
+else
1114
+ :
1115
+fi
1116
+
1117
+done
1118
+
1119
+
1120
+
1121
+
1122
+
1123
+
1124
+for flag in -Wl,--gc-sections; do
1125
+ as_CACHEVAR=`$as_echo "ax_cv_check_ldflags__$flag" | $as_tr_sh`
1126
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
1127
+$as_echo_n "checking whether the linker accepts $flag... " >&6; }
1128
+if eval \${$as_CACHEVAR+:} false; then :
1129
+ $as_echo_n "(cached) " >&6
1130
+else
1131
+
1132
+ ax_check_save_flags=$LDFLAGS
1133
+ LDFLAGS="$LDFLAGS $flag"
1134
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1135
+/* end confdefs.h. */
1136
+
1137
+int
1138
+main ()
1139
+{
1140
+
1141
+ ;
1142
+ return 0;
1143
+}
1144
+_ACEOF
1145
+if ac_fn_c_try_link "$LINENO"; then :
1146
+ eval "$as_CACHEVAR=yes"
1147
+else
1148
+ eval "$as_CACHEVAR=no"
1149
+fi
1150
+rm -f core conftest.err conftest.$ac_objext \
1151
+ conftest$ac_exeext conftest.$ac_ext
1152
+ LDFLAGS=$ax_check_save_flags
1153
+fi
1154
+eval ac_res=\$$as_CACHEVAR
1155
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1156
+$as_echo "$ac_res" >&6; }
1157
+if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
1158
+ if ${LDFLAGS+:} false; then :
1159
+ case " $LDFLAGS " in
1160
+ *" $flag "*)
1161
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$flag"; } >&5
1162
+ (: LDFLAGS already contains $flag) 2>&5
1163
+ ac_status=$?
1164
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1165
+ test $ac_status = 0; }
1166
+ ;;
1167
+ *)
1168
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS \$flag\""; } >&5
1169
+ (: LDFLAGS="$LDFLAGS $flag") 2>&5
1170
+ ac_status=$?
1171
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1172
+ test $ac_status = 0; }
1173
+ LDFLAGS="$LDFLAGS $flag"
1174
+ ;;
1175
+ esac
1176
+else
1177
+ LDFLAGS="$flag"
1178
+fi
1179
+
1180
+else
1181
+ :
1182
+fi
1183
+
1184
+done
1185
+
1186
fi
1187
1188
# Check whether --enable-test was given.
1189
1190
1191
1192
1193
+
1194
+
1195
+
1196
+
1197
+for flag in -fvisibility=hidden; do
1198
+ as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
1199
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
1200
+$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
1201
+if eval \${$as_CACHEVAR+:} false; then :
1202
+ $as_echo_n "(cached) " >&6
1203
+else
1204
+
1205
+ ax_check_save_flags=$CFLAGS
1206
+ CFLAGS="$CFLAGS $flag"
1207
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1208
+/* end confdefs.h. */
1209
+
1210
+int
1211
+main ()
1212
+{
1213
+
1214
+ ;
1215
+ return 0;
1216
+}
1217
+_ACEOF
1218
+if ac_fn_c_try_compile "$LINENO"; then :
1219
+ eval "$as_CACHEVAR=yes"
1220
+else
1221
+ eval "$as_CACHEVAR=no"
1222
+fi
1223
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1224
+ CFLAGS=$ax_check_save_flags
1225
+fi
1226
+eval ac_res=\$$as_CACHEVAR
1227
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1228
+$as_echo "$ac_res" >&6; }
1229
+if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
1230
+ if ${CFLAGS+:} false; then :
1231
+ case " $CFLAGS " in
1232
+ *" $flag "*)
1233
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
1234
+ (: CFLAGS already contains $flag) 2>&5
1235
+ ac_status=$?
1236
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1237
+ test $ac_status = 0; }
1238
+ ;;
1239
+ *)
1240
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
1241
+ (: CFLAGS="$CFLAGS $flag") 2>&5
1242
+ ac_status=$?
1243
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1244
+ test $ac_status = 0; }
1245
+ CFLAGS="$CFLAGS $flag"
1246
+ ;;
1247
+ esac
1248
+else
1249
+ CFLAGS="$flag"
1250
+fi
1251
+
1252
+else
1253
+ :
1254
+fi
1255
+
1256
+done
1257
+
1258
+
1259
+
1260
+
1261
+
1262
+for flag in -ffast-math; do
1263
+ as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
1264
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
1265
+$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
1266
+if eval \${$as_CACHEVAR+:} false; then :
1267
+ $as_echo_n "(cached) " >&6
1268
+else
1269
+
1270
+ ax_check_save_flags=$CFLAGS
1271
+ CFLAGS="$CFLAGS $flag"
1272
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1273
+/* end confdefs.h. */
1274
+
1275
+int
1276
+main ()
1277
+{
1278
+
1279
+ ;
1280
+ return 0;
1281
+}
1282
+_ACEOF
1283
+if ac_fn_c_try_compile "$LINENO"; then :
1284
+ eval "$as_CACHEVAR=yes"
1285
+else
1286
+ eval "$as_CACHEVAR=no"
1287
+fi
1288
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1289
+ CFLAGS=$ax_check_save_flags
1290
+fi
1291
+eval ac_res=\$$as_CACHEVAR
1292
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1293
+$as_echo "$ac_res" >&6; }
1294
+if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
1295
+ if ${CFLAGS+:} false; then :
1296
+ case " $CFLAGS " in
1297
+ *" $flag "*)
1298
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
1299
+ (: CFLAGS already contains $flag) 2>&5
1300
+ ac_status=$?
1301
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1302
+ test $ac_status = 0; }
1303
+ ;;
1304
+ *)
1305
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
1306
+ (: CFLAGS="$CFLAGS $flag") 2>&5
1307
+ ac_status=$?
1308
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1309
+ test $ac_status = 0; }
1310
+ CFLAGS="$CFLAGS $flag"
1311
+ ;;
1312
+ esac
1313
+else
1314
+ CFLAGS="$flag"
1315
+fi
1316
+
1317
+else
1318
+ :
1319
+fi
1320
+
1321
+done
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+for flag in -ftree-vectorize; do
1328
+ as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
1329
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
1330
+$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
1331
+if eval \${$as_CACHEVAR+:} false; then :
1332
+ $as_echo_n "(cached) " >&6
1333
+else
1334
+
1335
+ ax_check_save_flags=$CFLAGS
1336
+ CFLAGS="$CFLAGS $flag"
1337
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1338
+/* end confdefs.h. */
1339
+
1340
+int
1341
+main ()
1342
+{
1343
+
1344
+ ;
1345
+ return 0;
1346
+}
1347
+_ACEOF
1348
+if ac_fn_c_try_compile "$LINENO"; then :
1349
+ eval "$as_CACHEVAR=yes"
1350
+else
1351
+ eval "$as_CACHEVAR=no"
1352
+fi
1353
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1354
+ CFLAGS=$ax_check_save_flags
1355
+fi
1356
+eval ac_res=\$$as_CACHEVAR
1357
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1358
+$as_echo "$ac_res" >&6; }
1359
+if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
1360
+ if ${CFLAGS+:} false; then :
1361
+ case " $CFLAGS " in
1362
+ *" $flag "*)
1363
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
1364
+ (: CFLAGS already contains $flag) 2>&5
1365
+ ac_status=$?
1366
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1367
+ test $ac_status = 0; }
1368
+ ;;
1369
+ *)
1370
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
1371
+ (: CFLAGS="$CFLAGS $flag") 2>&5
1372
+ ac_status=$?
1373
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1374
+ test $ac_status = 0; }
1375
+ CFLAGS="$CFLAGS $flag"
1376
+ ;;
1377
+ esac
1378
+else
1379
+ CFLAGS="$flag"
1380
+fi
1381
+
1382
+else
1383
+ :
1384
+fi
1385
+
1386
+done
1387
+
1388
+
1389
+
1390
+
1391
+
1392
+
1393
for flag in -Wall; do
1394
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
1395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
1396
1397
1398
done
1399
1400
+
1401
+
1402
+
1403
+
1404
for flag in -Wextra; do
1405
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
1406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
1407
1408
1409
done
1410
1411
+
1412
+
1413
+
1414
+
1415
for flag in -Wno-deprecated-declarations; do
1416
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
1417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
1418
1419
1420
done
1421
1422
+
1423
+
1424
+
1425
+
1426
for flag in -Wmissing-prototypes; do
1427
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
1428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
1429
1430
1431
done
1432
1433
+
1434
+
1435
+
1436
+
1437
for flag in -Wshadow; do
1438
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
1439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
1440
1441
1442
done
1443
1444
+
1445
+
1446
+
1447
+
1448
for flag in -Wpointer-arith; do
1449
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
1450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
1451
1452
1453
done
1454
1455
+
1456
+
1457
+
1458
+
1459
for flag in -Wstrict-prototypes; do
1460
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
1461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
1462
1463
1464
done
1465
1466
+
1467
+
1468
+
1469
+
1470
for flag in -Wcast-qual; do
1471
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
1472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
1473
1474
1475
done
1476
1477
+
1478
+
1479
+
1480
+
1481
for flag in -Wwrite-strings; do
1482
as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
1483
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
1484
1485
LTLIBOBJS=$ac_ltlibobjs
1486
1487
1488
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
1489
+$as_echo_n "checking that generated files are newer than configure... " >&6; }
1490
+ if test -n "$am_sleep_pid"; then
1491
+ # Hide warnings about reused PIDs.
1492
+ wait $am_sleep_pid 2>/dev/null
1493
+ fi
1494
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
1495
+$as_echo "done" >&6; }
1496
if test -n "$EXEEXT"; then
1497
am__EXEEXT_TRUE=
1498
am__EXEEXT_FALSE='#'
1499
1500
# report actual input values of CONFIG_FILES etc. instead of their
1501
# values after options handling.
1502
ac_log="
1503
-This file was extended by ncmpc $as_me 0.21, which was
1504
+This file was extended by ncmpc $as_me 0.24, which was
1505
generated by GNU Autoconf 2.69. Invocation command line was
1506
1507
CONFIG_FILES = $CONFIG_FILES
1508
1509
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1510
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1511
ac_cs_version="\\
1512
-ncmpc config.status 0.21
1513
+ncmpc config.status 0.24
1514
configured by $0, generated by GNU Autoconf 2.69,
1515
with options \\"\$ac_cs_config\\"
1516
1517
1518
1519
case $ac_file$ac_mode in
1520
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1521
- # Autoconf 2.62 quotes --file arguments for eval, but not when files
1522
+ # Older Autoconf quotes --file arguments for eval, but not when files
1523
# are listed without --file. Let's play safe and only enable the eval
1524
# if we detect the quoting.
1525
case $CONFIG_FILES in
1526
1527
# Strip MF so we end up with the name of the file.
1528
mf=`echo "$mf" | sed -e 's/:.*$//'`
1529
# Check whether this is an Automake generated Makefile or not.
1530
- # We used to match only the files named `Makefile.in', but
1531
+ # We used to match only the files named 'Makefile.in', but
1532
# some people rename them; so instead we look at the file content.
1533
# Grep'ing the first line is not enough: some people post-process
1534
# each Makefile.in and add a new line on top of each file to say so.
1535
1536
continue
1537
fi
1538
# Extract the definition of DEPDIR, am__include, and am__quote
1539
- # from the Makefile without running `make'.
1540
+ # from the Makefile without running 'make'.
1541
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1542
test -z "$DEPDIR" && continue
1543
am__include=`sed -n 's/^am__include = //p' < "$mf"`
1544
- test -z "am__include" && continue
1545
+ test -z "$am__include" && continue
1546
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1547
- # When using ansi2knr, U may be empty or an underscore; expand it
1548
- U=`sed -n 's/^U = //p' < "$mf"`
1549
# Find all dependency output files, they are included files with
1550
# $(DEPDIR) in their names. We invoke sed twice because it is the
1551
# simplest approach to changing $(DEPDIR) to its actual value in the
1552
# expansion.
1553
for file in `sed -n "
1554
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1555
- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1556
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1557
# Make sure the directory exists.
1558
test -f "$dirpart/$file" && continue
1559
fdir=`$as_dirname -- "$file" ||
1560
1561
case "$ac_file" in */Makefile.in)
1562
# Adjust a relative srcdir.
1563
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
1564
- ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
1565
+ ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
1566
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
1567
# In autoconf-2.13 it is called $ac_given_srcdir.
1568
# In autoconf-2.50 it is called $srcdir.
1569
1570
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
1571
rm -f "$ac_dir/POTFILES"
1572
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
1573
- cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
1574
+ gt_tab=`printf '\t'`
1575
+ cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
1576
POMAKEFILEDEPS="POTFILES.in"
1577
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
1578
# on $ac_dir but don't depend on user-specified configuration
1579
1580
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
1581
fi
1582
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
1583
- # Hide the ALL_LINGUAS assigment from automake < 1.5.
1584
+ # Hide the ALL_LINGUAS assignment from automake < 1.5.
1585
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
1586
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
1587
else
1588
# The set of available languages was given in configure.in.
1589
- # Hide the ALL_LINGUAS assigment from automake < 1.5.
1590
+ # Hide the ALL_LINGUAS assignment from automake < 1.5.
1591
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
1592
fi
1593
# Compute POFILES
1594
ncmpc-0.21.tar.bz2/configure.ac -> ncmpc-0.24.tar.xz/configure.ac
Changed
67
1
2
AC_PREREQ(2.60)
3
-AC_INIT(ncmpc, 0.21, max@duempel.org)
4
+AC_INIT(ncmpc, 0.24, max@duempel.org)
5
6
VERSION_MAJOR=0
7
-VERSION_MINOR=21
8
+VERSION_MINOR=24
9
VERSION_REVISION=0
10
VERSION_EXTRA=0
11
12
AC_CONFIG_SRCDIR([src/main.c])
13
AC_CONFIG_AUX_DIR(build)
14
-AM_INIT_AUTOMAKE([foreign 1.10 dist-bzip2 subdir-objects])
15
+AM_INIT_AUTOMAKE([foreign 1.11 dist-xz subdir-objects])
16
+AM_SILENT_RULES
17
AC_CONFIG_HEADERS([config.h])
18
AC_CONFIG_MACRO_DIR([m4])
19
20
+
21
dnl Check for programs
22
AC_PROG_CC_C99
23
AC_PROG_INSTALL
24
25
dnl =======================================================
26
27
dnl i18n
28
-ALL_LINGUAS=`grep -v '^\#' po/LINGUAS`
29
+ALL_LINGUAS=`grep -v '^\#' $srcdir/po/LINGUAS`
30
31
set -- $CFLAGS
32
33
34
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.14],,
35
[AC_MSG_ERROR([glib 2.14 is required])])
36
37
-dnl Check for libmpdclient 2.2
38
-PKG_CHECK_MODULES([LIBMPDCLIENT], [libmpdclient >= 2.2],,
39
+dnl Check for libmpdclient 2.3
40
+PKG_CHECK_MODULES([LIBMPDCLIENT], [libmpdclient >= 2.3],,
41
[AC_MSG_ERROR([libmpdclient2 is required])])
42
43
dnl Check for libmpdclient 2.5 (the chat screen requires this version)
44
45
46
if test "x$enable_debug" = xno; then
47
AM_CFLAGS="$AM_CFLAGS -DNDEBUG"
48
+
49
+ AX_APPEND_COMPILE_FLAGS([-ffunction-sections])
50
+ AX_APPEND_COMPILE_FLAGS([-fdata-sections])
51
+
52
+ AX_APPEND_LINK_FLAGS([-Wl,--gc-sections])
53
fi
54
55
AC_ARG_ENABLE(test,
56
57
58
AC_SUBST(AM_CFLAGS)
59
60
+AX_APPEND_COMPILE_FLAGS([-fvisibility=hidden])
61
+AX_APPEND_COMPILE_FLAGS([-ffast-math])
62
+AX_APPEND_COMPILE_FLAGS([-ftree-vectorize])
63
+
64
AX_APPEND_COMPILE_FLAGS([-Wall])
65
AX_APPEND_COMPILE_FLAGS([-Wextra])
66
AX_APPEND_COMPILE_FLAGS([-Wno-deprecated-declarations])
67
ncmpc-0.21.tar.bz2/doc/config.sample -> ncmpc-0.24.tar.xz/doc/config.sample
Changed
11
1
2
## The format used to display songs in the main window.
3
#list-format = "%name%|[%artist% - ]%title%|%file%"
4
5
+## The format used to display songs in the search window.
6
+#search-format = "%name%|[%artist% - ]%title%|%file%"
7
+
8
## The format used to display songs on the status line.
9
#status-format = "[%artist% - ]%title%|%shortfile%"
10
11
ncmpc-0.21.tar.bz2/doc/doxygen.conf -> ncmpc-0.24.tar.xz/doc/doxygen.conf
Changed
10
1
2
# This could be handy for archiving the generated documentation or
3
# if some version control system is used.
4
5
-PROJECT_NUMBER = 0.21
6
+PROJECT_NUMBER = 0.24
7
8
# Using the PROJECT_BRIEF tag one can provide an optional one line description
9
# for a project that appears at the top of each page and should give viewer
10
ncmpc-0.21.tar.bz2/doc/ncmpc.1 -> ncmpc-0.24.tar.xz/doc/ncmpc.1
Changed
11
1
2
.B list\-format = SONG FORMAT
3
The format used to display songs in the main window.
4
.TP
5
+.B search\-format = SONG FORMAT
6
+The format used to display songs in the search window. Default is to use list\-format.
7
+.TP
8
.B status\-format = SONG FORMAT
9
The format used to display songs on the status line.
10
.TP
11
ncmpc-0.21.tar.bz2/m4/ax_append_compile_flags.m4 -> ncmpc-0.24.tar.xz/m4/ax_append_compile_flags.m4
Changed
16
1
2
# modified version of the Autoconf Macro, you may extend this special
3
# exception to the GPL to apply to your modified version as well.
4
5
-#serial 2
6
+#serial 4
7
8
AC_DEFUN([AX_APPEND_COMPILE_FLAGS],
9
-[for flag in $1; do
10
+[AX_REQUIRE_DEFINED([AX_CHECK_COMPILE_FLAG])
11
+AX_REQUIRE_DEFINED([AX_APPEND_FLAG])
12
+for flag in $1; do
13
AX_CHECK_COMPILE_FLAG([$flag], [AX_APPEND_FLAG([$flag], [$2])], [], [$3])
14
done
15
])dnl AX_APPEND_COMPILE_FLAGS
16
ncmpc-0.24.tar.xz/m4/ax_append_link_flags.m4
Added
65
1
2
+# ===========================================================================
3
+# http://www.gnu.org/software/autoconf-archive/ax_append_link_flags.html
4
+# ===========================================================================
5
+#
6
+# SYNOPSIS
7
+#
8
+# AX_APPEND_LINK_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS])
9
+#
10
+# DESCRIPTION
11
+#
12
+# For every FLAG1, FLAG2 it is checked whether the linker works with the
13
+# flag. If it does, the flag is added FLAGS-VARIABLE
14
+#
15
+# If FLAGS-VARIABLE is not specified, the linker's flags (LDFLAGS) is
16
+# used. During the check the flag is always added to the linker's flags.
17
+#
18
+# If EXTRA-FLAGS is defined, it is added to the linker's default flags
19
+# when the check is done. The check is thus made with the flags: "LDFLAGS
20
+# EXTRA-FLAGS FLAG". This can for example be used to force the linker to
21
+# issue an error when a bad flag is given.
22
+#
23
+# NOTE: This macro depends on the AX_APPEND_FLAG and AX_CHECK_LINK_FLAG.
24
+# Please keep this macro in sync with AX_APPEND_COMPILE_FLAGS.
25
+#
26
+# LICENSE
27
+#
28
+# Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com>
29
+#
30
+# This program is free software: you can redistribute it and/or modify it
31
+# under the terms of the GNU General Public License as published by the
32
+# Free Software Foundation, either version 3 of the License, or (at your
33
+# option) any later version.
34
+#
35
+# This program is distributed in the hope that it will be useful, but
36
+# WITHOUT ANY WARRANTY; without even the implied warranty of
37
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
38
+# Public License for more details.
39
+#
40
+# You should have received a copy of the GNU General Public License along
41
+# with this program. If not, see <http://www.gnu.org/licenses/>.
42
+#
43
+# As a special exception, the respective Autoconf Macro's copyright owner
44
+# gives unlimited permission to copy, distribute and modify the configure
45
+# scripts that are the output of Autoconf when processing the Macro. You
46
+# need not follow the terms of the GNU General Public License when using
47
+# or distributing such scripts, even though portions of the text of the
48
+# Macro appear in them. The GNU General Public License (GPL) does govern
49
+# all other use of the material that constitutes the Autoconf Macro.
50
+#
51
+# This special exception to the GPL applies to versions of the Autoconf
52
+# Macro released by the Autoconf Archive. When you make and distribute a
53
+# modified version of the Autoconf Macro, you may extend this special
54
+# exception to the GPL to apply to your modified version as well.
55
+
56
+#serial 4
57
+
58
+AC_DEFUN([AX_APPEND_LINK_FLAGS],
59
+[AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG])
60
+AX_REQUIRE_DEFINED([AX_APPEND_FLAG])
61
+for flag in $1; do
62
+ AX_CHECK_LINK_FLAG([$flag], [AX_APPEND_FLAG([$flag], [m4_default([$2], [LDFLAGS])])], [], [$3])
63
+done
64
+])dnl AX_APPEND_LINK_FLAGS
65
ncmpc-0.21.tar.bz2/m4/ax_check_compile_flag.m4 -> ncmpc-0.24.tar.xz/m4/ax_check_compile_flag.m4
Changed
37
1
2
#
3
# SYNOPSIS
4
#
5
-# AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS])
6
+# AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT])
7
#
8
# DESCRIPTION
9
#
10
11
# the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to
12
# force the compiler to issue an error when a bad flag is given.
13
#
14
+# INPUT gives an alternative input source to AC_COMPILE_IFELSE.
15
+#
16
# NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this
17
# macro in sync with AX_CHECK_{PREPROC,LINK}_FLAG.
18
#
19
20
# modified version of the Autoconf Macro, you may extend this special
21
# exception to the GPL to apply to your modified version as well.
22
23
-#serial 2
24
+#serial 3
25
26
AC_DEFUN([AX_CHECK_COMPILE_FLAG],
27
[AC_PREREQ(2.59)dnl for _AC_LANG_PREFIX
28
29
AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [
30
ax_check_save_flags=$[]_AC_LANG_PREFIX[]FLAGS
31
_AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $4 $1"
32
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
33
+ AC_COMPILE_IFELSE([m4_default([$5],[AC_LANG_PROGRAM()])],
34
[AS_VAR_SET(CACHEVAR,[yes])],
35
[AS_VAR_SET(CACHEVAR,[no])])
36
_AC_LANG_PREFIX[]FLAGS=$ax_check_save_flags])
37
ncmpc-0.24.tar.xz/m4/ax_check_link_flag.m4
Added
75
1
2
+# ===========================================================================
3
+# http://www.gnu.org/software/autoconf-archive/ax_check_link_flag.html
4
+# ===========================================================================
5
+#
6
+# SYNOPSIS
7
+#
8
+# AX_CHECK_LINK_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT])
9
+#
10
+# DESCRIPTION
11
+#
12
+# Check whether the given FLAG works with the linker or gives an error.
13
+# (Warnings, however, are ignored)
14
+#
15
+# ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
16
+# success/failure.
17
+#
18
+# If EXTRA-FLAGS is defined, it is added to the linker's default flags
19
+# when the check is done. The check is thus made with the flags: "LDFLAGS
20
+# EXTRA-FLAGS FLAG". This can for example be used to force the linker to
21
+# issue an error when a bad flag is given.
22
+#
23
+# INPUT gives an alternative input source to AC_LINK_IFELSE.
24
+#
25
+# NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this
26
+# macro in sync with AX_CHECK_{PREPROC,COMPILE}_FLAG.
27
+#
28
+# LICENSE
29
+#
30
+# Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
31
+# Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com>
32
+#
33
+# This program is free software: you can redistribute it and/or modify it
34
+# under the terms of the GNU General Public License as published by the
35
+# Free Software Foundation, either version 3 of the License, or (at your
36
+# option) any later version.
37
+#
38
+# This program is distributed in the hope that it will be useful, but
39
+# WITHOUT ANY WARRANTY; without even the implied warranty of
40
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
41
+# Public License for more details.
42
+#
43
+# You should have received a copy of the GNU General Public License along
44
+# with this program. If not, see <http://www.gnu.org/licenses/>.
45
+#
46
+# As a special exception, the respective Autoconf Macro's copyright owner
47
+# gives unlimited permission to copy, distribute and modify the configure
48
+# scripts that are the output of Autoconf when processing the Macro. You
49
+# need not follow the terms of the GNU General Public License when using
50
+# or distributing such scripts, even though portions of the text of the
51
+# Macro appear in them. The GNU General Public License (GPL) does govern
52
+# all other use of the material that constitutes the Autoconf Macro.
53
+#
54
+# This special exception to the GPL applies to versions of the Autoconf
55
+# Macro released by the Autoconf Archive. When you make and distribute a
56
+# modified version of the Autoconf Macro, you may extend this special
57
+# exception to the GPL to apply to your modified version as well.
58
+
59
+#serial 3
60
+
61
+AC_DEFUN([AX_CHECK_LINK_FLAG],
62
+[AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_ldflags_$4_$1])dnl
63
+AC_CACHE_CHECK([whether the linker accepts $1], CACHEVAR, [
64
+ ax_check_save_flags=$LDFLAGS
65
+ LDFLAGS="$LDFLAGS $4 $1"
66
+ AC_LINK_IFELSE([m4_default([$5],[AC_LANG_PROGRAM()])],
67
+ [AS_VAR_SET(CACHEVAR,[yes])],
68
+ [AS_VAR_SET(CACHEVAR,[no])])
69
+ LDFLAGS=$ax_check_save_flags])
70
+AS_IF([test x"AS_VAR_GET(CACHEVAR)" = xyes],
71
+ [m4_default([$2], :)],
72
+ [m4_default([$3], :)])
73
+AS_VAR_POPDEF([CACHEVAR])dnl
74
+])dnl AX_CHECK_LINK_FLAGS
75
ncmpc-0.21.tar.bz2/m4/ax_with_curses.m4 -> ncmpc-0.24.tar.xz/m4/ax_with_curses.m4
Changed
49
1
2
#
3
# AX_WITH_CURSES
4
# if test "x$ax_cv_ncursesw" != xyes && test "x$ax_cv_ncurses" != xyes; then
5
-# AX_MSG_ERROR([requires either NcursesW or Ncurses library])
6
+# AC_MSG_ERROR([requires either NcursesW or Ncurses library])
7
# fi
8
#
9
# If any Curses library will do (but one must be present and must support
10
11
# To use the HAVE_xxx_H preprocessor symbols, insert the following into
12
# your system.h (or equivalent) header file:
13
#
14
-# #if defined(HAVE_NCURSESW_CURSES_H)
15
+# #if defined HAVE_NCURSESW_CURSES_H
16
# # include <ncursesw/curses.h>
17
-# #elif defined(HAVE_NCURSESW_H)
18
+# #elif defined HAVE_NCURSESW_H
19
# # include <ncursesw.h>
20
-# #elif defined(HAVE_NCURSES_CURSES_H)
21
+# #elif defined HAVE_NCURSES_CURSES_H
22
# # include <ncurses/curses.h>
23
-# #elif defined(HAVE_NCURSES_H)
24
+# #elif defined HAVE_NCURSES_H
25
# # include <ncurses.h>
26
-# #elif defined(HAVE_CURSES_H)
27
+# #elif defined HAVE_CURSES_H
28
# # include <curses.h>
29
# #else
30
# # error "SysV or X/Open-compatible Curses header file required"
31
32
#
33
# Copyright (c) 2009 Mark Pulford <mark@kyne.com.au>
34
# Copyright (c) 2009 Damian Pietras <daper@daper.net>
35
-# Copyright (c) 2011 Reuben Thomas <rrt@sc3d.org>
36
+# Copyright (c) 2012 Reuben Thomas <rrt@sc3d.org>
37
# Copyright (c) 2011 John Zaitseff <J.Zaitseff@zap.org.au>
38
#
39
# This program is free software: you can redistribute it and/or modify it
40
41
# modified version of the Autoconf Macro, you may extend this special
42
# exception to the GPL to apply to your modified version as well.
43
44
-#serial 11
45
+#serial 15
46
47
AU_ALIAS([MP_WITH_CURSES], [AX_WITH_CURSES])
48
AC_DEFUN([AX_WITH_CURSES], [
49
ncmpc-0.21.tar.bz2/m4/nls.m4 -> ncmpc-0.24.tar.xz/m4/nls.m4
Changed
8
1
2
# nls.m4 serial 5 (gettext-0.18)
3
-dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
4
+dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation,
5
dnl Inc.
6
dnl This file is free software; the Free Software Foundation
7
dnl gives unlimited permission to copy and/or distribute it,
8
ncmpc-0.21.tar.bz2/m4/pkg.m4 -> ncmpc-0.24.tar.xz/m4/pkg.m4
Changed
187
1
2
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
3
+# serial 1 (pkg-config-0.24)
4
#
5
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
6
#
7
8
# ----------------------------------
9
AC_DEFUN([PKG_PROG_PKG_CONFIG],
10
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
11
-m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
12
-AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
13
+m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
14
+m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
15
+AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
16
+AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
17
+AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
18
+
19
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
21
fi
22
23
AC_MSG_RESULT([no])
24
PKG_CONFIG=""
25
fi
26
-
27
fi[]dnl
28
])# PKG_PROG_PKG_CONFIG
29
30
31
# Check to see whether a particular set of modules exists. Similar
32
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
33
#
34
-#
35
-# Similar to PKG_CHECK_MODULES, make sure that the first instance of
36
-# this or PKG_CHECK_MODULES is called, or make sure to call
37
-# PKG_CHECK_EXISTS manually
38
+# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
39
+# only at the first occurence in configure.ac, so if the first place
40
+# it's called might be skipped (such as if it is within an "if", you
41
+# have to call PKG_CHECK_EXISTS manually
42
# --------------------------------------------------------------
43
AC_DEFUN([PKG_CHECK_EXISTS],
44
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
45
if test -n "$PKG_CONFIG" && \
46
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
47
- m4_ifval([$2], [$2], [:])
48
+ m4_default([$2], [:])
49
m4_ifvaln([$3], [else
50
$3])dnl
51
fi])
52
53
-
54
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
55
# ---------------------------------------------
56
m4_define([_PKG_CONFIG],
57
-[if test -n "$PKG_CONFIG"; then
58
- if test -n "$$1"; then
59
- pkg_cv_[]$1="$$1"
60
- else
61
- PKG_CHECK_EXISTS([$3],
62
- [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
63
- [pkg_failed=yes])
64
- fi
65
-else
66
- pkg_failed=untried
67
+[if test -n "$$1"; then
68
+ pkg_cv_[]$1="$$1"
69
+ elif test -n "$PKG_CONFIG"; then
70
+ PKG_CHECK_EXISTS([$3],
71
+ [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
72
+ test "x$?" != "x0" && pkg_failed=yes ],
73
+ [pkg_failed=yes])
74
+ else
75
+ pkg_failed=untried
76
fi[]dnl
77
])# _PKG_CONFIG
78
79
80
See the pkg-config man page for more details.])
81
82
if test $pkg_failed = yes; then
83
+ AC_MSG_RESULT([no])
84
_PKG_SHORT_ERRORS_SUPPORTED
85
if test $_pkg_short_errors_supported = yes; then
86
- $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
87
+ $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
88
else
89
- $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
90
+ $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
91
fi
92
# Put the nasty error message in config.log where it belongs
93
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
94
95
- ifelse([$4], , [AC_MSG_ERROR(dnl
96
+ m4_default([$4], [AC_MSG_ERROR(
97
[Package requirements ($2) were not met:
98
99
$$1_PKG_ERRORS
100
101
Consider adjusting the PKG_CONFIG_PATH environment variable if you
102
installed software in a non-standard prefix.
103
104
-_PKG_TEXT
105
-])],
106
- [AC_MSG_RESULT([no])
107
- $4])
108
+_PKG_TEXT])[]dnl
109
+ ])
110
elif test $pkg_failed = untried; then
111
- ifelse([$4], , [AC_MSG_FAILURE(dnl
112
+ AC_MSG_RESULT([no])
113
+ m4_default([$4], [AC_MSG_FAILURE(
114
[The pkg-config script could not be found or is too old. Make sure it
115
is in your PATH or set the PKG_CONFIG environment variable to the full
116
path to pkg-config.
117
118
_PKG_TEXT
119
120
-To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
121
- [$4])
122
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
123
+ ])
124
else
125
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
126
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
127
AC_MSG_RESULT([yes])
128
- ifelse([$3], , :, [$3])
129
+ $3
130
fi[]dnl
131
])# PKG_CHECK_MODULES
132
+
133
+
134
+# PKG_INSTALLDIR(DIRECTORY)
135
+# -------------------------
136
+# Substitutes the variable pkgconfigdir as the location where a module
137
+# should install pkg-config .pc files. By default the directory is
138
+# $libdir/pkgconfig, but the default can be changed by passing
139
+# DIRECTORY. The user can override through the --with-pkgconfigdir
140
+# parameter.
141
+AC_DEFUN([PKG_INSTALLDIR],
142
+[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
143
+m4_pushdef([pkg_description],
144
+ [pkg-config installation directory @<:@]pkg_default[@:>@])
145
+AC_ARG_WITH([pkgconfigdir],
146
+ [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
147
+ [with_pkgconfigdir=]pkg_default)
148
+AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
149
+m4_popdef([pkg_default])
150
+m4_popdef([pkg_description])
151
+]) dnl PKG_INSTALLDIR
152
+
153
+
154
+# PKG_NOARCH_INSTALLDIR(DIRECTORY)
155
+# -------------------------
156
+# Substitutes the variable noarch_pkgconfigdir as the location where a
157
+# module should install arch-independent pkg-config .pc files. By
158
+# default the directory is $datadir/pkgconfig, but the default can be
159
+# changed by passing DIRECTORY. The user can override through the
160
+# --with-noarch-pkgconfigdir parameter.
161
+AC_DEFUN([PKG_NOARCH_INSTALLDIR],
162
+[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
163
+m4_pushdef([pkg_description],
164
+ [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
165
+AC_ARG_WITH([noarch-pkgconfigdir],
166
+ [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
167
+ [with_noarch_pkgconfigdir=]pkg_default)
168
+AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
169
+m4_popdef([pkg_default])
170
+m4_popdef([pkg_description])
171
+]) dnl PKG_NOARCH_INSTALLDIR
172
+
173
+
174
+# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
175
+# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
176
+# -------------------------------------------
177
+# Retrieves the value of the pkg-config variable for the given module.
178
+AC_DEFUN([PKG_CHECK_VAR],
179
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
180
+AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
181
+
182
+_PKG_CONFIG([$1], [variable="][$3]["], [$2])
183
+AS_VAR_COPY([$1], [pkg_cv_][$1])
184
+
185
+AS_VAR_IF([$1], [""], [$5], [$4])dnl
186
+])# PKG_CHECK_VAR
187
ncmpc-0.21.tar.bz2/m4/po.m4 -> ncmpc-0.24.tar.xz/m4/po.m4
Changed
143
1
2
-# po.m4 serial 15 (gettext-0.17)
3
-dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
4
+# po.m4 serial 21 (gettext-0.18.3)
5
+dnl Copyright (C) 1995-2013 Free Software Foundation, Inc.
6
dnl This file is free software; the Free Software Foundation
7
dnl gives unlimited permission to copy and/or distribute it,
8
dnl with or without modifications, as long as this notice is preserved.
9
10
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
11
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
12
13
-AC_PREREQ(2.50)
14
+AC_PREREQ([2.60])
15
16
dnl Checks for all prerequisites of the po subdirectory.
17
AC_DEFUN([AM_PO_SUBDIRS],
18
[
19
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
20
AC_REQUIRE([AC_PROG_INSTALL])dnl
21
- AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
22
+ AC_REQUIRE([AC_PROG_MKDIR_P])dnl
23
+ AC_REQUIRE([AC_PROG_SED])dnl
24
AC_REQUIRE([AM_NLS])dnl
25
26
dnl Release version of the gettext macros. This is used to ensure that
27
dnl the gettext macros and po/Makefile.in.in are in sync.
28
- AC_SUBST([GETTEXT_MACRO_VERSION], [0.17])
29
+ AC_SUBST([GETTEXT_MACRO_VERSION], [0.18])
30
31
dnl Perform the following tests also if --disable-nls has been given,
32
dnl because they are needed for "make dist" to work.
33
34
[$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
35
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
36
:)
37
- AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
38
+ AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
39
40
dnl Test whether it is GNU msgfmt >= 0.15.
41
changequote(,)dnl
42
43
case "$ac_file" in */Makefile.in)
44
# Adjust a relative srcdir.
45
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46
- ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
47
+ ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
48
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
49
# In autoconf-2.13 it is called $ac_given_srcdir.
50
# In autoconf-2.50 it is called $srcdir.
51
52
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
53
rm -f "$ac_dir/POTFILES"
54
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
55
- cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
56
+ gt_tab=`printf '\t'`
57
+ cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
58
POMAKEFILEDEPS="POTFILES.in"
59
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
60
# on $ac_dir but don't depend on user-specified configuration
61
62
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
63
fi
64
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
65
- # Hide the ALL_LINGUAS assigment from automake < 1.5.
66
+ # Hide the ALL_LINGUAS assignment from automake < 1.5.
67
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
68
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
69
else
70
# The set of available languages was given in configure.in.
71
- # Hide the ALL_LINGUAS assigment from automake < 1.5.
72
+ # Hide the ALL_LINGUAS assignment from automake < 1.5.
73
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
74
fi
75
# Compute POFILES
76
77
changequote(,)dnl
78
# Adjust a relative srcdir.
79
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
80
- ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
81
+ ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
82
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
83
# In autoconf-2.13 it is called $ac_given_srcdir.
84
# In autoconf-2.50 it is called $srcdir.
85
86
fi
87
88
# A sed script that extracts the value of VARIABLE from a Makefile.
89
+ tab=`printf '\t'`
90
sed_x_variable='
91
# Test if the hold space is empty.
92
x
93
94
x
95
ta
96
# Yes it was empty. Look if we have the expected variable definition.
97
-/^[ ]*VARIABLE[ ]*=/{
98
+/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{
99
# Seen the first line of the variable definition.
100
- s/^[ ]*VARIABLE[ ]*=//
101
+ s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=//
102
ba
103
}
104
bd
105
106
sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
107
ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
108
fi
109
- # Hide the ALL_LINGUAS assigment from automake < 1.5.
110
+ # Hide the ALL_LINGUAS assignment from automake < 1.5.
111
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
112
# Compute POFILES
113
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
114
115
fi
116
117
sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
118
+ tab=`printf '\t'`
119
if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
120
# Add dependencies that cannot be formulated as a simple suffix rule.
121
for lang in $ALL_LINGUAS; do
122
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
123
cat >> "$ac_file.tmp" <<EOF
124
$frobbedlang.msg: $lang.po
125
- @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
126
- \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
127
+${tab}@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
128
+${tab}\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
129
EOF
130
done
131
fi
132
133
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
134
cat >> "$ac_file.tmp" <<EOF
135
$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
136
- @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
137
- \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
138
+${tab}@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
139
+${tab}\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
140
EOF
141
done
142
fi
143
ncmpc-0.21.tar.bz2/po/Makefile.in.in -> ncmpc-0.24.tar.xz/po/Makefile.in.in
Changed
51
1
2
3
INSTALL = @INSTALL@
4
INSTALL_DATA = @INSTALL_DATA@
5
-MKINSTALLDIRS = $(top_srcdir)/@MKINSTALLDIRS@
6
+MKINSTALLDIRS = mkdir -p
7
8
CC = @CC@
9
GENCAT = @GENCAT@
10
11
install-data: install-data-@USE_NLS@
12
install-data-no: all
13
install-data-yes: all
14
- if test -r "$(MKINSTALLDIRS)"; then \
15
- $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
16
- else \
17
- $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \
18
- fi
19
- @catalogs='$(CATALOGS)'; \
20
+ $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
21
+ catalogs='$(CATALOGS)'; \
22
for cat in $$catalogs; do \
23
cat=`basename $$cat`; \
24
case "$$cat" in \
25
26
esac; \
27
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
28
dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \
29
- if test -r "$(MKINSTALLDIRS)"; then \
30
- $(MKINSTALLDIRS) $$dir; \
31
- else \
32
- $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
33
- fi; \
34
+ $(MKINSTALLDIRS) $$dir; \
35
if test -r $$cat; then \
36
$(INSTALL_DATA) $$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
37
echo "installing $$cat as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \
38
39
fi; \
40
done
41
if test "$(PACKAGE)" = "glib"; then \
42
- if test -r "$(MKINSTALLDIRS)"; then \
43
- $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \
44
- else \
45
- $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \
46
- fi; \
47
+ $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \
48
$(INSTALL_DATA) $(srcdir)/Makefile.in.in \
49
$(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
50
else \
51
ncmpc-0.21.tar.bz2/po/ncmpc.pot -> ncmpc-0.24.tar.xz/po/ncmpc.pot
Changed
1558
1
2
"Project-Id-Version: PACKAGE VERSION\n"
3
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?"
4
"product=glib&keywords=I18N+L10N&component=general\n"
5
-"POT-Creation-Date: 2013-04-11 10:23+0200\n"
6
+"POT-Creation-Date: 2014-07-14 11:56+0200\n"
7
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
"Language-Team: LANGUAGE <LL@li.org>\n"
10
11
"Content-Type: text/plain; charset=CHARSET\n"
12
"Content-Transfer-Encoding: 8bit\n"
13
14
-#: src/i18n.h:42
15
+#: /home/max/git/ncmpc/src/i18n.h:42
16
msgid "y"
17
msgstr ""
18
19
-#: src/i18n.h:43
20
+#: /home/max/git/ncmpc/src/i18n.h:43
21
msgid "n"
22
msgstr ""
23
24
-#: src/main.c:245 ../src/main.c:267 ../src/main.c:290
25
+#: /home/max/git/ncmpc/src/main.c:244 /home/max/git/ncmpc/src/main.c:266
26
msgid "unknown"
27
msgstr ""
28
29
-#: src/main.c:315
30
+#: /home/max/git/ncmpc/src/main.c:294
31
#, c-format
32
msgid "Connecting to %s... [Press %s to abort]"
33
msgstr ""
34
35
-#: src/main.c:339
36
+#: /home/max/git/ncmpc/src/main.c:316
37
#, c-format
38
-msgid "Error: MPD version %d.%d.%d is to old (%s needed)"
39
+msgid "Error: MPD version %d.%d.%d is too old (%s needed)"
40
msgstr ""
41
42
-#: src/main.c:358
43
-#, c-format
44
-msgid "Connected to %s"
45
-msgstr ""
46
-
47
-#. to translators: a key was bound twice in the key editor,
48
-#. and this is a hint for the user what to press to correct
49
-#. that
50
-#: src/main.c:529
51
+#: /home/max/git/ncmpc/src/main.c:496
52
#, c-format
53
msgid "press %s for the key editor"
54
msgstr ""
55
56
-#: src/player_command.c:177 ../src/screen_queue.c:755
57
-msgid "Shuffled playlist"
58
+#: /home/max/git/ncmpc/src/player_command.c:175
59
+#: /home/max/git/ncmpc/src/screen_queue.c:740
60
+msgid "Shuffled queue"
61
msgstr ""
62
63
-#: src/player_command.c:187
64
-msgid "Cleared playlist"
65
+#: /home/max/git/ncmpc/src/player_command.c:185
66
+msgid "Cleared queue"
67
msgstr ""
68
69
-#: src/screen.c:206 ../src/screen.c:273
70
+#: /home/max/git/ncmpc/src/screen.c:204 /home/max/git/ncmpc/src/screen.c:271
71
msgid "Error: Screen too small"
72
msgstr ""
73
74
-#: src/screen.c:395
75
+#: /home/max/git/ncmpc/src/screen.c:393
76
msgid "Repeat mode is on"
77
msgstr ""
78
79
-#: src/screen.c:396
80
+#: /home/max/git/ncmpc/src/screen.c:394
81
msgid "Repeat mode is off"
82
msgstr ""
83
84
-#: src/screen.c:400
85
+#: /home/max/git/ncmpc/src/screen.c:398
86
msgid "Random mode is on"
87
msgstr ""
88
89
-#: src/screen.c:401
90
+#: /home/max/git/ncmpc/src/screen.c:399
91
msgid "Random mode is off"
92
msgstr ""
93
94
95
#. automatically stop
96
#. after playing one
97
#. single song
98
-#: src/screen.c:410
99
+#: /home/max/git/ncmpc/src/screen.c:408
100
msgid "Single mode is on"
101
msgstr ""
102
103
-#: src/screen.c:411
104
+#: /home/max/git/ncmpc/src/screen.c:409
105
msgid "Single mode is off"
106
msgstr ""
107
108
109
#. that MPD removes each
110
#. song which has
111
#. finished playing
112
-#: src/screen.c:419
113
+#: /home/max/git/ncmpc/src/screen.c:417
114
msgid "Consume mode is on"
115
msgstr ""
116
117
-#: src/screen.c:420
118
+#: /home/max/git/ncmpc/src/screen.c:418
119
msgid "Consume mode is off"
120
msgstr ""
121
122
-#: src/screen.c:423
123
+#: /home/max/git/ncmpc/src/screen.c:421
124
#, c-format
125
msgid "Crossfade %d seconds"
126
msgstr ""
127
128
-#: src/screen.c:435
129
+#: /home/max/git/ncmpc/src/screen.c:433
130
msgid "Database updated"
131
msgstr ""
132
133
-#: src/screen.c:515
134
+#: /home/max/git/ncmpc/src/screen.c:513
135
msgid "Find mode: Wrapped"
136
msgstr ""
137
138
-#: src/screen.c:516
139
+#: /home/max/git/ncmpc/src/screen.c:514
140
msgid "Find mode: Normal"
141
msgstr ""
142
143
-#: src/screen.c:521
144
+#: /home/max/git/ncmpc/src/screen.c:519
145
msgid "Auto center mode: On"
146
msgstr ""
147
148
-#: src/screen.c:522
149
+#: /home/max/git/ncmpc/src/screen.c:520
150
msgid "Auto center mode: Off"
151
msgstr ""
152
153
-#: src/screen_artist.c:75 ../src/screen_artist.c:366
154
+#: /home/max/git/ncmpc/src/screen_artist.c:72
155
+#: /home/max/git/ncmpc/src/screen_artist.c:364
156
msgid "All tracks"
157
msgstr ""
158
159
-#: src/screen_artist.c:398
160
+#: /home/max/git/ncmpc/src/screen_artist.c:396
161
#, c-format
162
msgid "All artists"
163
msgstr ""
164
165
-#: src/screen_artist.c:403
166
+#: /home/max/git/ncmpc/src/screen_artist.c:401
167
#, c-format
168
msgid "Albums of artist: %s"
169
msgstr ""
170
171
-#: src/screen_artist.c:412
172
+#: /home/max/git/ncmpc/src/screen_artist.c:410
173
#, c-format
174
msgid "All tracks of artist: %s"
175
msgstr ""
176
177
-#: src/screen_artist.c:415
178
+#: /home/max/git/ncmpc/src/screen_artist.c:413
179
#, c-format
180
msgid "Album: %s - %s"
181
msgstr ""
182
183
-#: src/screen_artist.c:419
184
+#: /home/max/git/ncmpc/src/screen_artist.c:417
185
#, c-format
186
msgid "Tracks of no album of artist: %s"
187
msgstr ""
188
189
-#: src/screen_artist.c:466
190
+#: /home/max/git/ncmpc/src/screen_artist.c:462
191
#, c-format
192
msgid "Adding album %s..."
193
msgstr ""
194
195
-#: src/screen_artist.c:468
196
+#: /home/max/git/ncmpc/src/screen_artist.c:464
197
#, c-format
198
msgid "Adding %s..."
199
msgstr ""
200
201
-#: src/screen_browser.c:131
202
+#: /home/max/git/ncmpc/src/screen_browser.c:127
203
#, c-format
204
msgid "Loading playlist %s..."
205
msgstr ""
206
207
-#: src/screen_browser.c:172 ../src/screen_browser.c:267
208
-#: src/screen_browser.c:292
209
+#: /home/max/git/ncmpc/src/screen_browser.c:168
210
+#: /home/max/git/ncmpc/src/screen_browser.c:261
211
+#: /home/max/git/ncmpc/src/screen_browser.c:286
212
#, c-format
213
-msgid "Adding '%s' to playlist"
214
+msgid "Adding '%s' to queue"
215
msgstr ""
216
217
-#: src/screen_client.c:93
218
+#: /home/max/git/ncmpc/src/screen_client.c:87
219
msgid "Database update running..."
220
msgstr ""
221
222
-#: src/screen_client.c:105
223
+#: /home/max/git/ncmpc/src/screen_client.c:99
224
#, c-format
225
msgid "Database update of %s started"
226
msgstr ""
227
228
-#: src/screen_client.c:108
229
+#: /home/max/git/ncmpc/src/screen_client.c:102
230
msgid "Database update started"
231
msgstr ""
232
233
-#: src/screen_chat.c:59
234
+#: /home/max/git/ncmpc/src/screen_chat.c:59
235
#, c-format
236
msgid ""
237
"connected to MPD %u.%u.%u (you need at least \n"
238
"version 0.17.0 to use the chat feature)"
239
msgstr ""
240
241
-#: src/screen_chat.c:179
242
+#: /home/max/git/ncmpc/src/screen_chat.c:177
243
msgid "Your message"
244
msgstr ""
245
246
-#: src/screen_chat.c:188
247
+#: /home/max/git/ncmpc/src/screen_chat.c:186
248
msgid "Message could not be sent"
249
msgstr ""
250
251
-#: src/screen_chat.c:201 ../src/title_bar.c:94
252
+#: /home/max/git/ncmpc/src/screen_chat.c:199
253
+#: /home/max/git/ncmpc/src/title_bar.c:91
254
msgid "Chat"
255
msgstr ""
256
257
-#: src/screen_find.c:28
258
+#: /home/max/git/ncmpc/src/screen_find.c:28
259
msgid "Find"
260
msgstr ""
261
262
-#: src/screen_find.c:29
263
+#: /home/max/git/ncmpc/src/screen_find.c:29
264
msgid "Find backward"
265
msgstr ""
266
267
-#: src/screen_find.c:30
268
+#: /home/max/git/ncmpc/src/screen_find.c:30
269
msgid "Jump"
270
msgstr ""
271
272
-#: src/screen_find.c:80
273
+#: /home/max/git/ncmpc/src/screen_find.c:81
274
#, c-format
275
msgid "Unable to find '%s'"
276
msgstr ""
277
278
-#: src/screen_utils.c:115
279
+#: /home/max/git/ncmpc/src/screen_utils.c:114
280
msgid "Password"
281
msgstr ""
282
283
#. query the user for a filename
284
-#: src/screen_queue.c:256
285
-msgid "Save playlist as"
286
+#: /home/max/git/ncmpc/src/screen_queue.c:249
287
+msgid "Save queue as"
288
msgstr ""
289
290
-#: src/screen_queue.c:292
291
+#: /home/max/git/ncmpc/src/screen_queue.c:282
292
#, c-format
293
msgid "Replace %s [%s/%s] ? "
294
msgstr ""
295
296
#. translators: a dialog was aborted by the user
297
-#: src/screen_queue.c:300 ../src/screen_file.c:236
298
-#: src/screen_keydef.c:269 ../src/screen_lyrics.c:382
299
+#: /home/max/git/ncmpc/src/screen_queue.c:290
300
+#: /home/max/git/ncmpc/src/screen_file.c:230
301
+#: /home/max/git/ncmpc/src/screen_keydef.c:278
302
+#: /home/max/git/ncmpc/src/screen_lyrics.c:372
303
msgid "Aborted"
304
msgstr ""
305
306
#. success
307
-#: src/screen_queue.c:324
308
+#: /home/max/git/ncmpc/src/screen_queue.c:314
309
#, c-format
310
msgid "Saved %s"
311
msgstr ""
312
313
#. get path
314
-#: src/screen_queue.c:401
315
+#: /home/max/git/ncmpc/src/screen_queue.c:391
316
msgid "Add"
317
msgstr ""
318
319
-#: src/screen_queue.c:508 ../src/title_bar.c:79
320
-msgid "Playlist"
321
+#: /home/max/git/ncmpc/src/screen_queue.c:498
322
+#: /home/max/git/ncmpc/src/title_bar.c:76
323
+msgid "Queue"
324
msgstr ""
325
326
-#: src/screen_queue.c:510
327
+#: /home/max/git/ncmpc/src/screen_queue.c:500
328
#, c-format
329
-msgid "Playlist on %s"
330
+msgid "Queue on %s"
331
msgstr ""
332
333
#. translators: the "delete" command is only possible
334
#. for playlists; the user attempted to delete a song
335
#. or a directory or something else
336
-#: src/screen_file.c:222
337
+#: /home/max/git/ncmpc/src/screen_file.c:216
338
msgid "Deleting this item is not possible"
339
msgstr ""
340
341
-#: src/screen_file.c:229
342
+#: /home/max/git/ncmpc/src/screen_file.c:223
343
#, c-format
344
msgid "Delete playlist %s [%s/%s] ? "
345
msgstr ""
346
347
#. translators: MPD deleted the playlist, as requested by the
348
#. user
349
-#: src/screen_file.c:249
350
+#: /home/max/git/ncmpc/src/screen_file.c:243
351
msgid "Playlist deleted"
352
msgstr ""
353
354
#. translators: caption of the browser screen
355
-#: src/screen_file.c:303 ../src/title_bar.c:80
356
+#: /home/max/git/ncmpc/src/screen_file.c:297
357
+#: /home/max/git/ncmpc/src/title_bar.c:77
358
msgid "Browse"
359
msgstr ""
360
361
-#: src/screen_search.c:46
362
+#: /home/max/git/ncmpc/src/screen_search.c:46
363
msgid "artist"
364
msgstr ""
365
366
-#: src/screen_search.c:47
367
+#: /home/max/git/ncmpc/src/screen_search.c:47
368
msgid "album"
369
msgstr ""
370
371
-#: src/screen_search.c:48
372
+#: /home/max/git/ncmpc/src/screen_search.c:48
373
msgid "title"
374
msgstr ""
375
376
-#: src/screen_search.c:49
377
+#: /home/max/git/ncmpc/src/screen_search.c:49
378
msgid "track"
379
msgstr ""
380
381
-#: src/screen_search.c:50
382
+#: /home/max/git/ncmpc/src/screen_search.c:50
383
msgid "name"
384
msgstr ""
385
386
-#: src/screen_search.c:51
387
+#: /home/max/git/ncmpc/src/screen_search.c:51
388
msgid "genre"
389
msgstr ""
390
391
-#: src/screen_search.c:52
392
+#: /home/max/git/ncmpc/src/screen_search.c:52
393
msgid "date"
394
msgstr ""
395
396
-#: src/screen_search.c:53
397
+#: /home/max/git/ncmpc/src/screen_search.c:53
398
msgid "composer"
399
msgstr ""
400
401
-#: src/screen_search.c:54
402
+#: /home/max/git/ncmpc/src/screen_search.c:54
403
msgid "performer"
404
msgstr ""
405
406
-#: src/screen_search.c:55
407
+#: /home/max/git/ncmpc/src/screen_search.c:55
408
msgid "comment"
409
msgstr ""
410
411
-#: src/screen_search.c:64
412
+#: /home/max/git/ncmpc/src/screen_search.c:62
413
msgid "file"
414
msgstr ""
415
416
-#: src/screen_search.c:82 ../src/screen_song.c:46
417
+#: /home/max/git/ncmpc/src/screen_search.c:80
418
+#: /home/max/git/ncmpc/src/screen_song.c:47
419
msgid "Title"
420
msgstr ""
421
422
-#: src/screen_search.c:83 ../src/screen_song.c:45 ../src/title_bar.c:82
423
+#: /home/max/git/ncmpc/src/screen_search.c:81
424
+#: /home/max/git/ncmpc/src/screen_song.c:46
425
+#: /home/max/git/ncmpc/src/title_bar.c:79
426
msgid "Artist"
427
msgstr ""
428
429
-#: src/screen_search.c:84 ../src/screen_song.c:47
430
+#: /home/max/git/ncmpc/src/screen_search.c:82
431
+#: /home/max/git/ncmpc/src/screen_song.c:48
432
msgid "Album"
433
msgstr ""
434
435
-#: src/screen_search.c:85
436
+#: /home/max/git/ncmpc/src/screen_search.c:83
437
msgid "Filename"
438
msgstr ""
439
440
-#: src/screen_search.c:86
441
+#: /home/max/git/ncmpc/src/screen_search.c:84
442
msgid "Artist + Title"
443
msgstr ""
444
445
-#: src/screen_search.c:232
446
+#: /home/max/git/ncmpc/src/screen_search.c:226
447
#, c-format
448
msgid "Bad search tag %s"
449
msgstr ""
450
451
-#: src/screen_search.c:236
452
+#: /home/max/git/ncmpc/src/screen_search.c:230
453
#, c-format
454
msgid "No argument for search tag %s"
455
msgstr ""
456
457
-#: src/screen_search.c:344 ../src/screen_help.c:150 ../src/title_bar.c:85
458
+#: /home/max/git/ncmpc/src/screen_search.c:338
459
+#: /home/max/git/ncmpc/src/screen_help.c:150
460
+#: /home/max/git/ncmpc/src/title_bar.c:82
461
msgid "Search"
462
msgstr ""
463
464
#. if( pattern==NULL )
465
#. search_new(screen, c);
466
#. else
467
-#: src/screen_search.c:385
468
+#: /home/max/git/ncmpc/src/screen_search.c:384
469
#, c-format
470
msgid "Press %s for a new search"
471
msgstr ""
472
473
-#: src/screen_search.c:412
474
+#: /home/max/git/ncmpc/src/screen_search.c:411
475
#, c-format
476
msgid "Search: %s"
477
msgstr ""
478
479
-#: src/screen_search.c:415
480
+#: /home/max/git/ncmpc/src/screen_search.c:414
481
#, c-format
482
msgid "Search: Results for %s [%s]"
483
msgstr ""
484
485
-#: src/screen_search.c:419
486
+#: /home/max/git/ncmpc/src/screen_search.c:418
487
#, c-format
488
msgid "Search: Press %s for a new search [%s]"
489
msgstr ""
490
491
-#: src/screen_search.c:443
492
+#: /home/max/git/ncmpc/src/screen_search.c:442
493
#, c-format
494
msgid "Search mode: %s"
495
msgstr ""
496
497
-#: src/screen_keydef.c:131
498
+#: /home/max/git/ncmpc/src/screen_keydef.c:141
499
msgid "You have new key bindings"
500
msgstr ""
501
502
-#: src/screen_keydef.c:133
503
+#: /home/max/git/ncmpc/src/screen_keydef.c:143
504
msgid "Keybindings unchanged."
505
msgstr ""
506
507
-#: src/screen_keydef.c:143
508
+#: /home/max/git/ncmpc/src/screen_keydef.c:153
509
#, c-format
510
msgid "Error: Unable to create directory ~/.ncmpc - %s"
511
msgstr ""
512
513
-#: src/screen_keydef.c:152 ../src/screen_keydef.c:159
514
+#: /home/max/git/ncmpc/src/screen_keydef.c:164
515
+#: /home/max/git/ncmpc/src/screen_keydef.c:173
516
#, c-format
517
msgid "Error: %s - %s"
518
msgstr ""
519
520
-#: src/screen_keydef.c:161
521
+#: /home/max/git/ncmpc/src/screen_keydef.c:171
522
#, c-format
523
msgid "Wrote %s"
524
msgstr ""
525
526
-#: src/screen_keydef.c:245
527
+#: /home/max/git/ncmpc/src/screen_keydef.c:257
528
msgid "Deleted"
529
msgstr ""
530
531
-#: src/screen_keydef.c:264
532
+#: /home/max/git/ncmpc/src/screen_keydef.c:272
533
#, c-format
534
msgid "Enter new key for %s: "
535
msgstr ""
536
537
-#: src/screen_keydef.c:274
538
+#: /home/max/git/ncmpc/src/screen_keydef.c:283
539
msgid "Ctrl-Space can't be used"
540
msgstr ""
541
542
-#: src/screen_keydef.c:280
543
+#: /home/max/git/ncmpc/src/screen_keydef.c:289
544
#, c-format
545
msgid "Error: key %s is already used for %s"
546
msgstr ""
547
548
-#: src/screen_keydef.c:289
549
+#: /home/max/git/ncmpc/src/screen_keydef.c:298
550
#, c-format
551
msgid "Assigned %s to %s"
552
msgstr ""
553
554
-#: src/screen_keydef.c:315
555
+#: /home/max/git/ncmpc/src/screen_keydef.c:324
556
msgid "===> Apply key bindings "
557
msgstr ""
558
559
-#: src/screen_keydef.c:317
560
+#: /home/max/git/ncmpc/src/screen_keydef.c:326
561
msgid "===> Apply & Save key bindings "
562
msgstr ""
563
564
-#: src/screen_keydef.c:345
565
+#: /home/max/git/ncmpc/src/screen_keydef.c:354
566
msgid "Add new key"
567
msgstr ""
568
569
-#: src/screen_keydef.c:409
570
+#: /home/max/git/ncmpc/src/screen_keydef.c:417
571
msgid "Note: Did you forget to 'Apply' your changes?"
572
msgstr ""
573
574
-#: src/screen_keydef.c:416
575
+#: /home/max/git/ncmpc/src/screen_keydef.c:424
576
msgid "Edit key bindings"
577
msgstr ""
578
579
-#: src/screen_keydef.c:418
580
+#: /home/max/git/ncmpc/src/screen_keydef.c:426
581
#, c-format
582
msgid "Edit keys for %s"
583
msgstr ""
584
585
-#: src/screen_help.c:39
586
+#: /home/max/git/ncmpc/src/screen_help.c:39
587
msgid "Movement"
588
msgstr ""
589
590
-#: src/screen_help.c:84
591
+#: /home/max/git/ncmpc/src/screen_help.c:84
592
msgid "Global"
593
msgstr ""
594
595
-#: src/screen_help.c:119 ../src/command.c:107
596
-msgid "Playlist screen"
597
+#: /home/max/git/ncmpc/src/screen_help.c:119
598
+#: /home/max/git/ncmpc/src/command.c:107
599
+msgid "Queue screen"
600
msgstr ""
601
602
-#: src/screen_help.c:121
603
+#: /home/max/git/ncmpc/src/screen_help.c:121
604
msgid "Play"
605
msgstr ""
606
607
-#: src/screen_help.c:124
608
+#: /home/max/git/ncmpc/src/screen_help.c:124
609
msgid "Move song up"
610
msgstr ""
611
612
-#: src/screen_help.c:125
613
+#: /home/max/git/ncmpc/src/screen_help.c:125
614
msgid "Move song down"
615
msgstr ""
616
617
-#: src/screen_help.c:128
618
+#: /home/max/git/ncmpc/src/screen_help.c:128
619
msgid "Center"
620
msgstr ""
621
622
-#: src/screen_help.c:134 ../src/command.c:109
623
+#: /home/max/git/ncmpc/src/screen_help.c:134
624
+#: /home/max/git/ncmpc/src/command.c:109
625
msgid "Browse screen"
626
msgstr ""
627
628
-#: src/screen_help.c:136
629
+#: /home/max/git/ncmpc/src/screen_help.c:136
630
msgid "Enter directory/Select and play song"
631
msgstr ""
632
633
-#: src/screen_help.c:138 ../src/screen_help.c:153
634
-msgid "Append song to playlist"
635
+#: /home/max/git/ncmpc/src/screen_help.c:138
636
+#: /home/max/git/ncmpc/src/screen_help.c:153
637
+msgid "Append song to queue"
638
msgstr ""
639
640
-#: src/screen_help.c:140
641
+#: /home/max/git/ncmpc/src/screen_help.c:140
642
msgid "Delete playlist"
643
msgstr ""
644
645
-#: src/screen_help.c:148 ../src/command.c:220
646
+#: /home/max/git/ncmpc/src/screen_help.c:148
647
+#: /home/max/git/ncmpc/src/command.c:220
648
msgid "Search screen"
649
msgstr ""
650
651
-#: src/screen_help.c:151
652
+#: /home/max/git/ncmpc/src/screen_help.c:151
653
msgid "Select and play"
654
msgstr ""
655
656
-#: src/screen_help.c:160 ../src/command.c:230
657
+#: /home/max/git/ncmpc/src/screen_help.c:160
658
+#: /home/max/git/ncmpc/src/command.c:230
659
msgid "Lyrics screen"
660
msgstr ""
661
662
-#: src/screen_help.c:162
663
+#: /home/max/git/ncmpc/src/screen_help.c:162
664
msgid "View Lyrics"
665
msgstr ""
666
667
-#: src/screen_help.c:163
668
+#: /home/max/git/ncmpc/src/screen_help.c:163
669
msgid "(Re)load lyrics"
670
msgstr ""
671
672
#. to translators: this hotkey aborts the retrieval of lyrics
673
#. from the server
674
-#: src/screen_help.c:166
675
+#: /home/max/git/ncmpc/src/screen_help.c:166
676
msgid "Interrupt retrieval"
677
msgstr ""
678
679
-#: src/screen_help.c:167
680
+#: /home/max/git/ncmpc/src/screen_help.c:167
681
msgid "Download lyrics for currently playing song"
682
msgstr ""
683
684
-#: src/screen_help.c:168
685
+#: /home/max/git/ncmpc/src/screen_help.c:168
686
msgid "Add or edit lyrics"
687
msgstr ""
688
689
-#: src/screen_help.c:169
690
+#: /home/max/git/ncmpc/src/screen_help.c:169
691
msgid "Save lyrics"
692
msgstr ""
693
694
-#: src/screen_help.c:170
695
+#: /home/max/git/ncmpc/src/screen_help.c:170
696
msgid "Delete saved lyrics"
697
msgstr ""
698
699
-#: src/screen_help.c:175 ../src/command.c:245
700
+#: /home/max/git/ncmpc/src/screen_help.c:175
701
+#: /home/max/git/ncmpc/src/command.c:245
702
msgid "Outputs screen"
703
msgstr ""
704
705
-#: src/screen_help.c:177
706
+#: /home/max/git/ncmpc/src/screen_help.c:177
707
msgid "Enable/disable output"
708
msgstr ""
709
710
-#: src/screen_help.c:182 ../src/command.c:250
711
+#: /home/max/git/ncmpc/src/screen_help.c:182
712
+#: /home/max/git/ncmpc/src/command.c:250
713
msgid "Chat screen"
714
msgstr ""
715
716
-#: src/screen_help.c:184
717
+#: /home/max/git/ncmpc/src/screen_help.c:184
718
msgid "Write a message"
719
msgstr ""
720
721
-#: src/screen_help.c:189
722
+#: /home/max/git/ncmpc/src/screen_help.c:189
723
msgid "Keydef screen"
724
msgstr ""
725
726
-#: src/screen_help.c:191
727
+#: /home/max/git/ncmpc/src/screen_help.c:191
728
msgid "Edit keydefs for selected command"
729
msgstr ""
730
731
-#: src/screen_help.c:192
732
+#: /home/max/git/ncmpc/src/screen_help.c:192
733
msgid "Remove selected keydef"
734
msgstr ""
735
736
-#: src/screen_help.c:193
737
+#: /home/max/git/ncmpc/src/screen_help.c:193
738
msgid "Add a keydef"
739
msgstr ""
740
741
-#: src/screen_help.c:194
742
+#: /home/max/git/ncmpc/src/screen_help.c:194
743
msgid "Go up a level"
744
msgstr ""
745
746
-#: src/screen_help.c:195
747
+#: /home/max/git/ncmpc/src/screen_help.c:195
748
msgid "Apply and save changes"
749
msgstr ""
750
751
-#: src/screen_help.c:241 ../src/title_bar.c:77
752
+#: /home/max/git/ncmpc/src/screen_help.c:241
753
+#: /home/max/git/ncmpc/src/title_bar.c:74
754
msgid "Help"
755
msgstr ""
756
757
#. translators: no lyrics were found for the song
758
-#: src/screen_lyrics.c:214
759
+#: /home/max/git/ncmpc/src/screen_lyrics.c:208
760
msgid "No lyrics"
761
msgstr ""
762
763
-#: src/screen_lyrics.c:232
764
+#: /home/max/git/ncmpc/src/screen_lyrics.c:226
765
#, c-format
766
msgid "Lyrics timeout occurred after %d seconds"
767
msgstr ""
768
769
-#: src/screen_lyrics.c:335 ../src/screen_lyrics.c:344
770
-#: src/screen_lyrics.c:354 ../src/title_bar.c:88
771
+#: /home/max/git/ncmpc/src/screen_lyrics.c:327
772
+#: /home/max/git/ncmpc/src/screen_lyrics.c:336
773
+#: /home/max/git/ncmpc/src/screen_lyrics.c:346
774
+#: /home/max/git/ncmpc/src/title_bar.c:85
775
msgid "Lyrics"
776
msgstr ""
777
778
#. translators: this message is displayed
779
#. while data is retrieved
780
-#: src/screen_lyrics.c:338
781
+#: /home/max/git/ncmpc/src/screen_lyrics.c:330
782
msgid "loading..."
783
msgstr ""
784
785
-#: src/screen_lyrics.c:371
786
+#: /home/max/git/ncmpc/src/screen_lyrics.c:361
787
msgid "Editor not configured"
788
msgstr ""
789
790
-#: src/screen_lyrics.c:377
791
+#: /home/max/git/ncmpc/src/screen_lyrics.c:367
792
#, c-format
793
msgid "Do you really want to start an editor and edit these lyrics [%s/%s]? "
794
msgstr ""
795
796
-#: src/screen_lyrics.c:396 ../src/screen_lyrics.c:420
797
+#: /home/max/git/ncmpc/src/screen_lyrics.c:387
798
+#: /home/max/git/ncmpc/src/screen_lyrics.c:411
799
msgid "Can't start editor"
800
msgstr ""
801
802
-#: src/screen_lyrics.c:422
803
+#: /home/max/git/ncmpc/src/screen_lyrics.c:413
804
#, c-format
805
msgid "Editor exited unexpectedly (%d)"
806
msgstr ""
807
808
-#: src/screen_lyrics.c:425
809
+#: /home/max/git/ncmpc/src/screen_lyrics.c:416
810
#, c-format
811
msgid "Editor exited unexpectedly (signal %d)"
812
msgstr ""
813
814
#. lyrics for the song were saved on hard disk
815
-#: src/screen_lyrics.c:447
816
+#: /home/max/git/ncmpc/src/screen_lyrics.c:438
817
msgid "Lyrics saved"
818
msgstr ""
819
820
-#: src/screen_lyrics.c:454
821
+#: /home/max/git/ncmpc/src/screen_lyrics.c:445
822
msgid "Lyrics deleted"
823
msgstr ""
824
825
-#: src/screen_lyrics.c:457
826
+#: /home/max/git/ncmpc/src/screen_lyrics.c:448
827
msgid "No saved lyrics"
828
msgstr ""
829
830
-#: src/screen_outputs.c:73
831
+#: /home/max/git/ncmpc/src/screen_outputs.c:70
832
#, c-format
833
msgid "Output '%s' enabled"
834
msgstr ""
835
836
-#: src/screen_outputs.c:84
837
+#: /home/max/git/ncmpc/src/screen_outputs.c:81
838
#, c-format
839
msgid "Output '%s' disabled"
840
msgstr ""
841
842
-#: src/screen_outputs.c:175 ../src/title_bar.c:91
843
+#: /home/max/git/ncmpc/src/screen_outputs.c:171
844
+#: /home/max/git/ncmpc/src/title_bar.c:88
845
msgid "Outputs"
846
msgstr ""
847
848
-#: src/screen_song.c:48
849
+#: /home/max/git/ncmpc/src/screen_song.c:49
850
msgid "Length"
851
msgstr ""
852
853
-#: src/screen_song.c:49
854
+#: /home/max/git/ncmpc/src/screen_song.c:50
855
msgid "Position"
856
msgstr ""
857
858
-#: src/screen_song.c:50
859
+#: /home/max/git/ncmpc/src/screen_song.c:51
860
msgid "Composer"
861
msgstr ""
862
863
-#: src/screen_song.c:51
864
+#: /home/max/git/ncmpc/src/screen_song.c:52
865
msgid "Name"
866
msgstr ""
867
868
-#: src/screen_song.c:52
869
+#: /home/max/git/ncmpc/src/screen_song.c:53
870
msgid "Disc"
871
msgstr ""
872
873
-#: src/screen_song.c:53
874
+#: /home/max/git/ncmpc/src/screen_song.c:54
875
msgid "Track"
876
msgstr ""
877
878
-#: src/screen_song.c:54
879
+#: /home/max/git/ncmpc/src/screen_song.c:55
880
msgid "Date"
881
msgstr ""
882
883
-#: src/screen_song.c:55
884
+#: /home/max/git/ncmpc/src/screen_song.c:56
885
msgid "Genre"
886
msgstr ""
887
888
-#: src/screen_song.c:56
889
+#: /home/max/git/ncmpc/src/screen_song.c:57
890
msgid "Comment"
891
msgstr ""
892
893
-#: src/screen_song.c:57
894
+#: /home/max/git/ncmpc/src/screen_song.c:58
895
msgid "Path"
896
msgstr ""
897
898
-#: src/screen_song.c:58
899
+#: /home/max/git/ncmpc/src/screen_song.c:59
900
msgid "Bitrate"
901
msgstr ""
902
903
-#: src/screen_song.c:74
904
+#: /home/max/git/ncmpc/src/screen_song.c:60
905
+msgid "Format"
906
+msgstr ""
907
+
908
+#: /home/max/git/ncmpc/src/screen_song.c:76
909
msgid "Number of artists"
910
msgstr ""
911
912
-#: src/screen_song.c:75
913
+#: /home/max/git/ncmpc/src/screen_song.c:77
914
msgid "Number of albums"
915
msgstr ""
916
917
-#: src/screen_song.c:76
918
+#: /home/max/git/ncmpc/src/screen_song.c:78
919
msgid "Number of songs"
920
msgstr ""
921
922
-#: src/screen_song.c:77
923
+#: /home/max/git/ncmpc/src/screen_song.c:79
924
msgid "Uptime"
925
msgstr ""
926
927
-#: src/screen_song.c:78
928
+#: /home/max/git/ncmpc/src/screen_song.c:80
929
msgid "Most recent db update"
930
msgstr ""
931
932
-#: src/screen_song.c:79
933
+#: /home/max/git/ncmpc/src/screen_song.c:81
934
msgid "Playtime"
935
msgstr ""
936
937
-#: src/screen_song.c:80
938
+#: /home/max/git/ncmpc/src/screen_song.c:82
939
msgid "DB playtime"
940
msgstr ""
941
942
-#: src/screen_song.c:182
943
+#: /home/max/git/ncmpc/src/screen_song.c:184
944
msgid "Song viewer"
945
msgstr ""
946
947
-#: src/screen_song.c:326
948
-#, c-format
949
-msgid "%d kbps"
950
-msgstr ""
951
-
952
-#: src/screen_song.c:351
953
+#: /home/max/git/ncmpc/src/screen_song.c:333
954
msgid "MPD statistics"
955
msgstr ""
956
957
-#: src/screen_song.c:406
958
+#: /home/max/git/ncmpc/src/screen_song.c:388
959
msgid "Selected song"
960
msgstr ""
961
962
-#: src/screen_song.c:416
963
+#: /home/max/git/ncmpc/src/screen_song.c:398
964
msgid "Currently playing song"
965
msgstr ""
966
967
-#: src/status_bar.c:124
968
+#: /home/max/git/ncmpc/src/screen_song.c:403
969
+#, c-format
970
+msgid "%d kbps"
971
+msgstr ""
972
+
973
+#: /home/max/git/ncmpc/src/screen_song.c:413
974
+#, c-format
975
+msgid "%u:%u:%u"
976
+msgstr ""
977
+
978
+#: /home/max/git/ncmpc/src/status_bar.c:121
979
msgid "Playing:"
980
msgstr ""
981
982
-#: src/status_bar.c:127
983
+#: /home/max/git/ncmpc/src/status_bar.c:124
984
msgid "[Paused]"
985
msgstr ""
986
987
-#: src/title_bar.c:101
988
+#: /home/max/git/ncmpc/src/title_bar.c:99
989
#, c-format
990
msgid "Volume n/a"
991
msgstr ""
992
993
-#: src/title_bar.c:103
994
+#: /home/max/git/ncmpc/src/title_bar.c:101
995
#, c-format
996
msgid "Volume %d%%"
997
msgstr ""
998
999
-#: src/command.c:65
1000
+#: /home/max/git/ncmpc/src/command.c:65
1001
msgid "Key configuration screen"
1002
msgstr ""
1003
1004
-#: src/command.c:68
1005
+#: /home/max/git/ncmpc/src/command.c:68
1006
msgid "Quit"
1007
msgstr ""
1008
1009
-#: src/command.c:72
1010
+#: /home/max/git/ncmpc/src/command.c:72
1011
msgid "Move cursor up"
1012
msgstr ""
1013
1014
-#: src/command.c:74
1015
+#: /home/max/git/ncmpc/src/command.c:74
1016
msgid "Move cursor down"
1017
msgstr ""
1018
1019
-#: src/command.c:76
1020
+#: /home/max/git/ncmpc/src/command.c:76
1021
msgid "Move cursor to the top of screen"
1022
msgstr ""
1023
1024
-#: src/command.c:78
1025
+#: /home/max/git/ncmpc/src/command.c:78
1026
msgid "Move cursor to the middle of screen"
1027
msgstr ""
1028
1029
-#: src/command.c:80
1030
+#: /home/max/git/ncmpc/src/command.c:80
1031
msgid "Move cursor to the bottom of screen"
1032
msgstr ""
1033
1034
-#: src/command.c:82
1035
+#: /home/max/git/ncmpc/src/command.c:82
1036
msgid "Move cursor to the top of the list"
1037
msgstr ""
1038
1039
-#: src/command.c:84
1040
+#: /home/max/git/ncmpc/src/command.c:84
1041
msgid "Move cursor to the bottom of the list"
1042
msgstr ""
1043
1044
-#: src/command.c:86
1045
+#: /home/max/git/ncmpc/src/command.c:86
1046
msgid "Page up"
1047
msgstr ""
1048
1049
-#: src/command.c:88
1050
+#: /home/max/git/ncmpc/src/command.c:88
1051
msgid "Page down"
1052
msgstr ""
1053
1054
-#: src/command.c:90
1055
+#: /home/max/git/ncmpc/src/command.c:90
1056
msgid "Range selection"
1057
msgstr ""
1058
1059
-#: src/command.c:92
1060
+#: /home/max/git/ncmpc/src/command.c:92
1061
msgid "Scroll up one line"
1062
msgstr ""
1063
1064
-#: src/command.c:94
1065
+#: /home/max/git/ncmpc/src/command.c:94
1066
msgid "Scroll down one line"
1067
msgstr ""
1068
1069
-#: src/command.c:96
1070
+#: /home/max/git/ncmpc/src/command.c:96
1071
msgid "Scroll up half a screen"
1072
msgstr ""
1073
1074
-#: src/command.c:98
1075
+#: /home/max/git/ncmpc/src/command.c:98
1076
msgid "Scroll down half a screen"
1077
msgstr ""
1078
1079
-#: src/command.c:100
1080
+#: /home/max/git/ncmpc/src/command.c:100
1081
msgid "Select currently playing song"
1082
msgstr ""
1083
1084
-#: src/command.c:105
1085
+#: /home/max/git/ncmpc/src/command.c:105
1086
msgid "Help screen"
1087
msgstr ""
1088
1089
-#: src/command.c:114
1090
+#: /home/max/git/ncmpc/src/command.c:114
1091
msgid "Play/Enter directory"
1092
msgstr ""
1093
1094
-#: src/command.c:116
1095
+#: /home/max/git/ncmpc/src/command.c:116
1096
msgid "Pause"
1097
msgstr ""
1098
1099
-#: src/command.c:118
1100
+#: /home/max/git/ncmpc/src/command.c:118
1101
msgid "Stop"
1102
msgstr ""
1103
1104
-#: src/command.c:120
1105
+#: /home/max/git/ncmpc/src/command.c:120
1106
msgid "Crop"
1107
msgstr ""
1108
1109
-#: src/command.c:122
1110
+#: /home/max/git/ncmpc/src/command.c:122
1111
msgid "Next track"
1112
msgstr ""
1113
1114
-#: src/command.c:124
1115
+#: /home/max/git/ncmpc/src/command.c:124
1116
msgid "Previous track"
1117
msgstr ""
1118
1119
-#: src/command.c:126
1120
+#: /home/max/git/ncmpc/src/command.c:126
1121
msgid "Seek forward"
1122
msgstr ""
1123
1124
-#: src/command.c:128
1125
+#: /home/max/git/ncmpc/src/command.c:128
1126
msgid "Seek backward"
1127
msgstr ""
1128
1129
-#: src/command.c:130
1130
+#: /home/max/git/ncmpc/src/command.c:130
1131
msgid "Increase volume"
1132
msgstr ""
1133
1134
-#: src/command.c:132
1135
+#: /home/max/git/ncmpc/src/command.c:132
1136
msgid "Decrease volume"
1137
msgstr ""
1138
1139
-#: src/command.c:134
1140
-msgid "Select/deselect song in playlist"
1141
+#: /home/max/git/ncmpc/src/command.c:134
1142
+msgid "Select/deselect song in queue"
1143
msgstr ""
1144
1145
-#: src/command.c:136
1146
+#: /home/max/git/ncmpc/src/command.c:136
1147
msgid "Select all listed items"
1148
msgstr ""
1149
1150
-#: src/command.c:138
1151
-msgid "Delete song from playlist"
1152
+#: /home/max/git/ncmpc/src/command.c:138
1153
+msgid "Delete song from queue"
1154
msgstr ""
1155
1156
-#: src/command.c:140
1157
-msgid "Shuffle playlist"
1158
+#: /home/max/git/ncmpc/src/command.c:140
1159
+msgid "Shuffle queue"
1160
msgstr ""
1161
1162
-#: src/command.c:142
1163
-msgid "Clear playlist"
1164
+#: /home/max/git/ncmpc/src/command.c:142
1165
+msgid "Clear queue"
1166
msgstr ""
1167
1168
-#: src/command.c:144
1169
+#: /home/max/git/ncmpc/src/command.c:144
1170
msgid "Toggle repeat mode"
1171
msgstr ""
1172
1173
-#: src/command.c:146
1174
+#: /home/max/git/ncmpc/src/command.c:146
1175
msgid "Toggle random mode"
1176
msgstr ""
1177
1178
-#: src/command.c:148
1179
+#: /home/max/git/ncmpc/src/command.c:148
1180
msgid "Toggle single mode"
1181
msgstr ""
1182
1183
-#: src/command.c:150
1184
+#: /home/max/git/ncmpc/src/command.c:150
1185
msgid "Toggle consume mode"
1186
msgstr ""
1187
1188
-#: src/command.c:152
1189
+#: /home/max/git/ncmpc/src/command.c:152
1190
msgid "Toggle crossfade mode"
1191
msgstr ""
1192
1193
-#: src/command.c:154
1194
+#: /home/max/git/ncmpc/src/command.c:154
1195
msgid "Start a music database update"
1196
msgstr ""
1197
1198
-#: src/command.c:156
1199
-msgid "Save playlist"
1200
+#: /home/max/git/ncmpc/src/command.c:156
1201
+msgid "Save queue"
1202
msgstr ""
1203
1204
-#: src/command.c:158
1205
-msgid "Add url/file to playlist"
1206
+#: /home/max/git/ncmpc/src/command.c:158
1207
+msgid "Add url/file to queue"
1208
msgstr ""
1209
1210
-#: src/command.c:161
1211
+#: /home/max/git/ncmpc/src/command.c:161
1212
msgid "Go to root directory"
1213
msgstr ""
1214
1215
-#: src/command.c:163
1216
+#: /home/max/git/ncmpc/src/command.c:163
1217
msgid "Go to parent directory"
1218
msgstr ""
1219
1220
-#: src/command.c:166
1221
+#: /home/max/git/ncmpc/src/command.c:166
1222
msgid "Locate song in browser"
1223
msgstr ""
1224
1225
-#: src/command.c:170
1226
+#: /home/max/git/ncmpc/src/command.c:170
1227
msgid "Move item up"
1228
msgstr ""
1229
1230
-#: src/command.c:172
1231
+#: /home/max/git/ncmpc/src/command.c:172
1232
msgid "Move item down"
1233
msgstr ""
1234
1235
-#: src/command.c:174
1236
+#: /home/max/git/ncmpc/src/command.c:174
1237
msgid "Refresh screen"
1238
msgstr ""
1239
1240
#. translators: toggle between wrapping and non-wrapping
1241
#. search
1242
-#: src/command.c:181
1243
+#: /home/max/git/ncmpc/src/command.c:181
1244
msgid "Toggle find mode"
1245
msgstr ""
1246
1247
#. translators: the auto center mode always centers the song
1248
#. currently being played
1249
-#: src/command.c:185
1250
+#: /home/max/git/ncmpc/src/command.c:185
1251
msgid "Toggle auto center mode"
1252
msgstr ""
1253
1254
-#: src/command.c:190
1255
+#: /home/max/git/ncmpc/src/command.c:190
1256
msgid "Next screen"
1257
msgstr ""
1258
1259
-#: src/command.c:192
1260
+#: /home/max/git/ncmpc/src/command.c:192
1261
msgid "Previous screen"
1262
msgstr ""
1263
1264
-#: src/command.c:194
1265
+#: /home/max/git/ncmpc/src/command.c:194
1266
msgid "Swap to most recent screen"
1267
msgstr ""
1268
1269
-#: src/command.c:199
1270
+#: /home/max/git/ncmpc/src/command.c:199
1271
msgid "Forward find"
1272
msgstr ""
1273
1274
-#: src/command.c:201
1275
+#: /home/max/git/ncmpc/src/command.c:201
1276
msgid "Forward find next"
1277
msgstr ""
1278
1279
-#: src/command.c:203
1280
+#: /home/max/git/ncmpc/src/command.c:203
1281
msgid "Backward find"
1282
msgstr ""
1283
1284
-#: src/command.c:205
1285
+#: /home/max/git/ncmpc/src/command.c:205
1286
msgid "Backward find previous"
1287
msgstr ""
1288
1289
#. translators: this queries the user for a string
1290
#. * and jumps directly (while the user is typing)
1291
#. * to the entry which begins with this string
1292
-#: src/command.c:210
1293
+#: /home/max/git/ncmpc/src/command.c:210
1294
msgid "Jump to"
1295
msgstr ""
1296
1297
-#: src/command.c:216
1298
+#: /home/max/git/ncmpc/src/command.c:216
1299
msgid "Artist screen"
1300
msgstr ""
1301
1302
-#: src/command.c:222
1303
+#: /home/max/git/ncmpc/src/command.c:222
1304
msgid "Change search mode"
1305
msgstr ""
1306
1307
-#: src/command.c:226
1308
+#: /home/max/git/ncmpc/src/command.c:226
1309
msgid "View the selected and the currently playing song"
1310
msgstr ""
1311
1312
#. translators: interrupt the current background action,
1313
#. e.g. stop loading lyrics from the internet
1314
-#: src/command.c:234
1315
+#: /home/max/git/ncmpc/src/command.c:234
1316
msgid "Interrupt action"
1317
msgstr ""
1318
1319
-#: src/command.c:236
1320
+#: /home/max/git/ncmpc/src/command.c:236
1321
msgid "Update Lyrics"
1322
msgstr ""
1323
1324
-#: src/command.c:240
1325
+#: /home/max/git/ncmpc/src/command.c:240
1326
msgid "Edit the current item"
1327
msgstr ""
1328
1329
-#: src/command.c:297
1330
+#: /home/max/git/ncmpc/src/command.c:292
1331
msgid "Undefined"
1332
msgstr ""
1333
1334
-#: src/command.c:299
1335
+#: /home/max/git/ncmpc/src/command.c:294
1336
msgid "Space"
1337
msgstr ""
1338
1339
-#: src/command.c:301
1340
+#: /home/max/git/ncmpc/src/command.c:296
1341
msgid "Enter"
1342
msgstr ""
1343
1344
-#: src/command.c:303
1345
+#: /home/max/git/ncmpc/src/command.c:298
1346
msgid "Backspace"
1347
msgstr ""
1348
1349
-#: src/command.c:305
1350
+#: /home/max/git/ncmpc/src/command.c:300
1351
msgid "Delete"
1352
msgstr ""
1353
1354
-#: src/command.c:307
1355
+#: /home/max/git/ncmpc/src/command.c:302
1356
msgid "Up"
1357
msgstr ""
1358
1359
-#: src/command.c:309
1360
+#: /home/max/git/ncmpc/src/command.c:304
1361
msgid "Down"
1362
msgstr ""
1363
1364
-#: src/command.c:311
1365
+#: /home/max/git/ncmpc/src/command.c:306
1366
msgid "Left"
1367
msgstr ""
1368
1369
-#: src/command.c:313
1370
+#: /home/max/git/ncmpc/src/command.c:308
1371
msgid "Right"
1372
msgstr ""
1373
1374
-#: src/command.c:315
1375
+#: /home/max/git/ncmpc/src/command.c:310
1376
msgid "Home"
1377
msgstr ""
1378
1379
-#: src/command.c:317
1380
+#: /home/max/git/ncmpc/src/command.c:312
1381
msgid "End"
1382
msgstr ""
1383
1384
-#: src/command.c:319
1385
+#: /home/max/git/ncmpc/src/command.c:314
1386
msgid "PageDown"
1387
msgstr ""
1388
1389
-#: src/command.c:321
1390
+#: /home/max/git/ncmpc/src/command.c:316
1391
msgid "PageUp"
1392
msgstr ""
1393
1394
-#: src/command.c:323
1395
+#: /home/max/git/ncmpc/src/command.c:318
1396
msgid "Tab"
1397
msgstr ""
1398
1399
-#: src/command.c:325
1400
+#: /home/max/git/ncmpc/src/command.c:320
1401
msgid "Shift+Tab"
1402
msgstr ""
1403
1404
-#: src/command.c:327
1405
+#: /home/max/git/ncmpc/src/command.c:322
1406
msgid "Esc"
1407
msgstr ""
1408
1409
-#: src/command.c:329
1410
+#: /home/max/git/ncmpc/src/command.c:324
1411
msgid "Insert"
1412
msgstr ""
1413
1414
-#: src/command.c:333
1415
+#: /home/max/git/ncmpc/src/command.c:328
1416
#, c-format
1417
msgid "F%d"
1418
msgstr ""
1419
1420
-#: src/command.c:337
1421
+#: /home/max/git/ncmpc/src/command.c:332
1422
#, c-format
1423
msgid "Ctrl-%c"
1424
msgstr ""
1425
1426
-#: src/command.c:339
1427
+#: /home/max/git/ncmpc/src/command.c:334
1428
#, c-format
1429
msgid "Alt-%c"
1430
msgstr ""
1431
1432
-#: src/command.c:503 ../src/command.c:509
1433
+#: /home/max/git/ncmpc/src/command.c:494 /home/max/git/ncmpc/src/command.c:500
1434
#, c-format
1435
msgid "Key %s assigned to %s and %s"
1436
msgstr ""
1437
1438
-#: src/colors.c:158
1439
+#: /home/max/git/ncmpc/src/colors.c:155
1440
#, c-format
1441
msgid "Warning: Unknown color - %s\n"
1442
msgstr ""
1443
1444
-#: src/colors.c:198
1445
+#: /home/max/git/ncmpc/src/colors.c:194
1446
#, c-format
1447
msgid "Warning: Unknown color field - %s\n"
1448
msgstr ""
1449
1450
-#: src/colors.c:231
1451
+#: /home/max/git/ncmpc/src/colors.c:228
1452
msgid "Terminal lacks support for changing colors"
1453
msgstr ""
1454
1455
-#: src/colors.c:242
1456
+#: /home/max/git/ncmpc/src/colors.c:237
1457
msgid "Terminal lacks color capabilities"
1458
msgstr ""
1459
1460
#. To translators: prefix for error messages
1461
-#: src/conf.c:98
1462
+#: /home/max/git/ncmpc/src/conf.c:99
1463
msgid "Error"
1464
msgstr ""
1465
1466
-#: src/conf.c:106 ../src/conf.c:115
1467
+#: /home/max/git/ncmpc/src/conf.c:107 /home/max/git/ncmpc/src/conf.c:116
1468
msgid "Malformed hotkey definition"
1469
msgstr ""
1470
1471
#. the hotkey configuration contains an unknown
1472
#. command
1473
-#: src/conf.c:142
1474
+#: /home/max/git/ncmpc/src/conf.c:140
1475
msgid "Unknown command"
1476
msgstr ""
1477
1478
#. the hotkey configuration line is incomplete
1479
-#: src/conf.c:155
1480
+#: /home/max/git/ncmpc/src/conf.c:153
1481
msgid "Incomplete hotkey configuration"
1482
msgstr ""
1483
1484
1485
#. "elapsed" or "remaining" time of a song being
1486
#. played; in this case, the configuration file
1487
#. contained an invalid setting
1488
-#: src/conf.c:189
1489
+#: /home/max/git/ncmpc/src/conf.c:189
1490
msgid "Bad time display type"
1491
msgstr ""
1492
1493
#. an equals sign '=' was expected while parsing a
1494
#. configuration file line
1495
-#: src/conf.c:204
1496
+#: /home/max/git/ncmpc/src/conf.c:202
1497
msgid "Missing '='"
1498
msgstr ""
1499
1500
-#: src/conf.c:260
1501
+#: /home/max/git/ncmpc/src/conf.c:253
1502
msgid "Bad color name"
1503
msgstr ""
1504
1505
-#: src/conf.c:269
1506
+#: /home/max/git/ncmpc/src/conf.c:263
1507
msgid "Incomplete color definition"
1508
msgstr ""
1509
1510
-#: src/conf.c:275
1511
+#: /home/max/git/ncmpc/src/conf.c:269
1512
msgid "Invalid number"
1513
msgstr ""
1514
1515
-#: src/conf.c:283
1516
+#: /home/max/git/ncmpc/src/conf.c:277
1517
msgid "Malformed color definition"
1518
msgstr ""
1519
1520
#. an unknown screen name was specified in the
1521
#. configuration file
1522
-#: src/conf.c:317
1523
+#: /home/max/git/ncmpc/src/conf.c:311
1524
msgid "Unknown screen name"
1525
msgstr ""
1526
1527
-#: src/conf.c:346
1528
+#: /home/max/git/ncmpc/src/conf.c:339
1529
msgid "Invalid search mode"
1530
msgstr ""
1531
1532
-#: src/conf.c:369
1533
+#: /home/max/git/ncmpc/src/conf.c:362
1534
msgid "Unknown search mode"
1535
msgstr ""
1536
1537
-#: src/conf.c:564
1538
+#: /home/max/git/ncmpc/src/conf.c:555
1539
msgid "Unknown configuration parameter"
1540
msgstr ""
1541
1542
#. To translators: these credits are shown
1543
#. when ncmpc is started with "--version"
1544
-#: src/options.c:234 ../src/options.c:237
1545
+#: /home/max/git/ncmpc/src/options.c:232 /home/max/git/ncmpc/src/options.c:235
1546
msgid "translator-credits"
1547
msgstr ""
1548
1549
-#: src/list_window.c:588
1550
+#: /home/max/git/ncmpc/src/list_window.c:575
1551
msgid "Range selection disabled"
1552
msgstr ""
1553
1554
-#: src/list_window.c:593
1555
+#: /home/max/git/ncmpc/src/list_window.c:580
1556
msgid "Range selection enabled"
1557
msgstr ""
1558
ncmpc-0.24.tar.xz/src/Compiler.h
Added
161
1
2
+/*
3
+ * Copyright (C) 2003-2013 The Music Player Daemon Project
4
+ * http://www.musicpd.org
5
+ *
6
+ * This program is free software; you can redistribute it and/or modify
7
+ * it under the terms of the GNU General Public License as published by
8
+ * the Free Software Foundation; either version 2 of the License, or
9
+ * (at your option) any later version.
10
+ *
11
+ * This program is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ * GNU General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU General Public License along
17
+ * with this program; if not, write to the Free Software Foundation, Inc.,
18
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
+ */
20
+
21
+#ifndef COMPILER_H
22
+#define COMPILER_H
23
+
24
+#define GCC_CHECK_VERSION(major, minor) \
25
+ (defined(__GNUC__) && \
26
+ (__GNUC__ > (major) || (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor))))
27
+
28
+#ifdef __GNUC__
29
+#define GCC_VERSION (__GNUC__ * 10000 \
30
+ + __GNUC_MINOR__ * 100 \
31
+ + __GNUC_PATCHLEVEL__)
32
+#else
33
+#define GCC_VERSION 0
34
+#endif
35
+
36
+#if GCC_CHECK_VERSION(4,0)
37
+
38
+/* GCC 4.x */
39
+
40
+#define gcc_const __attribute__((const))
41
+#define gcc_deprecated __attribute__((deprecated))
42
+#define gcc_may_alias __attribute__((may_alias))
43
+#define gcc_malloc __attribute__((malloc))
44
+#define gcc_noreturn __attribute__((noreturn))
45
+#define gcc_packed __attribute__((packed))
46
+#define gcc_printf(a,b) __attribute__((format(printf, a, b)))
47
+#define gcc_pure __attribute__((pure))
48
+#define gcc_sentinel __attribute__((sentinel))
49
+#define gcc_unused __attribute__((unused))
50
+#define gcc_warn_unused_result __attribute__((warn_unused_result))
51
+
52
+#define gcc_nonnull(...) __attribute__((nonnull(__VA_ARGS__)))
53
+#define gcc_nonnull_all __attribute__((nonnull))
54
+
55
+#define gcc_likely(x) __builtin_expect (!!(x), 1)
56
+#define gcc_unlikely(x) __builtin_expect (!!(x), 0)
57
+
58
+#define gcc_aligned(n) __attribute__((aligned(n)))
59
+
60
+#define gcc_visibility_hidden __attribute__((visibility("hidden")))
61
+#define gcc_visibility_default __attribute__((visibility("default")))
62
+
63
+#define gcc_always_inline __attribute__((always_inline))
64
+
65
+#else
66
+
67
+/* generic C compiler */
68
+
69
+#define gcc_const
70
+#define gcc_deprecated
71
+#define gcc_may_alias
72
+#define gcc_malloc
73
+#define gcc_noreturn
74
+#define gcc_packed
75
+#define gcc_printf(a,b)
76
+#define gcc_pure
77
+#define gcc_sentinel
78
+#define gcc_unused
79
+#define gcc_warn_unused_result
80
+
81
+#define gcc_nonnull(...)
82
+#define gcc_nonnull_all
83
+
84
+#define gcc_likely(x) (x)
85
+#define gcc_unlikely(x) (x)
86
+
87
+#define gcc_aligned(n)
88
+
89
+#define gcc_visibility_hidden
90
+#define gcc_visibility_default
91
+
92
+#define gcc_always_inline inline
93
+
94
+#endif
95
+
96
+#if GCC_CHECK_VERSION(4,3)
97
+
98
+#define gcc_hot __attribute__((hot))
99
+#define gcc_cold __attribute__((cold))
100
+
101
+#else /* ! GCC_UNUSED >= 40300 */
102
+
103
+#define gcc_hot
104
+#define gcc_cold
105
+
106
+#endif /* ! GCC_UNUSED >= 40300 */
107
+
108
+#if GCC_CHECK_VERSION(4,6) && !defined(__clang__)
109
+#define gcc_flatten __attribute__((flatten))
110
+#else
111
+#define gcc_flatten
112
+#endif
113
+
114
+#ifndef __cplusplus
115
+/* plain C99 has "restrict" */
116
+#define gcc_restrict restrict
117
+#elif GCC_CHECK_VERSION(4,0)
118
+/* "__restrict__" is a GCC extension for C++ */
119
+#define gcc_restrict __restrict__
120
+#else
121
+/* disable it on other compilers */
122
+#define gcc_restrict
123
+#endif
124
+
125
+/* C++11 features */
126
+
127
+#if defined(__cplusplus)
128
+
129
+/* support for C++11 "override" was added in gcc 4.7 */
130
+#if !defined(__clang__) && !GCC_CHECK_VERSION(4,7)
131
+#define override
132
+#define final
133
+#endif
134
+
135
+#if defined(__clang__) || GCC_CHECK_VERSION(4,8)
136
+#define gcc_alignas(T, fallback) alignas(T)
137
+#else
138
+#define gcc_alignas(T, fallback) gcc_aligned(fallback)
139
+#endif
140
+
141
+#endif
142
+
143
+#ifndef __has_feature
144
+ // define dummy macro for non-clang compilers
145
+ #define __has_feature(x) 0
146
+#endif
147
+
148
+#if __has_feature(attribute_unused_on_fields)
149
+#define gcc_unused_field gcc_unused
150
+#else
151
+#define gcc_unused_field
152
+#endif
153
+
154
+#if defined(__GNUC__) || defined(__clang__)
155
+#define gcc_unreachable() __builtin_unreachable()
156
+#else
157
+#define gcc_unreachable()
158
+#endif
159
+
160
+#endif
161
ncmpc-0.21.tar.bz2/src/charset.c -> ncmpc-0.24.tar.xz/src/charset.c
Changed
91
1
2
static inline unsigned
3
unicode_char_width(gunichar ch)
4
{
5
-#if GLIB_CHECK_VERSION(2,14,0)
6
if (g_unichar_iszerowidth(ch))
7
return 0;
8
-#endif
9
10
if (g_unichar_iswide(ch))
11
return 2;
12
13
#endif
14
}
15
16
-static inline unsigned
17
+gcc_unused
18
+static unsigned
19
ascii_cut_width(char *p, unsigned max_width)
20
{
21
size_t length = strlen(p);
22
23
return max_width;
24
}
25
26
-static inline unsigned
27
+gcc_unused
28
+static unsigned
29
narrow_cut_width(char *p, unsigned max_width)
30
{
31
size_t length = g_utf8_strlen(p, -1);
32
33
return max_width;
34
}
35
36
-static inline unsigned
37
+gcc_unused
38
+static unsigned
39
wide_cut_width(char *p, unsigned max_width)
40
{
41
size_t length = g_utf8_strlen(p, -1);
42
unsigned width = 0, prev_width;
43
- gunichar c;
44
45
while (length-- > 0) {
46
- c = g_utf8_get_char(p);
47
+ gunichar c = g_utf8_get_char(p);
48
prev_width = width;
49
width += g_unichar_iswide(c) ? 2 : 1;
50
if (width > max_width) {
51
52
utf8_to_locale(const char *utf8str)
53
{
54
#ifdef ENABLE_LOCALE
55
- gchar *str;
56
-
57
assert(utf8str != NULL);
58
59
if (noconvert)
60
return g_strdup(utf8str);
61
62
- str = g_convert_with_fallback(utf8str, -1,
63
- charset, "utf-8",
64
- NULL, NULL, NULL, NULL);
65
+ gchar *str = g_convert_with_fallback(utf8str, -1,
66
+ charset, "utf-8",
67
+ NULL, NULL, NULL, NULL);
68
if (str == NULL)
69
return g_strdup(utf8str);
70
71
72
locale_to_utf8(const char *localestr)
73
{
74
#ifdef ENABLE_LOCALE
75
- gchar *str;
76
-
77
assert(localestr != NULL);
78
79
if (noconvert)
80
return g_strdup(localestr);
81
82
- str = g_convert_with_fallback(localestr, -1,
83
- "utf-8", charset,
84
- NULL, NULL, NULL, NULL);
85
+ gchar *str = g_convert_with_fallback(localestr, -1,
86
+ "utf-8", charset,
87
+ NULL, NULL, NULL, NULL);
88
if (str == NULL)
89
return g_strdup(localestr);
90
91
ncmpc-0.21.tar.bz2/src/charset.h -> ncmpc-0.24.tar.xz/src/charset.h
Changed
28
1
2
#define CHARSET_H
3
4
#include "config.h"
5
-
6
-#include <glib.h>
7
+#include "Compiler.h"
8
9
#include <stdbool.h>
10
11
12
/**
13
* Returns the number of terminal cells occupied by this string.
14
*/
15
-G_GNUC_PURE
16
+gcc_pure
17
unsigned
18
utf8_width(const char *str);
19
20
/**
21
* Returns the number of terminal cells occupied by this string.
22
*/
23
-G_GNUC_PURE
24
+gcc_pure
25
unsigned
26
locale_width(const char *p);
27
28
ncmpc-0.21.tar.bz2/src/colors.c -> ncmpc-0.24.tar.xz/src/colors.c
Changed
105
1
2
[COLOR_TITLE_BOLD] = {"title-bold", COLOR_YELLOW | A_BOLD, A_BOLD },
3
[COLOR_LINE] = {"line", COLOR_WHITE, A_NORMAL},
4
[COLOR_LINE_BOLD] = {"line-bold", COLOR_WHITE | A_BOLD, A_BOLD },
5
+ [COLOR_LINE_FLAGS] = {"line-flags", COLOR_YELLOW, A_NORMAL},
6
[COLOR_LIST] = {"list", COLOR_GREEN, A_NORMAL},
7
[COLOR_LIST_BOLD] = {"list-bold", COLOR_GREEN | A_BOLD, A_BOLD },
8
[COLOR_PROGRESSBAR] = {"progressbar", COLOR_WHITE, A_NORMAL},
9
10
static color_entry_t *
11
colors_lookup_by_name(const char *name)
12
{
13
- enum color i;
14
-
15
- for (i = 1; i < COLOR_END; ++i)
16
+ for (enum color i = 1; i < COLOR_END; ++i)
17
if (!strcasecmp(colors[i].name, name))
18
return &colors[i];
19
20
21
static int
22
colors_update_pair(enum color id)
23
{
24
- int fg, bg;
25
-
26
assert(id > 0 && id < COLOR_END);
27
28
- fg = colors[id].color;
29
- bg = colors[COLOR_BACKGROUND].color;
30
+ int fg = colors[id].color;
31
+ int bg = colors[COLOR_BACKGROUND].color;
32
33
/* If color == COLOR_NONE (negative),
34
* pass -1 to avoid cast errors */
35
36
int
37
colors_str2color(const char *str)
38
{
39
- int i, color = 0;
40
+ int color = 0;
41
char **parts = g_strsplit(str, ",", 0);
42
- for (i = 0; parts[i]; i++) {
43
+ for (int i = 0; parts[i]; i++) {
44
char *cur = parts[i];
45
46
/* Legacy colors (brightblue,etc) */
47
48
int
49
colors_define(const char *name, short r, short g, short b)
50
{
51
- color_definition_entry_t *entry;
52
int color = colors_str2color(name);
53
54
if (color < 0)
55
return color;
56
57
- entry = g_malloc(sizeof(color_definition_entry_t));
58
+ color_definition_entry_t *entry =
59
+ g_malloc(sizeof(color_definition_entry_t));
60
entry->color = color;
61
entry->r = r;
62
entry->g = g;
63
64
colors_assign(const char *name, const char *value)
65
{
66
color_entry_t *entry = colors_lookup_by_name(name);
67
- int color;
68
69
if (!entry) {
70
fprintf(stderr,_("Warning: Unknown color field - %s\n"), name);
71
return -1;
72
}
73
74
- if ((color = colors_str2color(value)) == COLOR_ERROR)
75
+ const int color = colors_str2color(value);
76
+ if (color == COLOR_ERROR)
77
return -1;
78
79
entry->color = color;
80
81
_("Terminal lacks support for changing colors"));
82
83
if (options.enable_colors) {
84
- enum color i;
85
-
86
- for (i = 1; i < COLOR_END; ++i)
87
+ for (enum color i = 1; i < COLOR_END; ++i)
88
/* update the color pairs */
89
colors_update_pair(i);
90
}
91
92
colors_use(WINDOW *w, enum color id)
93
{
94
color_entry_t *entry = &colors[id];
95
- short pair;
96
- attr_t attrs;
97
98
assert(id > 0 && id < COLOR_END);
99
100
+ attr_t attrs;
101
+ short pair;
102
fix_wattr_get(w, &attrs, &pair, NULL);
103
104
#ifdef ENABLE_COLORS
105
ncmpc-0.21.tar.bz2/src/colors.h -> ncmpc-0.24.tar.xz/src/colors.h
Changed
24
1
2
3
#include "config.h"
4
#include "ncmpc_curses.h"
5
+#include "Compiler.h"
6
7
enum color {
8
COLOR_TITLE = 1,
9
COLOR_TITLE_BOLD,
10
COLOR_LINE,
11
COLOR_LINE_BOLD,
12
+ COLOR_LINE_FLAGS,
13
COLOR_LIST,
14
COLOR_LIST_BOLD,
15
COLOR_PROGRESSBAR,
16
17
COLOR_END
18
};
19
20
+gcc_pure
21
int colors_str2color(const char *str);
22
23
#ifdef ENABLE_COLORS
24
ncmpc-0.21.tar.bz2/src/command.c -> ncmpc-0.24.tar.xz/src/command.c
Changed
256
1
2
{ { '1', F1, 'h' }, 0, CMD_SCREEN_HELP, "screen-help",
3
N_("Help screen") },
4
{ { '2', F2, 0 }, 0, CMD_SCREEN_PLAY, "screen-playlist",
5
- N_("Playlist screen") },
6
+ N_("Queue screen") },
7
{ { '3', F3, 0 }, 0, CMD_SCREEN_FILE, "screen-browse",
8
N_("Browse screen") },
9
10
11
{ { '-', LEFT, 0 }, 0, CMD_VOLUME_DOWN, "volume-down",
12
N_("Decrease volume") },
13
{ { ' ', 0, 0 }, 0, CMD_SELECT, "select",
14
- N_("Select/deselect song in playlist") },
15
+ N_("Select/deselect song in queue") },
16
{ { 't', 0, 0 }, 0, CMD_SELECT_ALL, "select_all",
17
N_("Select all listed items") },
18
{ { DEL, 'd', 0 }, 0, CMD_DELETE, "delete",
19
- N_("Delete song from playlist") },
20
+ N_("Delete song from queue") },
21
{ { 'Z', 0, 0 }, 0, CMD_SHUFFLE, "shuffle",
22
- N_("Shuffle playlist") },
23
+ N_("Shuffle queue") },
24
{ { 'c', 0, 0 }, 0, CMD_CLEAR, "clear",
25
- N_("Clear playlist") },
26
+ N_("Clear queue") },
27
{ { 'r', 0, 0 }, 0, CMD_REPEAT, "repeat",
28
N_("Toggle repeat mode") },
29
{ { 'z', 0, 0 }, 0, CMD_RANDOM, "random",
30
31
{ { C('U'), 0, 0 }, 0, CMD_DB_UPDATE, "db-update",
32
N_("Start a music database update") },
33
{ { 'S', 0, 0 }, 0, CMD_SAVE_PLAYLIST, "save",
34
- N_("Save playlist") },
35
+ N_("Save queue") },
36
{ { 'a', 0, 0 }, 0, CMD_ADD, "add",
37
- N_("Add url/file to playlist") },
38
+ N_("Add url/file to queue") },
39
40
{ { '!', 0, 0 }, 0, CMD_GO_ROOT_DIRECTORY, "go-root-directory",
41
N_("Go to root directory") },
42
43
if (max != 0)
44
return max;
45
46
- size_t len;
47
- command_definition_t *p;
48
-
49
- for (p = c; p->name != NULL; p++) {
50
+ for (command_definition_t *p = c; p->name != NULL; p++) {
51
/*
52
* width and length are considered the same here, as command
53
* names are not translated.
54
*/
55
- len = (size_t) strlen(p->name);
56
+ size_t len = strlen(p->name);
57
if (len > max)
58
max = len;
59
}
60
61
const char *
62
key2str(int key)
63
{
64
- static char buf[32];
65
- int i;
66
-
67
- buf[0] = 0;
68
switch(key) {
69
+ static char buf[32];
70
+
71
case 0:
72
return _("Undefined");
73
case ' ':
74
75
case KEY_IC:
76
return _("Insert");
77
default:
78
- for (i = 0; i <= 63; i++)
79
+ for (int i = 0; i <= 63; i++)
80
if (key == KEY_F(i)) {
81
g_snprintf(buf, 32, _("F%d"), i );
82
return buf;
83
84
g_snprintf(buf, 32, "%c", key);
85
else
86
g_snprintf(buf, 32, "0x%03X", key);
87
+ return buf;
88
}
89
-
90
- return buf;
91
}
92
93
void
94
command_dump_keys(void)
95
{
96
- for (int i = 0; cmds[i].description; i++)
97
+ for (size_t i = 0; cmds[i].description; i++)
98
if (cmds[i].command != CMD_NONE)
99
printf(" %20s : %s\n",
100
get_key_names(cmds[i].command, true),
101
102
static void
103
set_key_flags(command_definition_t *cp, command_t command, int flags)
104
{
105
- for (int i = 0; cp[i].name; i++) {
106
+ for (size_t i = 0; cp[i].name; i++) {
107
if (cp[i].command == command) {
108
cp[i].flags |= flags;
109
break;
110
111
if (!all)
112
return keystr;
113
114
- for (int j = 1; j < MAX_COMMAND_KEYS &&
115
+ for (unsigned j = 1; j < MAX_COMMAND_KEYS &&
116
cmds[i].keys[j] > 0; j++) {
117
g_strlcat(keystr, " ", sizeof(keystr));
118
g_strlcat(keystr, key2str(cmds[i].keys[j]), sizeof(keystr));
119
120
const char *
121
get_key_description(command_t command)
122
{
123
- for (int i = 0; cmds[i].description; i++)
124
+ for (size_t i = 0; cmds[i].description; i++)
125
if (cmds[i].command == command)
126
return _(cmds[i].description);
127
128
129
const char *
130
get_key_command_name(command_t command)
131
{
132
- for (int i = 0; cmds[i].name; i++)
133
+ for (size_t i = 0; cmds[i].name; i++)
134
if (cmds[i].command == command)
135
return cmds[i].name;
136
137
138
}
139
140
command_t
141
-get_key_command_from_name(char *name)
142
+get_key_command_from_name(const char *name)
143
{
144
- for (int i = 0; cmds[i].name; i++)
145
+ for (size_t i = 0; cmds[i].name; i++)
146
if (strcmp(name, cmds[i].name) == 0)
147
return cmds[i].command;
148
149
150
}
151
152
command_t
153
-find_key_command(int key, command_definition_t *c)
154
+find_key_command(int key, const command_definition_t *c)
155
{
156
assert(key != 0);
157
assert(c != NULL);
158
159
- for (int i = 0; c[i].name; i++) {
160
+ for (size_t i = 0; c[i].name; i++) {
161
for (int j = 0; j < MAX_COMMAND_KEYS; j++)
162
if (c[i].keys[j] == key)
163
return c[i].command;
164
165
command_t
166
get_keyboard_command(void)
167
{
168
- int key;
169
-
170
- key = wgetch(stdscr);
171
+ int key = wgetch(stdscr);
172
if (key == ERR || key == '\0')
173
return CMD_NONE;
174
175
176
return get_key_command(key);
177
}
178
179
-int
180
+bool
181
assign_keys(command_t command, int keys[MAX_COMMAND_KEYS])
182
{
183
- for (int i = 0; cmds[i].name; i++) {
184
+ for (size_t i = 0; cmds[i].name; i++) {
185
if (cmds[i].command == command) {
186
memcpy(cmds[i].keys, keys, sizeof(int)*MAX_COMMAND_KEYS);
187
#ifndef NCMPC_MINI
188
cmds[i].flags |= COMMAND_KEY_MODIFIED;
189
#endif
190
- return 0;
191
+ return true;
192
}
193
}
194
195
- return -1;
196
+ return false;
197
}
198
199
#ifndef NCMPC_MINI
200
201
-int
202
+bool
203
check_key_bindings(command_definition_t *cp, char *buf, size_t bufsize)
204
{
205
- int i;
206
- int retval = 0;
207
+ bool success = true;
208
209
if (cp == NULL)
210
cp = cmds;
211
212
- for (i = 0; cp[i].name; i++)
213
+ for (size_t i = 0; cp[i].name; i++)
214
cp[i].flags &= ~COMMAND_KEY_CONFLICT;
215
216
- for (i = 0; cp[i].name; i++) {
217
+ for (size_t i = 0; cp[i].name; i++) {
218
int j;
219
command_t cmd;
220
221
222
}
223
cp[i].flags |= COMMAND_KEY_CONFLICT;
224
set_key_flags(cp, cmd, COMMAND_KEY_CONFLICT);
225
- retval = -1;
226
+ success = false;
227
}
228
}
229
}
230
231
- return retval;
232
+ return success;
233
}
234
235
-int
236
+bool
237
write_key_bindings(FILE *f, int flags)
238
{
239
if (flags & KEYDEF_WRITE_HEADER)
240
fprintf(f, "## Key bindings for ncmpc (generated by ncmpc)\n\n");
241
242
- for (int i = 0; cmds[i].name && !ferror(f); i++) {
243
+ for (size_t i = 0; cmds[i].name && !ferror(f); i++) {
244
if (cmds[i].flags & COMMAND_KEY_MODIFIED ||
245
flags & KEYDEF_WRITE_ALL) {
246
fprintf(f, "## %s\n", cmds[i].description);
247
248
}
249
}
250
251
- return ferror(f);
252
+ return ferror(f) == 0;
253
}
254
255
#endif /* NCMPC_MINI */
256
ncmpc-0.21.tar.bz2/src/command.h -> ncmpc-0.24.tar.xz/src/command.h
Changed
69
1
2
#define COMMAND_H
3
4
#include "config.h"
5
+#include "Compiler.h"
6
7
#include <stddef.h>
8
#include <stdbool.h>
9
10
size_t get_cmds_max_name_width(command_definition_t *cmds);
11
#endif
12
13
-command_t find_key_command(int key, command_definition_t *cmds);
14
+gcc_pure
15
+command_t
16
+find_key_command(int key, const command_definition_t *cmds);
17
18
void command_dump_keys(void);
19
20
#ifndef NCMPC_MINI
21
22
-int check_key_bindings(command_definition_t *cmds, char *buf, size_t size);
23
-int write_key_bindings(FILE *f, int all);
24
+/**
25
+ * @return true on success, false on error
26
+ */
27
+bool
28
+check_key_bindings(command_definition_t *cmds, char *buf, size_t size);
29
+
30
+/**
31
+ * @return true on success, false on error
32
+ */
33
+bool
34
+write_key_bindings(FILE *f, int all);
35
36
#endif
37
38
+gcc_pure
39
const char *key2str(int key);
40
+
41
+gcc_pure
42
const char *get_key_description(command_t command);
43
+
44
+gcc_pure
45
const char *get_key_command_name(command_t command);
46
+
47
+gcc_pure
48
const char *get_key_names(command_t command, bool all);
49
+
50
+gcc_pure
51
command_t get_key_command(int key);
52
-command_t get_key_command_from_name(char *name);
53
-int assign_keys(command_t command, int keys[MAX_COMMAND_KEYS]);
54
55
+gcc_pure
56
+command_t
57
+get_key_command_from_name(const char *name);
58
+
59
+/**
60
+ * @return true on success, false on error
61
+ */
62
+bool
63
+assign_keys(command_t command, int keys[MAX_COMMAND_KEYS]);
64
+
65
+gcc_pure
66
command_t get_keyboard_command(void);
67
68
#endif
69
ncmpc-0.21.tar.bz2/src/conf.c -> ncmpc-0.24.tar.xz/src/conf.c
Changed
382
1
2
#include "command.h"
3
#include "colors.h"
4
#include "screen_list.h"
5
+#include "options.h"
6
7
+#include <assert.h>
8
#include <ctype.h>
9
#include <stdio.h>
10
#include <errno.h>
11
#include <stdlib.h>
12
-#include <unistd.h>
13
#include <string.h>
14
-#include <fcntl.h>
15
#include <glib.h>
16
#include <glib/gstdio.h>
17
18
19
#define CONF_COLOR "color"
20
#define CONF_COLOR_DEFINITION "colordef"
21
#define CONF_LIST_FORMAT "list-format"
22
+#define CONF_SEARCH_FORMAT "search-format"
23
#define CONF_STATUS_FORMAT "status-format"
24
#define CONF_XTERM_TITLE_FORMAT "xterm-title-format"
25
#define CONF_LIST_WRAP "wrap-around"
26
27
}
28
}
29
30
-static int
31
+static bool
32
parse_key_definition(char *str)
33
{
34
- char buf[MAX_LINE_LENGTH];
35
- char *p;
36
- size_t len = strlen(str), i;
37
- int j,key;
38
- int keys[MAX_COMMAND_KEYS];
39
- command_t cmd;
40
-
41
/* get the command name */
42
- i=0;
43
- j=0;
44
+ const size_t len = strlen(str);
45
+ size_t i = 0;
46
+ int j = 0;
47
+ char buf[MAX_LINE_LENGTH];
48
memset(buf, 0, MAX_LINE_LENGTH);
49
while (i < len && str[i] != '=' && !g_ascii_isspace(str[i]))
50
buf[j++] = str[i++];
51
- if( (cmd=get_key_command_from_name(buf)) == CMD_NONE ) {
52
+
53
+ command_t cmd = get_key_command_from_name(buf);
54
+ if(cmd == CMD_NONE) {
55
/* the hotkey configuration contains an unknown
56
command */
57
print_error(_("Unknown command"), buf);
58
- return -1;
59
+ return false;
60
}
61
62
/* skip whitespace */
63
64
if (*buf == 0) {
65
/* the hotkey configuration line is incomplete */
66
print_error(_("Incomplete hotkey configuration"), str);
67
- return -1;
68
+ return false;
69
}
70
71
/* parse key values */
72
i = 0;
73
- key = 0;
74
- p = buf;
75
+ int key = 0;
76
+ char *p = buf;
77
+
78
+ int keys[MAX_COMMAND_KEYS];
79
memset(keys, 0, sizeof(int)*MAX_COMMAND_KEYS);
80
while (i < MAX_COMMAND_KEYS && *p != 0 &&
81
(key = parse_key_value(p, &p)) >= 0) {
82
83
}
84
85
if (key < 0)
86
- return -1;
87
+ return false;
88
89
return assign_keys(cmd, keys);
90
}
91
92
static char *
93
separate_value(char *p)
94
{
95
- char *value;
96
-
97
- value = strchr(p, '=');
98
+ char *value = strchr(p, '=');
99
if (value == NULL) {
100
/* an equals sign '=' was expected while parsing a
101
configuration file line */
102
103
static int
104
parse_color(char *str)
105
{
106
- char *value;
107
-
108
- value = separate_value(str);
109
+ char *value = separate_value(str);
110
if (value == NULL)
111
return -1;
112
113
114
static int
115
parse_color_definition(char *str)
116
{
117
- char buf[MAX_LINE_LENGTH];
118
- char *value;
119
- short color, rgb[3];
120
-
121
- value = separate_value(str);
122
+ char *value = separate_value(str);
123
if (value == NULL)
124
return -1;
125
126
/* get the command name */
127
- color = colors_str2color(str);
128
+ short color = colors_str2color(str);
129
if (color < 0) {
130
+ char buf[MAX_LINE_LENGTH];
131
print_error(_("Bad color name"), buf);
132
return -1;
133
}
134
135
/* parse r,g,b values */
136
137
+ short rgb[3];
138
for (unsigned i = 0; i < 3; ++i) {
139
char *next = after_comma(value), *endptr;
140
if (*value == 0) {
141
142
get_search_mode(char *value)
143
{
144
char * test;
145
- int mode;
146
- mode= strtol(value, &test, 10);
147
+ const int mode = strtol(value, &test, 10);
148
if (*test == '\0')
149
{
150
if (0 <= mode && mode <= 4)
151
152
parse_line(char *line)
153
{
154
size_t len = strlen(line), i = 0, j = 0;
155
- char name[MAX_LINE_LENGTH];
156
- char value[MAX_LINE_LENGTH];
157
- bool match_found;
158
159
/* get the name part */
160
+ char name[MAX_LINE_LENGTH];
161
while (i < len && line[i] != '=' && !g_ascii_isspace(line[i]))
162
name[j++] = line[i++];
163
164
165
i++;
166
167
/* get the value part */
168
+ char value[MAX_LINE_LENGTH];
169
j = 0;
170
while (i < len)
171
value[j++] = line[i++];
172
value[j] = '\0';
173
174
- match_found = true;
175
-
176
/* key definition */
177
if (!strcasecmp(CONF_KEY_DEFINITION, name))
178
parse_key_definition(value);
179
180
else if (!strcasecmp(CONF_LIST_FORMAT, name)) {
181
g_free(options.list_format);
182
options.list_format = get_format(value);
183
+ /* search format string */
184
+ } else if (!strcasecmp(CONF_SEARCH_FORMAT, name)) {
185
+ g_free(options.search_format);
186
+ options.search_format = get_format(value);
187
/* status format string */
188
} else if (!strcasecmp(CONF_STATUS_FORMAT, name)) {
189
g_free(options.status_format);
190
191
#else
192
options.second_column = str2bool(value);
193
#endif
194
- else
195
- match_found = false;
196
-
197
- if (!match_found)
198
+ else {
199
print_error(_("Unknown configuration parameter"), name);
200
+ return false;
201
+ }
202
203
- return match_found;
204
+ return true;
205
}
206
207
static int
208
read_rc_file(char *filename)
209
{
210
- FILE *file;
211
- char line[MAX_LINE_LENGTH];
212
+ assert(filename != NULL);
213
214
- if (filename == NULL)
215
- return -1;
216
-
217
- file = fopen(filename, "r");
218
+ FILE *file = fopen(filename, "r");
219
if (file == NULL) {
220
- perror(filename);
221
- return -1;
222
- }
223
+ perror(filename);
224
+ return -1;
225
+ }
226
227
+ char line[MAX_LINE_LENGTH];
228
while (fgets(line, sizeof(line), file) != NULL) {
229
char *p = g_strchug(line);
230
231
232
return 0;
233
}
234
235
-int
236
+bool
237
check_user_conf_dir(void)
238
{
239
- int retval;
240
char *directory = g_build_filename(g_get_home_dir(), "." PACKAGE, NULL);
241
242
if (g_file_test(directory, G_FILE_TEST_IS_DIR)) {
243
g_free(directory);
244
- return 0;
245
+ return true;
246
}
247
248
- retval = g_mkdir(directory, 0755);
249
+ bool success = g_mkdir(directory, 0755) == 0;
250
g_free(directory);
251
- return retval;
252
+ return success;
253
}
254
255
char *
256
257
258
for (system_data_dirs = g_get_system_config_dirs (); *system_data_dirs != NULL; system_data_dirs++)
259
{
260
- g_message (*system_data_dirs);
261
pathname = g_build_filename(*system_data_dirs, PACKAGE, "ncmpc.conf", NULL);
262
if (g_file_test(pathname, G_FILE_TEST_EXISTS))
263
{
264
265
266
for (system_data_dirs = g_get_system_config_dirs (); *system_data_dirs != NULL; system_data_dirs++)
267
{
268
- g_message (*system_data_dirs);
269
pathname = g_build_filename(*system_data_dirs, PACKAGE, "keys.conf", NULL);
270
if (g_file_test(pathname, G_FILE_TEST_EXISTS))
271
{
272
273
#endif
274
}
275
276
-void
277
-read_configuration(void)
278
+static char *
279
+find_config_file(void)
280
{
281
- char *filename = NULL;
282
-
283
/* check for command line configuration file */
284
- if (options.config_file)
285
- filename = g_strdup(options.config_file);
286
+ if (options.config_file != NULL)
287
+ return g_strdup(options.config_file);
288
289
/* check for user configuration ~/.ncmpc/config */
290
- if (filename == NULL) {
291
- filename = build_user_conf_filename();
292
- if (!g_file_test(filename, G_FILE_TEST_IS_REGULAR)) {
293
- g_free(filename);
294
- filename = NULL;
295
- }
296
- }
297
+ char *filename = build_user_conf_filename();
298
+ if (g_file_test(filename, G_FILE_TEST_IS_REGULAR))
299
+ return filename;
300
+
301
+ g_free(filename);
302
303
/* check for global configuration SYSCONFDIR/ncmpc/config */
304
- if (filename == NULL) {
305
- filename = build_system_conf_filename();
306
- if (!g_file_test(filename, G_FILE_TEST_IS_REGULAR)) {
307
- g_free(filename);
308
- filename = NULL;
309
- }
310
- }
311
+ filename = build_system_conf_filename();
312
+ if (g_file_test(filename, G_FILE_TEST_IS_REGULAR))
313
+ return filename;
314
315
- /* load configuration */
316
- if (filename) {
317
- read_rc_file(filename);
318
- g_free(filename);
319
- filename = NULL;
320
- }
321
+ g_free(filename);
322
+ return NULL;
323
+}
324
325
+static char *
326
+find_keys_file(void)
327
+{
328
/* check for command line key binding file */
329
- if (options.key_file)
330
- filename = g_strdup(options.key_file);
331
+ if (options.key_file != NULL)
332
+ return g_strdup(options.key_file);
333
334
/* check for user key bindings ~/.ncmpc/keys */
335
- if (filename == NULL) {
336
- filename = build_user_key_binding_filename();
337
- if (!g_file_test(filename, G_FILE_TEST_IS_REGULAR)) {
338
- g_free(filename);
339
- filename = NULL;
340
- }
341
- }
342
+ char *filename = build_user_key_binding_filename();
343
+ if (g_file_test(filename, G_FILE_TEST_IS_REGULAR))
344
+ return filename;
345
+
346
+ g_free(filename);
347
348
/* check for global key bindings SYSCONFDIR/ncmpc/keys */
349
- if (filename == NULL) {
350
- filename = g_build_system_key_binding_filename();
351
- if (!g_file_test(filename, G_FILE_TEST_IS_REGULAR)) {
352
- g_free(filename);
353
- filename = NULL;
354
- }
355
+ filename = g_build_system_key_binding_filename();
356
+ if (g_file_test(filename, G_FILE_TEST_IS_REGULAR))
357
+ return filename;
358
+
359
+ g_free(filename);
360
+ return NULL;
361
+}
362
+
363
+void
364
+read_configuration(void)
365
+{
366
+ /* load configuration */
367
+ char *filename = find_config_file();
368
+ if (filename != NULL) {
369
+ read_rc_file(filename);
370
+ g_free(filename);
371
}
372
373
/* load key bindings */
374
- if (filename) {
375
+ filename = find_keys_file();
376
+ if (filename != NULL) {
377
read_rc_file(filename);
378
g_free(filename);
379
- filename = NULL;
380
}
381
}
382
ncmpc-0.21.tar.bz2/src/conf.h -> ncmpc-0.24.tar.xz/src/conf.h
Changed
14
1
2
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
3
*/
4
5
-#include "options.h"
6
+#include <stdbool.h>
7
8
-int check_user_conf_dir(void);
9
+bool
10
+check_user_conf_dir(void);
11
12
char *build_user_conf_filename(void);
13
char *build_system_conf_filename(void);
14
ncmpc-0.21.tar.bz2/src/filelist.c -> ncmpc-0.24.tar.xz/src/filelist.c
Changed
85
1
2
void
3
filelist_free(struct filelist *filelist)
4
{
5
- guint i;
6
-
7
- for (i = 0; i < filelist_length(filelist); ++i) {
8
+ for (unsigned i = 0; i < filelist_length(filelist); ++i) {
9
struct filelist_entry *entry = filelist_get(filelist, i);
10
11
if (entry->entity)
12
13
void
14
filelist_move(struct filelist *filelist, struct filelist *from)
15
{
16
- guint i;
17
-
18
- for (i = 0; i < filelist_length(from); ++i)
19
+ for (unsigned i = 0; i < filelist_length(from); ++i)
20
g_ptr_array_add(filelist->entries,
21
g_ptr_array_index(from->entries, i));
22
23
24
gconstpointer filelist_entry2)
25
{
26
const struct mpd_entity *e1, *e2;
27
- int n = 0;
28
29
e1 = ((const struct filelist_entry *)filelist_entry1)->entity;
30
e2 = ((const struct filelist_entry *)filelist_entry2)->entity;
31
32
+ int n = 0;
33
if (e1 != NULL && e2 != NULL &&
34
mpd_entity_get_type(e1) == mpd_entity_get_type(e2)) {
35
switch (mpd_entity_get_type(e1)) {
36
37
void
38
filelist_sort_dir_play(struct filelist *filelist, GCompareFunc compare_func)
39
{
40
- unsigned first, last;
41
const struct mpd_entity *iter;
42
43
assert(filelist && filelist->entries);
44
45
46
/* If the first entry is NULL, skip it, because NULL stands for "[..]" */
47
iter = ((struct filelist_entry*) g_ptr_array_index(filelist->entries, 0))->entity;
48
- first = (iter == NULL)? 1 : 0;
49
+ unsigned first = iter == NULL ? 1 : 0, last;
50
51
/* find the last directory entry */
52
for (last = first+1; last < filelist->entries->len; last++) {
53
54
}
55
56
int
57
-filelist_find_song(struct filelist *fl, const struct mpd_song *song)
58
+filelist_find_song(const struct filelist *fl, const struct mpd_song *song)
59
{
60
- guint i;
61
-
62
assert(song != NULL);
63
64
- for (i = 0; i < filelist_length(fl); ++i) {
65
+ for (unsigned i = 0; i < filelist_length(fl); ++i) {
66
struct filelist_entry *entry = filelist_get(fl, i);
67
const struct mpd_entity *entity = entry->entity;
68
69
70
}
71
72
int
73
-filelist_find_directory(struct filelist *filelist, const char *name)
74
+filelist_find_directory(const struct filelist *filelist, const char *name)
75
{
76
- guint i;
77
-
78
assert(name != NULL);
79
80
- for (i = 0; i < filelist_length(filelist); ++i) {
81
+ for (unsigned i = 0; i < filelist_length(filelist); ++i) {
82
struct filelist_entry *entry = filelist_get(filelist, i);
83
const struct mpd_entity *entity = entry->entity;
84
85
ncmpc-0.21.tar.bz2/src/filelist.h -> ncmpc-0.24.tar.xz/src/filelist.h
Changed
42
1
2
#ifndef FILELIST_H
3
#define FILELIST_H
4
5
+#include "Compiler.h"
6
+
7
#include <glib.h>
8
9
struct mpd_connection;
10
11
return filelist_length(filelist) == 0;
12
}
13
14
+gcc_pure
15
static inline struct filelist_entry *
16
filelist_get(const struct filelist *filelist, guint i)
17
{
18
19
void
20
filelist_move(struct filelist *filelist, struct filelist *from);
21
22
+gcc_pure
23
gint
24
compare_filelist_entry_path(gconstpointer filelist_entry1,
25
gconstpointer filelist_entry2);
26
27
void
28
filelist_no_duplicates(struct filelist *filelist);
29
30
+gcc_pure
31
int
32
-filelist_find_song(struct filelist *flist, const struct mpd_song *song);
33
+filelist_find_song(const struct filelist *flist, const struct mpd_song *song);
34
35
+gcc_pure
36
int
37
-filelist_find_directory(struct filelist *filelist, const char *name);
38
+filelist_find_directory(const struct filelist *filelist, const char *name);
39
40
/**
41
* Receives entities from the connection, and appends them to the
42
ncmpc-0.21.tar.bz2/src/gidle.c -> ncmpc-0.24.tar.xz/src/gidle.c
Changed
122
1
2
*/
3
4
#include "gidle.h"
5
+#include "Compiler.h"
6
7
#include <mpd/async.h>
8
#include <mpd/parser.h>
9
10
#include <glib.h>
11
+
12
#include <assert.h>
13
#include <string.h>
14
#include <errno.h>
15
16
mpd_glib_recv(struct mpd_glib_source *source)
17
{
18
char *line;
19
- bool success;
20
-
21
while ((line = mpd_async_recv_line(source->async)) != NULL) {
22
- success = mpd_glib_feed(source, line);
23
- if (!success)
24
+ if (!mpd_glib_feed(source, line))
25
return false;
26
}
27
28
29
}
30
31
static gboolean
32
-mpd_glib_source_callback(G_GNUC_UNUSED GIOChannel *_source,
33
+mpd_glib_source_callback(gcc_unused GIOChannel *_source,
34
GIOCondition condition, gpointer data)
35
{
36
struct mpd_glib_source *source = data;
37
- bool success;
38
- enum mpd_async_event events;
39
40
assert(source->id != 0);
41
assert(source->io_events != 0);
42
43
/* let libmpdclient do some I/O */
44
45
- success = mpd_async_io(source->async,
46
- g_io_condition_to_mpd_async_event(condition));
47
- if (!success) {
48
+ if (!mpd_async_io(source->async,
49
+ g_io_condition_to_mpd_async_event(condition))) {
50
source->id = 0;
51
source->io_events = 0;
52
53
54
/* receive the response */
55
56
if ((condition & G_IO_IN) != 0) {
57
- success = mpd_glib_recv(source);
58
- if (!success)
59
+ if (!mpd_glib_recv(source))
60
return false;
61
}
62
63
/* continue polling? */
64
65
- events = mpd_async_events(source->async);
66
+ enum mpd_async_event events = mpd_async_events(source->async);
67
if (events == 0) {
68
/* no events - disable watch */
69
source->id = 0;
70
71
mpd_glib_add_watch(struct mpd_glib_source *source)
72
{
73
enum mpd_async_event events = mpd_async_events(source->async);
74
- GIOCondition condition;
75
76
assert(source->io_events == 0);
77
assert(source->id == 0);
78
79
- condition = mpd_async_events_to_g_io_condition(events);
80
-
81
+ GIOCondition condition = mpd_async_events_to_g_io_condition(events);
82
source->id = g_io_add_watch(source->channel, condition,
83
mpd_glib_source_callback, source);
84
source->io_events = events;
85
86
bool
87
mpd_glib_enter(struct mpd_glib_source *source)
88
{
89
- bool success;
90
-
91
assert(source->io_events == 0);
92
assert(source->id == 0);
93
assert(!source->destroyed);
94
95
96
source->idle_events = 0;
97
98
- success = mpd_async_send_command(source->async, "idle", NULL);
99
- if (!success) {
100
+ if (!mpd_async_send_command(source->async, "idle", NULL)) {
101
mpd_glib_invoke_async_error(source);
102
return false;
103
}
104
105
bool
106
mpd_glib_leave(struct mpd_glib_source *source)
107
{
108
- enum mpd_idle events;
109
-
110
assert(!source->destroyed);
111
112
if (source->id == 0)
113
114
source->id = 0;
115
source->io_events = 0;
116
117
- events = source->idle_events == 0
118
+ enum mpd_idle events = source->idle_events == 0
119
? mpd_run_noidle(source->connection)
120
: mpd_recv_idle(source->connection, false);
121
122
ncmpc-0.21.tar.bz2/src/hscroll.c -> ncmpc-0.24.tar.xz/src/hscroll.c
Changed
60
1
2
#include "hscroll.h"
3
#include "charset.h"
4
#include "ncfix.h"
5
-#include "glib_compat.h"
6
7
#include <assert.h>
8
#include <string.h>
9
10
strscroll(struct hscroll *hscroll, const char *str, const char *separator,
11
unsigned width)
12
{
13
- gchar *tmp, *buf;
14
-
15
assert(hscroll != NULL);
16
assert(str != NULL);
17
assert(separator != NULL);
18
19
/* create a buffer containing the string and the separator */
20
- tmp = replace_locale_to_utf8(g_strconcat(str, separator,
21
- str, separator, NULL));
22
-
23
+ char *tmp = replace_locale_to_utf8(g_strconcat(str, separator,
24
+ str, separator, NULL));
25
if (hscroll->offset >= (unsigned)g_utf8_strlen(tmp, -1) / 2)
26
hscroll->offset = 0;
27
28
/* create the new scrolled string */
29
- buf = g_utf8_offset_to_pointer(tmp, hscroll->offset);
30
+ char *buf = g_utf8_offset_to_pointer(tmp, hscroll->offset);
31
utf8_cut_width(buf, width);
32
33
/* convert back to locale */
34
35
void
36
hscroll_draw(struct hscroll *hscroll)
37
{
38
- attr_t old_attrs;
39
- short old_pair;
40
- char *p;
41
-
42
assert(hscroll != NULL);
43
assert(hscroll->w != NULL);
44
assert(hscroll->text != NULL);
45
46
/* set stored attributes and color */
47
+ attr_t old_attrs;
48
+ short old_pair;
49
fix_wattr_get(hscroll->w, &old_attrs, &old_pair, NULL);
50
wattr_set(hscroll->w, hscroll->attrs, hscroll->pair, NULL);
51
52
/* scroll the string, and draw it */
53
- p = strscroll(hscroll, hscroll->text, hscroll->separator,
54
- hscroll->width);
55
+ char *p = strscroll(hscroll, hscroll->text, hscroll->separator,
56
+ hscroll->width);
57
mvwaddstr(hscroll->w, hscroll->y, hscroll->x, p);
58
g_free(p);
59
60
ncmpc-0.21.tar.bz2/src/lirc.c -> ncmpc-0.24.tar.xz/src/lirc.c
Changed
25
1
2
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
3
*/
4
5
-#include <lirc/lirc_client.h>
6
#include "lirc.h"
7
#include "ncmpc.h"
8
+#include "Compiler.h"
9
+
10
+#include <lirc/lirc_client.h>
11
12
static struct lirc_config *lc = NULL;
13
14
15
}
16
17
gboolean
18
-lirc_event(G_GNUC_UNUSED GIOChannel *source,
19
- G_GNUC_UNUSED GIOCondition condition, G_GNUC_UNUSED gpointer data)
20
+lirc_event(gcc_unused GIOChannel *source,
21
+ gcc_unused GIOCondition condition, gcc_unused gpointer data)
22
{
23
char *code, *txt;
24
command_t cmd;
25
ncmpc-0.21.tar.bz2/src/list_window.c -> ncmpc-0.24.tar.xz/src/list_window.c
Changed
116
1
2
list_window_get_range(lw, &range);
3
4
for (unsigned i = 0; i < lw->rows; i++) {
5
- const char *label;
6
-
7
wmove(lw->w, i, 0);
8
9
if (lw->start + i >= lw->length) {
10
11
break;
12
}
13
14
- label = callback(lw->start + i, callback_data);
15
+ const char *label = callback(lw->start + i, callback_data);
16
assert(label != NULL);
17
18
list_window_paint_row(lw->w, lw->cols,
19
20
void
21
list_window_paint2(const struct list_window *lw,
22
list_window_paint_callback_t paint_callback,
23
- void *callback_data)
24
+ const void *callback_data)
25
{
26
bool show_cursor = !lw->hide_cursor &&
27
(!options.hardware_cursor || lw->range_selection);
28
29
list_window_get_range(lw, &range);
30
31
for (unsigned i = 0; i < lw->rows; i++) {
32
- bool selected;
33
-
34
wmove(lw->w, i, 0);
35
36
if (lw->start + i >= lw->length) {
37
38
break;
39
}
40
41
- selected = show_cursor &&
42
+ bool selected = show_cursor &&
43
lw->start + i >= range.start &&
44
lw->start + i < range.end;
45
46
47
bool bell_on_wrap)
48
{
49
unsigned i = lw->selected + 1;
50
- const char *label;
51
52
assert(str != NULL);
53
54
do {
55
while (i < lw->length) {
56
- label = callback(i, callback_data);
57
+ const char *label = callback(i, callback_data);
58
assert(label != NULL);
59
60
if (match_line(label, str)) {
61
62
bool bell_on_wrap)
63
{
64
int i = lw->selected - 1;
65
- const char *label;
66
67
assert(str != NULL);
68
69
70
71
do {
72
while (i >= 0) {
73
- label = callback(i, callback_data);
74
+ const char *label = callback(i, callback_data);
75
assert(label != NULL);
76
77
if (match_line(label, str)) {
78
79
void *callback_data,
80
const char *str)
81
{
82
- unsigned i;
83
- const char *label;
84
-
85
assert(str != NULL);
86
87
- for (i = 0; i < lw->length; i++) {
88
- label = callback(i, callback_data);
89
+ for (unsigned i = 0; i < lw->length; i++) {
90
+ const char *label = callback(i, callback_data);
91
assert(label != NULL);
92
93
if (g_ascii_strncasecmp(label, str, strlen(str)) == 0) {
94
95
void *callback_data,
96
const char *str)
97
{
98
- unsigned i;
99
- const char *label;
100
- GRegex *regex;
101
-
102
assert(str != NULL);
103
104
- regex = compile_regex(str, options.jump_prefix_only);
105
+ GRegex *regex = compile_regex(str, options.jump_prefix_only);
106
if (regex == NULL)
107
return false;
108
109
- for (i = 0; i < lw->length; i++) {
110
- label = callback(i, callback_data);
111
+ for (unsigned i = 0; i < lw->length; i++) {
112
+ const char *label = callback(i, callback_data);
113
assert(label != NULL);
114
115
if (match_regex(regex, label)) {
116
ncmpc-0.21.tar.bz2/src/list_window.h -> ncmpc-0.24.tar.xz/src/list_window.h
Changed
19
1
2
(*list_window_paint_callback_t)(WINDOW *w, unsigned i,
3
unsigned y, unsigned width,
4
bool selected,
5
- void *data);
6
+ const void *data);
7
8
struct list_window {
9
WINDOW *w;
10
11
void
12
list_window_paint2(const struct list_window *lw,
13
list_window_paint_callback_t paint_callback,
14
- void *callback_data);
15
+ const void *callback_data);
16
17
/* perform basic list window commands (movement) */
18
bool
19
ncmpc-0.21.tar.bz2/src/main.c -> ncmpc-0.24.tar.xz/src/main.c
Changed
295
1
2
static void
3
update_xterm_title(void)
4
{
5
- static char title[BUFSIZE];
6
- char tmp[BUFSIZE];
7
struct mpd_status *status = NULL;
8
const struct mpd_song *song = NULL;
9
-
10
if (mpd) {
11
status = mpd->status;
12
song = mpd->song;
13
}
14
15
+ char tmp[BUFSIZE];
16
if (options.xterm_title_format && status && song &&
17
mpd_status_get_state(status) == MPD_STATE_PLAY)
18
strfsong(tmp, BUFSIZE, options.xterm_title_format, song);
19
else
20
g_strlcpy(tmp, PACKAGE " version " VERSION, BUFSIZE);
21
22
+ static char title[BUFSIZE];
23
if (strncmp(title, tmp, BUFSIZE)) {
24
g_strlcpy(title, tmp, BUFSIZE);
25
set_xterm_title("%s", title);
26
27
28
#ifndef WIN32
29
static void
30
-catch_sigint(G_GNUC_UNUSED int sig)
31
+catch_sigint(gcc_unused int sig)
32
{
33
g_main_loop_quit(main_loop);
34
}
35
36
37
static void
38
-catch_sigcont(G_GNUC_UNUSED int sig)
39
+catch_sigcont(gcc_unused int sig)
40
{
41
char irrelevant = 'a';
42
if (1 != write(sigwinch_pipes[1], &irrelevant, 1))
43
44
}
45
46
static gboolean
47
-sigwinch_event(G_GNUC_UNUSED GIOChannel *source,
48
- G_GNUC_UNUSED GIOCondition condition, G_GNUC_UNUSED gpointer data)
49
+sigwinch_event(gcc_unused GIOChannel *source,
50
+ gcc_unused GIOCondition condition, gcc_unused gpointer data)
51
{
52
char ignoreme[64];
53
if (1 > read(sigwinch_pipes[0], ignoreme, 64))
54
55
}
56
57
static void
58
-catch_sigwinch(G_GNUC_UNUSED int sig)
59
+catch_sigwinch(gcc_unused int sig)
60
{
61
char irrelevant = 'a';
62
if (1 != write(sigwinch_pipes[1], &irrelevant, 1))
63
64
65
static void
66
idle_callback(enum mpd_error error,
67
- G_GNUC_UNUSED enum mpd_server_error server_error,
68
+ gcc_unused enum mpd_server_error server_error,
69
const char *message, enum mpd_idle events,
70
- G_GNUC_UNUSED void *ctx);
71
+ gcc_unused void *ctx);
72
73
static gboolean
74
timer_mpd_update(gpointer data);
75
76
#endif
77
}
78
79
-static char *
80
-connection_settings_name(const struct mpd_connection *connection)
81
-{
82
-#if LIBMPDCLIENT_CHECK_VERSION(2,4,0)
83
- const struct mpd_settings *settings =
84
- mpd_connection_get_settings(connection);
85
- if (settings == NULL)
86
- return g_strdup(_("unknown"));
87
-
88
- return settings_name(settings);
89
-#else
90
- (void)connection;
91
-
92
- return default_settings_name();
93
-#endif
94
-}
95
-
96
/**
97
* This timer is installed when the connection to the MPD server is
98
* broken. It tries to recover by reconnecting periodically.
99
*/
100
static gboolean
101
-timer_reconnect(G_GNUC_UNUSED gpointer data)
102
+timer_reconnect(gcc_unused gpointer data)
103
{
104
- bool success;
105
- struct mpd_connection *connection;
106
-
107
assert(!mpdclient_is_connected(mpd));
108
109
reconnect_source_id = 0;
110
111
doupdate();
112
113
mpdclient_disconnect(mpd);
114
- success = mpdclient_connect(mpd,
115
- options.host, options.port,
116
- options.timeout_ms,
117
- options.password);
118
- if (!success) {
119
+ if (!mpdclient_connect(mpd, options.host, options.port,
120
+ options.timeout_ms,
121
+ options.password)) {
122
/* try again in 5 seconds */
123
reconnect_source_id = g_timeout_add(5000,
124
timer_reconnect, NULL);
125
return FALSE;
126
}
127
128
- connection = mpdclient_get_connection(mpd);
129
+ struct mpd_connection *connection = mpdclient_get_connection(mpd);
130
131
#ifndef NCMPC_MINI
132
- /* quit if mpd is pre 0.11.0 - song id not supported by mpd */
133
- if (mpd_connection_cmp_server_version(connection, 0, 12, 0) < 0) {
134
+ /* quit if mpd is pre 0.14 - song id not supported by mpd */
135
+ if (mpd_connection_cmp_server_version(connection, 0, 16, 0) < 0) {
136
const unsigned *version =
137
mpd_connection_get_server_version(connection);
138
- screen_status_printf(_("Error: MPD version %d.%d.%d is to old (%s needed)"),
139
+ screen_status_printf(_("Error: MPD version %d.%d.%d is too old (%s needed)"),
140
version[0], version[1], version[2],
141
- "0.12.0");
142
+ "0.16.0");
143
mpdclient_disconnect(mpd);
144
doupdate();
145
146
147
}
148
#endif
149
150
- if (mpd_connection_cmp_server_version(connection,
151
- 0, 14, 0) >= 0)
152
- mpd->source = mpd_glib_new(connection,
153
- idle_callback, mpd);
154
+ mpd->source = mpd_glib_new(connection,
155
+ idle_callback, mpd);
156
157
- name = connection_settings_name(connection);
158
- screen_status_printf(_("Connected to %s"), name);
159
- g_free(name);
160
+ screen_status_clear_message();
161
doupdate();
162
163
/* update immediately */
164
165
assert(mpdclient_is_connected(c));
166
167
if (error != MPD_ERROR_SUCCESS) {
168
- char *allocated;
169
-
170
if (error == MPD_ERROR_SERVER &&
171
server_error == MPD_SERVER_ERROR_UNKNOWN_CMD) {
172
/* the "idle" command is not supported - fall
173
174
return;
175
}
176
177
+ char *allocated;
178
if (error == MPD_ERROR_SERVER)
179
message = allocated = utf8_to_locale(message);
180
else
181
182
}
183
184
static gboolean
185
-timer_mpd_update(G_GNUC_UNUSED gpointer data)
186
+timer_mpd_update(gcc_unused gpointer data)
187
{
188
do_mpd_update();
189
190
191
}
192
193
static gboolean
194
-keyboard_event(G_GNUC_UNUSED GIOChannel *source,
195
- G_GNUC_UNUSED GIOCondition condition,
196
- G_GNUC_UNUSED gpointer data)
197
+keyboard_event(gcc_unused GIOChannel *source,
198
+ gcc_unused GIOCondition condition,
199
+ gcc_unused gpointer data)
200
{
201
- command_t cmd;
202
-
203
begin_input_event();
204
205
- if ((cmd=get_keyboard_command()) != CMD_NONE)
206
+ command_t cmd = get_keyboard_command();
207
+ if (cmd != CMD_NONE)
208
if (do_input_event(cmd) != 0)
209
return FALSE;
210
211
212
* message every 10 seconds.
213
*/
214
static gboolean
215
-timer_check_key_bindings(G_GNUC_UNUSED gpointer data)
216
+timer_check_key_bindings(gcc_unused gpointer data)
217
{
218
char buf[256];
219
-#ifdef ENABLE_KEYDEF_SCREEN
220
- char comment[64];
221
-#endif
222
- gboolean key_error;
223
224
- key_error = check_key_bindings(NULL, buf, sizeof(buf));
225
- if (!key_error) {
226
+ if (check_key_bindings(NULL, buf, sizeof(buf))) {
227
/* no error: disable this timer for the rest of this
228
process */
229
check_key_bindings_source_id = 0;
230
231
/* to translators: a key was bound twice in the key editor,
232
and this is a hint for the user what to press to correct
233
that */
234
+ char comment[64];
235
g_snprintf(comment, sizeof(comment), _("press %s for the key editor"),
236
get_key_names(CMD_SCREEN_KEYDEF, false));
237
g_strlcat(buf, comment, sizeof(buf));
238
239
int
240
main(int argc, const char *argv[])
241
{
242
-#ifndef WIN32
243
- struct sigaction act;
244
-#endif
245
#ifdef ENABLE_LOCALE
246
#ifndef ENABLE_NLS
247
- G_GNUC_UNUSED
248
+ gcc_unused
249
#endif
250
const char *charset = NULL;
251
-#endif
252
- GIOChannel *keyboard_channel;
253
-#ifdef ENABLE_LIRC
254
- int lirc_socket;
255
- GIOChannel *lirc_channel = NULL;
256
-#endif
257
- GIOChannel *sigwinch_channel = NULL;
258
-
259
-#ifdef ENABLE_LOCALE
260
/* time and date formatting */
261
setlocale(LC_TIME,"");
262
/* care about sorting order etc */
263
264
265
#ifndef WIN32
266
/* setup signal behavior - SIGINT */
267
+ struct sigaction act;
268
sigemptyset(&act.sa_mask);
269
act.sa_flags = 0;
270
act.sa_handler = catch_sigint;
271
272
main_loop = g_main_loop_new(NULL, FALSE);
273
274
/* watch out for keyboard input */
275
- keyboard_channel = g_io_channel_unix_new(STDIN_FILENO);
276
+ GIOChannel *keyboard_channel = g_io_channel_unix_new(STDIN_FILENO);
277
g_io_add_watch(keyboard_channel, G_IO_IN, keyboard_event, NULL);
278
279
#ifdef ENABLE_LIRC
280
/* watch out for lirc input */
281
- lirc_socket = ncmpc_lirc_open();
282
+ int lirc_socket = ncmpc_lirc_open();
283
+ GIOChannel *lirc_channel = NULL;
284
if (lirc_socket >= 0) {
285
lirc_channel = g_io_channel_unix_new(lirc_socket);
286
g_io_add_watch(lirc_channel, G_IO_IN, lirc_event, NULL);
287
288
#endif
289
290
#ifndef WIN32
291
+ GIOChannel *sigwinch_channel = NULL;
292
if (!pipe(sigwinch_pipes) &&
293
!fcntl(sigwinch_pipes[1], F_SETFL, O_NONBLOCK)) {
294
sigwinch_channel = g_io_channel_unix_new(sigwinch_pipes[0]);
295
ncmpc-0.21.tar.bz2/src/match.c -> ncmpc-0.24.tar.xz/src/match.c
Changed
52
1
2
GRegex *
3
compile_regex(const char *src, bool anchor)
4
{
5
- GRegex *regex;
6
- GRegexCompileFlags compile_flags;
7
- char *src_folded = locale_casefold(src);
8
-
9
- compile_flags = G_REGEX_CASELESS | G_REGEX_DOTALL | G_REGEX_OPTIMIZE;
10
+ GRegexCompileFlags compile_flags =
11
+ G_REGEX_CASELESS | G_REGEX_DOTALL | G_REGEX_OPTIMIZE;
12
if (anchor)
13
compile_flags |= G_REGEX_ANCHORED;
14
15
- regex = g_regex_new ((const gchar*)src_folded, compile_flags, 0, NULL);
16
+ char *src_folded = locale_casefold(src);
17
+ GRegex *regex = g_regex_new ((const gchar*)src_folded, compile_flags,
18
+ 0, NULL);
19
20
g_free(src_folded);
21
22
23
bool
24
match_regex(GRegex *regex, const char *line)
25
{
26
- GMatchInfo *match_info;
27
- bool match;
28
char *line_folded = locale_casefold(line);
29
-
30
+ GMatchInfo *match_info;
31
g_regex_match(regex, line_folded, 0, &match_info);
32
- match = (bool)g_match_info_matches(match_info);
33
+ bool match = (bool)g_match_info_matches(match_info);
34
35
g_match_info_free(match_info);
36
g_free(line_folded);
37
38
char *line_folded = locale_casefold(line);
39
char *needle_folded = locale_casefold(needle);
40
41
-#if GLIB_CHECK_VERSION(2,14,0)
42
bool ret = (bool)g_regex_match_simple((const gchar*)needle_folded,
43
(const gchar*)line_folded,
44
G_REGEX_CASELESS | G_REGEX_DOTALL | G_REGEX_OPTIMIZE,
45
0);
46
-#else
47
- bool ret = strstr(line_folded, needle_folded) != NULL;
48
-#endif
49
50
g_free(line_folded);
51
g_free(needle_folded);
52
ncmpc-0.21.tar.bz2/src/match.h -> ncmpc-0.24.tar.xz/src/match.h
Changed
25
1
2
#define MATCH_H
3
4
#include "config.h"
5
+#include "Compiler.h"
6
7
#include <stdbool.h>
8
9
10
GRegex *
11
compile_regex(const char *src, bool anchor);
12
13
+gcc_pure
14
bool
15
match_regex(GRegex *regex, const char *line);
16
17
18
* Checks whether the specified line matches the search string. Case
19
* is ignored.
20
*/
21
+gcc_pure
22
bool
23
match_line(const char *line, const char *needle);
24
25
ncmpc-0.21.tar.bz2/src/mpdclient.c -> ncmpc-0.24.tar.xz/src/mpdclient.c
Changed
324
1
2
3
#define BUFSIZE 1024
4
5
-/* sort by list-format */
6
+/* sort by song format */
7
gint
8
compare_filelistentry_format(gconstpointer filelist_entry1,
9
- gconstpointer filelist_entry2)
10
+ gconstpointer filelist_entry2,
11
+ const char *song_format)
12
{
13
- const struct mpd_entity *e1, *e2;
14
- char key1[BUFSIZE], key2[BUFSIZE];
15
- int n = 0;
16
-
17
- e1 = ((const struct filelist_entry *)filelist_entry1)->entity;
18
- e2 = ((const struct filelist_entry *)filelist_entry2)->entity;
19
+ const struct mpd_entity *e1 =
20
+ ((const struct filelist_entry *)filelist_entry1)->entity;
21
+ const struct mpd_entity *e2 =
22
+ ((const struct filelist_entry *)filelist_entry2)->entity;
23
24
+ int n = 0;
25
if (e1 && e2 &&
26
mpd_entity_get_type(e1) == MPD_ENTITY_TYPE_SONG &&
27
mpd_entity_get_type(e2) == MPD_ENTITY_TYPE_SONG) {
28
- strfsong(key1, BUFSIZE, options.list_format, mpd_entity_get_song(e1));
29
- strfsong(key2, BUFSIZE, options.list_format, mpd_entity_get_song(e2));
30
+ char key1[BUFSIZE], key2[BUFSIZE];
31
+ strfsong(key1, BUFSIZE, song_format, mpd_entity_get_song(e1));
32
+ strfsong(key2, BUFSIZE, song_format, mpd_entity_get_song(e2));
33
n = strcmp(key1,key2);
34
}
35
36
37
struct mpdclient *
38
mpdclient_new(void)
39
{
40
- struct mpdclient *c;
41
-
42
- c = g_new0(struct mpdclient, 1);
43
+ struct mpdclient *c = g_new0(struct mpdclient, 1);
44
playlist_init(&c->playlist);
45
c->volume = -1;
46
c->events = 0;
47
48
static struct mpd_status *
49
mpdclient_recv_status(struct mpdclient *c)
50
{
51
- struct mpd_status *status;
52
-
53
assert(c->connection != NULL);
54
55
- status = mpd_recv_status(c->connection);
56
+ struct mpd_status *status = mpd_recv_status(c->connection);
57
if (status == NULL) {
58
mpdclient_handle_error(c);
59
return NULL;
60
61
bool
62
mpdclient_cmd_crop(struct mpdclient *c)
63
{
64
- struct mpd_connection *connection;
65
- int length, current;
66
-
67
if (!mpdclient_is_playing(c))
68
return false;
69
70
- length = mpd_status_get_queue_length(c->status);
71
- current = mpd_status_get_song_pos(c->status);
72
+ int length = mpd_status_get_queue_length(c->status);
73
+ int current = mpd_status_get_song_pos(c->status);
74
if (current < 0 || mpd_status_get_queue_length(c->status) < 2)
75
return true;
76
77
- connection = mpdclient_get_connection(c);
78
+ struct mpd_connection *connection = mpdclient_get_connection(c);
79
if (connection == NULL)
80
return false;
81
82
mpd_command_list_begin(connection, false);
83
84
- if (mpd_connection_cmp_server_version(connection, 0, 16, 0) >= 0) {
85
- if (current < length - 1)
86
- mpd_send_delete_range(connection, current + 1, length);
87
- if (current > 0)
88
- mpd_send_delete_range(connection, 0, current);
89
- } else
90
- while (--length >= 0)
91
- if (length != current)
92
- mpd_send_delete(connection, length);
93
+ if (current < length - 1)
94
+ mpd_send_delete_range(connection, current + 1, length);
95
+ if (current > 0)
96
+ mpd_send_delete_range(connection, 0, current);
97
98
mpd_command_list_end(connection);
99
100
101
mpdclient_cmd_clear(struct mpdclient *c)
102
{
103
struct mpd_connection *connection = mpdclient_get_connection(c);
104
- struct mpd_status *status;
105
-
106
if (connection == NULL)
107
return false;
108
109
110
111
/* receive the new status, store it in the mpdclient struct */
112
113
- status = mpdclient_recv_status(c);
114
+ struct mpd_status *status = mpdclient_recv_status(c);
115
if (status == NULL)
116
return false;
117
118
119
bool
120
mpdclient_cmd_add(struct mpdclient *c, const struct mpd_song *song)
121
{
122
- struct mpd_connection *connection = mpdclient_get_connection(c);
123
- struct mpd_status *status;
124
- struct mpd_song *new_song;
125
-
126
assert(c != NULL);
127
assert(song != NULL);
128
129
+ struct mpd_connection *connection = mpdclient_get_connection(c);
130
if (connection == NULL || c->status == NULL)
131
return false;
132
133
134
135
c->events |= MPD_IDLE_QUEUE;
136
137
- status = mpdclient_recv_status(c);
138
+ struct mpd_status *status = mpdclient_recv_status(c);
139
if (status == NULL)
140
return false;
141
142
if (!mpd_response_next(connection))
143
return mpdclient_handle_error(c);
144
145
- new_song = mpd_recv_song(connection);
146
+ struct mpd_song *new_song = mpd_recv_song(connection);
147
if (!mpd_response_finish(connection) || new_song == NULL) {
148
if (new_song != NULL)
149
mpd_song_free(new_song);
150
151
mpdclient_cmd_delete(struct mpdclient *c, gint idx)
152
{
153
struct mpd_connection *connection = mpdclient_get_connection(c);
154
- const struct mpd_song *song;
155
- struct mpd_status *status;
156
157
if (connection == NULL || c->status == NULL)
158
return false;
159
160
if (idx < 0 || (guint)idx >= playlist_length(&c->playlist))
161
return false;
162
163
- song = playlist_get(&c->playlist, idx);
164
+ const struct mpd_song *song = playlist_get(&c->playlist, idx);
165
166
/* send the delete command to mpd; at the same time, get the
167
new status (to verify the playlist id) */
168
169
170
c->events |= MPD_IDLE_QUEUE;
171
172
- status = mpdclient_recv_status(c);
173
+ struct mpd_status *status = mpdclient_recv_status(c);
174
if (status == NULL)
175
return false;
176
177
178
return true;
179
}
180
181
-/**
182
- * Fallback for mpdclient_cmd_delete_range() on MPD older than 0.16.
183
- * It emulates the "delete range" command with a list of simple
184
- * "delete" commands.
185
- */
186
-static bool
187
-mpdclient_cmd_delete_range_fallback(struct mpdclient *c,
188
- unsigned start, unsigned end)
189
-{
190
- struct mpd_connection *connection = mpdclient_get_connection(c);
191
- if (connection == NULL)
192
- return false;
193
-
194
- if (!mpd_command_list_begin(connection, false))
195
- return mpdclient_handle_error(c);
196
-
197
- for (; start < end; --end)
198
- mpd_send_delete(connection, start);
199
-
200
- if (!mpd_command_list_end(connection) ||
201
- !mpd_response_finish(connection))
202
- return mpdclient_handle_error(c);
203
-
204
- return true;
205
-}
206
-
207
bool
208
mpdclient_cmd_delete_range(struct mpdclient *c, unsigned start, unsigned end)
209
{
210
- struct mpd_connection *connection;
211
- struct mpd_status *status;
212
-
213
if (end == start + 1)
214
/* if that's not really a range, we choose to use the
215
safer "deleteid" version */
216
return mpdclient_cmd_delete(c, start);
217
218
- connection = mpdclient_get_connection(c);
219
+ struct mpd_connection *connection = mpdclient_get_connection(c);
220
if (connection == NULL)
221
return false;
222
223
- if (mpd_connection_cmp_server_version(connection, 0, 16, 0) < 0)
224
- return mpdclient_cmd_delete_range_fallback(c, start, end);
225
-
226
- /* MPD 0.16 supports "delete" with a range argument */
227
-
228
/* send the delete command to mpd; at the same time, get the
229
new status (to verify the playlist id) */
230
231
232
233
c->events |= MPD_IDLE_QUEUE;
234
235
- status = mpdclient_recv_status(c);
236
+ struct mpd_status *status = mpdclient_recv_status(c);
237
if (status == NULL)
238
return false;
239
240
241
bool
242
mpdclient_cmd_move(struct mpdclient *c, unsigned dest_pos, unsigned src_pos)
243
{
244
- struct mpd_connection *connection;
245
- struct mpd_status *status;
246
-
247
if (dest_pos == src_pos)
248
return true;
249
250
- connection = mpdclient_get_connection(c);
251
+ struct mpd_connection *connection = mpdclient_get_connection(c);
252
if (connection == NULL)
253
return false;
254
255
256
257
c->events |= MPD_IDLE_QUEUE;
258
259
- status = mpdclient_recv_status(c);
260
+ struct mpd_status *status = mpdclient_recv_status(c);
261
if (status == NULL)
262
return false;
263
264
265
mpdclient_playlist_update(struct mpdclient *c)
266
{
267
struct mpd_connection *connection = mpdclient_get_connection(c);
268
- struct mpd_entity *entity;
269
-
270
if (connection == NULL)
271
return false;
272
273
playlist_clear(&c->playlist);
274
275
mpd_send_list_queue_meta(connection);
276
+
277
+ struct mpd_entity *entity;
278
while ((entity = mpd_recv_entity(connection))) {
279
if (mpd_entity_get_type(entity) == MPD_ENTITY_TYPE_SONG)
280
playlist_append(&c->playlist, mpd_entity_get_song(entity));
281
282
mpdclient_playlist_update_changes(struct mpdclient *c)
283
{
284
struct mpd_connection *connection = mpdclient_get_connection(c);
285
- struct mpd_song *song;
286
- guint length;
287
288
if (connection == NULL)
289
return false;
290
291
mpd_send_queue_changes_meta(connection, c->playlist.version);
292
293
+ struct mpd_song *song;
294
while ((song = mpd_recv_song(connection)) != NULL) {
295
int pos = mpd_song_get_pos(song);
296
297
298
299
/* remove trailing songs */
300
301
- length = mpd_status_get_queue_length(c->status);
302
+ unsigned length = mpd_status_get_queue_length(c->status);
303
while (length < c->playlist.list->len) {
304
guint pos = c->playlist.list->len - 1;
305
306
307
mpdclient_filelist_add_all(struct mpdclient *c, struct filelist *fl)
308
{
309
struct mpd_connection *connection = mpdclient_get_connection(c);
310
- guint i;
311
-
312
if (connection == NULL)
313
return false;
314
315
316
317
mpd_command_list_begin(connection, false);
318
319
- for (i = 0; i < filelist_length(fl); ++i) {
320
+ for (unsigned i = 0; i < filelist_length(fl); ++i) {
321
struct filelist_entry *entry = filelist_get(fl, i);
322
struct mpd_entity *entity = entry->entity;
323
324
ncmpc-0.21.tar.bz2/src/mpdclient.h -> ncmpc-0.24.tar.xz/src/mpdclient.h
Changed
48
1
2
#define MPDCLIENT_H
3
4
#include "playlist.h"
5
+#include "Compiler.h"
6
7
#include <mpd/client.h>
8
9
10
11
void mpdclient_free(struct mpdclient *c);
12
13
-G_GNUC_PURE
14
+gcc_pure
15
static inline bool
16
mpdclient_is_connected(const struct mpdclient *c)
17
{
18
return c->connection != NULL;
19
}
20
21
-G_GNUC_PURE
22
+gcc_pure
23
static inline bool
24
mpdclient_is_playing(const struct mpdclient *c)
25
{
26
27
mpd_status_get_state(c->status) == MPD_STATE_PAUSE);
28
}
29
30
-G_GNUC_PURE
31
+gcc_pure
32
static inline const struct mpd_song *
33
mpdclient_get_current_song(const struct mpdclient *c)
34
{
35
36
bool
37
mpdclient_filelist_add_all(struct mpdclient *c, struct filelist *fl);
38
39
-/* sort by list-format */
40
-gint compare_filelistentry_format(gconstpointer filelist_entry1, gconstpointer filelist_entry2);
41
+/* sort by song format */
42
+gcc_pure
43
+gint compare_filelistentry_format(gconstpointer filelist_entry1,
44
+ gconstpointer filelist_entry2,
45
+ const char *song_format);
46
47
#endif
48
ncmpc-0.21.tar.bz2/src/options.c -> ncmpc-0.24.tar.xz/src/options.c
Changed
43
1
2
static void
3
display_help(void)
4
{
5
- unsigned i;
6
-
7
printf("Usage: %s [OPTION]...\n", PACKAGE);
8
9
- for (i = 0; i < option_table_size; ++i) {
10
+ for (unsigned i = 0; i < option_table_size; ++i) {
11
char tmp[32];
12
13
if (option_table[i].argument)
14
15
void
16
options_parse(int argc, const char *argv[])
17
{
18
- int i;
19
const arg_opt_t *opt = NULL;
20
option_callback_fn_t option_cb = handle_option;
21
22
- for (i = 1; i < argc; i++) {
23
+ for (int i = 1; i < argc; i++) {
24
const char *arg = argv[i];
25
size_t len = strlen(arg);
26
27
28
{
29
/* default option values */
30
options.list_format = g_strdup(DEFAULT_LIST_FORMAT);
31
+ options.search_format = NULL;
32
options.status_format = g_strdup(DEFAULT_STATUS_FORMAT);
33
options.screen_list = g_strsplit_set(DEFAULT_SCREEN_LIST, " ", 0);
34
#ifndef NCMPC_MINI
35
36
g_free(options.config_file);
37
g_free(options.key_file);
38
g_free(options.list_format);
39
+ g_free(options.search_format);
40
g_free(options.status_format);
41
g_strfreev(options.screen_list);
42
#ifndef NCMPC_MINI
43
ncmpc-0.21.tar.bz2/src/options.h -> ncmpc-0.24.tar.xz/src/options.h
Changed
9
1
2
char *config_file;
3
char *key_file;
4
char *list_format;
5
+ char *search_format;
6
char *status_format;
7
#ifndef NCMPC_MINI
8
char *xterm_title_format;
9
ncmpc-0.21.tar.bz2/src/player_command.c -> ncmpc-0.24.tar.xz/src/player_command.c
Changed
50
1
2
static void
3
commit_seek(struct mpdclient *c)
4
{
5
- struct mpd_connection *connection;
6
-
7
if (seek_id < 0)
8
return;
9
10
- connection = mpdclient_get_connection(c);
11
+ struct mpd_connection *connection = mpdclient_get_connection(c);
12
if (connection == NULL) {
13
seek_id = -1;
14
return;
15
16
bool
17
handle_player_command(struct mpdclient *c, command_t cmd)
18
{
19
- struct mpd_connection *connection;
20
-
21
if (!mpdclient_is_connected(c) || c->status == NULL)
22
return false;
23
24
cancel_seek_timer();
25
26
switch(cmd) {
27
+ struct mpd_connection *connection;
28
+
29
/*
30
case CMD_PLAY:
31
mpdclient_cmd_play(c, MPD_PLAY_AT_BEGINNING);
32
33
break;
34
35
if (mpd_run_shuffle(connection))
36
- screen_status_message(_("Shuffled playlist"));
37
+ screen_status_message(_("Shuffled queue"));
38
else
39
mpdclient_handle_error(c);
40
break;
41
42
break;
43
44
if (mpdclient_cmd_clear(c))
45
- screen_status_message(_("Cleared playlist"));
46
+ screen_status_message(_("Cleared queue"));
47
break;
48
case CMD_REPEAT:
49
connection = mpdclient_get_connection(c);
50
ncmpc-0.21.tar.bz2/src/playlist.c -> ncmpc-0.24.tar.xz/src/playlist.c
Changed
30
1
2
void
3
playlist_clear(struct mpdclient_playlist *playlist)
4
{
5
- guint i;
6
-
7
playlist->version = 0;
8
9
- for (i = 0; i < playlist->list->len; ++i) {
10
+ for (unsigned i = 0; i < playlist->list->len; ++i) {
11
struct mpd_song *song = playlist_get(playlist, i);
12
13
mpd_song_free(song);
14
15
playlist_move(struct mpdclient_playlist *playlist,
16
unsigned dest, unsigned src)
17
{
18
- struct mpd_song *song;
19
-
20
assert(playlist != NULL);
21
assert(src < playlist_length(playlist));
22
assert(dest < playlist_length(playlist));
23
assert(src != dest);
24
25
- song = playlist_get(playlist, src);
26
+ struct mpd_song *song = playlist_get(playlist, src);
27
28
if (src < dest) {
29
memmove(&playlist->list->pdata[src],
30
ncmpc-0.21.tar.bz2/src/playlist.h -> ncmpc-0.24.tar.xz/src/playlist.h
Changed
23
1
2
#ifndef MPDCLIENT_PLAYLIST_H
3
#define MPDCLIENT_PLAYLIST_H
4
5
+#include "Compiler.h"
6
+
7
#include <mpd/client.h>
8
9
#include <assert.h>
10
11
return playlist_get_index_from_file(playlist, mpd_song_get_uri(song));
12
}
13
14
+gcc_pure
15
gint
16
playlist_get_id_from_uri(const struct mpdclient_playlist *playlist,
17
const gchar *uri);
18
19
+gcc_pure
20
static inline gint
21
playlist_get_id_from_same_song(const struct mpdclient_playlist *playlist,
22
const struct mpd_song *song)
23
ncmpc-0.21.tar.bz2/src/plugin.c -> ncmpc-0.24.tar.xz/src/plugin.c
Changed
178
1
2
*/
3
4
#include "plugin.h"
5
+#include "Compiler.h"
6
7
#include <assert.h>
8
#include <stdlib.h>
9
10
static bool
11
register_plugin(struct plugin_list *list, char *path)
12
{
13
- int ret;
14
struct stat st;
15
-
16
- ret = stat(path, &st);
17
- if (ret < 0)
18
+ if (stat(path, &st) < 0)
19
return false;
20
21
g_ptr_array_add(list->plugins, path);
22
return true;
23
}
24
25
-static gint
26
+static gint
27
plugin_compare_func_alpha(gconstpointer plugin1, gconstpointer plugin2)
28
{
29
return strcmp(* (char * const *) plugin1, * (char * const *) plugin2);
30
31
bool
32
plugin_list_load_directory(struct plugin_list *list, const char *path)
33
{
34
- GDir *dir;
35
- const char *name;
36
- char *plugin;
37
- bool ret;
38
-
39
- dir = g_dir_open(path, 0, NULL);
40
+ GDir *dir = g_dir_open(path, 0, NULL);
41
if (dir == NULL)
42
return false;
43
44
+ const char *name;
45
while ((name = g_dir_read_name(dir)) != NULL) {
46
- plugin = g_build_filename(path, name, NULL);
47
- ret = register_plugin(list, plugin);
48
- if (!ret)
49
+ char *plugin = g_build_filename(path, name, NULL);
50
+ if (!register_plugin(list, plugin))
51
g_free(plugin);
52
}
53
54
55
static void
56
plugin_eof(struct plugin_cycle *cycle, struct plugin_pipe *p)
57
{
58
- int ret, status;
59
-
60
g_io_channel_unref(p->channel);
61
close(p->fd);
62
p->fd = -1;
63
64
if (cycle->pipe_stdout.fd != -1 || cycle->pipe_stderr.fd != -1)
65
return;
66
67
- ret = waitpid(cycle->pid, &status, 0);
68
+ int status, ret = waitpid(cycle->pid, &status, 0);
69
cycle->pid = -1;
70
71
if (ret < 0 || !WIFEXITED(status) || WEXITSTATUS(status) != 0) {
72
73
}
74
75
static gboolean
76
-plugin_data(G_GNUC_UNUSED GIOChannel *source,
77
- G_GNUC_UNUSED GIOCondition condition, gpointer data)
78
+plugin_data(gcc_unused GIOChannel *source,
79
+ gcc_unused GIOCondition condition, gpointer data)
80
{
81
struct plugin_cycle *cycle = data;
82
- struct plugin_pipe *p = NULL;
83
- char buffer[256];
84
- ssize_t nbytes;
85
-
86
assert(cycle != NULL);
87
assert(cycle->pid > 0);
88
+
89
+ struct plugin_pipe *p = NULL;
90
if (source == cycle->pipe_stdout.channel)
91
p = &cycle->pipe_stdout;
92
else if (source == cycle->pipe_stderr.channel)
93
94
assert(p != NULL);
95
assert(p->fd >= 0);
96
97
- nbytes = condition & G_IO_IN ? read(p->fd, buffer, sizeof(buffer)) : 0;
98
+ char buffer[256];
99
+ ssize_t nbytes = condition & G_IO_IN
100
+ ? read(p->fd, buffer, sizeof(buffer))
101
+ : 0;
102
if (nbytes <= 0) {
103
plugin_eof(cycle, p);
104
return FALSE;
105
106
static int
107
start_plugin(struct plugin_cycle *cycle, const char *plugin_path)
108
{
109
- int ret, fds_stdout[2], fds_stderr[2];
110
- pid_t pid;
111
-
112
assert(cycle != NULL);
113
assert(cycle->pid < 0);
114
assert(cycle->pipe_stdout.fd < 0);
115
116
g_free(cycle->argv[0]);
117
cycle->argv[0] = g_path_get_basename(plugin_path);
118
119
- ret = pipe(fds_stdout);
120
- if (ret < 0)
121
+ int fds_stdout[2];
122
+ if (pipe(fds_stdout) < 0)
123
return -1;
124
- ret = pipe(fds_stderr);
125
- if (ret < 0) {
126
+
127
+ int fds_stderr[2];
128
+ if (pipe(fds_stderr) < 0) {
129
close(fds_stdout[0]);
130
close(fds_stdout[1]);
131
return -1;
132
}
133
134
- pid = fork();
135
+ pid_t pid = fork();
136
137
if (pid < 0) {
138
close(fds_stdout[0]);
139
140
static void
141
next_plugin(struct plugin_cycle *cycle)
142
{
143
- const char *plugin_path;
144
- int ret = -1;
145
-
146
assert(cycle->pid < 0);
147
assert(cycle->pipe_stdout.fd < 0);
148
assert(cycle->pipe_stderr.fd < 0);
149
150
return;
151
}
152
153
- plugin_path = g_ptr_array_index(cycle->list->plugins,
154
- cycle->next_plugin++);
155
- ret = start_plugin(cycle, plugin_path);
156
- if (ret < 0) {
157
+ const char *plugin_path = g_ptr_array_index(cycle->list->plugins,
158
+ cycle->next_plugin++);
159
+ if (start_plugin(cycle, plugin_path) < 0) {
160
/* system error */
161
g_timeout_add(0, plugin_delayed_fail, cycle);
162
return;
163
164
make_argv(const char*const* args)
165
{
166
unsigned num = 0;
167
- char **ret;
168
-
169
while (args[num] != NULL)
170
++num;
171
num += 2;
172
173
- ret = g_new(char*, num);
174
+ char **ret = g_new(char *, num);
175
176
/* reserve space for the program name */
177
*ret++ = NULL;
178
ncmpc-0.21.tar.bz2/src/progress_bar.c -> ncmpc-0.24.tar.xz/src/progress_bar.c
Changed
31
1
2
static bool
3
progress_bar_calc(struct progress_bar *p)
4
{
5
- unsigned old_width;
6
-
7
if (p->max == 0)
8
return false;
9
10
- old_width = p->width;
11
+ unsigned old_width = p->width;
12
p->width = (p->window.cols * p->current) / (p->max + 1);
13
assert(p->width < p->window.cols);
14
15
16
bool
17
progress_bar_set(struct progress_bar *p, unsigned current, unsigned max)
18
{
19
- bool modified;
20
-
21
assert(p != NULL);
22
23
if (current > max)
24
current = max;
25
26
- modified = (max == 0) != (p->max == 0);
27
+ bool modified = (max == 0) != (p->max == 0);
28
29
p->max = max;
30
p->current = current;
31
ncmpc-0.21.tar.bz2/src/screen.c -> ncmpc-0.24.tar.xz/src/screen.c
Changed
43
1
2
screen_next_mode(struct mpdclient *c, int offset)
3
{
4
int max = g_strv_length(options.screen_list);
5
- int current, next;
6
- const struct screen_functions *sf;
7
8
/* find current screen */
9
- current = find_configured_screen(screen_get_name(mode_fn));
10
- next = current + offset;
11
+ int current = find_configured_screen(screen_get_name(mode_fn));
12
+ int next = current + offset;
13
if (next<0)
14
next = max-1;
15
else if (next>=max)
16
next = 0;
17
18
- sf = screen_lookup_name(options.screen_list[next]);
19
+ const struct screen_functions *sf =
20
+ screen_lookup_name(options.screen_list[next]);
21
if (sf != NULL)
22
screen_switch(sf, c);
23
}
24
25
static void
26
update_progress_window(struct mpdclient *c, bool repaint)
27
{
28
- unsigned elapsed, duration;
29
-
30
+ unsigned elapsed;
31
if (c->status == NULL)
32
elapsed = 0;
33
else if (seek_id >= 0 && seek_id == mpd_status_get_song_id(c->status))
34
35
else
36
elapsed = mpd_status_get_elapsed_time(c->status);
37
38
- duration = mpdclient_is_playing(c)
39
+ unsigned duration = mpdclient_is_playing(c)
40
? mpd_status_get_total_time(c->status)
41
: 0;
42
43
ncmpc-0.21.tar.bz2/src/screen_artist.c -> ncmpc-0.24.tar.xz/src/screen_artist.c
Changed
172
1
2
#include "mpdclient.h"
3
#include "screen_browser.h"
4
#include "filelist.h"
5
+#include "options.h"
6
7
#include <assert.h>
8
#include <string.h>
9
10
compare_utf8(gconstpointer s1, gconstpointer s2)
11
{
12
const char *const*t1 = s1, *const*t2 = s2;
13
- char *key1, *key2;
14
- int n;
15
16
- key1 = g_utf8_collate_key(*t1,-1);
17
- key2 = g_utf8_collate_key(*t2,-1);
18
- n = strcmp(key1,key2);
19
+ char *key1 = g_utf8_collate_key(*t1,-1);
20
+ char *key2 = g_utf8_collate_key(*t2,-1);
21
+ int n = strcmp(key1,key2);
22
g_free(key1);
23
g_free(key2);
24
return n;
25
26
screen_artist_lw_callback(unsigned idx, void *data)
27
{
28
GPtrArray *list = data;
29
- static char buf[BUFSIZE];
30
- char *str, *str_utf8;
31
32
if (mode == LIST_ALBUMS) {
33
if (idx == 0)
34
35
36
assert(idx < list->len);
37
38
- str_utf8 = g_ptr_array_index(list, idx);
39
+ char *str_utf8 = g_ptr_array_index(list, idx);
40
assert(str_utf8 != NULL);
41
42
- str = utf8_to_locale(str_utf8);
43
+ char *str = utf8_to_locale(str_utf8);
44
+
45
+ static char buf[BUFSIZE];
46
g_strlcpy(buf, str, sizeof(buf));
47
g_free(str);
48
49
50
static void
51
string_array_free(GPtrArray *array)
52
{
53
- unsigned i;
54
-
55
- for (i = 0; i < array->len; ++i) {
56
+ for (unsigned i = 0; i < array->len; ++i) {
57
char *value = g_ptr_array_index(array, i);
58
g_free(value);
59
}
60
61
screen_artist_init(WINDOW *w, int cols, int rows)
62
{
63
browser.lw = list_window_init(w, cols, rows);
64
+ browser.song_format = options.list_format;
65
artist = NULL;
66
album = NULL;
67
}
68
69
*/
70
static void
71
paint_artist_callback(WINDOW *w, unsigned i,
72
- G_GNUC_UNUSED unsigned y, unsigned width,
73
- bool selected, void *data)
74
+ gcc_unused unsigned y, unsigned width,
75
+ bool selected, const void *data)
76
{
77
- GPtrArray *list = data;
78
+ const GPtrArray *list = data;
79
char *p = utf8_to_locale(g_ptr_array_index(list, i));
80
81
screen_browser_paint_directory(w, width, selected, p);
82
83
*/
84
static void
85
paint_album_callback(WINDOW *w, unsigned i,
86
- G_GNUC_UNUSED unsigned y, unsigned width,
87
- bool selected, void *data)
88
+ gcc_unused unsigned y, unsigned width,
89
+ bool selected, const void *data)
90
{
91
- GPtrArray *list = data;
92
+ const GPtrArray *list = data;
93
const char *p;
94
char *q = NULL;
95
96
97
static const char *
98
screen_artist_get_title(char *str, size_t size)
99
{
100
- char *s1, *s2;
101
-
102
switch(mode) {
103
+ char *s1, *s2;
104
+
105
case LIST_ARTISTS:
106
g_snprintf(str, size, _("All artists"));
107
break;
108
109
const char *_artist)
110
{
111
struct mpd_connection *connection = mpdclient_get_connection(c);
112
- char *str;
113
- struct filelist *addlist;
114
115
assert(_filter != NULL);
116
117
if (connection == NULL)
118
return;
119
120
- str = utf8_to_locale(_filter);
121
+ char *str = utf8_to_locale(_filter);
122
if (table == MPD_TAG_ALBUM)
123
screen_status_printf(_("Adding album %s..."), str);
124
else
125
126
MPD_TAG_ARTIST, _artist);
127
mpd_search_commit(connection);
128
129
- addlist = filelist_new_recv(connection);
130
+ struct filelist *addlist = filelist_new_recv(connection);
131
132
if (mpdclient_finish_command(c))
133
mpdclient_filelist_add_all(c, addlist);
134
135
static bool
136
screen_artist_cmd(struct mpdclient *c, command_t cmd)
137
{
138
- struct list_window_range range;
139
- char *selected;
140
- char *old;
141
- char *old_ptr;
142
- int idx;
143
-
144
switch(cmd) {
145
+ struct list_window_range range;
146
+ char *selected;
147
+ char *old;
148
+ char *old_ptr;
149
+ int idx;
150
+
151
case CMD_PLAY:
152
switch (mode) {
153
case LIST_ARTISTS:
154
155
case CMD_LIST_JUMP:
156
switch (mode) {
157
case LIST_ARTISTS:
158
- screen_jump(browser.lw, screen_artist_lw_callback,
159
+ screen_jump(browser.lw,
160
+ screen_artist_lw_callback, artist_list,
161
paint_artist_callback, artist_list);
162
artist_repaint();
163
return true;
164
165
case LIST_ALBUMS:
166
- screen_jump(browser.lw, screen_artist_lw_callback,
167
+ screen_jump(browser.lw,
168
+ screen_artist_lw_callback, album_list,
169
paint_album_callback, album_list);
170
artist_repaint();
171
return true;
172
ncmpc-0.21.tar.bz2/src/screen_browser.c -> ncmpc-0.24.tar.xz/src/screen_browser.c
Changed
238
1
2
screen_browser_sync_highlights(struct filelist *fl,
3
const struct mpdclient_playlist *playlist)
4
{
5
- guint i;
6
-
7
- for (i = 0; i < filelist_length(fl); ++i) {
8
+ for (unsigned i = 0; i < filelist_length(fl); ++i) {
9
struct filelist_entry *entry = filelist_get(fl, i);
10
const struct mpd_entity *entity = entry->entity;
11
12
13
{
14
const struct filelist *fl = (const struct filelist *) data;
15
static char buf[BUFSIZE];
16
- const struct filelist_entry *entry;
17
- const struct mpd_entity *entity;
18
19
assert(fl != NULL);
20
assert(idx < filelist_length(fl));
21
22
- entry = filelist_get(fl, idx);
23
+ const struct filelist_entry *entry = filelist_get(fl, idx);
24
assert(entry != NULL);
25
26
- entity = entry->entity;
27
+ const struct mpd_entity *entity = entry->entity;
28
29
if( entity == NULL )
30
return "..";
31
32
entry->flags |= HIGHLIGHT;
33
#endif
34
strfsong(buf, BUFSIZE, options.list_format, song);
35
- screen_status_printf(_("Adding \'%s\' to playlist"), buf);
36
+ screen_status_printf(_("Adding \'%s\' to queue"), buf);
37
}
38
39
if (!mpd_run_play_id(connection, id)) {
40
41
browser_handle_enter(struct screen_browser *browser, struct mpdclient *c)
42
{
43
struct filelist_entry *entry = browser_get_selected_entry(browser);
44
- struct mpd_entity *entity;
45
-
46
if (entry == NULL)
47
return false;
48
49
- entity = entry->entity;
50
+ struct mpd_entity *entity = entry->entity;
51
if (entity == NULL)
52
return false;
53
54
55
56
static bool
57
browser_select_entry(struct mpdclient *c, struct filelist_entry *entry,
58
- G_GNUC_UNUSED gboolean toggle)
59
+ gcc_unused gboolean toggle)
60
{
61
assert(entry != NULL);
62
assert(entry->entity != NULL);
63
64
if (mpdclient_cmd_add_path(c, mpd_directory_get_path(dir))) {
65
char *tmp = utf8_to_locale(mpd_directory_get_path(dir));
66
67
- screen_status_printf(_("Adding \'%s\' to playlist"), tmp);
68
+ screen_status_printf(_("Adding \'%s\' to queue"), tmp);
69
g_free(tmp);
70
}
71
72
73
char buf[BUFSIZE];
74
75
strfsong(buf, BUFSIZE, options.list_format, song);
76
- screen_status_printf(_("Adding \'%s\' to playlist"), buf);
77
+ screen_status_printf(_("Adding \'%s\' to queue"), buf);
78
}
79
#ifndef NCMPC_MINI
80
} else {
81
82
browser_handle_select(struct screen_browser *browser, struct mpdclient *c)
83
{
84
struct list_window_range range;
85
- struct filelist_entry *entry;
86
bool success = false;
87
88
list_window_get_range(browser->lw, &range);
89
for (unsigned i = range.start; i < range.end; ++i) {
90
- entry = browser_get_index(browser, i);
91
-
92
+ struct filelist_entry *entry = browser_get_index(browser, i);
93
if (entry != NULL && entry->entity != NULL)
94
success = browser_select_entry(c, entry, TRUE);
95
}
96
97
browser_handle_add(struct screen_browser *browser, struct mpdclient *c)
98
{
99
struct list_window_range range;
100
- struct filelist_entry *entry;
101
bool success = false;
102
103
list_window_get_range(browser->lw, &range);
104
for (unsigned i = range.start; i < range.end; ++i) {
105
- entry = browser_get_index(browser, i);
106
-
107
+ struct filelist_entry *entry = browser_get_index(browser, i);
108
if (entry != NULL && entry->entity != NULL)
109
success = browser_select_entry(c, entry, FALSE) ||
110
success;
111
112
static void
113
browser_handle_select_all(struct screen_browser *browser, struct mpdclient *c)
114
{
115
- guint i;
116
-
117
if (browser->filelist == NULL)
118
return;
119
120
- for (i = 0; i < filelist_length(browser->filelist); ++i) {
121
+ for (unsigned i = 0; i < filelist_length(browser->filelist); ++i) {
122
struct filelist_entry *entry = filelist_get(browser->filelist, i);
123
124
if (entry != NULL && entry->entity != NULL)
125
126
127
static void
128
screen_browser_paint_callback(WINDOW *w, unsigned i, unsigned y,
129
- unsigned width, bool selected, void *data);
130
+ unsigned width, bool selected, const void *data);
131
132
bool
133
browser_cmd(struct screen_browser *browser,
134
struct mpdclient *c, command_t cmd)
135
{
136
- const struct mpd_song *song;
137
-
138
if (browser->filelist == NULL)
139
return false;
140
141
142
return true;
143
144
switch (cmd) {
145
+#if defined(ENABLE_SONG_SCREEN) || defined(ENABLE_LYRICS_SCREEN)
146
+ const struct mpd_song *song;
147
+#endif
148
+
149
case CMD_LIST_FIND:
150
case CMD_LIST_RFIND:
151
case CMD_LIST_FIND_NEXT:
152
153
browser->filelist);
154
return true;
155
case CMD_LIST_JUMP:
156
- screen_jump(browser->lw, browser_lw_callback,
157
- screen_browser_paint_callback, browser->filelist);
158
+ screen_jump(browser->lw,
159
+ browser_lw_callback, browser->filelist,
160
+ screen_browser_paint_callback, browser);
161
return true;
162
163
#ifdef HAVE_GETMOUSE
164
165
return false;
166
167
switch (cmd) {
168
+ const struct mpd_song *song;
169
+
170
case CMD_PLAY:
171
browser_handle_enter(browser, c);
172
return true;
173
174
static void
175
screen_browser_paint_callback(WINDOW *w, unsigned i,
176
unsigned y, unsigned width,
177
- bool selected, void *data)
178
+ bool selected, const void *data)
179
{
180
- const struct filelist *fl = (const struct filelist *) data;
181
- const struct filelist_entry *entry;
182
- const struct mpd_entity *entity;
183
- bool highlight;
184
- const struct mpd_directory *directory;
185
- const struct mpd_playlist *playlist;
186
- char *p;
187
+ const struct screen_browser *browser = (const struct screen_browser *) data;
188
189
- assert(fl != NULL);
190
- assert(i < filelist_length(fl));
191
+ assert(browser != NULL);
192
+ assert(browser->filelist != NULL);
193
+ assert(i < filelist_length(browser->filelist));
194
195
- entry = filelist_get(fl, i);
196
+ const struct filelist_entry *entry = filelist_get(browser->filelist, i);
197
assert(entry != NULL);
198
199
- entity = entry->entity;
200
+ const struct mpd_entity *entity = entry->entity;
201
if (entity == NULL) {
202
screen_browser_paint_directory(w, width, selected, "..");
203
return;
204
}
205
206
#ifndef NCMPC_MINI
207
- highlight = (entry->flags & HIGHLIGHT) != 0;
208
+ const bool highlight = (entry->flags & HIGHLIGHT) != 0;
209
#else
210
- highlight = false;
211
+ const bool highlight = false;
212
#endif
213
214
switch (mpd_entity_get_type(entity)) {
215
+ const struct mpd_directory *directory;
216
+ const struct mpd_playlist *playlist;
217
+ char *p;
218
+
219
case MPD_ENTITY_TYPE_DIRECTORY:
220
directory = mpd_entity_get_directory(entity);
221
p = utf8_to_locale(g_basename(mpd_directory_get_path(directory)));
222
223
224
case MPD_ENTITY_TYPE_SONG:
225
paint_song_row(w, y, width, selected, highlight,
226
- mpd_entity_get_song(entity), NULL);
227
+ mpd_entity_get_song(entity), NULL, browser->song_format);
228
break;
229
230
case MPD_ENTITY_TYPE_PLAYLIST:
231
232
screen_browser_paint(const struct screen_browser *browser)
233
{
234
list_window_paint2(browser->lw, screen_browser_paint_callback,
235
- browser->filelist);
236
+ browser);
237
}
238
ncmpc-0.21.tar.bz2/src/screen_browser.h -> ncmpc-0.24.tar.xz/src/screen_browser.h
Changed
20
1
2
struct list_window *lw;
3
4
struct filelist *filelist;
5
+ const char *song_format;
6
};
7
8
#ifndef NCMPC_MINI
9
10
11
#include <glib.h>
12
static inline void
13
-screen_browser_sync_highlights(G_GNUC_UNUSED struct filelist *fl,
14
- G_GNUC_UNUSED const struct mpdclient_playlist *playlist)
15
+screen_browser_sync_highlights(gcc_unused struct filelist *fl,
16
+ gcc_unused const struct mpdclient_playlist *playlist)
17
{
18
}
19
20
ncmpc-0.21.tar.bz2/src/screen_chat.c -> ncmpc-0.24.tar.xz/src/screen_chat.c
Changed
26
1
2
static void
3
process_message(struct mpd_message *message)
4
{
5
- char *message_text;
6
-
7
assert(message != NULL);
8
/* You'll have to move this out of screen_chat, if you want to use
9
client-to-client messages anywhere else */
10
assert(g_strcmp0(mpd_message_get_channel(message), chat_channel) == 0);
11
12
- message_text = utf8_to_locale(mpd_message_get_text(message));
13
+ char *message_text = utf8_to_locale(mpd_message_get_text(message));
14
screen_text_append(&text, message_text);
15
g_free(message_text);
16
17
18
}
19
20
static const char *
21
-screen_chat_title(G_GNUC_UNUSED char *s, G_GNUC_UNUSED size_t size)
22
+screen_chat_title(gcc_unused char *s, gcc_unused size_t size)
23
{
24
return _("Chat");
25
}
26
ncmpc-0.21.tar.bz2/src/screen_client.c -> ncmpc-0.24.tar.xz/src/screen_client.c
Changed
42
1
2
static bool
3
_screen_auth(struct mpdclient *c, gint recursion)
4
{
5
- struct mpd_connection *connection;
6
- char *password;
7
-
8
- connection = mpdclient_get_connection(c);
9
+ struct mpd_connection *connection = mpdclient_get_connection(c);
10
if (connection == NULL)
11
return false;
12
13
14
if (recursion > 2)
15
return false;
16
17
- password = screen_read_password(NULL);
18
+ char *password = screen_read_password(NULL);
19
if (password == NULL)
20
return false;
21
22
23
void
24
screen_database_update(struct mpdclient *c, const char *path)
25
{
26
- struct mpd_connection *connection;
27
- unsigned id;
28
-
29
assert(c != NULL);
30
assert(mpdclient_is_connected(c));
31
32
- connection = mpdclient_get_connection(c);
33
+ struct mpd_connection *connection = mpdclient_get_connection(c);
34
if (connection == NULL)
35
return;
36
37
- id = mpd_run_update(connection, path);
38
+ unsigned id = mpd_run_update(connection, path);
39
if (id == 0) {
40
if (mpd_connection_get_error(connection) == MPD_ERROR_SERVER &&
41
mpd_connection_get_server_error(connection) == MPD_SERVER_ERROR_UPDATE_ALREADY &&
42
ncmpc-0.21.tar.bz2/src/screen_file.c -> ncmpc-0.24.tar.xz/src/screen_file.c
Changed
138
1
2
#include "filelist.h"
3
#include "screen_utils.h"
4
#include "screen_client.h"
5
+#include "options.h"
6
7
#include <mpd/client.h>
8
9
10
change_to_parent(struct mpdclient *c)
11
{
12
char *parent = g_path_get_dirname(current_path);
13
- char *old_path;
14
- int idx;
15
- bool success;
16
-
17
if (strcmp(parent, ".") == 0)
18
parent[0] = '\0';
19
20
- old_path = current_path;
21
+ char *old_path = current_path;
22
current_path = NULL;
23
24
- success = change_directory(c, parent);
25
+ bool success = change_directory(c, parent);
26
g_free(parent);
27
28
- idx = success
29
+ int idx = success
30
? filelist_find_directory(browser.filelist, old_path)
31
: -1;
32
g_free(old_path);
33
34
{
35
struct list_window_range range;
36
const char *defaultname = NULL;
37
- char *defaultname_utf8 = NULL;
38
39
list_window_get_range(browser.lw, &range);
40
if (range.start == range.end)
41
42
}
43
}
44
45
+ char *defaultname_utf8 = NULL;
46
if(defaultname)
47
defaultname_utf8 = utf8_to_locale(defaultname);
48
playlist_save(c, NULL, defaultname_utf8);
49
50
handle_delete(struct mpdclient *c)
51
{
52
struct mpd_connection *connection = mpdclient_get_connection(c);
53
- struct list_window_range range;
54
- struct mpd_entity *entity;
55
- const struct mpd_playlist *playlist;
56
- char *str, *buf;
57
58
if (connection == NULL)
59
return;
60
61
+ struct list_window_range range;
62
list_window_get_range(browser.lw, &range);
63
for (unsigned i = range.start; i < range.end; ++i) {
64
struct filelist_entry *entry =
65
66
if( entry==NULL || entry->entity==NULL )
67
continue;
68
69
- entity = entry->entity;
70
+ struct mpd_entity *entity = entry->entity;
71
72
if (mpd_entity_get_type(entity) != MPD_ENTITY_TYPE_PLAYLIST) {
73
/* translators: the "delete" command is only possible
74
75
continue;
76
}
77
78
- playlist = mpd_entity_get_playlist(entity);
79
- str = utf8_to_locale(g_basename(mpd_playlist_get_path(playlist)));
80
- buf = g_strdup_printf(_("Delete playlist %s [%s/%s] ? "), str, YES, NO);
81
+ const struct mpd_playlist *playlist = mpd_entity_get_playlist(entity);
82
+ char *str = utf8_to_locale(g_basename(mpd_playlist_get_path(playlist)));
83
+ char *buf = g_strdup_printf(_("Delete playlist %s [%s/%s] ? "), str, YES, NO);
84
g_free(str);
85
bool delete = screen_get_yesno(buf, false);
86
g_free(buf);
87
88
current_path = g_strdup("");
89
90
browser.lw = list_window_init(w, cols, rows);
91
+ browser.song_format = options.list_format;
92
}
93
94
static void
95
96
screen_file_get_title(char *str, size_t size)
97
{
98
const char *path = NULL, *prev = NULL, *slash = current_path;
99
- char *path_locale;
100
101
/* determine the last 2 parts of the path */
102
while ((slash = strchr(slash, '/')) != NULL) {
103
104
/* fall back to full path */
105
path = current_path;
106
107
- path_locale = utf8_to_locale(path);
108
+ char *path_locale = utf8_to_locale(path);
109
g_snprintf(str, size, "%s: %s",
110
/* translators: caption of the browser screen */
111
_("Browse"), path_locale);
112
113
{
114
const char *uri, *slash, *parent;
115
char *allocated = NULL;
116
- bool ret;
117
- int i;
118
119
assert(song != NULL);
120
121
122
else
123
parent = "";
124
125
- ret = change_directory(c, parent);
126
+ bool ret = change_directory(c, parent);
127
g_free(allocated);
128
if (!ret)
129
return false;
130
131
/* select the specified song */
132
133
- i = filelist_find_song(browser.filelist, song);
134
+ int i = filelist_find_song(browser.filelist, song);
135
if (i < 0)
136
i = 0;
137
138
ncmpc-0.21.tar.bz2/src/screen_find.c -> ncmpc-0.24.tar.xz/src/screen_find.c
Changed
87
1
2
list_window_callback_fn_t callback_fn,
3
void *callback_data)
4
{
5
- int reversed = 0;
6
bool found;
7
const char *prompt = FIND_PROMPT;
8
- char *value = options.find_show_last_pattern ? (char *) -1 : NULL;
9
10
- if (findcmd == CMD_LIST_RFIND || findcmd == CMD_LIST_RFIND_NEXT) {
11
+ const bool reversed =
12
+ findcmd == CMD_LIST_RFIND || findcmd == CMD_LIST_RFIND_NEXT;
13
+ if (reversed)
14
prompt = RFIND_PROMPT;
15
- reversed = 1;
16
- }
17
18
switch (findcmd) {
19
case CMD_LIST_FIND:
20
21
22
case CMD_LIST_FIND_NEXT:
23
case CMD_LIST_RFIND_NEXT:
24
- if (!screen.findbuf)
25
+ if (!screen.findbuf) {
26
+ char *value = options.find_show_last_pattern
27
+ ? (char *) -1 : NULL;
28
screen.findbuf=screen_readln(prompt,
29
value,
30
&screen.find_history,
31
NULL);
32
+ }
33
34
if (screen.findbuf == NULL)
35
return 1;
36
37
* which begins with this string while the users types */
38
void
39
screen_jump(struct list_window *lw,
40
- list_window_callback_fn_t callback_fn,
41
- list_window_paint_callback_t paint_callback,
42
- void *callback_data)
43
+ list_window_callback_fn_t callback_fn, void *callback_data,
44
+ list_window_paint_callback_t paint_callback, void *paint_data)
45
{
46
- char *search_str, *iter, *temp;
47
const int WRLN_MAX_LINE_SIZE = 1024;
48
int key = 65;
49
- command_t cmd;
50
51
if (screen.findbuf) {
52
g_free(screen.findbuf);
53
54
screen.findbuf = g_malloc0(WRLN_MAX_LINE_SIZE);
55
/* In screen.findbuf is the whole string which is displayed in the status_window
56
* and search_str is the string the user entered (without the prompt) */
57
- search_str = screen.findbuf + g_snprintf(screen.findbuf, WRLN_MAX_LINE_SIZE, "%s: ", JUMP_PROMPT);
58
- iter = search_str;
59
+ char *search_str = screen.findbuf + g_snprintf(screen.findbuf, WRLN_MAX_LINE_SIZE, "%s: ", JUMP_PROMPT);
60
+ char *iter = search_str;
61
62
while(1) {
63
key = screen_getch(screen.findbuf);
64
65
66
/* repaint the list_window */
67
if (paint_callback != NULL)
68
- list_window_paint2(lw, paint_callback, callback_data);
69
+ list_window_paint2(lw, paint_callback, paint_data);
70
else
71
list_window_paint(lw, callback_fn, callback_data);
72
wrefresh(lw->w);
73
74
75
/* ncmpc should get the command */
76
ungetch(key);
77
+
78
+ command_t cmd;
79
if ((cmd=get_keyboard_command()) != CMD_NONE)
80
do_input_event(cmd);
81
82
- temp = g_strdup(search_str);
83
+ char *temp = g_strdup(search_str);
84
g_free(screen.findbuf);
85
screen.findbuf = temp;
86
}
87
ncmpc-0.21.tar.bz2/src/screen_find.h -> ncmpc-0.24.tar.xz/src/screen_find.h
Changed
27
1
2
* @param callback_data a pointer passed to callback_fn
3
* @return true if the command has been handled, false if not
4
*/
5
-bool screen_find(struct list_window *lw,
6
- command_t findcmd,
7
- list_window_callback_fn_t callback_fn,
8
- void *callback_data);
9
+bool
10
+screen_find(struct list_window *lw,
11
+ command_t findcmd,
12
+ list_window_callback_fn_t callback_fn,
13
+ void *callback_data);
14
15
/* query user for a string and jump to the entry
16
* which begins with this string while the users types */
17
-void screen_jump(struct list_window *lw,
18
- list_window_callback_fn_t callback_fn,
19
- list_window_paint_callback_t paint_callback,
20
- void *callback_data);
21
+void
22
+screen_jump(struct list_window *lw,
23
+ list_window_callback_fn_t callback_fn, void *callback_data,
24
+ list_window_paint_callback_t paint_callback, void *paint_data);
25
26
#endif
27
ncmpc-0.21.tar.bz2/src/screen_help.c -> ncmpc-0.24.tar.xz/src/screen_help.c
Changed
66
1
2
3
{ 0, CMD_NONE, NULL },
4
{ 0, CMD_NONE, NULL },
5
- { 1, CMD_NONE, N_("Playlist screen") },
6
+ { 1, CMD_NONE, N_("Queue screen") },
7
{ 2, CMD_NONE, NULL },
8
{ 0, CMD_PLAY, N_("Play") },
9
{ 0, CMD_DELETE, NULL },
10
11
{ 2, CMD_NONE, NULL },
12
{ 0, CMD_PLAY, N_("Enter directory/Select and play song") },
13
{ 0, CMD_SELECT, NULL },
14
- { 0, CMD_ADD, N_("Append song to playlist") },
15
+ { 0, CMD_ADD, N_("Append song to queue") },
16
{ 0, CMD_SAVE_PLAYLIST, NULL },
17
{ 0, CMD_DELETE, N_("Delete playlist") },
18
{ 0, CMD_GO_PARENT_DIRECTORY, NULL },
19
20
{ 0, CMD_SCREEN_SEARCH, N_("Search") },
21
{ 0, CMD_PLAY, N_("Select and play") },
22
{ 0, CMD_SELECT, NULL },
23
- { 0, CMD_ADD, N_("Append song to playlist") },
24
+ { 0, CMD_ADD, N_("Append song to queue") },
25
{ 0, CMD_SELECT_ALL, NULL },
26
{ 0, CMD_SEARCH_MODE, NULL },
27
#endif
28
29
static struct list_window *lw;
30
31
static const char *
32
-list_callback(unsigned i, G_GNUC_UNUSED void *data)
33
+list_callback(unsigned i, gcc_unused void *data)
34
{
35
const struct help_text_row *row = &help_text[i];
36
37
38
39
40
static const char *
41
-help_title(G_GNUC_UNUSED char *str, G_GNUC_UNUSED size_t size)
42
+help_title(gcc_unused char *str, gcc_unused size_t size)
43
{
44
return _("Help");
45
}
46
47
static void
48
screen_help_paint_callback(WINDOW *w, unsigned i,
49
unsigned y, unsigned width,
50
- G_GNUC_UNUSED bool selected,
51
- G_GNUC_UNUSED void *data)
52
+ gcc_unused bool selected,
53
+ gcc_unused const void *data)
54
{
55
const struct help_text_row *row = &help_text[i];
56
57
58
}
59
60
static bool
61
-help_cmd(G_GNUC_UNUSED struct mpdclient *c, command_t cmd)
62
+help_cmd(gcc_unused struct mpdclient *c, command_t cmd)
63
{
64
if (list_window_scroll_cmd(lw, cmd)) {
65
help_paint();
66
ncmpc-0.21.tar.bz2/src/screen_keydef.c -> ncmpc-0.24.tar.xz/src/screen_keydef.c
Changed
200
1
2
#include "conf.h"
3
#include "screen.h"
4
#include "screen_utils.h"
5
+#include "options.h"
6
+#include "Compiler.h"
7
8
#include <assert.h>
9
#include <errno.h>
10
11
* the position of the "apply" item. It's the same as command_n_commands,
12
* because array subscripts start at 0, while numbers of items start at 1.
13
*/
14
-static G_GNUC_PURE inline unsigned
15
+gcc_pure
16
+static inline unsigned
17
command_item_apply(void)
18
{
19
return command_n_commands;
20
}
21
22
/** the position of the "apply and save" item */
23
-static G_GNUC_PURE inline unsigned
24
+gcc_pure
25
+static inline unsigned
26
command_item_save(void)
27
{
28
return command_item_apply() + 1;
29
}
30
31
/** the number of items in the "command" view */
32
-static G_GNUC_PURE inline unsigned
33
+gcc_pure
34
+static inline unsigned
35
command_length(void)
36
{
37
return command_item_save() + 1;
38
39
static unsigned subcmd_n_keys = 0;
40
41
/** The position of the up ("[..]") item */
42
-static G_GNUC_CONST inline unsigned
43
+gcc_const
44
+static inline unsigned
45
subcmd_item_up(void)
46
{
47
return 0;
48
}
49
50
/** The position of the "add a key" item */
51
-static G_GNUC_PURE inline unsigned
52
+gcc_pure
53
+static inline unsigned
54
subcmd_item_add(void)
55
{
56
return subcmd_n_keys + 1;
57
}
58
59
/** The number of items in the list_window, if there's a command being edited */
60
-static G_GNUC_PURE inline unsigned
61
+gcc_pure
62
+static inline unsigned
63
subcmd_length(void)
64
{
65
return subcmd_item_add() + 1;
66
}
67
68
/** Check whether a given item is a key */
69
-static G_GNUC_PURE inline bool
70
+gcc_pure
71
+static inline bool
72
subcmd_item_is_key(unsigned i)
73
{
74
return (i > subcmd_item_up() && i < subcmd_item_add());
75
76
* Convert an item id (as in lw->selected) into a "key id", which is an array
77
* subscript to cmds[subcmd].keys.
78
*/
79
-static G_GNUC_CONST inline unsigned
80
+gcc_const
81
+static inline unsigned
82
subcmd_item_to_key_id(unsigned i)
83
{
84
return i - 1;
85
86
static int
87
save_keys(void)
88
{
89
- FILE *f;
90
- char *filename;
91
+ char *allocated = NULL;
92
+ const char *filename = options.key_file;
93
+ if (filename == NULL) {
94
+ if (!check_user_conf_dir()) {
95
+ screen_status_printf(_("Error: Unable to create directory ~/.ncmpc - %s"),
96
+ strerror(errno));
97
+ screen_bell();
98
+ return -1;
99
+ }
100
101
- if (check_user_conf_dir()) {
102
- screen_status_printf(_("Error: Unable to create directory ~/.ncmpc - %s"),
103
- strerror(errno));
104
- screen_bell();
105
- return -1;
106
+ filename = allocated = build_user_key_binding_filename();
107
}
108
109
- filename = build_user_key_binding_filename();
110
-
111
- if ((f = fopen(filename,"w")) == NULL) {
112
+ FILE *f = fopen(filename, "w");
113
+ if (f == NULL) {
114
screen_status_printf(_("Error: %s - %s"), filename, strerror(errno));
115
screen_bell();
116
- g_free(filename);
117
+ g_free(allocated);
118
return -1;
119
}
120
121
if (write_key_bindings(f, KEYDEF_WRITE_HEADER))
122
- screen_status_printf(_("Error: %s - %s"), filename, strerror(errno));
123
- else
124
screen_status_printf(_("Wrote %s"), filename);
125
+ else
126
+ screen_status_printf(_("Error: %s - %s"), filename, strerror(errno));
127
128
- g_free(filename);
129
+ g_free(allocated);
130
return fclose(f);
131
}
132
133
134
static void
135
overwrite_key(int cmd_index, int key_index)
136
{
137
- int key;
138
- char *buf;
139
- command_t cmd;
140
-
141
assert(key_index < MAX_COMMAND_KEYS);
142
143
- buf = g_strdup_printf(_("Enter new key for %s: "), cmds[cmd_index].name);
144
- key = screen_getch(buf);
145
+ char *buf = g_strdup_printf(_("Enter new key for %s: "),
146
+ cmds[cmd_index].name);
147
+ const int key = screen_getch(buf);
148
g_free(buf);
149
150
if (key == ERR) {
151
152
return;
153
}
154
155
- cmd = find_key_command(key, cmds);
156
+ const command_t cmd = find_key_command(key, cmds);
157
if (cmd != CMD_NONE) {
158
screen_status_printf(_("Error: key %s is already used for %s"),
159
key2str(key), get_key_command_name(cmd));
160
161
}
162
163
static const char *
164
-list_callback(unsigned idx, G_GNUC_UNUSED void *data)
165
+list_callback(unsigned idx, gcc_unused void *data)
166
{
167
static char buf[256];
168
169
170
}
171
172
static void
173
-keydef_open(G_GNUC_UNUSED struct mpdclient *c)
174
+keydef_open(gcc_unused struct mpdclient *c)
175
{
176
if (cmds == NULL) {
177
command_definition_t *current_cmds = get_command_definitions();
178
- size_t cmds_size;
179
-
180
command_n_commands = 0;
181
while (current_cmds[command_n_commands].name)
182
command_n_commands++;
183
184
/* +1 for the terminator element */
185
- cmds_size = (command_n_commands + 1) * sizeof(command_definition_t);
186
+ size_t cmds_size = (command_n_commands + 1)
187
+ * sizeof(command_definition_t);
188
cmds = g_malloc0(cmds_size);
189
memcpy(cmds, current_cmds, cmds_size);
190
}
191
192
}
193
194
static bool
195
-keydef_cmd(G_GNUC_UNUSED struct mpdclient *c, command_t cmd)
196
+keydef_cmd(gcc_unused struct mpdclient *c, command_t cmd)
197
{
198
if (cmd == CMD_LIST_RANGE_SELECT)
199
return false;
200
ncmpc-0.21.tar.bz2/src/screen_list.c -> ncmpc-0.24.tar.xz/src/screen_list.c
Changed
56
1
2
void
3
screen_list_init(WINDOW *w, unsigned cols, unsigned rows)
4
{
5
- unsigned i;
6
-
7
- for (i = 0; i < G_N_ELEMENTS(screens); ++i) {
8
+ for (unsigned i = 0; i < G_N_ELEMENTS(screens); ++i) {
9
const struct screen_functions *sf = screens[i].functions;
10
11
if (sf->init)
12
13
void
14
screen_list_exit(void)
15
{
16
- unsigned i;
17
-
18
- for (i = 0; i < G_N_ELEMENTS(screens); ++i) {
19
+ for (unsigned i = 0; i < G_N_ELEMENTS(screens); ++i) {
20
const struct screen_functions *sf = screens[i].functions;
21
22
if (sf->exit)
23
24
void
25
screen_list_resize(unsigned cols, unsigned rows)
26
{
27
- unsigned i;
28
-
29
- for (i = 0; i < G_N_ELEMENTS(screens); ++i) {
30
+ for (unsigned i = 0; i < G_N_ELEMENTS(screens); ++i) {
31
const struct screen_functions *sf = screens[i].functions;
32
33
if (sf->resize)
34
35
const char *
36
screen_get_name(const struct screen_functions *sf)
37
{
38
- unsigned i;
39
-
40
- for (i = 0; i < G_N_ELEMENTS(screens); ++i)
41
+ for (unsigned i = 0; i < G_N_ELEMENTS(screens); ++i)
42
if (screens[i].functions == sf)
43
return screens[i].name;
44
45
46
const struct screen_functions *
47
screen_lookup_name(const char *name)
48
{
49
- unsigned i;
50
-
51
- for (i = 0; i < G_N_ELEMENTS(screens); ++i)
52
+ for (unsigned i = 0; i < G_N_ELEMENTS(screens); ++i)
53
if (strcmp(name, screens[i].name) == 0)
54
return screens[i].functions;
55
56
ncmpc-0.21.tar.bz2/src/screen_lyrics.c -> ncmpc-0.24.tar.xz/src/screen_lyrics.c
Changed
104
1
2
exists_lyr_file(const char *artist, const char *title)
3
{
4
char path[1024];
5
- struct stat result;
6
-
7
path_lyr_file(path, 1024, artist, title);
8
9
+ struct stat result;
10
return (stat(path, &result) == 0);
11
}
12
13
14
create_lyr_file(const char *artist, const char *title)
15
{
16
char path[1024];
17
-
18
snprintf(path, 1024, "%s/.lyrics",
19
getenv("HOME"));
20
mkdir(path, S_IRWXU);
21
22
static int
23
store_lyr_hd(void)
24
{
25
- FILE *lyr_file;
26
- unsigned i;
27
-
28
- lyr_file = create_lyr_file(current.artist, current.title);
29
+ FILE *lyr_file = create_lyr_file(current.artist, current.title);
30
if (lyr_file == NULL)
31
return -1;
32
33
- for (i = 0; i < text.lines->len; ++i)
34
+ for (unsigned i = 0; i < text.lines->len; ++i)
35
fprintf(lyr_file, "%s\n",
36
(const char*)g_ptr_array_index(text.lines, i));
37
38
39
static int
40
delete_lyr_hd(void)
41
{
42
- char path[1024];
43
-
44
if (!exists_lyr_file(current.artist, current.title))
45
return -1;
46
47
+ char path[1024];
48
path_lyr_file(path, 1024, current.artist, current.title);
49
if (unlink(path) != 0)
50
return -2;
51
52
53
static void
54
screen_lyrics_callback(const GString *result, const bool success,
55
- const char *plugin_name, G_GNUC_UNUSED void *data)
56
+ const char *plugin_name, gcc_unused void *data)
57
{
58
assert(current.loader != NULL);
59
60
61
}
62
63
static gboolean
64
-screen_lyrics_timeout_callback(gpointer G_GNUC_UNUSED data)
65
+screen_lyrics_timeout_callback(gpointer gcc_unused data)
66
{
67
plugin_stop(current.loader);
68
current.loader = NULL;
69
70
static void
71
screen_lyrics_load(const struct mpd_song *song)
72
{
73
- const char *artist, *title;
74
-
75
assert(song != NULL);
76
77
screen_lyrics_abort();
78
screen_text_clear(&text);
79
80
- artist = mpd_song_get_tag(song, MPD_TAG_ARTIST, 0);
81
- title = mpd_song_get_tag(song, MPD_TAG_TITLE, 0);
82
+ const char *artist = mpd_song_get_tag(song, MPD_TAG_ARTIST, 0);
83
+ const char *title = mpd_song_get_tag(song, MPD_TAG_TITLE, 0);
84
85
current.song = mpd_song_dup(song);
86
current.artist = g_strdup(artist);
87
88
lyrics_edit(void)
89
{
90
char *editor = options.text_editor;
91
- int status;
92
-
93
if (editor == NULL) {
94
screen_status_message(_("Editor not configured"));
95
return;
96
97
98
/* TODO: fork/exec/wait won't work on Windows, but building a command
99
string for system() is too tricky */
100
+ int status;
101
pid_t pid = fork();
102
if (pid == -1) {
103
screen_status_printf(("%s (%s)"), _("Can't start editor"), g_strerror(errno));
104
ncmpc-0.21.tar.bz2/src/screen_outputs.c -> ncmpc-0.24.tar.xz/src/screen_outputs.c
Changed
75
1
2
static bool
3
toggle_output(struct mpdclient *c, unsigned int output_index)
4
{
5
- struct mpd_connection *connection;
6
- struct mpd_output *output;
7
-
8
assert(mpd_outputs != NULL);
9
10
if (output_index >= mpd_outputs->len)
11
return false;
12
13
- connection = mpdclient_get_connection(c);
14
+ struct mpd_connection *connection = mpdclient_get_connection(c);
15
if (connection == NULL)
16
return false;
17
18
- output = g_ptr_array_index(mpd_outputs, output_index);
19
-
20
+ struct mpd_output *output =
21
+ g_ptr_array_index(mpd_outputs, output_index);
22
if (!mpd_output_get_enabled(output)) {
23
if (!mpd_run_enable_output(connection,
24
mpd_output_get_id(output))) {
25
26
}
27
28
static void
29
-clear_output_element(gpointer data, G_GNUC_UNUSED gpointer user_data)
30
+clear_output_element(gpointer data, gcc_unused gpointer user_data)
31
{
32
mpd_output_free(data);
33
}
34
35
static void
36
fill_outputs_list(struct mpdclient *c)
37
{
38
- struct mpd_connection *connection;
39
- struct mpd_output *output;
40
-
41
assert(mpd_outputs != NULL);
42
43
- connection = mpdclient_get_connection(c);
44
+ struct mpd_connection *connection = mpdclient_get_connection(c);
45
if (connection == NULL) {
46
list_window_set_length(lw, 0);
47
return;
48
}
49
50
mpd_send_outputs(connection);
51
+
52
+ struct mpd_output *output;
53
while ((output = mpd_recv_output(connection)) != NULL) {
54
g_ptr_array_add(mpd_outputs, output);
55
}
56
57
}
58
59
static const char *
60
-outputs_title(G_GNUC_UNUSED char *str, G_GNUC_UNUSED size_t size)
61
+outputs_title(gcc_unused char *str, gcc_unused size_t size)
62
{
63
return _("Outputs");
64
}
65
66
static void
67
screen_outputs_paint_callback(WINDOW *w, unsigned i,
68
- G_GNUC_UNUSED unsigned y, unsigned width,
69
- bool selected, G_GNUC_UNUSED void *data)
70
+ gcc_unused unsigned y, unsigned width,
71
+ bool selected, gcc_unused const void *data)
72
{
73
const struct mpd_output *output;
74
75
ncmpc-0.21.tar.bz2/src/screen_queue.c -> ncmpc-0.24.tar.xz/src/screen_queue.c
Changed
313
1
2
#include "screen_utils.h"
3
#include "screen_song.h"
4
#include "screen_lyrics.h"
5
+#include "Compiler.h"
6
7
#ifndef NCMPC_MINI
8
#include "hscroll.h"
9
10
static void
11
screen_queue_restore_selection(void)
12
{
13
- const struct mpd_song *song;
14
- int pos;
15
-
16
list_window_set_length(lw, playlist_length(playlist));
17
18
if (selected_song_id < 0)
19
/* there was no selection */
20
return;
21
22
- song = screen_queue_selected_song();
23
+ const struct mpd_song *song = screen_queue_selected_song();
24
if (song != NULL &&
25
mpd_song_get_id(song) == (unsigned)selected_song_id)
26
/* selection is still valid */
27
return;
28
29
- pos = playlist_get_index_from_id(playlist, selected_song_id);
30
+ int pos = playlist_get_index_from_id(playlist, selected_song_id);
31
if (pos >= 0)
32
list_window_set_cursor(lw, pos);
33
34
35
}
36
37
static const char *
38
-screen_queue_lw_callback(unsigned idx, G_GNUC_UNUSED void *data)
39
+screen_queue_lw_callback(unsigned idx, gcc_unused void *data)
40
{
41
static char songname[MAX_SONG_LENGTH];
42
- struct mpd_song *song;
43
44
assert(playlist != NULL);
45
assert(idx < playlist_length(playlist));
46
47
- song = playlist_get(playlist, idx);
48
+ struct mpd_song *song = playlist_get(playlist, idx);
49
50
strfsong(songname, MAX_SONG_LENGTH, options.list_format, song);
51
52
53
static void
54
center_playing_item(const struct mpd_status *status, bool center_cursor)
55
{
56
- int idx;
57
-
58
if (status == NULL ||
59
(mpd_status_get_state(status) != MPD_STATE_PLAY &&
60
mpd_status_get_state(status) != MPD_STATE_PAUSE))
61
return;
62
63
/* try to center the song that are playing */
64
- idx = mpd_status_get_song_pos(status);
65
+ int idx = mpd_status_get_song_pos(status);
66
if (idx < 0)
67
return;
68
69
70
list_window_fetch_cursor(lw);
71
}
72
73
-G_GNUC_PURE
74
+gcc_pure
75
static int
76
get_current_song_id(const struct mpd_status *status)
77
{
78
79
80
#ifndef NCMPC_MINI
81
static void
82
-save_pre_completion_cb(GCompletion *gcmp, G_GNUC_UNUSED gchar *line,
83
+save_pre_completion_cb(GCompletion *gcmp, gcc_unused gchar *line,
84
void *data)
85
{
86
completion_callback_data_t *tmp = (completion_callback_data_t *)data;
87
88
}
89
90
static void
91
-save_post_completion_cb(G_GNUC_UNUSED GCompletion *gcmp,
92
- G_GNUC_UNUSED gchar *line, GList *items,
93
- G_GNUC_UNUSED void *data)
94
+save_post_completion_cb(gcc_unused GCompletion *gcmp,
95
+ gcc_unused gchar *line, GList *items,
96
+ gcc_unused void *data)
97
{
98
if (g_list_length(items) >= 1)
99
screen_display_completion_list(items);
100
101
playlist_save(struct mpdclient *c, char *name, char *defaultname)
102
{
103
struct mpd_connection *connection;
104
- gchar *filename, *filename_utf8;
105
-#ifndef NCMPC_MINI
106
- GCompletion *gcmp;
107
- GList *list = NULL;
108
- completion_callback_data_t data;
109
-#endif
110
+ gchar *filename;
111
112
#ifdef NCMPC_MINI
113
(void)defaultname;
114
115
#ifndef NCMPC_MINI
116
if (name == NULL) {
117
/* initialize completion support */
118
- gcmp = g_completion_new(NULL);
119
+ GCompletion *gcmp = g_completion_new(NULL);
120
g_completion_set_compare(gcmp, completion_strncmp);
121
- data.list = &list;
122
- data.dir_list = NULL;
123
- data.c = c;
124
+ GList *list = NULL;
125
+ completion_callback_data_t data = {
126
+ .list = &list,
127
+ .dir_list = NULL,
128
+ .c = c,
129
+ };
130
wrln_completion_callback_data = &data;
131
wrln_pre_completion_callback = save_pre_completion_cb;
132
wrln_post_completion_callback = save_post_completion_cb;
133
134
135
/* query the user for a filename */
136
- filename = screen_readln(_("Save playlist as"),
137
+ filename = screen_readln(_("Save queue as"),
138
defaultname,
139
NULL,
140
gcmp);
141
142
return -1;
143
}
144
145
- filename_utf8 = locale_to_utf8(filename);
146
+ char *filename_utf8 = locale_to_utf8(filename);
147
if (!mpd_run_save(connection, filename_utf8)) {
148
if (mpd_connection_get_error(connection) == MPD_ERROR_SERVER &&
149
mpd_connection_get_server_error(connection) == MPD_SERVER_ERROR_EXIST &&
150
mpd_connection_clear_error(connection)) {
151
- char *buf;
152
- bool replace;
153
-
154
- buf = g_strdup_printf(_("Replace %s [%s/%s] ? "),
155
- filename, YES, NO);
156
- replace = screen_get_yesno(buf, false);
157
+ char *buf = g_strdup_printf(_("Replace %s [%s/%s] ? "),
158
+ filename, YES, NO);
159
+ bool replace = screen_get_yesno(buf, false);
160
g_free(buf);
161
162
if (!replace) {
163
164
static int
165
handle_add_to_playlist(struct mpdclient *c)
166
{
167
- gchar *path;
168
- GCompletion *gcmp;
169
#ifndef NCMPC_MINI
170
+ /* initialize completion support */
171
+ GCompletion *gcmp = g_completion_new(NULL);
172
+ g_completion_set_compare(gcmp, completion_strncmp);
173
+
174
GList *list = NULL;
175
GList *dir_list = NULL;
176
- completion_callback_data_t data;
177
+ completion_callback_data_t data = {
178
+ .list = &list,
179
+ .dir_list = &dir_list,
180
+ .c = c,
181
+ };
182
183
- /* initialize completion support */
184
- gcmp = g_completion_new(NULL);
185
- g_completion_set_compare(gcmp, completion_strncmp);
186
- data.list = &list;
187
- data.dir_list = &dir_list;
188
- data.c = c;
189
wrln_completion_callback_data = &data;
190
wrln_pre_completion_callback = add_pre_completion_cb;
191
wrln_post_completion_callback = add_post_completion_cb;
192
#else
193
- gcmp = NULL;
194
+ GCompletion *gcmp = NULL;
195
#endif
196
197
/* get path */
198
- path = screen_readln(_("Add"),
199
- NULL,
200
- NULL,
201
- gcmp);
202
+ char *path = screen_readln(_("Add"),
203
+ NULL,
204
+ NULL,
205
+ gcmp);
206
207
/* destroy completion data */
208
#ifndef NCMPC_MINI
209
210
screen_queue_title(char *str, size_t size)
211
{
212
if (options.host == NULL)
213
- return _("Playlist");
214
+ return _("Queue");
215
216
- g_snprintf(str, size, _("Playlist on %s"), options.host);
217
+ g_snprintf(str, size, _("Queue on %s"), options.host);
218
return str;
219
}
220
221
static void
222
screen_queue_paint_callback(WINDOW *w, unsigned i,
223
unsigned y, unsigned width,
224
- bool selected, G_GNUC_UNUSED void *data)
225
+ bool selected, gcc_unused const void *data)
226
{
227
- const struct mpd_song *song;
228
- struct hscroll *row_hscroll;
229
-
230
assert(playlist != NULL);
231
assert(i < playlist_length(playlist));
232
233
- song = playlist_get(playlist, i);
234
+ const struct mpd_song *song = playlist_get(playlist, i);
235
236
-#ifdef NCMPC_MINI
237
- row_hscroll = NULL;
238
-#else
239
+ struct hscroll *row_hscroll = NULL;
240
+#ifndef NCMPC_MINI
241
row_hscroll = selected && options.scroll && lw->selected == i
242
? &hscroll : NULL;
243
#endif
244
245
paint_song_row(w, y, width, selected,
246
(int)mpd_song_get_id(song) == current_song_id,
247
- song, row_hscroll);
248
+ song, row_hscroll, options.list_format);
249
}
250
251
static void
252
253
static bool
254
handle_mouse_event(struct mpdclient *c)
255
{
256
- int row;
257
unsigned long bstate;
258
- unsigned old_selected;
259
-
260
+ int row;
261
if (screen_get_mouse_event(c, &bstate, &row) ||
262
list_window_mouse(lw, bstate, row)) {
263
screen_queue_repaint();
264
265
return true;
266
}
267
268
- old_selected = lw->selected;
269
+ const unsigned old_selected = lw->selected;
270
list_window_set_cursor(lw, lw->start + row);
271
272
if (bstate & BUTTON1_CLICKED) {
273
274
{
275
struct mpd_connection *connection;
276
static command_t cached_cmd = CMD_NONE;
277
- command_t prev_cmd = cached_cmd;
278
- struct list_window_range range;
279
- const struct mpd_song *song;
280
281
+ const command_t prev_cmd = cached_cmd;
282
cached_cmd = cmd;
283
284
lw->hide_cursor = false;
285
286
screen_queue_repaint();
287
return true;
288
case CMD_LIST_JUMP:
289
- screen_jump(lw, screen_queue_lw_callback, NULL, NULL);
290
+ screen_jump(lw, screen_queue_lw_callback, NULL, NULL, NULL);
291
screen_queue_save_selection();
292
screen_queue_repaint();
293
return true;
294
295
return false;
296
297
switch(cmd) {
298
+ const struct mpd_song *song;
299
+ struct list_window_range range;
300
+
301
case CMD_PLAY:
302
song = screen_queue_selected_song();
303
if (song == NULL)
304
305
return true;
306
307
if (mpd_run_shuffle_range(connection, range.start, range.end))
308
- screen_status_message(_("Shuffled playlist"));
309
+ screen_status_message(_("Shuffled queue"));
310
else
311
mpdclient_handle_error(c);
312
return true;
313
ncmpc-0.21.tar.bz2/src/screen_search.c -> ncmpc-0.24.tar.xz/src/screen_search.c
Changed
84
1
2
static int
3
search_get_tag_id(const char *name)
4
{
5
- unsigned i;
6
-
7
if (g_ascii_strcasecmp(name, "file") == 0 ||
8
strcasecmp(name, _("file")) == 0)
9
return SEARCH_URI;
10
11
- for (i = 0; i < MPD_TAG_COUNT; ++i)
12
+ for (unsigned i = 0; i < MPD_TAG_COUNT; ++i)
13
if (search_tag[i].name != NULL &&
14
(strcasecmp(search_tag[i].name, name) == 0 ||
15
strcasecmp(search_tag[i].localname, name) == 0))
16
17
18
/* search info */
19
static const char *
20
-lw_search_help_callback(unsigned idx, G_GNUC_UNUSED void *data)
21
+lw_search_help_callback(unsigned idx, gcc_unused void *data)
22
{
23
assert(idx < G_N_ELEMENTS(help_text));
24
25
26
static struct filelist *
27
search_advanced_query(struct mpd_connection *connection, char *query)
28
{
29
- int i,j;
30
- char **strv;
31
- int table[10];
32
- char *arg[10];
33
- struct filelist *fl = NULL;
34
-
35
advanced_search_mode = FALSE;
36
if (strchr(query, ':') == NULL)
37
return NULL;
38
39
- strv = g_strsplit_set(query, ": ", 0);
40
+ char **strv = g_strsplit_set(query, ": ", 0);
41
42
+ int table[10];
43
memset(table, 0, 10*sizeof(int));
44
+
45
+ char *arg[10];
46
memset(arg, 0, 10*sizeof(char *));
47
48
- i=0;
49
- j=0;
50
+ int i = 0, j = 0;
51
while (strv[i] && strlen(strv[i]) > 0 && i < 9) {
52
int id = search_get_tag_id(strv[i]);
53
if (id == -1) {
54
55
}
56
57
mpd_search_commit(connection);
58
- fl = filelist_new_recv(connection);
59
+ struct filelist *fl = filelist_new_recv(connection);
60
if (!mpd_response_finish(connection)) {
61
filelist_free(fl);
62
fl = NULL;
63
64
screen_search_init(WINDOW *w, int cols, int rows)
65
{
66
browser.lw = list_window_init(w, cols, rows);
67
+ if (options.search_format != NULL) {
68
+ browser.song_format = options.search_format;
69
+ } else {
70
+ browser.song_format = options.list_format;
71
+ }
72
list_window_set_length(browser.lw, G_N_ELEMENTS(help_text));
73
}
74
75
76
}
77
78
static void
79
-screen_search_open(G_GNUC_UNUSED struct mpdclient *c)
80
+screen_search_open(gcc_unused struct mpdclient *c)
81
{
82
// if( pattern==NULL )
83
// search_new(screen, c);
84
ncmpc-0.21.tar.bz2/src/screen_song.c -> ncmpc-0.24.tar.xz/src/screen_song.c
Changed
209
1
2
LABEL_LENGTH = MPD_TAG_COUNT,
3
LABEL_PATH,
4
LABEL_BITRATE,
5
+ LABEL_FORMAT,
6
LABEL_POSITION,
7
};
8
9
10
[MPD_TAG_COMMENT] = N_("Comment"),
11
[LABEL_PATH] = N_("Path"),
12
[LABEL_BITRATE] = N_("Bitrate"),
13
+ [LABEL_FORMAT] = N_("Format"),
14
};
15
16
static unsigned max_tag_label_width;
17
18
}
19
20
static const char *
21
-screen_song_list_callback(unsigned idx, G_GNUC_UNUSED void *data)
22
+screen_song_list_callback(unsigned idx, gcc_unused void *data)
23
{
24
assert(idx < current.lines->len);
25
26
27
}
28
29
static const char *
30
-screen_song_title(G_GNUC_UNUSED char *str, G_GNUC_UNUSED size_t size)
31
+screen_song_title(gcc_unused char *str, gcc_unused size_t size)
32
{
33
return _("Song viewer");
34
}
35
36
static void
37
screen_song_append(const char *label, const char *value, unsigned label_col)
38
{
39
- unsigned label_width = locale_width(label) + 2;
40
- int value_col, label_size;
41
- gchar *entry, *entry_iter;
42
- const gchar *value_iter;
43
- char *p, *q;
44
- unsigned width;
45
+ const unsigned label_width = locale_width(label) + 2;
46
47
assert(label != NULL);
48
assert(value != NULL);
49
50
51
/* +2 for ': ' */
52
label_col += 2;
53
- value_col = lw->cols - label_col;
54
+ const int value_col = lw->cols - label_col;
55
/* calculate the number of required linebreaks */
56
- value_iter = value;
57
- label_size = strlen(label) + label_col;
58
+ const gchar *value_iter = value;
59
+ const int label_size = strlen(label) + label_col;
60
61
while (*value_iter != 0) {
62
- entry = g_malloc(label_size);
63
+ char *entry = g_malloc(label_size), *entry_iter;
64
if (value_iter == value) {
65
entry_iter = entry + g_sprintf(entry, "%s: ", label);
66
/* fill the label column with whitespaces */
67
68
/* skip whitespaces */
69
while (g_ascii_isspace(*value_iter)) ++value_iter;
70
71
- p = g_strdup(value_iter);
72
- width = utf8_cut_width(p, value_col);
73
+ char *p = g_strdup(value_iter);
74
+ unsigned width = utf8_cut_width(p, value_col);
75
if (width == 0)
76
/* not enough room for anything - bail out */
77
break;
78
79
80
value_iter += strlen(p);
81
p = replace_utf8_to_locale(p);
82
- q = g_strconcat(entry, p, NULL);
83
+ char *q = g_strconcat(entry, p, NULL);
84
g_free(entry);
85
g_free(p);
86
87
88
}
89
90
static void
91
-screen_song_add_song(const struct mpd_song *song, const struct mpdclient *c)
92
+screen_song_add_song(const struct mpd_song *song)
93
{
94
assert(song != NULL);
95
96
97
98
const char *value = length;
99
100
-#if LIBMPDCLIENT_CHECK_VERSION(2,3,0)
101
char buffer[64];
102
103
if (mpd_song_get_end(song) > 0) {
104
105
length, start);
106
value = buffer;
107
}
108
-#endif
109
110
screen_song_append(_(tag_labels[LABEL_LENGTH]), value,
111
max_tag_label_width);
112
113
114
screen_song_append(_(tag_labels[LABEL_PATH]), mpd_song_get_uri(song),
115
max_tag_label_width);
116
- if (mpdclient_is_playing(c) && c->song != NULL &&
117
- strcmp(mpd_song_get_uri(c->song), mpd_song_get_uri(song)) == 0 &&
118
- mpd_status_get_kbit_rate(c->status)) {
119
- char buf[16];
120
- g_snprintf(buf, sizeof(buf), _("%d kbps"),
121
- mpd_status_get_kbit_rate(c->status));
122
- screen_song_append(_(tag_labels[LABEL_BITRATE]), buf,
123
- max_tag_label_width);
124
- }
125
}
126
127
static void
128
129
static bool
130
screen_song_add_stats(struct mpd_connection *connection)
131
{
132
- char buf[64];
133
- GDate *date;
134
- struct mpd_stats *mpd_stats;
135
-
136
- mpd_stats = mpd_run_stats(connection);
137
+ struct mpd_stats *mpd_stats = mpd_run_stats(connection);
138
if (mpd_stats == NULL)
139
return false;
140
141
g_ptr_array_add(current.lines, g_strdup(_("MPD statistics")) );
142
+
143
+ char buf[64];
144
g_snprintf(buf, sizeof(buf), "%d",
145
mpd_stats_get_number_of_artists(mpd_stats));
146
screen_song_append_stats(STATS_ARTISTS, buf);
147
148
mpd_stats_get_uptime(mpd_stats));
149
screen_song_append_stats(STATS_UPTIME, buf);
150
151
- date = g_date_new();
152
+ GDate *date = g_date_new();
153
g_date_set_time_t(date, mpd_stats_get_db_update_time(mpd_stats));
154
g_date_strftime(buf, sizeof(buf), "%x", date);
155
screen_song_append_stats(STATS_DBUPTIME, buf);
156
157
static void
158
screen_song_update(struct mpdclient *c)
159
{
160
- struct mpd_connection *connection;
161
-
162
/* Clear all lines */
163
for (guint i = 0; i < current.lines->len; ++i)
164
g_free(g_ptr_array_index(current.lines, i));
165
166
mpd_song_get_uri(c->song)) != 0 ||
167
!mpdclient_is_playing(c))) {
168
g_ptr_array_add(current.lines, g_strdup(_("Selected song")) );
169
- screen_song_add_song(current.selected_song, c);
170
+ screen_song_add_song(current.selected_song);
171
g_ptr_array_add(current.lines, g_strdup("\0"));
172
}
173
174
175
}
176
current.played_song = mpd_song_dup(c->song);
177
g_ptr_array_add(current.lines, g_strdup(_("Currently playing song")));
178
- screen_song_add_song(current.played_song, c);
179
+ screen_song_add_song(current.played_song);
180
+
181
+ if (mpd_status_get_kbit_rate(c->status) > 0) {
182
+ char buf[16];
183
+ g_snprintf(buf, sizeof(buf), _("%d kbps"),
184
+ mpd_status_get_kbit_rate(c->status));
185
+ screen_song_append(_(tag_labels[LABEL_BITRATE]), buf,
186
+ max_tag_label_width);
187
+ }
188
+
189
+ const struct mpd_audio_format *format =
190
+ mpd_status_get_audio_format(c->status);
191
+ if (format) {
192
+ char buf[32];
193
+ g_snprintf(buf, sizeof(buf), _("%u:%u:%u"),
194
+ format->sample_rate, format->bits,
195
+ format->channels);
196
+ screen_song_append(_(tag_labels[LABEL_FORMAT]), buf,
197
+ max_tag_label_width);
198
+ }
199
+
200
g_ptr_array_add(current.lines, g_strdup("\0"));
201
}
202
203
/* Add some statistics about mpd */
204
- connection = mpdclient_get_connection(c);
205
+ struct mpd_connection *connection = mpdclient_get_connection(c);
206
if (connection != NULL && !screen_song_add_stats(connection))
207
mpdclient_handle_error(c);
208
209
ncmpc-0.21.tar.bz2/src/screen_status.c -> ncmpc-0.24.tar.xz/src/screen_status.c
Changed
27
1
2
#include <stdarg.h>
3
4
void
5
+screen_status_clear_message(void)
6
+{
7
+ status_bar_clear_message(&screen.status_bar);
8
+}
9
+
10
+void
11
screen_status_message(const char *msg)
12
{
13
status_bar_message(&screen.status_bar, msg);
14
15
void
16
screen_status_printf(const char *format, ...)
17
{
18
- char *msg;
19
va_list ap;
20
-
21
va_start(ap,format);
22
- msg = g_strdup_vprintf(format,ap);
23
+ char *msg = g_strdup_vprintf(format,ap);
24
va_end(ap);
25
screen_status_message(msg);
26
g_free(msg);
27
ncmpc-0.21.tar.bz2/src/screen_status.h -> ncmpc-0.24.tar.xz/src/screen_status.h
Changed
11
1
2
#define NCMPC_SCREEN_STATUS_H
3
4
void
5
+screen_status_clear_message(void);
6
+
7
+void
8
screen_status_message(const char *msg);
9
10
void
11
ncmpc-0.21.tar.bz2/src/screen_text.c -> ncmpc-0.24.tar.xz/src/screen_text.c
Changed
43
1
2
void
3
screen_text_append(struct screen_text *text, const char *str)
4
{
5
- const char *eol, *next;
6
-
7
assert(str != NULL);
8
9
+ const char *eol;
10
while ((eol = strchr(str, '\n')) != NULL) {
11
char *line;
12
13
- next = eol + 1;
14
+ const char *next = eol + 1;
15
16
/* strip whitespace at end */
17
18
19
screen_text_list_callback(unsigned idx, void *data)
20
{
21
const struct screen_text *text = data;
22
- static char buffer[256];
23
- char *value;
24
25
assert(idx < text->lines->len);
26
27
- value = utf8_to_locale(g_ptr_array_index(text->lines, idx));
28
+ char *value = utf8_to_locale(g_ptr_array_index(text->lines, idx));
29
+
30
+ static char buffer[256];
31
g_strlcpy(buffer, value, sizeof(buffer));
32
g_free(value);
33
34
35
36
bool
37
screen_text_cmd(struct screen_text *text,
38
- G_GNUC_UNUSED struct mpdclient *c, command_t cmd)
39
+ gcc_unused struct mpdclient *c, command_t cmd)
40
{
41
if (list_window_scroll_cmd(text->lw, cmd)) {
42
screen_text_repaint(text);
43
ncmpc-0.21.tar.bz2/src/screen_utils.c -> ncmpc-0.24.tar.xz/src/screen_utils.c
Changed
71
1
2
screen_getch(const char *prompt)
3
{
4
WINDOW *w = screen.status_bar.window.w;
5
- int key = -1;
6
7
colors_use(w, COLOR_STATUS_ALERT);
8
werase(w);
9
10
echo();
11
curs_set(1);
12
13
+ int key;
14
while ((key = wgetch(w)) == ERR)
15
;
16
17
18
{
19
struct window *window = &screen.status_bar.window;
20
WINDOW *w = window->w;
21
- char *ret;
22
23
wmove(w, 0,0);
24
curs_set(1);
25
26
27
if (prompt == NULL)
28
prompt = _("Password");
29
- ret = wreadln_masked(w, prompt, NULL, window->cols, NULL, NULL);
30
+ char *ret = wreadln_masked(w, prompt, NULL, window->cols, NULL, NULL);
31
32
curs_set(0);
33
return ret;
34
35
static guint prev_length = 0;
36
static guint offset = 0;
37
WINDOW *w = screen.main_window.w;
38
- guint length, y=0;
39
40
- length = g_list_length(list);
41
+ unsigned length = g_list_length(list);
42
if (list == prev_list && length == prev_length) {
43
offset += screen.main_window.rows;
44
if (offset >= length)
45
46
}
47
48
colors_use(w, COLOR_STATUS_ALERT);
49
+
50
+ unsigned y = 0;
51
while (y < screen.main_window.rows) {
52
GList *item = g_list_nth(list, y+offset);
53
54
55
56
if (options.enable_xterm_title) {
57
if (g_getenv("WINDOWID")) {
58
- char *msg;
59
va_list ap;
60
-
61
va_start(ap,format);
62
- msg = g_strdup_vprintf(format,ap);
63
+ char *msg = g_strdup_vprintf(format,ap);
64
va_end(ap);
65
- printf("%c]0;%s%c", '\033', msg, '\007');
66
+ printf("\033]0;%s\033\\", msg);
67
+ fflush(stdout);
68
g_free(msg);
69
} else
70
options.enable_xterm_title = FALSE;
71
ncmpc-0.21.tar.bz2/src/song_paint.c -> ncmpc-0.24.tar.xz/src/song_paint.c
Changed
18
1
2
#include <string.h>
3
4
void
5
-paint_song_row(WINDOW *w, G_GNUC_UNUSED unsigned y, unsigned width,
6
+paint_song_row(WINDOW *w, gcc_unused unsigned y, unsigned width,
7
bool selected, bool highlight, const struct mpd_song *song,
8
- G_GNUC_UNUSED struct hscroll *hscroll)
9
+ gcc_unused struct hscroll *hscroll, const char *format)
10
{
11
char buffer[width * 4];
12
13
- strfsong(buffer, sizeof(buffer), options.list_format, song);
14
+ strfsong(buffer, sizeof(buffer), format, song);
15
row_paint_text(w, width, highlight ? COLOR_LIST_BOLD : COLOR_LIST,
16
selected, buffer);
17
18
ncmpc-0.21.tar.bz2/src/song_paint.h -> ncmpc-0.24.tar.xz/src/song_paint.h
Changed
14
1
2
* @param highlight true if the row is highlighted
3
* @param song the song object
4
* @param hscroll an optional hscroll object
5
+ * @param format the song format
6
*/
7
void
8
paint_song_row(WINDOW *w, unsigned y, unsigned width,
9
bool selected, bool highlight, const struct mpd_song *song,
10
- struct hscroll *hscroll);
11
+ struct hscroll *hscroll, const char *format);
12
13
#endif
14
ncmpc-0.21.tar.bz2/src/status_bar.c -> ncmpc-0.24.tar.xz/src/status_bar.c
Changed
87
1
2
#endif
3
}
4
5
-static gboolean
6
-status_bar_clear_message(gpointer data)
7
+void
8
+status_bar_clear_message(struct status_bar *p)
9
{
10
- struct status_bar *p = data;
11
- WINDOW *w = p->window.w;
12
-
13
assert(p != NULL);
14
- assert(p->message_source_id != 0);
15
16
- p->message_source_id = 0;
17
+ if (p->message_source_id != 0) {
18
+ g_source_remove(p->message_source_id);
19
+ p->message_source_id = 0;
20
+ }
21
+
22
+ WINDOW *w = p->window.w;
23
24
wmove(w, 0, 0);
25
wclrtoeol(w);
26
wrefresh(w);
27
-
28
- return false;
29
}
30
31
#ifndef NCMPC_MINI
32
33
const struct mpd_song *song)
34
{
35
WINDOW *w = p->window.w;
36
- enum mpd_state state;
37
- const char *str = NULL;
38
- int x = 0;
39
char buffer[p->window.cols * 4 + 1];
40
41
#ifndef NCMPC_MINI
42
43
wclrtoeol(w);
44
colors_use(w, COLOR_STATUS_BOLD);
45
46
- state = status == NULL ? MPD_STATE_UNKNOWN
47
+ enum mpd_state state = status == NULL ? MPD_STATE_UNKNOWN
48
: mpd_status_get_state(status);
49
50
+ const char *str = NULL;
51
switch (state) {
52
case MPD_STATE_PLAY:
53
str = _("Playing:");
54
55
break;
56
}
57
58
+ int x = 0;
59
if (str) {
60
waddstr(w, str);
61
x += utf8_width(str) + 1;
62
63
mvwin(p->window.w, y, x);
64
}
65
66
+static gboolean
67
+status_bar_clear_message_cb(gpointer data)
68
+{
69
+ struct status_bar *p = data;
70
+ assert(p->message_source_id != 0);
71
+ p->message_source_id = 0;
72
+
73
+ status_bar_clear_message(p);
74
+ return false;
75
+}
76
+
77
void
78
status_bar_message(struct status_bar *p, const char *msg)
79
{
80
81
if (p->message_source_id != 0)
82
g_source_remove(p->message_source_id);
83
p->message_source_id = g_timeout_add(options.status_message_time * 1000,
84
- status_bar_clear_message, p);
85
+ status_bar_clear_message_cb, p);
86
}
87
ncmpc-0.21.tar.bz2/src/status_bar.h -> ncmpc-0.24.tar.xz/src/status_bar.h
Changed
9
1
2
void
3
status_bar_message(struct status_bar *p, const char *msg);
4
5
+void
6
+status_bar_clear_message(struct status_bar *p);
7
+
8
#endif
9
ncmpc-0.21.tar.bz2/src/strfsong.c -> ncmpc-0.24.tar.xz/src/strfsong.c
Changed
134
1
2
const char *first)
3
{
4
const char *p = mpd_song_get_tag(song, tag, 1);
5
- char *buffer, *prev;
6
-
7
if (p == NULL)
8
return NULL;
9
10
- buffer = concat_tag_values(first, p);
11
+ char *buffer = concat_tag_values(first, p);
12
for (unsigned i = 2; (p = mpd_song_get_tag(song, tag, i)) != NULL;
13
++i) {
14
- prev = buffer;
15
+ char *prev = buffer;
16
buffer = concat_tag_values(buffer, p);
17
g_free(prev);
18
}
19
20
song_tag_locale(const struct mpd_song *song, enum mpd_tag_type tag)
21
{
22
const char *value = mpd_song_get_tag(song, tag, 0);
23
- char *result;
24
-#ifndef NCMPC_MINI
25
- char *all;
26
-#endif /* !NCMPC_MINI */
27
-
28
if (value == NULL)
29
return NULL;
30
31
#ifndef NCMPC_MINI
32
- all = song_more_tag_values(song, tag, value);
33
+ char *all = song_more_tag_values(song, tag, value);
34
if (all != NULL)
35
value = all;
36
#endif /* !NCMPC_MINI */
37
38
- result = utf8_to_locale(value);
39
+ char *result = utf8_to_locale(value);
40
41
#ifndef NCMPC_MINI
42
g_free(all);
43
44
const struct mpd_song *song,
45
const gchar **last)
46
{
47
- const gchar *p, *end;
48
- gchar *temp;
49
- gsize n, length = 0;
50
- gboolean found = FALSE;
51
+ bool found = false;
52
/* "missed" helps handling the case of mere literal text like
53
- found==TRUE instead of found==FALSE. */
54
- gboolean missed = FALSE;
55
+ found==true instead of found==false. */
56
+ bool missed = false;
57
58
s[0] = '\0';
59
60
if (song == NULL)
61
return 0;
62
63
+ const char *p;
64
+ size_t length = 0;
65
for (p = format; *p != '\0' && length<max;) {
66
/* OR */
67
if (p[0] == '|') {
68
69
if(missed && !found) {
70
s[0] = '\0';
71
length = 0;
72
- missed = FALSE;
73
+ missed = false;
74
} else {
75
p = skip(p);
76
}
77
78
if(missed && !found) {
79
p = skip(p);
80
} else {
81
- found = FALSE;
82
- missed = FALSE;
83
+ found = false;
84
+ missed = false;
85
}
86
continue;
87
}
88
89
/* EXPRESSION START */
90
if (p[0] == '[') {
91
- temp = g_malloc0(max);
92
+ char *temp = g_malloc0(max);
93
if( _strfsong(temp, max, p+1, song, &p) >0 ) {
94
g_strlcat(s, temp, max);
95
length = strlen(s);
96
- found = TRUE;
97
+ found = true;
98
} else {
99
- missed = TRUE;
100
+ missed = true;
101
}
102
g_free(temp);
103
continue;
104
105
/* advance past the esc character */
106
107
/* find the extent of this format specifier (stop at \0, ' ', or esc) */
108
- temp = NULL;
109
- end = p+1;
110
+ char *temp = NULL;
111
+ const char *end = p + 1;
112
while(*end >= 'a' && *end <= 'z') {
113
end++;
114
}
115
- n = end - p + 1;
116
+ size_t n = end - p + 1;
117
if(*end != '%')
118
n--;
119
else if (strncmp("%file%", p, n) == 0)
120
121
length+=templen;
122
g_free(ident);
123
124
- missed = TRUE;
125
+ missed = true;
126
} else {
127
gsize templen = strlen(temp);
128
129
- found = TRUE;
130
+ found = true;
131
if( length+templen > max )
132
templen = max-length;
133
g_strlcat(s, temp, max);
134
ncmpc-0.21.tar.bz2/src/title_bar.c -> ncmpc-0.24.tar.xz/src/title_bar.c
Changed
47
1
2
const struct mpd_status *status)
3
{
4
WINDOW *w = p->window.w;
5
- int volume;
6
- char flags[5];
7
- char buf[32];
8
9
assert(p != NULL);
10
11
12
#ifdef ENABLE_HELP_SCREEN
13
print_hotkey(w, CMD_SCREEN_HELP, _("Help"));
14
#endif
15
- print_hotkey(w, CMD_SCREEN_PLAY, _("Playlist"));
16
+ print_hotkey(w, CMD_SCREEN_PLAY, _("Queue"));
17
print_hotkey(w, CMD_SCREEN_FILE, _("Browse"));
18
#ifdef ENABLE_ARTIST_SCREEN
19
print_hotkey(w, CMD_SCREEN_ARTIST, _("Artist"));
20
21
#endif
22
}
23
24
- volume = get_volume(status);
25
+ int volume = get_volume(status);
26
+ char buf[32];
27
if (volume < 0)
28
g_snprintf(buf, 32, _("Volume n/a"));
29
else
30
31
colors_use(w, COLOR_TITLE);
32
mvwaddstr(w, 0, p->window.cols - utf8_width(buf), buf);
33
34
+ char flags[5];
35
flags[0] = 0;
36
if (status != NULL) {
37
if (mpd_status_get_repeat(status))
38
39
if (flags[0]) {
40
wmove(w, 1, p->window.cols - strlen(flags) - 3);
41
waddch(w, '[');
42
- colors_use(w, COLOR_LINE_BOLD);
43
+ colors_use(w, COLOR_LINE_FLAGS);
44
waddstr(w, flags);
45
colors_use(w, COLOR_LINE);
46
waddch(w, ']');
47
ncmpc-0.21.tar.bz2/src/utils.c -> ncmpc-0.24.tar.xz/src/utils.c
Changed
67
1
2
gcmp_list_from_path(struct mpdclient *c, const gchar *path,
3
GList *list, gint types)
4
{
5
- struct mpd_connection *connection;
6
- struct mpd_entity *entity;
7
-
8
- connection = mpdclient_get_connection(c);
9
+ struct mpd_connection *connection = mpdclient_get_connection(c);
10
if (connection == NULL)
11
return list;
12
13
mpd_send_list_meta(connection, path);
14
15
+ struct mpd_entity *entity;
16
while ((entity = mpd_recv_entity(connection)) != NULL) {
17
char *name;
18
19
20
void
21
format_duration_long(char *p, size_t length, unsigned long duration)
22
{
23
- const char *year = _("year");
24
- const char *years = _("years");
25
- const char *week = _("week");
26
- const char *weeks = _("weeks");
27
- const char *day = _("day");
28
- const char *days = _("days");
29
unsigned bytes_written = 0;
30
31
if (duration / 31536000 > 0) {
32
if (duration / 31536000 == 1)
33
- bytes_written = g_snprintf(p, length, "%d %s, ", 1, year);
34
+ bytes_written = g_snprintf(p, length, "%d %s, ", 1, _("year"));
35
else
36
- bytes_written = g_snprintf(p, length, "%lu %s, ", duration / 31536000, years);
37
+ bytes_written = g_snprintf(p, length, "%lu %s, ", duration / 31536000, _("years"));
38
duration %= 31536000;
39
length -= bytes_written;
40
p += bytes_written;
41
}
42
if (duration / 604800 > 0) {
43
if (duration / 604800 == 1)
44
- bytes_written = g_snprintf(p, length, "%d %s, ", 1, week);
45
+ bytes_written = g_snprintf(p, length, "%d %s, ",
46
+ 1, _("week"));
47
else
48
- bytes_written = g_snprintf(p, length, "%lu %s, ", duration / 604800, weeks);
49
+ bytes_written = g_snprintf(p, length, "%lu %s, ",
50
+ duration / 604800, _("weeks"));
51
duration %= 604800;
52
length -= bytes_written;
53
p += bytes_written;
54
}
55
if (duration / 86400 > 0) {
56
if (duration / 86400 == 1)
57
- bytes_written = g_snprintf(p, length, "%d %s, ", 1, day);
58
+ bytes_written = g_snprintf(p, length, "%d %s, ",
59
+ 1, _("day"));
60
else
61
- bytes_written = g_snprintf(p, length, "%lu %s, ", duration / 86400, days);
62
+ bytes_written = g_snprintf(p, length, "%lu %s, ",
63
+ duration / 86400, _("days"));
64
duration %= 86400;
65
length -= bytes_written;
66
p += bytes_written;
67
ncmpc-0.21.tar.bz2/src/wreadln.c -> ncmpc-0.24.tar.xz/src/wreadln.c
Changed
186
1
2
byte_to_screen(const gchar *data, size_t x)
3
{
4
#if defined(HAVE_CURSES_ENHANCED) || defined(ENABLE_MULTIBYTE)
5
- gchar *dup;
6
- char *p;
7
- unsigned width;
8
-
9
assert(x <= strlen(data));
10
11
- dup = g_strdup(data);
12
+ char *dup = g_strdup(data);
13
dup[x] = 0;
14
- p = replace_locale_to_utf8(dup);
15
+ char *p = replace_locale_to_utf8(dup);
16
17
- width = utf8_width(p);
18
+ unsigned width = utf8_width(p);
19
g_free(p);
20
21
return width;
22
23
#if defined(HAVE_CURSES_ENHANCED) || defined(ENABLE_MULTIBYTE)
24
size_t length = strlen(data);
25
gchar *dup = g_strdup(data);
26
- char *p;
27
- unsigned p_width;
28
29
while (true) {
30
dup[length] = 0;
31
- p = locale_to_utf8(dup);
32
- p_width = utf8_width(p);
33
+ char *p = locale_to_utf8(dup);
34
+ unsigned p_width = utf8_width(p);
35
g_free(p);
36
if (p_width <= width)
37
break;
38
39
while (dup[start] != 0) {
40
char *p = locale_to_utf8(dup + start), *q;
41
unsigned p_width = utf8_width(p);
42
- gunichar c;
43
44
if (p_width < width) {
45
g_free(p);
46
break;
47
}
48
49
- c = g_utf8_get_char(p);
50
+ gunichar c = g_utf8_get_char(p);
51
p[g_unichar_to_utf8(c, NULL)] = 0;
52
q = utf8_to_locale(p);
53
g_free(p);
54
55
{
56
#if defined(HAVE_CURSES_ENHANCED) || defined(ENABLE_MULTIBYTE)
57
char *p = locale_to_utf8(data), *q;
58
- gunichar c;
59
- size_t size;
60
61
- c = g_utf8_get_char(p);
62
+ gunichar c = g_utf8_get_char(p);
63
p[g_unichar_to_utf8(c, NULL)] = 0;
64
q = utf8_to_locale(p);
65
g_free(p);
66
67
- size = strlen(q);
68
+ size_t size = strlen(q);
69
g_free(q);
70
71
return size;
72
73
prev_char_size(const gchar *data, size_t x)
74
{
75
#if defined(HAVE_CURSES_ENHANCED) || defined(ENABLE_MULTIBYTE)
76
- char *p = locale_to_utf8(data), *q;
77
- gunichar c;
78
- size_t size;
79
-
80
assert(x > 0);
81
82
- q = p;
83
+ char *p = locale_to_utf8(data);
84
+
85
+ char *q = p;
86
while (true) {
87
- c = g_utf8_get_char(q);
88
- size = g_unichar_to_utf8(c, NULL);
89
+ gunichar c = g_utf8_get_char(q);
90
+ size_t size = g_unichar_to_utf8(c, NULL);
91
if (size > x)
92
size = x;
93
x -= size;
94
95
/* move the cursor one step to the right */
96
static inline void cursor_move_right(struct wreadln *wr)
97
{
98
- size_t size;
99
-
100
if (wr->line[wr->cursor] == 0)
101
return;
102
103
- size = next_char_size(wr->line + wr->cursor);
104
+ size_t size = next_char_size(wr->line + wr->cursor);
105
wr->cursor += size;
106
if (cursor_column(wr) >= wr->width)
107
wr->start = right_align_bytes(wr->line, wr->cursor, wr->width);
108
109
/* move the cursor one step to the left */
110
static inline void cursor_move_left(struct wreadln *wr)
111
{
112
- size_t size;
113
-
114
if (wr->cursor == 0)
115
return;
116
117
- size = prev_char_size(wr->line, wr->cursor);
118
+ size_t size = prev_char_size(wr->line, wr->cursor);
119
assert(wr->cursor >= size);
120
wr->cursor -= size;
121
if (wr->cursor < wr->start)
122
123
.fd = 0,
124
.events = POLLIN,
125
};
126
- int ret;
127
128
/* wide version: try to complete the multibyte sequence */
129
130
131
132
/* poll for more bytes on stdin, without timeout */
133
134
- ret = poll(&pfd, 1, 0);
135
- if (ret <= 0)
136
+ if (poll(&pfd, 1, 0) <= 0)
137
/* no more input from keyboard */
138
break;
139
140
141
static void
142
wreadln_delete_char(struct wreadln *wr, size_t x)
143
{
144
- size_t rest, length;
145
-
146
assert(x < strlen(wr->line));
147
148
- length = next_char_size(&wr->line[x]);
149
- rest = strlen(&wr->line[x + length]) + 1;
150
+ size_t length = next_char_size(&wr->line[x]);
151
+ size_t rest = strlen(&wr->line[x + length]) + 1;
152
memmove(&wr->line[x], &wr->line[x + length], rest);
153
}
154
155
156
.start = 0,
157
};
158
GList *hlist = NULL, *hcurrent = NULL;
159
- gint key = 0;
160
- size_t i;
161
162
#ifdef NCMPC_MINI
163
(void)gcmp;
164
165
drawline(&wr);
166
}
167
168
+ gint key = 0;
169
while (key != 13 && key != '\n') {
170
key = wgetch(w);
171
172
/* check if key is a function key */
173
- for (i = 0; i < 63; i++)
174
+ for (size_t i = 0; i < 63; i++)
175
if (key == (int)KEY_F(i)) {
176
key = KEY_F(1);
177
i = 64;
178
}
179
180
switch (key) {
181
+ size_t i;
182
+
183
#ifdef HAVE_GETMOUSE
184
case KEY_MOUSE: /* ignore mouse events */
185
#endif
186