aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--am/proctitle.m420
-rwxr-xr-xbootstrap1624
-rw-r--r--configure.ac25
m---------gnulib0
-rw-r--r--gnulib.modules2
m---------grecs0
-rw-r--r--src/pies.c8
-rw-r--r--src/pies.h4
-rw-r--r--tests/lines.c1
9 files changed, 1097 insertions, 587 deletions
diff --git a/am/proctitle.m4 b/am/proctitle.m4
index 3035efd..73afd87 100644
--- a/am/proctitle.m4
+++ b/am/proctitle.m4
@@ -23,12 +23,12 @@ AC_DEFUN([MF_PROCTITLE],[
23#define MF_PROCTITLE_PSTAT 3 23#define MF_PROCTITLE_PSTAT 3
24#define MF_PROCTITLE_PSSTRINGS 4 24#define MF_PROCTITLE_PSSTRINGS 4
25]) 25])
26 AC_SUBST(MF_PROCTITLE_LIBS) 26 AC_SUBST([MF_PROCTITLE_LIBS])
27 27
28 AC_TRY_LINK([extern char *__progname, *__progname_full;], 28 AC_LINK_IFELSE(
29 [__progname = "foo"; __progname_full = "foo bar";], 29 [AC_LANG_PROGRAM([[extern char *__progname, *__progname_full;]],
30 [AC_DEFINE(HAVE___PROGNAME, 1, 30 [[__progname = "foo"; __progname_full = "foo bar";]])],
31 [Define to 1 if libc has __progname])]) 31 [AC_DEFINE(HAVE___PROGNAME, 1, [Define to 1 if libc has __progname])])
32 32
33 mf_proctitle_type=no 33 mf_proctitle_type=no
34 AC_CHECK_FUNC(setproctitle, 34 AC_CHECK_FUNC(setproctitle,
@@ -44,9 +44,10 @@ AC_DEFUN([MF_PROCTITLE],[
44 [mf_proctitle_type=MF_PROCTITLE_PSTAT], 44 [mf_proctitle_type=MF_PROCTITLE_PSTAT],
45 [mf_proctitle_type=MF_PROCTITLE_REWRITE_ARGV])]) 45 [mf_proctitle_type=MF_PROCTITLE_REWRITE_ARGV])])
46 if test "$mf_proctitle_type" = no; then 46 if test "$mf_proctitle_type" = no; then
47 AC_TRY_COMPILE([#include <machine/vmparam.h> 47 AC_COMPILE_IFELSE(
48 #include <sys/exec.h>], 48 [AC_LANG_PROGRAM([[#include <machine/vmparam.h>
49 [ 49 #include <sys/exec.h>]],
50 [[
50#include <sys/types.h> 51#include <sys/types.h>
51#include <sys/proc.h> 52#include <sys/proc.h>
52#include <vm/pmap.h> 53#include <vm/pmap.h>
@@ -54,11 +55,12 @@ AC_DEFUN([MF_PROCTITLE],[
54#include <machine/vmparam.h> 55#include <machine/vmparam.h>
55#include <sys/exec.h> 56#include <sys/exec.h>
56 57
58int
57main() 59main()
58{ 60{
59 int i = PS_STRINGS; 61 int i = PS_STRINGS;
60} 62}
61], 63]])],
62 [mf_proctitle_type=MF_PROCTITLE_PSSTRINGS]) 64 [mf_proctitle_type=MF_PROCTITLE_PSSTRINGS])
63 65
64 if test "$mf_proctitle_type" = no; then 66 if test "$mf_proctitle_type" = no; then
diff --git a/bootstrap b/bootstrap
index e72894c..979b3af 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1,34 +1,67 @@
1#! /bin/sh 1#! /bin/sh
2# Print a version string. 2# DO NOT EDIT! GENERATED AUTOMATICALLY!
3scriptversion=2014-12-08.12; # UTC
4 3
5# Bootstrap this package from checked-out sources. 4# Bootstrap this package from checked-out sources.
6 5
7# Copyright (C) 2003-2015 Free Software Foundation, Inc. 6scriptversion=2023-08-29.21; # UTC
8 7
8# Copyright (C) 2003-2023 Free Software Foundation, Inc.
9#
9# This program is free software: you can redistribute it and/or modify 10# This program is free software: you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by 11# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation, either version 3 of the License, or 12# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version. 13# (at your option) any later version.
13 14#
14# This program is distributed in the hope that it will be useful, 15# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of 16# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details. 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 <https://www.gnu.org/licenses/>.
22
23# Originally written by Paul Eggert. The canonical version of this
24# script is maintained as top/bootstrap in gnulib. However, to be
25# useful to your package, you should place a copy of it under version
26# control in the top-level directory of your package. The intent is
27# that all customization can be done with a bootstrap.conf file also
28# maintained in your version control; gnulib comes with a template
29# build-aux/bootstrap.conf to get you started.
30
31# Please report bugs or propose patches to bug-gnulib@gnu.org.
18 32
33me="$0"
34medir=`dirname "$me"`
35
36# Read the function library and the configuration.
37
38# A library of shell functions for autopull.sh, autogen.sh, and bootstrap.
39
40scriptlibversion=2023-08-28.18; # UTC
41
42# Copyright (C) 2003-2023 Free Software Foundation, Inc.
43#
44# This program is free software: you can redistribute it and/or modify
45# it under the terms of the GNU General Public License as published by
46# the Free Software Foundation, either version 3 of the License, or
47# (at your option) any later version.
48#
49# This program is distributed in the hope that it will be useful,
50# but WITHOUT ANY WARRANTY; without even the implied warranty of
51# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
52# GNU General Public License for more details.
53#
19# You should have received a copy of the GNU General Public License 54# You should have received a copy of the GNU General Public License
20# along with this program. If not, see <http://www.gnu.org/licenses/>. 55# along with this program. If not, see <https://www.gnu.org/licenses/>.
21 56
22# Originally written by Paul Eggert. The canonical version of this 57# Originally written by Paul Eggert. The canonical version of this
23# script is maintained as build-aux/bootstrap in gnulib, however, to 58# script is maintained as top/bootstrap-funclib.sh in gnulib. However,
24# be useful to your project, you should place a copy of it under 59# to be useful to your package, you should place a copy of it under
25# version control in the top-level directory of your project. The 60# version control in the top-level directory of your package. The
26# intent is that all customization can be done with a bootstrap.conf 61# intent is that all customization can be done with a bootstrap.conf
27# file also maintained in your version control; gnulib comes with a 62# file also maintained in your version control; gnulib comes with a
28# template build-aux/bootstrap.conf to get you started. 63# template build-aux/bootstrap.conf to get you started.
29 64
30# Please report bugs or propose patches to bug-gnulib@gnu.org.
31
32nl=' 65nl='
33' 66'
34 67
@@ -36,49 +69,17 @@ nl='
36LC_ALL=C 69LC_ALL=C
37export LC_ALL 70export LC_ALL
38 71
39# Ensure that CDPATH is not set. Otherwise, the output from cd 72# Honor $PERL, but work even if there is none.
40# would cause trouble in at least one use below.
41(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42
43local_gl_dir=gl
44
45# Honour $PERL, but work even if there is none
46PERL="${PERL-perl}" 73PERL="${PERL-perl}"
47 74
48me=$0 75default_gnulib_url=https://git.savannah.gnu.org/git/gnulib.git
49 76
50usage() { 77# Copyright year, for the --version output.
51 cat <<EOF 78copyright_year=`echo "$scriptlibversion" | sed -e 's/[^0-9].*//'`
52Usage: $me [OPTION]... 79copyright="Copyright (C) ${copyright_year} Free Software Foundation, Inc.
53Bootstrap this package from the checked-out sources. 80License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
54 81This is free software: you are free to change and redistribute it.
55Options: 82There is NO WARRANTY, to the extent permitted by law."
56 --gnulib-srcdir=DIRNAME specify the local directory where gnulib
57 sources reside. Use this if you already
58 have gnulib sources on your machine, and
59 do not want to waste your bandwidth downloading
60 them again. Defaults to \$GNULIB_SRCDIR
61 --bootstrap-sync if this bootstrap script is not identical to
62 the version in the local gnulib sources,
63 update this script, and then restart it with
64 /bin/sh or the shell \$CONFIG_SHELL
65 --no-bootstrap-sync do not check whether bootstrap is out of sync
66 --copy copy files instead of creating symbolic links
67 --force attempt to bootstrap even if the sources seem
68 not to have been checked out
69 --no-git do not use git to update gnulib. Requires that
70 --gnulib-srcdir point to a correct gnulib snapshot
71 --skip-po do not download po files
72
73If the file $me.conf exists in the same directory as this script, its
74contents are read as shell variables to configure the bootstrap.
75
76For build prerequisites, environment variables like \$AUTOCONF and \$AMTAR
77are honored.
78
79Running without arguments will suffice in most cases.
80EOF
81}
82 83
83# warnf_ FORMAT-STRING ARG1... 84# warnf_ FORMAT-STRING ARG1...
84warnf_ () 85warnf_ ()
@@ -107,9 +108,13 @@ warn_ ()
107# die WORD1... 108# die WORD1...
108die() { warn_ "$@"; exit 1; } 109die() { warn_ "$@"; exit 1; }
109 110
110# Configuration. 111# ------------------------------ Configuration. ------------------------------
112
113# Directory that contains package-specific gnulib modules and/or overrides.
114local_gl_dir=gl
111 115
112# Name of the Makefile.am 116# Name of the Makefile.am
117# XXX Not used.
113gnulib_mk=gnulib.mk 118gnulib_mk=gnulib.mk
114 119
115# List of gnulib modules needed. 120# List of gnulib modules needed.
@@ -118,8 +123,19 @@ gnulib_modules=
118# Any gnulib files needed that are not in modules. 123# Any gnulib files needed that are not in modules.
119gnulib_files= 124gnulib_files=
120 125
121: ${AUTOPOINT=autopoint} 126# A function to be called for each unrecognized option. Returns 0 if
122: ${AUTORECONF=autoreconf} 127# the option in $1 has been processed by the function. Returns 1 if
128# the option has not been processed by the function. Override it via
129# your own definition in bootstrap.conf
130bootstrap_option_hook() { return 1; }
131
132# A function to be called in order to print the --help information
133# corresponding to user-defined command-line options.
134bootstrap_print_option_usage_hook() { :; }
135<