Merge ~paelzer/ubuntu/+source/libseccomp:fix-ftbfs-1849785-focal into ubuntu/+source/libseccomp:debian/sid

Proposed by Christian Ehrhardt 
Status: Superseded
Proposed branch: ~paelzer/ubuntu/+source/libseccomp:fix-ftbfs-1849785-focal
Merge into: ubuntu/+source/libseccomp:debian/sid
Diff against target: 11229 lines (+7153/-0) (has conflicts)
50 files modified
CHANGELOG (+14/-0)
CREDITS (+9/-0)
Makefile.am (+4/-0)
Makefile.in (+4/-0)
README.md (+4/-0)
SECURITY.md (+45/-0)
build-aux/config.guess (+122/-0)
build-aux/config.sub (+1654/-0)
build-aux/ltmain.sh (+554/-0)
configure (+159/-0)
configure.ac (+9/-0)
debian/changelog (+15/-0)
debian/control (+5/-0)
debian/patches/series (+4/-0)
debian/patches/tests-rely-on-__SNR_xxx-instead-of-__NR_xxx-for-sysc.patch (+47/-0)
debian/rules (+10/-0)
include/Makefile.am (+4/-0)
include/Makefile.in (+4/-0)
include/seccomp-syscalls.h (+2292/-0)
include/seccomp.h (+16/-0)
include/seccomp.h.in (+12/-0)
m4/libtool.m4 (+115/-0)
m4/ltoptions.m4 (+4/-0)
m4/ltsugar.m4 (+4/-0)
m4/ltversion.m4 (+16/-0)
m4/lt~obsolete.m4 (+4/-0)
src/arch-aarch64-syscalls.c (+106/-0)
src/arch-arm-syscalls.c (+106/-0)
src/arch-mips-syscalls.c (+115/-0)
src/arch-mips64-syscalls.c (+98/-0)
src/arch-mips64n32-syscalls.c (+98/-0)
src/arch-parisc-syscalls.c (+99/-0)
src/arch-ppc-syscalls.c (+115/-0)
src/arch-ppc64-syscalls.c (+115/-0)
src/arch-s390-syscalls.c (+120/-0)
src/arch-s390.c (+171/-0)
src/arch-s390x-syscalls.c (+120/-0)
src/arch-s390x.c (+172/-0)
src/arch-x32-syscalls.c (+98/-0)
src/arch-x86-syscalls.c (+175/-0)
src/arch-x86.c (+174/-0)
src/arch-x86_64-syscalls.c (+98/-0)
src/db.c (+4/-0)
src/python/Makefile.am (+9/-0)
src/python/Makefile.in (+9/-0)
src/python/seccomp.pyx (+5/-0)
tools/Makefile.am (+3/-0)
tools/Makefile.in (+4/-0)
tools/check-syntax (+4/-0)
tools/scmp_bpf_sim.c (+5/-0)
Conflict in CHANGELOG
Conflict in CREDITS
Conflict in Makefile.am
Conflict in Makefile.in
Conflict in README.md
Conflict in build-aux/config.guess
Conflict in build-aux/config.sub
Conflict in build-aux/ltmain.sh
Conflict in configure
Conflict in configure.ac
Conflict in debian/changelog
Conflict in debian/control
Conflict in debian/patches/series
Conflict in debian/rules
Conflict in include/Makefile.am
Conflict in include/Makefile.in
Conflict in include/seccomp.h
Conflict in include/seccomp.h.in
Conflict in m4/libtool.m4
Conflict in m4/ltoptions.m4
Conflict in m4/ltsugar.m4
Conflict in m4/ltversion.m4
Conflict in m4/lt~obsolete.m4
Conflict in src/arch-aarch64-syscalls.c
Conflict in src/arch-arm-syscalls.c
Conflict in src/arch-mips-syscalls.c
Conflict in src/arch-mips64-syscalls.c
Conflict in src/arch-mips64n32-syscalls.c
Conflict in src/arch-parisc-syscalls.c
Conflict in src/arch-ppc-syscalls.c
Conflict in src/arch-ppc64-syscalls.c
Conflict in src/arch-s390-syscalls.c
Conflict in src/arch-s390.c
Conflict in src/arch-s390x-syscalls.c
Conflict in src/arch-s390x.c
Conflict in src/arch-x32-syscalls.c
Conflict in src/arch-x86-syscalls.c
Conflict in src/arch-x86.c
Conflict in src/arch-x86_64-syscalls.c
Conflict in src/db.c
Conflict in src/python/Makefile.am
Conflict in src/python/Makefile.in
Conflict in src/python/seccomp.pyx
Conflict in tools/Makefile.am
Conflict in tools/Makefile.in
Conflict in tools/check-syntax
Conflict in tools/scmp_bpf_sim.c
Reviewer Review Type Date Requested Status
Canonical Server packageset reviewers Pending
Canonical Server Pending
git-ubuntu developers Pending
Review via email: mp+375205@code.launchpad.net

This proposal has been superseded by a proposal from 2019-11-12.

To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

This is a bit odd in git-ubuntu.
As part of the python transition this was already made a sync [1] in Focal (by I guess doko).

But due to that being FTBFS it never entered proposed so far.
Due to that git-ubuntu is on 2.4.1-2 while rmadison and co report 2.4.1-0ubuntu0.19.10.3.

Build test PPA is at: https://launchpad.net/~paelzer/+archive/ubuntu/bug-1849785-libseccomp-ftbfs

[1]: https://launchpad.net/ubuntu/+source/libseccomp/2.4.1-2

1af91f9... by Christian Ehrhardt 

New upstream version 2.4.2

8449cbb... by Christian Ehrhardt 

debian/changelog: New upstream release 2.4.2 (LP: #1849785)

Signed-off-by: Christian Ehrhardt <email address hidden>

01624a7... by Christian Ehrhardt 

drop d/p/python_install_dir.patch (now upstream)

Signed-off-by: Christian Ehrhardt <email address hidden>

37d1514... by Christian Ehrhardt 

d/rules: python 3.8 includes lack the m modifier (https://wiki.debian.org/Python/Python3.8)

Signed-off-by: Christian Ehrhardt <email address hidden>

4c863f2... by Christian Ehrhardt 

update-maintainer

Signed-off-by: Christian Ehrhardt <email address hidden>

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Interim Report:
- Fixed to get new upstream 2.4.2 (fixing old kernel header issue)
- Then Fixed to support python 3.8 which changed imports.
- ATM remaining is an arm breakage around __NR_open being missing.

56e3b9d... by Christian Ehrhardt 

d/p/tests-rely-on-__SNR_xxx-instead-of-__NR_xxx-for-sysc.patch: fix build time test on arm64

Signed-off-by: Christian Ehrhardt <email address hidden>

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

The above commit fixed the arm64 build time test

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

FYI Debian MP to get it in there as well:
=> https://salsa.debian.org/debian/libseccomp/merge_requests/1

Hopefully they like my MP there and we can soon sync this again.
We might even consider waiting a few days to not do the extra found of uploading this just to sync it.
But a timely review would be nice still to be ready to upload as-needed.

Unmerged commits

4c863f2... by Christian Ehrhardt 

update-maintainer

Signed-off-by: Christian Ehrhardt <email address hidden>

8449cbb... by Christian Ehrhardt 

debian/changelog: New upstream release 2.4.2 (LP: #1849785)

Signed-off-by: Christian Ehrhardt <email address hidden>

56e3b9d... by Christian Ehrhardt 

d/p/tests-rely-on-__SNR_xxx-instead-of-__NR_xxx-for-sysc.patch: fix build time test on arm64

Signed-off-by: Christian Ehrhardt <email address hidden>

37d1514... by Christian Ehrhardt 

d/rules: python 3.8 includes lack the m modifier (https://wiki.debian.org/Python/Python3.8)

Signed-off-by: Christian Ehrhardt <email address hidden>

01624a7... by Christian Ehrhardt 

drop d/p/python_install_dir.patch (now upstream)

Signed-off-by: Christian Ehrhardt <email address hidden>

1af91f9... by Christian Ehrhardt 

New upstream version 2.4.2

72a1ca2... by Felix Geyer

Release to unstable.

e169c18... by Felix Geyer

Set Rules-Requires-Root: no.

197edee... by Felix Geyer

Remove build-dependency on valgrind for mipsel and x32 as it's broken on those archs.

2d61f3d... by Felix Geyer

Release to unstable.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/CHANGELOG b/CHANGELOG
index a65bc5b..e1a732c 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,20 @@ libseccomp: Releases
2===============================================================================2===============================================================================
3https://github.com/seccomp/libseccomp3https://github.com/seccomp/libseccomp
44
5<<<<<<< CHANGELOG
6=======
7* Version 2.4.2 - November 7, 2019
8- Update the syscall table for Linux v5.4-rc4
9- Stop defining __NR_x values for syscalls that don't exist. Libseccomp
10 now uses __SNR_x internally
11- Update the Cython language level to "3str"
12- Add support for io-uring related system calls
13- Clarify the maintainer documentation and release process
14- Fix python module name issue introduced in the v2.4.0 release. The module
15 is now named "seccomp" as it was previously
16- Deliver the SECURITY.md file in releases
17
18>>>>>>> CHANGELOG
5* Version 2.4.1 - April 17, 201919* Version 2.4.1 - April 17, 2019
6- Fix a BPF generation bug where the optimizer mistakenly identified duplicate20- Fix a BPF generation bug where the optimizer mistakenly identified duplicate
7 BPF code blocks21 BPF code blocks
diff --git a/CREDITS b/CREDITS
index 2be42d9..fc6e203 100644
--- a/CREDITS
+++ b/CREDITS
@@ -13,6 +13,10 @@ David Drysdale <drysdale@google.com>
13Eduardo Otubo <otubo@linux.vnet.ibm.com>13Eduardo Otubo <otubo@linux.vnet.ibm.com>
14Eric Paris <eparis@redhat.com>14Eric Paris <eparis@redhat.com>
15Felix Abecassis <fabecassis@nvidia.com>15Felix Abecassis <fabecassis@nvidia.com>
16<<<<<<< CREDITS
17=======
18Felix Geyer <debfx@fobos.de>
19>>>>>>> CREDITS
16Heiko Carstens <heiko.carstens@de.ibm.com>20Heiko Carstens <heiko.carstens@de.ibm.com>
17Helge Deller <deller@gmx.de>21Helge Deller <deller@gmx.de>
18Jake Edge <jake@lwn.net>22Jake Edge <jake@lwn.net>
@@ -35,6 +39,11 @@ Mike Frysinger <vapier@gentoo.org>
35Mike Strosaker <strosake@linux.vnet.ibm.com>39Mike Strosaker <strosake@linux.vnet.ibm.com>
36Paul Moore <paul@paul-moore.com>40Paul Moore <paul@paul-moore.com>
37Serge Hallyn <serge.hallyn@ubuntu.com>41Serge Hallyn <serge.hallyn@ubuntu.com>
42<<<<<<< CREDITS
43=======
44Stéphane Graber <stgraber@ubuntu.com>
45Stephen Coleman <omegacoleman@gmail.com>
46>>>>>>> CREDITS
38Thiago Marcos P. Santos <thiago.santos@intel.com>47Thiago Marcos P. Santos <thiago.santos@intel.com>
39Tobias Klauser <tklauser@distanz.ch>48Tobias Klauser <tklauser@distanz.ch>
40Tom Hromatka <tom.hromatka@oracle.com>49Tom Hromatka <tom.hromatka@oracle.com>
diff --git a/Makefile.am b/Makefile.am
index b69cec5..dbc974d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,7 +24,11 @@ pkgconf_DATA = libseccomp.pc
2424
25EXTRA_DIST = \25EXTRA_DIST = \
26 CHANGELOG CREDITS LICENSE \26 CHANGELOG CREDITS LICENSE \
27<<<<<<< Makefile.am
27 README.md CONTRIBUTING.md RELEASE_PROCESS.md28 README.md CONTRIBUTING.md RELEASE_PROCESS.md
29=======
30 README.md CONTRIBUTING.md SECURITY.md
31>>>>>>> Makefile.am
2832
29# support silent builds33# support silent builds
30AM_MAKEFLAGS_0 = --quiet --no-print-directory34AM_MAKEFLAGS_0 = --quiet --no-print-directory
diff --git a/Makefile.in b/Makefile.in
index a9b4f40..b462964 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -407,7 +407,11 @@ pkgconfdir = ${libdir}/pkgconfig
407pkgconf_DATA = libseccomp.pc407pkgconf_DATA = libseccomp.pc
408EXTRA_DIST = \408EXTRA_DIST = \
409 CHANGELOG CREDITS LICENSE \409 CHANGELOG CREDITS LICENSE \
410<<<<<<< Makefile.in
410 README.md CONTRIBUTING.md RELEASE_PROCESS.md411 README.md CONTRIBUTING.md RELEASE_PROCESS.md
412=======
413 README.md CONTRIBUTING.md SECURITY.md
414>>>>>>> Makefile.in
411415
412416
413# support silent builds417# support silent builds
diff --git a/README.md b/README.md
index cf67e47..953d315 100644
--- a/README.md
+++ b/README.md
@@ -110,4 +110,8 @@ these tools are installed by default.
110110
111Problems with the libseccomp library can be reported using the GitHub issue111Problems with the libseccomp library can be reported using the GitHub issue
112tracking system or the mailing list. Those who wish to privately report112tracking system or the mailing list. Those who wish to privately report
113<<<<<<< README.md
113potential vulnerabilities can send mail to paul@paul-moore.com.114potential vulnerabilities can send mail to paul@paul-moore.com.
115=======
116potential vulnerabilities should follow the directions in SECURITY.md.
117>>>>>>> README.md
diff --git a/SECURITY.md b/SECURITY.md
114new file mode 100644118new file mode 100644
index 0000000..3a173cc
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,45 @@
1The libseccomp Security Vulnerability Handling Process
2===============================================================================
3https://github.com/seccomp/libseccomp
4
5This document document attempts to describe the processes through which
6sensitive security relevant bugs can be responsibly disclosed to the libseccomp
7project and how the project maintainers should handle these reports. Just like
8the other libseccomp process documents, this document should be treated as a
9guiding document and not a hard, unyielding set of regulations; the bug
10reporters and project maintainers are encouraged to work together to address
11the issues as best they can, in a manner which works best for all parties
12involved.
13
14### Reporting Problems
15
16Problems with the libseccomp library that are not suitable for immediate public
17disclosure should be emailed to the current libseccomp maintainers, the list is
18below. We typically request at most a 90 day time period to address the issue
19before it is made public, but we will make every effort to address the issue as
20quickly as possible and shorten the disclosure window.
21
22* Paul Moore, paul@paul-moore.com
23* Tom Hromatka, tom.hromatka@oracle.com
24
25### Resolving Sensitive Security Issues
26
27Upon disclosure of a bug, the maintainers should work together to investigate
28the problem and decide on a solution. In order to prevent an early disclosure
29of the problem, those working on the solution should do so privately and
30outside of the traditional libseccomp development practices. One possible
31solution to this is to leverage the GitHub "Security" functionality to create a
32private development fork that can be shared among the maintainers, and
33optionally the reporter. A placeholder GitHub issue may be created, but
34details should remain extremely limited until such time as the problem has been
35fixed and responsibly disclosed. If a CVE, or other tag, has been assigned to
36the problem, the GitHub issue title should include the vulnerability tag once
37the problem has been disclosed.
38
39### Public Disclosure
40
41Whenever possible, responsible reporting and patching practices should be
42followed, including notification to the linux-distros and oss-security mailing
43lists.
44
45* https://oss-security.openwall.org/wiki/mailing-lists/distros
diff --git a/build-aux/config.guess b/build-aux/config.guess
index 256083a..e686b38 100755
--- a/build-aux/config.guess
+++ b/build-aux/config.guess
@@ -2,7 +2,11 @@
2# Attempt to guess a canonical system name.2# Attempt to guess a canonical system name.
3# Copyright 1992-2018 Free Software Foundation, Inc.3# Copyright 1992-2018 Free Software Foundation, Inc.
44
5<<<<<<< build-aux/config.guess
5timestamp='2018-03-08'6timestamp='2018-03-08'
7=======
8timestamp='2018-08-29'
9>>>>>>> build-aux/config.guess
610
7# This file is free software; you can redistribute it and/or modify it11# This file is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License as published by12# under the terms of the GNU General Public License as published by
@@ -84,8 +88,11 @@ if test $# != 0; then
84 exit 188 exit 1
85fi89fi
8690
91<<<<<<< build-aux/config.guess
87trap 'exit 1' 1 2 1592trap 'exit 1' 1 2 15
8893
94=======
95>>>>>>> build-aux/config.guess
89# CC_FOR_BUILD -- compiler used by this script. Note that the use of a96# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
90# compiler to aid in system detection is discouraged as it requires97# compiler to aid in system detection is discouraged as it requires
91# temporary files to be created and, as you can see below, it is a98# temporary files to be created and, as you can see below, it is a
@@ -96,6 +103,7 @@ trap 'exit 1' 1 2 15
96103
97# Portable tmp directory creation inspired by the Autoconf team.104# Portable tmp directory creation inspired by the Autoconf team.
98105
106<<<<<<< build-aux/config.guess
99set_cc_for_build='107set_cc_for_build='
100trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;108trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
101trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;109trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
@@ -124,6 +132,41 @@ esac ; set_cc_for_build= ;'
124# This is needed to find uname on a Pyramid OSx when run in the BSD universe.132# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
125# (ghazi@noc.rutgers.edu 1994-08-24)133# (ghazi@noc.rutgers.edu 1994-08-24)
126if (test -f /.attbin/uname) >/dev/null 2>&1 ; then134if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
135=======
136tmp=
137# shellcheck disable=SC2172
138trap 'test -z "$tmp" || rm -fr "$tmp"' 1 2 13 15
139trap 'exitcode=$?; test -z "$tmp" || rm -fr "$tmp"; exit $exitcode' 0
140
141set_cc_for_build() {
142 : "${TMPDIR=/tmp}"
143 # shellcheck disable=SC2039
144 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
145 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
146 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
147 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
148 dummy=$tmp/dummy
149 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
150 ,,) echo "int x;" > "$dummy.c"
151 for driver in cc gcc c89 c99 ; do
152 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
153 CC_FOR_BUILD="$driver"
154 break
155 fi
156 done
157 if test x"$CC_FOR_BUILD" = x ; then
158 CC_FOR_BUILD=no_compiler_found
159 fi
160 ;;
161 ,,*) CC_FOR_BUILD=$CC ;;
162 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
163 esac
164}
165
166# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
167# (ghazi@noc.rutgers.edu 1994-08-24)
168if test -f /.attbin/uname ; then
169>>>>>>> build-aux/config.guess
127 PATH=$PATH:/.attbin ; export PATH170 PATH=$PATH:/.attbin ; export PATH
128fi171fi
129172
@@ -138,7 +181,11 @@ Linux|GNU|GNU/*)
138 # We could probably try harder.181 # We could probably try harder.
139 LIBC=gnu182 LIBC=gnu
140183
184<<<<<<< build-aux/config.guess
141 eval "$set_cc_for_build"185 eval "$set_cc_for_build"
186=======
187 set_cc_for_build
188>>>>>>> build-aux/config.guess
142 cat <<-EOF > "$dummy.c"189 cat <<-EOF > "$dummy.c"
143 #include <features.h>190 #include <features.h>
144 #if defined(__UCLIBC__)191 #if defined(__UCLIBC__)
@@ -199,7 +246,11 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
199 os=netbsdelf246 os=netbsdelf
200 ;;247 ;;
201 arm*|i386|m68k|ns32k|sh3*|sparc|vax)248 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
249<<<<<<< build-aux/config.guess
202 eval "$set_cc_for_build"250 eval "$set_cc_for_build"
251=======
252 set_cc_for_build
253>>>>>>> build-aux/config.guess
203 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \254 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
204 | grep -q __ELF__255 | grep -q __ELF__
205 then256 then
@@ -237,7 +288,11 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
237 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:288 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
238 # contains redundant information, the shorter form:289 # contains redundant information, the shorter form:
239 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.290 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
291<<<<<<< build-aux/config.guess
240 echo "$machine-${os}${release}${abi}"292 echo "$machine-${os}${release}${abi}"
293=======
294 echo "$machine-${os}${release}${abi-}"
295>>>>>>> build-aux/config.guess
241 exit ;;296 exit ;;
242 *:Bitrig:*:*)297 *:Bitrig:*:*)
243 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`298 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
@@ -389,6 +444,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
389 echo i386-pc-auroraux"$UNAME_RELEASE"444 echo i386-pc-auroraux"$UNAME_RELEASE"
390 exit ;;445 exit ;;
391 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)446 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
447<<<<<<< build-aux/config.guess
392 eval "$set_cc_for_build"448 eval "$set_cc_for_build"
393 SUN_ARCH=i386449 SUN_ARCH=i386
394 # If there is a compiler, see if it is configured for 64-bit objects.450 # If there is a compiler, see if it is configured for 64-bit objects.
@@ -403,6 +459,17 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
403 fi459 fi
404 fi460 fi
405 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"461 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
462=======
463 UNAME_REL="`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
464 case `isainfo -b` in
465 32)
466 echo i386-pc-solaris2"$UNAME_REL"
467 ;;
468 64)
469 echo x86_64-pc-solaris2"$UNAME_REL"
470 ;;
471 esac
472>>>>>>> build-aux/config.guess
406 exit ;;473 exit ;;
407 sun4*:SunOS:6*:*)474 sun4*:SunOS:6*:*)
408 # According to config.sub, this is the proper way to canonicalize475 # According to config.sub, this is the proper way to canonicalize
@@ -482,7 +549,11 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
482 echo clipper-intergraph-clix"$UNAME_RELEASE"549 echo clipper-intergraph-clix"$UNAME_RELEASE"
483 exit ;;550 exit ;;
484 mips:*:*:UMIPS | mips:*:*:RISCos)551 mips:*:*:UMIPS | mips:*:*:RISCos)
552<<<<<<< build-aux/config.guess
485 eval "$set_cc_for_build"553 eval "$set_cc_for_build"
554=======
555 set_cc_for_build
556>>>>>>> build-aux/config.guess
486 sed 's/^ //' << EOF > "$dummy.c"557 sed 's/^ //' << EOF > "$dummy.c"
487#ifdef __cplusplus558#ifdef __cplusplus
488#include <stdio.h> /* for printf() prototype */559#include <stdio.h> /* for printf() prototype */
@@ -579,7 +650,11 @@ EOF
579 exit ;;650 exit ;;
580 *:AIX:2:3)651 *:AIX:2:3)
581 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then652 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
653<<<<<<< build-aux/config.guess
582 eval "$set_cc_for_build"654 eval "$set_cc_for_build"
655=======
656 set_cc_for_build
657>>>>>>> build-aux/config.guess
583 sed 's/^ //' << EOF > "$dummy.c"658 sed 's/^ //' << EOF > "$dummy.c"
584 #include <sys/systemcfg.h>659 #include <sys/systemcfg.h>
585660
@@ -660,7 +735,11 @@ EOF
660 esac735 esac
661 fi736 fi
662 if [ "$HP_ARCH" = "" ]; then737 if [ "$HP_ARCH" = "" ]; then
738<<<<<<< build-aux/config.guess
663 eval "$set_cc_for_build"739 eval "$set_cc_for_build"
740=======
741 set_cc_for_build
742>>>>>>> build-aux/config.guess
664 sed 's/^ //' << EOF > "$dummy.c"743 sed 's/^ //' << EOF > "$dummy.c"
665744
666 #define _HPUX_SOURCE745 #define _HPUX_SOURCE
@@ -700,7 +779,11 @@ EOF
700 esac779 esac
701 if [ "$HP_ARCH" = hppa2.0w ]780 if [ "$HP_ARCH" = hppa2.0w ]
702 then781 then
782<<<<<<< build-aux/config.guess
703 eval "$set_cc_for_build"783 eval "$set_cc_for_build"
784=======
785 set_cc_for_build
786>>>>>>> build-aux/config.guess
704787
705 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating788 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
706 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler789 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
@@ -726,7 +809,11 @@ EOF
726 echo ia64-hp-hpux"$HPUX_REV"809 echo ia64-hp-hpux"$HPUX_REV"
727 exit ;;810 exit ;;
728 3050*:HI-UX:*:*)811 3050*:HI-UX:*:*)
812<<<<<<< build-aux/config.guess
729 eval "$set_cc_for_build"813 eval "$set_cc_for_build"
814=======
815 set_cc_for_build
816>>>>>>> build-aux/config.guess
730 sed 's/^ //' << EOF > "$dummy.c"817 sed 's/^ //' << EOF > "$dummy.c"
731 #include <unistd.h>818 #include <unistd.h>
732 int819 int
@@ -840,6 +927,20 @@ EOF
840 *:BSD/OS:*:*)927 *:BSD/OS:*:*)
841 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"928 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
842 exit ;;929 exit ;;
930<<<<<<< build-aux/config.guess
931=======
932 arm:FreeBSD:*:*)
933 UNAME_PROCESSOR=`uname -p`
934 set_cc_for_build
935 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
936 | grep -q __ARM_PCS_VFP
937 then
938 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi
939 else
940 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf
941 fi
942 exit ;;
943>>>>>>> build-aux/config.guess
843 *:FreeBSD:*:*)944 *:FreeBSD:*:*)
844 UNAME_PROCESSOR=`/usr/bin/uname -p`945 UNAME_PROCESSOR=`/usr/bin/uname -p`
845 case "$UNAME_PROCESSOR" in946 case "$UNAME_PROCESSOR" in
@@ -894,8 +995,13 @@ EOF
894 # other systems with GNU libc and userland995 # other systems with GNU libc and userland
895 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"996 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
896 exit ;;997 exit ;;
998<<<<<<< build-aux/config.guess
897 i*86:Minix:*:*)999 i*86:Minix:*:*)
898 echo "$UNAME_MACHINE"-pc-minix1000 echo "$UNAME_MACHINE"-pc-minix
1001=======
1002 *:Minix:*:*)
1003 echo "$UNAME_MACHINE"-unknown-minix
1004>>>>>>> build-aux/config.guess
899 exit ;;1005 exit ;;
900 aarch64:Linux:*:*)1006 aarch64:Linux:*:*)
901 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1007 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
@@ -922,7 +1028,11 @@ EOF
922 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1028 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
923 exit ;;1029 exit ;;
924 arm*:Linux:*:*)1030 arm*:Linux:*:*)
1031<<<<<<< build-aux/config.guess
925 eval "$set_cc_for_build"1032 eval "$set_cc_for_build"
1033=======
1034 set_cc_for_build
1035>>>>>>> build-aux/config.guess
926 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \1036 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
927 | grep -q __ARM_EABI__1037 | grep -q __ARM_EABI__
928 then1038 then
@@ -971,7 +1081,11 @@ EOF
971 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1081 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
972 exit ;;1082 exit ;;
973 mips:Linux:*:* | mips64:Linux:*:*)1083 mips:Linux:*:* | mips64:Linux:*:*)
1084<<<<<<< build-aux/config.guess
974 eval "$set_cc_for_build"1085 eval "$set_cc_for_build"
1086=======
1087 set_cc_for_build
1088>>>>>>> build-aux/config.guess
975 sed 's/^ //' << EOF > "$dummy.c"1089 sed 's/^ //' << EOF > "$dummy.c"
976 #undef CPU1090 #undef CPU
977 #undef ${UNAME_MACHINE}1091 #undef ${UNAME_MACHINE}
@@ -1285,7 +1399,11 @@ EOF
1285 exit ;;1399 exit ;;
1286 *:Darwin:*:*)1400 *:Darwin:*:*)
1287 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown1401 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1402<<<<<<< build-aux/config.guess
1288 eval "$set_cc_for_build"1403 eval "$set_cc_for_build"
1404=======
1405 set_cc_for_build
1406>>>>>>> build-aux/config.guess
1289 if test "$UNAME_PROCESSOR" = unknown ; then1407 if test "$UNAME_PROCESSOR" = unknown ; then
1290 UNAME_PROCESSOR=powerpc1408 UNAME_PROCESSOR=powerpc
1291 fi1409 fi
@@ -1358,6 +1476,10 @@ EOF
1358 # "uname -m" is not consistent, so use $cputype instead. 3861476 # "uname -m" is not consistent, so use $cputype instead. 386
1359 # is converted to i386 for consistency with other x861477 # is converted to i386 for consistency with other x86
1360 # operating systems.1478 # operating systems.
1479<<<<<<< build-aux/config.guess
1480=======
1481 # shellcheck disable=SC2154
1482>>>>>>> build-aux/config.guess
1361 if test "$cputype" = 386; then1483 if test "$cputype" = 386; then
1362 UNAME_MACHINE=i3861484 UNAME_MACHINE=i386
1363 else1485 else
diff --git a/build-aux/config.sub b/build-aux/config.sub
index 9ccf09a..d712ba5 100755
--- a/build-aux/config.sub
+++ b/build-aux/config.sub
@@ -2,7 +2,11 @@
2# Configuration validation subroutine script.2# Configuration validation subroutine script.
3# Copyright 1992-2018 Free Software Foundation, Inc.3# Copyright 1992-2018 Free Software Foundation, Inc.
44
5<<<<<<< build-aux/config.sub
5timestamp='2018-03-08'6timestamp='2018-03-08'
7=======
8timestamp='2018-08-29'
9>>>>>>> build-aux/config.sub
610
7# This file is free software; you can redistribute it and/or modify it11# This file is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License as published by12# under the terms of the GNU General Public License as published by
@@ -110,6 +114,7 @@ case $# in
110 exit 1;;114 exit 1;;
111esac115esac
112116
117<<<<<<< build-aux/config.sub
113# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).118# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
114# Here we must recognize all the valid KERNEL-OS combinations.119# Here we must recognize all the valid KERNEL-OS combinations.
115maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`120maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
@@ -1317,16 +1322,1170 @@ case $basic_machine in
1317 *)1322 *)
1318 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&21323 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
1319 exit 11324 exit 1
1325=======
1326# Split fields of configuration type
1327IFS="-" read -r field1 field2 field3 field4 <<EOF
1328$1
1329EOF
1330
1331# Separate into logical components for further validation
1332case $1 in
1333 *-*-*-*-*)
1334 echo Invalid configuration \`"$1"\': more than four components >&2
1335 exit 1
1336 ;;
1337 *-*-*-*)
1338 basic_machine=$field1-$field2
1339 os=$field3-$field4
1340 ;;
1341 *-*-*)
1342 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
1343 # parts
1344 maybe_os=$field2-$field3
1345 case $maybe_os in
1346 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \
1347 | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \
1348 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
1349 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
1350 | storm-chaos* | os2-emx* | rtmk-nova*)
1351 basic_machine=$field1
1352 os=$maybe_os
1353 ;;
1354 android-linux)
1355 basic_machine=$field1-unknown
1356 os=linux-android
1357 ;;
1358 *)
1359 basic_machine=$field1-$field2
1360 os=$field3
1361 ;;
1362 esac
1363 ;;
1364 *-*)
1365 # A lone config we happen to match not fitting any patern
1366 case $field1-$field2 in
1367 decstation-3100)
1368 basic_machine=mips-dec
1369 os=
1370 ;;
1371 *-*)
1372 # Second component is usually, but not always the OS
1373 case $field2 in
1374 # Prevent following clause from handling this valid os
1375 sun*os*)
1376 basic_machine=$field1
1377 os=$field2
1378 ;;
1379 # Manufacturers
1380 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
1381 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
1382 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
1383 | convergent* | ncr* | news | 32* | 3600* | 3100* \
1384 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
1385 | ultra | tti* | harris | dolphin | highlevel | gould \
1386 | cbm | ns | masscomp | apple | axis | knuth | cray \
1387 | microblaze* | sim | cisco \
1388 | oki | wec | wrs | winbond)
1389 basic_machine=$field1-$field2
1390 os=
1391 ;;
1392 *)
1393 basic_machine=$field1
1394 os=$field2
1395 ;;
1396 esac
1397 ;;
1398 esac
1399 ;;
1400 *)
1401 # Convert single-component short-hands not valid as part of
1402 # multi-component configurations.
1403 case $field1 in
1404 386bsd)
1405 basic_machine=i386-pc
1406 os=bsd
1407 ;;
1408 a29khif)
1409 basic_machine=a29k-amd
1410 os=udi
1411 ;;
1412 adobe68k)
1413 basic_machine=m68010-adobe
1414 os=scout
1415 ;;
1416 alliant)
1417 basic_machine=fx80-alliant
1418 os=
1419 ;;
1420 altos | altos3068)
1421 basic_machine=m68k-altos
1422 os=
1423 ;;
1424 am29k)
1425 basic_machine=a29k-none
1426 os=bsd
1427 ;;
1428 amdahl)
1429 basic_machine=580-amdahl
1430 os=sysv
1431 ;;
1432 amiga)
1433 basic_machine=m68k-unknown
1434 os=
1435 ;;
1436 amigaos | amigados)
1437 basic_machine=m68k-unknown
1438 os=amigaos
1439 ;;
1440 amigaunix | amix)
1441 basic_machine=m68k-unknown
1442 os=sysv4
1443 ;;
1444 apollo68)
1445 basic_machine=m68k-apollo
1446 os=sysv
1447 ;;
1448 apollo68bsd)
1449 basic_machine=m68k-apollo
1450 os=bsd
1451 ;;
1452 aros)
1453 basic_machine=i386-pc
1454 os=aros
1455 ;;
1456 aux)
1457 basic_machine=m68k-apple
1458 os=aux
1459 ;;
1460 balance)
1461 basic_machine=ns32k-sequent
1462 os=dynix
1463 ;;
1464 blackfin)
1465 basic_machine=bfin-unknown
1466 os=linux
1467 ;;
1468 cegcc)
1469 basic_machine=arm-unknown
1470 os=cegcc
1471 ;;
1472 convex-c1)
1473 basic_machine=c1-convex
1474 os=bsd
1475 ;;
1476 convex-c2)
1477 basic_machine=c2-convex
1478 os=bsd
1479 ;;
1480 convex-c32)
1481 basic_machine=c32-convex
1482 os=bsd
1483 ;;
1484 convex-c34)
1485 basic_machine=c34-convex
1486 os=bsd
1487 ;;
1488 convex-c38)
1489 basic_machine=c38-convex
1490 os=bsd
1491 ;;
1492 cray)
1493 basic_machine=j90-cray
1494 os=unicos
1495 ;;
1496 crds | unos)
1497 basic_machine=m68k-crds
1498 os=
1499 ;;
1500 da30)
1501 basic_machine=m68k-da30
1502 os=
1503 ;;
1504 decstation | pmax | pmin | dec3100 | decstatn)
1505 basic_machine=mips-dec
1506 os=
1507 ;;
1508 delta88)
1509 basic_machine=m88k-motorola
1510 os=sysv3
1511 ;;
1512 dicos)
1513 basic_machine=i686-pc
1514 os=dicos
1515 ;;
1516 djgpp)
1517 basic_machine=i586-pc
1518 os=msdosdjgpp
1519 ;;
1520 ebmon29k)
1521 basic_machine=a29k-amd
1522 os=ebmon
1523 ;;
1524 es1800 | OSE68k | ose68k | ose | OSE)
1525 basic_machine=m68k-ericsson
1526 os=ose
1527 ;;
1528 gmicro)
1529 basic_machine=tron-gmicro
1530 os=sysv
1531 ;;
1532 go32)
1533 basic_machine=i386-pc
1534 os=go32
1535 ;;
1536 h8300hms)
1537 basic_machine=h8300-hitachi
1538 os=hms
1539 ;;
1540 h8300xray)
1541 basic_machine=h8300-hitachi
1542 os=xray
1543 ;;
1544 h8500hms)
1545 basic_machine=h8500-hitachi
1546 os=hms
1547 ;;
1548 harris)
1549 basic_machine=m88k-harris
1550 os=sysv3
1551 ;;
1552 hp300)
1553 basic_machine=m68k-hp
1554 ;;
1555 hp300bsd)
1556 basic_machine=m68k-hp
1557 os=bsd
1558 ;;
1559 hp300hpux)
1560 basic_machine=m68k-hp
1561 os=hpux
1562 ;;
1563 hppaosf)
1564 basic_machine=hppa1.1-hp
1565 os=osf
1566 ;;
1567 hppro)
1568 basic_machine=hppa1.1-hp
1569 os=proelf
1570 ;;
1571 i386mach)
1572 basic_machine=i386-mach
1573 os=mach
1574 ;;
1575 vsta)
1576 basic_machine=i386-pc
1577 os=vsta
1578 ;;
1579 isi68 | isi)
1580 basic_machine=m68k-isi
1581 os=sysv
1582 ;;
1583 m68knommu)
1584 basic_machine=m68k-unknown
1585 os=linux
1586 ;;
1587 magnum | m3230)
1588 basic_machine=mips-mips
1589 os=sysv
1590 ;;
1591 merlin)
1592 basic_machine=ns32k-utek
1593 os=sysv
1594 ;;
1595 mingw64)
1596 basic_machine=x86_64-pc
1597 os=mingw64
1598 ;;
1599 mingw32)
1600 basic_machine=i686-pc
1601 os=mingw32
1602 ;;
1603 mingw32ce)
1604 basic_machine=arm-unknown
1605 os=mingw32ce
1606 ;;
1607 monitor)
1608 basic_machine=m68k-rom68k
1609 os=coff
1610 ;;
1611 morphos)
1612 basic_machine=powerpc-unknown
1613 os=morphos
1614 ;;
1615 moxiebox)
1616 basic_machine=moxie-unknown
1617 os=moxiebox
1618 ;;
1619 msdos)
1620 basic_machine=i386-pc
1621 os=msdos
1622 ;;
1623 msys)
1624 basic_machine=i686-pc
1625 os=msys
1626 ;;
1627 mvs)
1628 basic_machine=i370-ibm
1629 os=mvs
1630 ;;
1631 nacl)
1632 basic_machine=le32-unknown
1633 os=nacl
1634 ;;
1635 ncr3000)
1636 basic_machine=i486-ncr
1637 os=sysv4
1638 ;;
1639 netbsd386)
1640 basic_machine=i386-pc
1641 os=netbsd
1642 ;;
1643 netwinder)
1644 basic_machine=armv4l-rebel
1645 os=linux
1646 ;;
1647 news | news700 | news800 | news900)
1648 basic_machine=m68k-sony
1649 os=newsos
1650 ;;
1651 news1000)
1652 basic_machine=m68030-sony
1653 os=newsos
1654 ;;
1655 necv70)
1656 basic_machine=v70-nec
1657 os=sysv
1658 ;;
1659 nh3000)
1660 basic_machine=m68k-harris
1661 os=cxux
1662 ;;
1663 nh[45]000)
1664 basic_machine=m88k-harris
1665 os=cxux
1666 ;;
1667 nindy960)
1668 basic_machine=i960-intel
1669 os=nindy
1670 ;;
1671 mon960)
1672 basic_machine=i960-intel
1673 os=mon960
1674 ;;
1675 nonstopux)
1676 basic_machine=mips-compaq
1677 os=nonstopux
1678 ;;
1679 os400)
1680 basic_machine=powerpc-ibm
1681 os=os400
1682 ;;
1683 OSE68000 | ose68000)
1684 basic_machine=m68000-ericsson
1685 os=ose
1686 ;;
1687 os68k)
1688 basic_machine=m68k-none
1689 os=os68k
1690 ;;
1691 paragon)
1692 basic_machine=i860-intel
1693 os=osf
1694 ;;
1695 parisc)
1696 basic_machine=hppa-unknown
1697 os=linux
1698 ;;
1699 pw32)
1700 basic_machine=i586-unknown
1701 os=pw32
1702 ;;
1703 rdos | rdos64)
1704 basic_machine=x86_64-pc
1705 os=rdos
1706 ;;
1707 rdos32)
1708 basic_machine=i386-pc
1709 os=rdos
1710 ;;
1711 rom68k)
1712 basic_machine=m68k-rom68k
1713 os=coff
1714 ;;
1715 sa29200)
1716 basic_machine=a29k-amd
1717 os=udi
1718 ;;
1719 sei)
1720 basic_machine=mips-sei
1721 os=seiux
1722 ;;
1723 sequent)
1724 basic_machine=i386-sequent
1725 os=
1726 ;;
1727 sps7)
1728 basic_machine=m68k-bull
1729 os=sysv2
1730 ;;
1731 st2000)
1732 basic_machine=m68k-tandem
1733 os=
1734 ;;
1735 stratus)
1736 basic_machine=i860-stratus
1737 os=sysv4
1738 ;;
1739 sun2)
1740 basic_machine=m68000-sun
1741 os=
1742 ;;
1743 sun2os3)
1744 basic_machine=m68000-sun
1745 os=sunos3
1746 ;;
1747 sun2os4)
1748 basic_machine=m68000-sun
1749 os=sunos4
1750 ;;
1751 sun3)
1752 basic_machine=m68k-sun
1753 os=
1754 ;;
1755 sun3os3)
1756 basic_machine=m68k-sun
1757 os=sunos3
1758 ;;
1759 sun3os4)
1760 basic_machine=m68k-sun
1761 os=sunos4
1762 ;;
1763 sun4)
1764 basic_machine=sparc-sun
1765 os=
1766 ;;
1767 sun4os3)
1768 basic_machine=sparc-sun
1769 os=sunos3
1770 ;;
1771 sun4os4)
1772 basic_machine=sparc-sun
1773 os=sunos4
1774 ;;
1775 sun4sol2)
1776 basic_machine=sparc-sun
1777 os=solaris2
1778 ;;
1779 sun386 | sun386i | roadrunner)
1780 basic_machine=i386-sun
1781 os=
1782 ;;
1783 sv1)
1784 basic_machine=sv1-cray
1785 os=unicos
1786 ;;
1787 symmetry)
1788 basic_machine=i386-sequent
1789 os=dynix
1790 ;;
1791 t3e)
1792 basic_machine=alphaev5-cray
1793 os=unicos
1794 ;;
1795 t90)
1796 basic_machine=t90-cray
1797 os=unicos
1798 ;;
1799 toad1)
1800 basic_machine=pdp10-xkl
1801 os=tops20
1802 ;;
1803 tpf)
1804 basic_machine=s390x-ibm
1805 os=tpf
1806 ;;
1807 udi29k)
1808 basic_machine=a29k-amd
1809 os=udi
1810 ;;
1811 ultra3)
1812 basic_machine=a29k-nyu
1813 os=sym1
1814 ;;
1815 v810 | necv810)
1816 basic_machine=v810-nec
1817 os=none
1818 ;;
1819 vaxv)
1820 basic_machine=vax-dec
1821 os=sysv
1822 ;;
1823 vms)
1824 basic_machine=vax-dec
1825 os=vms
1826 ;;
1827 vxworks960)
1828 basic_machine=i960-wrs
1829 os=vxworks
1830 ;;
1831 vxworks68)
1832 basic_machine=m68k-wrs
1833 os=vxworks
1834 ;;
1835 vxworks29k)
1836 basic_machine=a29k-wrs
1837 os=vxworks
1838 ;;
1839 xbox)
1840 basic_machine=i686-pc
1841 os=mingw32
1842 ;;
1843 ymp)
1844 basic_machine=ymp-cray
1845 os=unicos
1846 ;;
1847 *)
1848 basic_machine=$1
1849 os=
1850 ;;
1851 esac
1852 ;;
1853esac
1854
1855# Decode 1-component or ad-hoc basic machines
1856case $basic_machine in
1857 # Here we handle the default manufacturer of certain CPU types. It is in
1858 # some cases the only manufacturer, in others, it is the most popular.
1859 w89k)
1860 cpu=hppa1.1
1861 vendor=winbond
1862 ;;
1863 op50n)
1864 cpu=hppa1.1
1865 vendor=oki
1866 ;;
1867 op60c)
1868 cpu=hppa1.1
1869 vendor=oki
1870 ;;
1871 ibm*)
1872 cpu=i370
1873 vendor=ibm
1874 ;;
1875 orion105)
1876 cpu=clipper
1877 vendor=highlevel
1878 ;;
1879 mac | mpw | mac-mpw)
1880 cpu=m68k
1881 vendor=apple
1882 ;;
1883 pmac | pmac-mpw)
1884 cpu=powerpc
1885 vendor=apple
1886 ;;
1887
1888 # Recognize the various machine names and aliases which stand
1889 # for a CPU type and a company and sometimes even an OS.
1890 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
1891 cpu=m68000
1892 vendor=att
1893 ;;
1894 3b*)
1895 cpu=we32k
1896 vendor=att
1897 ;;
1898 bluegene*)
1899 cpu=powerpc
1900 vendor=ibm
1901 os=cnk
1902 ;;
1903 decsystem10* | dec10*)
1904 cpu=pdp10
1905 vendor=dec
1906 os=tops10
1907 ;;
1908 decsystem20* | dec20*)
1909 cpu=pdp10
1910 vendor=dec
1911 os=tops20
1912 ;;
1913 delta | 3300 | motorola-3300 | motorola-delta \
1914 | 3300-motorola | delta-motorola)
1915 cpu=m68k
1916 vendor=motorola
1917 ;;
1918 dpx2*)
1919 cpu=m68k
1920 vendor=bull
1921 os=sysv3
1922 ;;
1923 encore | umax | mmax)
1924 cpu=ns32k
1925 vendor=encore
1926 ;;
1927 elxsi)
1928 cpu=elxsi
1929 vendor=elxsi
1930 os=${os:-bsd}
1931 ;;
1932 fx2800)
1933 cpu=i860
1934 vendor=alliant
1935 ;;
1936 genix)
1937 cpu=ns32k
1938 vendor=ns
1939 ;;
1940 h3050r* | hiux*)
1941 cpu=hppa1.1
1942 vendor=hitachi
1943 os=hiuxwe2
1944 ;;
1945 hp3k9[0-9][0-9] | hp9[0-9][0-9])
1946 cpu=hppa1.0
1947 vendor=hp
1948 ;;
1949 hp9k2[0-9][0-9] | hp9k31[0-9])
1950 cpu=m68000
1951 vendor=hp
1952 ;;
1953 hp9k3[2-9][0-9])
1954 cpu=m68k
1955 vendor=hp
1956 ;;
1957 hp9k6[0-9][0-9] | hp6[0-9][0-9])
1958 cpu=hppa1.0
1959 vendor=hp
1960 ;;
1961 hp9k7[0-79][0-9] | hp7[0-79][0-9])
1962 cpu=hppa1.1
1963 vendor=hp
1964 ;;
1965 hp9k78[0-9] | hp78[0-9])
1966 # FIXME: really hppa2.0-hp
1967 cpu=hppa1.1
1968 vendor=hp
1969 ;;
1970 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
1971 # FIXME: really hppa2.0-hp
1972 cpu=hppa1.1
1973 vendor=hp
1974 ;;
1975 hp9k8[0-9][13679] | hp8[0-9][13679])
1976 cpu=hppa1.1
1977 vendor=hp
1978 ;;
1979 hp9k8[0-9][0-9] | hp8[0-9][0-9])
1980 cpu=hppa1.0
1981 vendor=hp
1982 ;;
1983 i*86v32)
1984 cpu=`echo "$1" | sed -e 's/86.*/86/'`
1985 vendor=pc
1986 os=sysv32
1987 ;;
1988 i*86v4*)
1989 cpu=`echo "$1" | sed -e 's/86.*/86/'`
1990 vendor=pc
1991 os=sysv4
1992 ;;
1993 i*86v)
1994 cpu=`echo "$1" | sed -e 's/86.*/86/'`
1995 vendor=pc
1996 os=sysv
1997 ;;
1998 i*86sol2)
1999 cpu=`echo "$1" | sed -e 's/86.*/86/'`
2000 vendor=pc
2001 os=solaris2
2002 ;;
2003 j90 | j90-cray)
2004 cpu=j90
2005 vendor=cray
2006 os=${os:-unicos}
2007 ;;
2008 iris | iris4d)
2009 cpu=mips
2010 vendor=sgi
2011 case $os in
2012 irix*)
2013 ;;
2014 *)
2015 os=irix4
2016 ;;
2017 esac
2018 ;;
2019 miniframe)
2020 cpu=m68000
2021 vendor=convergent
2022 ;;
2023 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
2024 cpu=m68k
2025 vendor=atari
2026 os=mint
2027 ;;
2028 news-3600 | risc-news)
2029 cpu=mips
2030 vendor=sony
2031 os=newsos
2032 ;;
2033 next | m*-next)
2034 cpu=m68k
2035 vendor=next
2036 case $os in
2037 nextstep* )
2038 ;;
2039 ns2*)
2040 os=nextstep2
2041 ;;
2042 *)
2043 os=nextstep3
2044 ;;
2045 esac
2046 ;;
2047 np1)
2048 cpu=np1
2049 vendor=gould
2050 ;;
2051 op50n-* | op60c-*)
2052 cpu=hppa1.1
2053 vendor=oki
2054 os=proelf
2055 ;;
2056 pa-hitachi)
2057 cpu=hppa1.1
2058 vendor=hitachi
2059 os=hiuxwe2
2060 ;;
2061 pbd)
2062 cpu=sparc
2063 vendor=tti
2064 ;;
2065 pbb)
2066 cpu=m68k
2067 vendor=tti
2068 ;;
2069 pc532)
2070 cpu=ns32k
2071 vendor=pc532
2072 ;;
2073 pn)
2074 cpu=pn
2075 vendor=gould
2076 ;;
2077 power)
2078 cpu=power
2079 vendor=ibm
2080 ;;
2081 ps2)
2082 cpu=i386
2083 vendor=ibm
2084 ;;
2085 rm[46]00)
2086 cpu=mips
2087 vendor=siemens
2088 ;;
2089 rtpc | rtpc-*)
2090 cpu=romp
2091 vendor=ibm
2092 ;;
2093 sde)
2094 cpu=mipsisa32
2095 vendor=sde
2096 os=${os:-elf}
2097 ;;
2098 simso-wrs)
2099 cpu=sparclite
2100 vendor=wrs
2101 os=vxworks
2102 ;;
2103 tower | tower-32)
2104 cpu=m68k
2105 vendor=ncr
2106 ;;
2107 vpp*|vx|vx-*)
2108 cpu=f301
2109 vendor=fujitsu
2110 ;;
2111 w65)
2112 cpu=w65
2113 vendor=wdc
2114 ;;
2115 w89k-*)
2116 cpu=hppa1.1
2117 vendor=winbond
2118 os=proelf
2119 ;;
2120 none)
2121 cpu=none
2122 vendor=none
2123 ;;
2124 leon|leon[3-9])
2125 cpu=sparc
2126 vendor=$basic_machine
2127 ;;
2128 leon-*|leon[3-9]-*)
2129 cpu=sparc
2130 vendor=`echo "$basic_machine" | sed 's/-.*//'`
2131 ;;
2132
2133 *-*)
2134 IFS="-" read -r cpu vendor <<EOF
2135$basic_machine
2136EOF
2137 ;;
2138 # We use `pc' rather than `unknown'
2139 # because (1) that's what they normally are, and
2140 # (2) the word "unknown" tends to confuse beginning users.
2141 i*86 | x86_64)
2142 cpu=$basic_machine
2143 vendor=pc
2144 ;;
2145 # These rules are duplicated from below for sake of the special case above;
2146 # i.e. things that normalized to x86 arches should also default to "pc"
2147 pc98)
2148 cpu=i386
2149 vendor=pc
2150 ;;
2151 x64 | amd64)
2152 cpu=x86_64
2153 vendor=pc
2154 ;;
2155 # Recognize the basic CPU types without company name.
2156 *)
2157 cpu=$basic_machine
2158 vendor=unknown
2159 ;;
2160esac
2161
2162unset -v basic_machine
2163
2164# Decode basic machines in the full and proper CPU-Company form.
2165case $cpu-$vendor in
2166 # Here we handle the default manufacturer of certain CPU types in cannonical form. It is in
2167 # some cases the only manufacturer, in others, it is the most popular.
2168 craynv-unknown)
2169 vendor=cray
2170 os=${os:-unicosmp}
2171 ;;
2172 c90-unknown | c90-cray)
2173 vendor=cray
2174 os=${os:-unicos}
2175 ;;
2176 fx80-unknown)
2177 vendor=alliant
2178 ;;
2179 romp-unknown)
2180 vendor=ibm
2181 ;;
2182 mmix-unknown)
2183 vendor=knuth
2184 ;;
2185 microblaze-unknown | microblazeel-unknown)
2186 vendor=xilinx
2187 ;;
2188 rs6000-unknown)
2189 vendor=ibm
2190 ;;
2191 vax-unknown)
2192 vendor=dec
2193 ;;
2194 pdp11-unknown)
2195 vendor=dec
2196 ;;
2197 we32k-unknown)
2198 vendor=att
2199 ;;
2200 cydra-unknown)
2201 vendor=cydrome
2202 ;;
2203 i370-ibm*)
2204 vendor=ibm
2205 ;;
2206 orion-unknown)
2207 vendor=highlevel
2208 ;;
2209 xps-unknown | xps100-unknown)
2210 cpu=xps100
2211 vendor=honeywell
2212 ;;
2213
2214 # Here we normalize CPU types with a missing or matching vendor
2215 dpx20-unknown | dpx20-bull)
2216 cpu=rs6000
2217 vendor=bull
2218 os=${os:-bosx}
2219 ;;
2220
2221 # Here we normalize CPU types irrespective of the vendor
2222 amd64-*)
2223 cpu=x86_64
2224 ;;
2225 blackfin-*)
2226 cpu=bfin
2227 os=linux
2228 ;;
2229 c54x-*)
2230 cpu=tic54x
2231 ;;
2232 c55x-*)
2233 cpu=tic55x
2234 ;;
2235 c6x-*)
2236 cpu=tic6x
2237 ;;
2238 e500v[12]-*)
2239 cpu=powerpc
2240 os=$os"spe"
2241 ;;
2242 mips3*-*)
2243 cpu=mips64
2244 ;;
2245 ms1-*)
2246 cpu=mt
2247 ;;
2248 m68knommu-*)
2249 cpu=m68k
2250 os=linux
2251 ;;
2252 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
2253 cpu=s12z
2254 ;;
2255 openrisc-*)
2256 cpu=or32
2257 ;;
2258 parisc-*)
2259 cpu=hppa
2260 os=linux
2261 ;;
2262 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
2263 cpu=i586
2264 ;;
2265 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
2266 cpu=i686
2267 ;;
2268 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
2269 cpu=i686
2270 ;;
2271 pentium4-*)
2272 cpu=i786
2273 ;;
2274 pc98-*)
2275 cpu=i386
2276 ;;
2277 ppc-* | ppcbe-*)
2278 cpu=powerpc
2279 ;;
2280 ppcle-* | powerpclittle-*)
2281 cpu=powerpcle
2282 ;;
2283 ppc64-*)
2284 cpu=powerpc64
2285 ;;
2286 ppc64le-* | powerpc64little-*)
2287 cpu=powerpc64le
2288 ;;
2289 sb1-*)
2290 cpu=mipsisa64sb1
2291 ;;
2292 sb1el-*)
2293 cpu=mipsisa64sb1el
2294 ;;
2295 sh5e[lb]-*)
2296 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
2297 ;;
2298 spur-*)
2299 cpu=spur
2300 ;;
2301 strongarm-* | thumb-*)
2302 cpu=arm
2303 ;;
2304 tx39-*)
2305 cpu=mipstx39
2306 ;;
2307 tx39el-*)
2308 cpu=mipstx39el
2309 ;;
2310 x64-*)
2311 cpu=x86_64
2312 ;;
2313 xscale-* | xscalee[bl]-*)
2314 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
2315 ;;
2316
2317 # Recognize the cannonical CPU Types that limit and/or modify the
2318 # company names they are paired with.
2319 cr16-*)
2320 os=${os:-elf}
2321 ;;
2322 crisv32-* | etraxfs*-*)
2323 cpu=crisv32
2324 vendor=axis
2325 ;;
2326 cris-* | etrax*-*)
2327 cpu=cris
2328 vendor=axis
2329 ;;
2330 crx-*)
2331 os=${os:-elf}
2332 ;;
2333 neo-tandem)
2334 cpu=neo
2335 vendor=tandem
2336 ;;
2337 nse-tandem)
2338 cpu=nse
2339 vendor=tandem
2340 ;;
2341 nsr-tandem)
2342 cpu=nsr
2343 vendor=tandem
2344 ;;
2345 nsv-tandem)
2346 cpu=nsv
2347 vendor=tandem
2348 ;;
2349 nsx-tandem)
2350 cpu=nsx
2351 vendor=tandem
2352 ;;
2353 s390-*)
2354 cpu=s390
2355 vendor=ibm
2356 ;;
2357 s390x-*)
2358 cpu=s390x
2359 vendor=ibm
2360 ;;
2361 tile*-*)
2362 os=${os:-linux-gnu}
2363 ;;
2364
2365 *)
2366 # Recognize the cannonical CPU types that are allowed with any
2367 # company name.
2368 case $cpu in
2369 1750a | 580 \
2370 | a29k \
2371 | aarch64 | aarch64_be \
2372 | abacus \
2373 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
2374 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
2375 | alphapca5[67] | alpha64pca5[67] \
2376 | am33_2.0 \
2377 | arc | arceb \
2378 | arm | arm[lb]e | arme[lb] | armv* \
2379 | avr | avr32 \
2380 | asmjs \
2381 | ba \
2382 | be32 | be64 \
2383 | bfin | bs2000 \
2384 | c[123]* | c30 | [cjt]90 | c4x \
2385 | c8051 | clipper | craynv | csky | cydra \
2386 | d10v | d30v | dlx | dsp16xx \
2387 | e2k | elxsi | epiphany \
2388 | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
2389 | h8300 | h8500 \
2390 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
2391 | hexagon \
2392 | i370 | i*86 | i860 | i960 | ia16 | ia64 \
2393 | ip2k | iq2000 \
2394 | k1om \
2395 | le32 | le64 \
2396 | lm32 \
2397 | m32c | m32r | m32rle \
2398 | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k | v70 | w65 \
2399 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip \
2400 | m88110 | m88k | maxq | mb | mcore | mep | metag \
2401 | microblaze | microblazeel \
2402 | mips | mipsbe | mipseb | mipsel | mipsle \
2403 | mips16 \
2404 | mips64 | mips64el \
2405 | mips64octeon | mips64octeonel \
2406 | mips64orion | mips64orionel \
2407 | mips64r5900 | mips64r5900el \
2408 | mips64vr | mips64vrel \
2409 | mips64vr4100 | mips64vr4100el \
2410 | mips64vr4300 | mips64vr4300el \
2411 | mips64vr5000 | mips64vr5000el \
2412 | mips64vr5900 | mips64vr5900el \
2413 | mipsisa32 | mipsisa32el \
2414 | mipsisa32r2 | mipsisa32r2el \
2415 | mipsisa32r6 | mipsisa32r6el \
2416 | mipsisa64 | mipsisa64el \
2417 | mipsisa64r2 | mipsisa64r2el \
2418 | mipsisa64r6 | mipsisa64r6el \
2419 | mipsisa64sb1 | mipsisa64sb1el \
2420 | mipsisa64sr71k | mipsisa64sr71kel \
2421 | mipsr5900 | mipsr5900el \
2422 | mipstx39 | mipstx39el \
2423 | mmix \
2424 | mn10200 | mn10300 \
2425 | moxie \
2426 | mt \
2427 | msp430 \
2428 | nds32 | nds32le | nds32be \
2429 | nfp \
2430 | nios | nios2 | nios2eb | nios2el \
2431 | none | np1 | ns16k | ns32k \
2432 | open8 \
2433 | or1k* \
2434 | or32 \
2435 | orion \
2436 | pdp10 | pdp11 | pj | pjl | pn | power \
2437 | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
2438 | pru \
2439 | pyramid \
2440 | riscv | riscv32 | riscv64 \
2441 | rl78 | romp | rs6000 | rx \
2442 | score \
2443 | sh | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
2444 | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
2445 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
2446 | sparclite \
2447 | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
2448 | spu \
2449 | tahoe \
2450 | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
2451 | tron \
2452 | ubicom32 \
2453 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
2454 | vax \
2455 | visium \
2456 | wasm32 \
2457 | we32k \
2458 | x86 | x86_64 | xc16x | xgate | xps100 \
2459 | xstormy16 | xtensa* \
2460 | ymp \
2461 | z8k | z80)
2462 ;;
2463
2464 *)
2465 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
2466 exit 1
2467 ;;
2468 esac
2469>>>>>>> build-aux/config.sub
1320 ;;2470 ;;
1321esac2471esac
13222472
1323# Here we canonicalize certain aliases for manufacturers.2473# Here we canonicalize certain aliases for manufacturers.
2474<<<<<<< build-aux/config.sub
1324case $basic_machine in2475case $basic_machine in
1325 *-digital*)2476 *-digital*)
1326 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`2477 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
1327 ;;2478 ;;
1328 *-commodore*)2479 *-commodore*)
1329 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`2480 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
2481=======
2482case $vendor in
2483 digital*)
2484 vendor=dec
2485 ;;
2486 commodore*)
2487 vendor=cbm
2488>>>>>>> build-aux/config.sub
1330 ;;2489 ;;
1331 *)2490 *)
1332 ;;2491 ;;
@@ -1334,11 +2493,16 @@ esac
13342493
1335# Decode manufacturer-specific aliases for certain operating systems.2494# Decode manufacturer-specific aliases for certain operating systems.
13362495
2496<<<<<<< build-aux/config.sub
1337if [ x"$os" != x"" ]2497if [ x"$os" != x"" ]
2498=======
2499if [ x$os != x ]
2500>>>>>>> build-aux/config.sub
1338then2501then
1339case $os in2502case $os in
1340 # First match some system type aliases that might get confused2503 # First match some system type aliases that might get confused
1341 # with valid system types.2504 # with valid system types.
2505<<<<<<< build-aux/config.sub
1342 # -solaris* is a basic system type, with this one exception.2506 # -solaris* is a basic system type, with this one exception.
1343 -auroraux)2507 -auroraux)
1344 os=-auroraux2508 os=-auroraux
@@ -1358,10 +2522,66 @@ case $os in
1358 # es1800 is here to avoid being matched by es* (a different OS)2522 # es1800 is here to avoid being matched by es* (a different OS)
1359 -es1800*)2523 -es1800*)
1360 os=-ose2524 os=-ose
2525=======
2526 # solaris* is a basic system type, with this one exception.
2527 auroraux)
2528 os=auroraux
2529 ;;
2530 bluegene*)
2531 os=cnk
2532 ;;
2533 solaris1 | solaris1.*)
2534 os=`echo $os | sed -e 's|solaris1|sunos4|'`
2535 ;;
2536 solaris)
2537 os=solaris2
2538 ;;
2539 unixware*)
2540 os=sysv4.2uw
2541 ;;
2542 gnu/linux*)
2543 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
2544 ;;
2545 # es1800 is here to avoid being matched by es* (a different OS)
2546 es1800*)
2547 os=ose
2548 ;;
2549 # Some version numbers need modification
2550 chorusos*)
2551 os=chorusos
2552 ;;
2553 isc)
2554 os=isc2.2
2555 ;;
2556 sco6)
2557 os=sco5v6
2558 ;;
2559 sco5)
2560 os=sco3.2v5
2561 ;;
2562 sco4)
2563 os=sco3.2v4
2564 ;;
2565 sco3.2.[4-9]*)
2566 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
2567 ;;
2568 sco3.2v[4-9]* | sco5v6*)
2569 # Don't forget version if it is 3.2v4 or newer.
2570 ;;
2571 scout)
2572 # Don't match below
2573 ;;
2574 sco*)
2575 os=sco3.2v2
2576 ;;
2577 psos*)
2578 os=psos
2579>>>>>>> build-aux/config.sub
1361 ;;2580 ;;
1362 # Now accept the basic system types.2581 # Now accept the basic system types.
1363 # The portable systems comes first.2582 # The portable systems comes first.
1364 # Each alternative MUST end in a * to match a version number.2583 # Each alternative MUST end in a * to match a version number.
2584<<<<<<< build-aux/config.sub
1365 # -sysv* is not here because it comes later, after sysvr4.2585 # -sysv* is not here because it comes later, after sysvr4.
1366 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \2586 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1367 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\2587 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
@@ -1527,6 +2747,185 @@ case $os in
1527 *)2747 *)
1528 # Get rid of the `-' at the beginning of $os.2748 # Get rid of the `-' at the beginning of $os.
1529 os=`echo $os | sed 's/[^-]*-//'`2749 os=`echo $os | sed 's/[^-]*-//'`
2750=======
2751 # sysv* is not here because it comes later, after sysvr4.
2752 gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
2753 | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\
2754 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
2755 | sym* | kopensolaris* | plan9* \
2756 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
2757 | aos* | aros* | cloudabi* | sortix* \
2758 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
2759 | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
2760 | knetbsd* | mirbsd* | netbsd* \
2761 | bitrig* | openbsd* | solidbsd* | libertybsd* \
2762 | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \
2763 | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
2764 | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
2765 | udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \
2766 | chorusrdb* | cegcc* | glidix* \
2767 | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
2768 | midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \
2769 | linux-newlib* | linux-musl* | linux-uclibc* \
2770 | uxpv* | beos* | mpeix* | udk* | moxiebox* \
2771 | interix* | uwin* | mks* | rhapsody* | darwin* \
2772 | openstep* | oskit* | conix* | pw32* | nonstopux* \
2773 | storm-chaos* | tops10* | tenex* | tops20* | its* \
2774 | os2* | vos* | palmos* | uclinux* | nucleus* \
2775 | morphos* | superux* | rtmk* | windiss* \
2776 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
2777 | skyos* | haiku* | rdos* | toppers* | drops* | es* \
2778 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
2779 | midnightbsd*)
2780 # Remember, each alternative MUST END IN *, to match a version number.
2781 ;;
2782 qnx*)
2783 case $cpu in
2784 x86 | i*86)
2785 ;;
2786 *)
2787 os=nto-$os
2788 ;;
2789 esac
2790 ;;
2791 hiux*)
2792 os=hiuxwe2
2793 ;;
2794 nto-qnx*)
2795 ;;
2796 nto*)
2797 os=`echo $os | sed -e 's|nto|nto-qnx|'`
2798 ;;
2799 sim | xray | os68k* | v88r* \
2800 | windows* | osx | abug | netware* | os9* \
2801 | macos* | mpw* | magic* | mmixware* | mon960* | lnews*)
2802 ;;
2803 linux-dietlibc)
2804 os=linux-dietlibc
2805 ;;
2806 linux*)
2807 os=`echo $os | sed -e 's|linux|linux-gnu|'`
2808 ;;
2809 lynx*178)
2810 os=lynxos178
2811 ;;
2812 lynx*5)
2813 os=lynxos5
2814 ;;
2815 lynx*)
2816 os=lynxos
2817 ;;
2818 mac*)
2819 os=`echo "$os" | sed -e 's|mac|macos|'`
2820 ;;
2821 opened*)
2822 os=openedition
2823 ;;
2824 os400*)
2825 os=os400
2826 ;;
2827 sunos5*)
2828 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
2829 ;;
2830 sunos6*)
2831 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
2832 ;;
2833 wince*)
2834 os=wince
2835 ;;
2836 utek*)
2837 os=bsd
2838 ;;
2839 dynix*)
2840 os=bsd
2841 ;;
2842 acis*)
2843 os=aos
2844 ;;
2845 atheos*)
2846 os=atheos
2847 ;;
2848 syllable*)
2849 os=syllable
2850 ;;
2851 386bsd)
2852 os=bsd
2853 ;;
2854 ctix* | uts*)
2855 os=sysv
2856 ;;
2857 nova*)
2858 os=rtmk-nova
2859 ;;
2860 ns2)
2861 os=nextstep2
2862 ;;
2863 nsk*)
2864 os=nsk
2865 ;;
2866 # Preserve the version number of sinix5.
2867 sinix5.*)
2868 os=`echo $os | sed -e 's|sinix|sysv|'`
2869 ;;
2870 sinix*)
2871 os=sysv4
2872 ;;
2873 tpf*)
2874 os=tpf
2875 ;;
2876 triton*)
2877 os=sysv3
2878 ;;
2879 oss*)
2880 os=sysv3
2881 ;;
2882 svr4*)
2883 os=sysv4
2884 ;;
2885 svr3)
2886 os=sysv3
2887 ;;
2888 sysvr4)
2889 os=sysv4
2890 ;;
2891 # This must come after sysvr4.
2892 sysv*)
2893 ;;
2894 ose*)
2895 os=ose
2896 ;;
2897 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
2898 os=mint
2899 ;;
2900 zvmoe)
2901 os=zvmoe
2902 ;;
2903 dicos*)
2904 os=dicos
2905 ;;
2906 pikeos*)
2907 # Until real need of OS specific support for
2908 # particular features comes up, bare metal
2909 # configurations are quite functional.
2910 case $cpu in
2911 arm*)
2912 os=eabi
2913 ;;
2914 *)
2915 os=elf
2916 ;;
2917 esac
2918 ;;
2919 nacl*)
2920 ;;
2921 ios)
2922 ;;
2923 none)
2924 ;;
2925 *-eabi)
2926 ;;
2927 *)
2928>>>>>>> build-aux/config.sub
1530 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&22929 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
1531 exit 12930 exit 1
1532 ;;2931 ;;
@@ -1543,6 +2942,7 @@ else
1543# will signal an error saying that MANUFACTURER isn't an operating2942# will signal an error saying that MANUFACTURER isn't an operating
1544# system, and we'll never get to this point.2943# system, and we'll never get to this point.
15452944
2945<<<<<<< build-aux/config.sub
1546case $basic_machine in2946case $basic_machine in
1547 score-*)2947 score-*)
1548 os=-elf2948 os=-elf
@@ -1712,12 +3112,190 @@ case $basic_machine in
1712 ;;3112 ;;
1713 *)3113 *)
1714 os=-none3114 os=-none
3115=======
3116case $cpu-$vendor in
3117 score-*)
3118 os=elf
3119 ;;
3120 spu-*)
3121 os=elf
3122 ;;
3123 *-acorn)
3124 os=riscix1.2
3125 ;;
3126 arm*-rebel)
3127 os=linux
3128 ;;
3129 arm*-semi)
3130 os=aout
3131 ;;
3132 c4x-* | tic4x-*)
3133 os=coff
3134 ;;
3135 c8051-*)
3136 os=elf
3137 ;;
3138 clipper-intergraph)
3139 os=clix
3140 ;;
3141 hexagon-*)
3142 os=elf
3143 ;;
3144 tic54x-*)
3145 os=coff
3146 ;;
3147 tic55x-*)
3148 os=coff
3149 ;;
3150 tic6x-*)
3151 os=coff
3152 ;;
3153 # This must come before the *-dec entry.
3154 pdp10-*)
3155 os=tops20
3156 ;;
3157 pdp11-*)
3158 os=none
3159 ;;
3160 *-dec | vax-*)
3161 os=ultrix4.2
3162 ;;
3163 m68*-apollo)
3164 os=domain
3165 ;;
3166 i386-sun)
3167 os=sunos4.0.2
3168 ;;
3169 m68000-sun)
3170 os=sunos3
3171 ;;
3172 m68*-cisco)
3173 os=aout
3174 ;;
3175 mep-*)
3176 os=elf
3177 ;;
3178 mips*-cisco)
3179 os=elf
3180 ;;
3181 mips*-*)
3182 os=elf
3183 ;;
3184 or32-*)
3185 os=coff
3186 ;;
3187 *-tti) # must be before sparc entry or we get the wrong os.
3188 os=sysv3
3189 ;;
3190 sparc-* | *-sun)
3191 os=sunos4.1.1
3192 ;;
3193 pru-*)
3194 os=elf
3195 ;;
3196 *-be)
3197 os=beos
3198 ;;
3199 *-ibm)
3200 os=aix
3201 ;;
3202 *-knuth)
3203 os=mmixware
3204 ;;
3205 *-wec)
3206 os=proelf
3207 ;;
3208 *-winbond)
3209 os=proelf
3210 ;;
3211 *-oki)
3212 os=proelf
3213 ;;
3214 *-hp)
3215 os=hpux
3216 ;;
3217 *-hitachi)
3218 os=hiux
3219 ;;
3220 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
3221 os=sysv
3222 ;;
3223 *-cbm)
3224 os=amigaos
3225 ;;
3226 *-dg)
3227 os=dgux
3228 ;;
3229 *-dolphin)
3230 os=sysv3
3231 ;;
3232 m68k-ccur)
3233 os=rtu
3234 ;;
3235 m88k-omron*)
3236 os=luna
3237 ;;
3238 *-next)
3239 os=nextstep
3240 ;;
3241 *-sequent)
3242 os=ptx
3243 ;;
3244 *-crds)
3245 os=unos
3246 ;;
3247 *-ns)
3248 os=genix
3249 ;;
3250 i370-*)
3251 os=mvs
3252 ;;
3253 *-gould)
3254 os=sysv
3255 ;;
3256 *-highlevel)
3257 os=bsd
3258 ;;
3259 *-encore)
3260 os=bsd
3261 ;;
3262 *-sgi)
3263 os=irix
3264 ;;
3265 *-siemens)
3266 os=sysv4
3267 ;;
3268 *-masscomp)
3269 os=rtu
3270 ;;
3271 f30[01]-fujitsu | f700-fujitsu)
3272 os=uxpv
3273 ;;
3274 *-rom68k)
3275 os=coff
3276 ;;
3277 *-*bug)
3278 os=coff
3279 ;;
3280 *-apple)
3281 os=macos
3282 ;;
3283 *-atari*)
3284 os=mint
3285 ;;
3286 *-wrs)
3287 os=vxworks
3288 ;;
3289 *)
3290 os=none
3291>>>>>>> build-aux/config.sub
1715 ;;3292 ;;
1716esac3293esac
1717fi3294fi
17183295
1719# Here we handle the case where we know the os, and the CPU type, but not the3296# Here we handle the case where we know the os, and the CPU type, but not the
1720# manufacturer. We pick the logical manufacturer.3297# manufacturer. We pick the logical manufacturer.
3298<<<<<<< build-aux/config.sub
1721vendor=unknown3299vendor=unknown
1722case $basic_machine in3300case $basic_machine in
1723 *-unknown)3301 *-unknown)
@@ -1791,6 +3369,82 @@ case $basic_machine in
1791esac3369esac
17923370
1793echo "$basic_machine$os"3371echo "$basic_machine$os"
3372=======
3373case $vendor in
3374 unknown)
3375 case $os in
3376 riscix*)
3377 vendor=acorn
3378 ;;
3379 sunos*)
3380 vendor=sun
3381 ;;
3382 cnk*|-aix*)
3383 vendor=ibm
3384 ;;
3385 beos*)
3386 vendor=be
3387 ;;
3388 hpux*)
3389 vendor=hp
3390 ;;
3391 mpeix*)
3392 vendor=hp
3393 ;;
3394 hiux*)
3395 vendor=hitachi
3396 ;;
3397 unos*)
3398 vendor=crds
3399 ;;
3400 dgux*)
3401 vendor=dg
3402 ;;
3403 luna*)
3404 vendor=omron
3405 ;;
3406 genix*)
3407 vendor=ns
3408 ;;
3409 clix*)
3410 vendor=intergraph
3411 ;;
3412 mvs* | opened*)
3413 vendor=ibm
3414 ;;
3415 os400*)
3416 vendor=ibm
3417 ;;
3418 ptx*)
3419 vendor=sequent
3420 ;;
3421 tpf*)
3422 vendor=ibm
3423 ;;
3424 vxsim* | vxworks* | windiss*)
3425 vendor=wrs
3426 ;;
3427 aux*)
3428 vendor=apple
3429 ;;
3430 hms*)
3431 vendor=hitachi
3432 ;;
3433 mpw* | macos*)
3434 vendor=apple
3435 ;;
3436 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
3437 vendor=atari
3438 ;;
3439 vos*)
3440 vendor=stratus
3441 ;;
3442 esac
3443 ;;
3444esac
3445
3446echo "$cpu-$vendor-$os"
3447>>>>>>> build-aux/config.sub
1794exit3448exit
17953449
1796# Local variables:3450# Local variables:
diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh
index d3ab94d..ffe298c 100644
--- a/build-aux/ltmain.sh
+++ b/build-aux/ltmain.sh
@@ -1,5 +1,6 @@
1#! /bin/sh1#! /bin/sh
2## DO NOT EDIT - This file generated from ./build-aux/ltmain.in2## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
3<<<<<<< build-aux/ltmain.sh
3## by inline-source v2018-07-24.064## by inline-source v2018-07-24.06
45
5# libtool (GNU libtool) 2.4.6.42-b88ce6# libtool (GNU libtool) 2.4.6.42-b88ce
@@ -7,6 +8,15 @@
7# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 19968# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
89
9# Copyright (C) 1996-2018 Free Software Foundation, Inc.10# Copyright (C) 1996-2018 Free Software Foundation, Inc.
11=======
12## by inline-source v2014-01-03.01
13
14# libtool (GNU libtool) 2.4.6
15# Provide generalized library-building support services.
16# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17
18# Copyright (C) 1996-2015 Free Software Foundation, Inc.
19>>>>>>> build-aux/ltmain.sh
10# This is free software; see the source for copying conditions. There is NO20# This is free software; see the source for copying conditions. There is NO
11# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.21# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1222
@@ -31,8 +41,13 @@
3141
32PROGRAM=libtool42PROGRAM=libtool
33PACKAGE=libtool43PACKAGE=libtool
44<<<<<<< build-aux/ltmain.sh
34VERSION=2.4.6.42-b88ce45VERSION=2.4.6.42-b88ce
35package_revision=2.4.6.4246package_revision=2.4.6.42
47=======
48VERSION=2.4.6
49package_revision=2.4.6
50>>>>>>> build-aux/ltmain.sh
3651
3752
38## ------ ##53## ------ ##
@@ -64,11 +79,16 @@ package_revision=2.4.6.42
64# libraries, which are installed to $pkgauxdir.79# libraries, which are installed to $pkgauxdir.
6580
66# Set a version string for this script.81# Set a version string for this script.
82<<<<<<< build-aux/ltmain.sh
67scriptversion=2018-07-24.06; # UTC83scriptversion=2018-07-24.06; # UTC
84=======
85scriptversion=2015-01-20.17; # UTC
86>>>>>>> build-aux/ltmain.sh
6887
69# General shell script boiler plate, and helper functions.88# General shell script boiler plate, and helper functions.
70# Written by Gary V. Vaughan, 200489# Written by Gary V. Vaughan, 2004
7190
91<<<<<<< build-aux/ltmain.sh
72# This is free software. There is NO warranty; not even for92# This is free software. There is NO warranty; not even for
73# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.93# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
74#94#
@@ -83,6 +103,31 @@ scriptversion=2018-07-24.06; # UTC
83103
84# Please report bugs or propose patches to:104# Please report bugs or propose patches to:
85# <https://github.com/gnulib-modules/bootstrap/issues>105# <https://github.com/gnulib-modules/bootstrap/issues>
106=======
107# Copyright (C) 2004-2015 Free Software Foundation, Inc.
108# This is free software; see the source for copying conditions. There is NO
109# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
110
111# This program is free software; you can redistribute it and/or modify
112# it under the terms of the GNU General Public License as published by
113# the Free Software Foundation; either version 3 of the License, or
114# (at your option) any later version.
115
116# As a special exception to the GNU General Public License, if you distribute
117# this file as part of a program or library that is built using GNU Libtool,
118# you may include this file under the same distribution terms that you use
119# for the rest of that program.
120
121# This program is distributed in the hope that it will be useful,
122# but WITHOUT ANY WARRANTY; without even the implied warranty of
123# MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU
124# General Public License for more details.
125
126# You should have received a copy of the GNU General Public License
127# along with this program. If not, see <http://www.gnu.org/licenses/>.
128
129# Please report bugs or propose patches to gary@gnu.org.
130>>>>>>> build-aux/ltmain.sh
86131
87132
88## ------ ##133## ------ ##
@@ -131,6 +176,12 @@ do
131 fi"176 fi"
132done177done
133178
179<<<<<<< build-aux/ltmain.sh
180=======
181# CDPATH.
182(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
183
184>>>>>>> build-aux/ltmain.sh
134# Make sure IFS has a sensible default185# Make sure IFS has a sensible default
135sp=' '186sp=' '
136nl='187nl='
@@ -147,6 +198,7 @@ if test "${PATH_SEPARATOR+set}" != set; then
147fi198fi
148199
149200
201<<<<<<< build-aux/ltmain.sh
150# func_unset VAR202# func_unset VAR
151# --------------203# --------------
152# Portably unset VAR.204# Portably unset VAR.
@@ -167,6 +219,8 @@ func_unset CDPATH
167# Make sure ${,E,F}GREP behave sanely.219# Make sure ${,E,F}GREP behave sanely.
168func_unset GREP_OPTIONS220func_unset GREP_OPTIONS
169221
222=======
223>>>>>>> build-aux/ltmain.sh
170224
171## ------------------------- ##225## ------------------------- ##
172## Locate command utilities. ##226## Locate command utilities. ##
@@ -267,7 +321,11 @@ test -z "$SED" && {
267 rm -f conftest.in conftest.tmp conftest.nl conftest.out321 rm -f conftest.in conftest.tmp conftest.nl conftest.out
268 }322 }
269323
324<<<<<<< build-aux/ltmain.sh
270 func_path_progs "sed gsed" func_check_prog_sed "$PATH:/usr/xpg4/bin"325 func_path_progs "sed gsed" func_check_prog_sed "$PATH:/usr/xpg4/bin"
326=======
327 func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin
328>>>>>>> build-aux/ltmain.sh
271 rm -f conftest.sed329 rm -f conftest.sed
272 SED=$func_path_progs_result330 SED=$func_path_progs_result
273}331}
@@ -303,7 +361,11 @@ test -z "$GREP" && {
303 rm -f conftest.in conftest.tmp conftest.nl conftest.out361 rm -f conftest.in conftest.tmp conftest.nl conftest.out
304 }362 }
305363
364<<<<<<< build-aux/ltmain.sh
306 func_path_progs "grep ggrep" func_check_prog_grep "$PATH:/usr/xpg4/bin"365 func_path_progs "grep ggrep" func_check_prog_grep "$PATH:/usr/xpg4/bin"
366=======
367 func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin
368>>>>>>> build-aux/ltmain.sh
307 GREP=$func_path_progs_result369 GREP=$func_path_progs_result
308}370}
309371
@@ -588,16 +650,26 @@ if test yes = "$_G_HAVE_PLUSEQ_OP"; then
588 {650 {
589 $debug_cmd651 $debug_cmd
590652
653<<<<<<< build-aux/ltmain.sh
591 func_quote_arg pretty "$2"654 func_quote_arg pretty "$2"
592 eval "$1+=\\ \$func_quote_arg_result"655 eval "$1+=\\ \$func_quote_arg_result"
656=======
657 func_quote_for_eval "$2"
658 eval "$1+=\\ \$func_quote_for_eval_result"
659>>>>>>> build-aux/ltmain.sh
593 }'660 }'
594else661else
595 func_append_quoted ()662 func_append_quoted ()
596 {663 {
597 $debug_cmd664 $debug_cmd
598665
666<<<<<<< build-aux/ltmain.sh
599 func_quote_arg pretty "$2"667 func_quote_arg pretty "$2"
600 eval "$1=\$$1\\ \$func_quote_arg_result"668 eval "$1=\$$1\\ \$func_quote_arg_result"
669=======
670 func_quote_for_eval "$2"
671 eval "$1=\$$1\\ \$func_quote_for_eval_result"
672>>>>>>> build-aux/ltmain.sh
601 }673 }
602fi674fi
603675
@@ -1099,6 +1171,7 @@ func_relative_path ()
1099}1171}
11001172
11011173
1174<<<<<<< build-aux/ltmain.sh
1102# func_quote_portable EVAL ARG1175# func_quote_portable EVAL ARG
1103# ----------------------------1176# ----------------------------
1104# Internal function to portably implement func_quote_arg. Note that we still1177# Internal function to portably implement func_quote_arg. Note that we still
@@ -1292,6 +1365,87 @@ func_quote ()
1292 fi1365 fi
1293 shift1366 shift
1294 done1367 done
1368=======
1369# func_quote_for_eval ARG...
1370# --------------------------
1371# Aesthetically quote ARGs to be evaled later.
1372# This function returns two values:
1373# i) func_quote_for_eval_result
1374# double-quoted, suitable for a subsequent eval
1375# ii) func_quote_for_eval_unquoted_result
1376# has all characters that are still active within double
1377# quotes backslashified.
1378func_quote_for_eval ()
1379{
1380 $debug_cmd
1381
1382 func_quote_for_eval_unquoted_result=
1383 func_quote_for_eval_result=
1384 while test 0 -lt $#; do
1385 case $1 in
1386 *[\\\`\"\$]*)
1387 _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;;
1388 *)
1389 _G_unquoted_arg=$1 ;;
1390 esac
1391 if test -n "$func_quote_for_eval_unquoted_result"; then
1392 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg"
1393 else
1394 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg"
1395 fi
1396
1397 case $_G_unquoted_arg in
1398 # Double-quote args containing shell metacharacters to delay
1399 # word splitting, command substitution and variable expansion
1400 # for a subsequent eval.
1401 # Many Bourne shells cannot handle close brackets correctly
1402 # in scan sets, so we specify it separately.
1403 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1404 _G_quoted_arg=\"$_G_unquoted_arg\"
1405 ;;
1406 *)
1407 _G_quoted_arg=$_G_unquoted_arg
1408 ;;
1409 esac
1410
1411 if test -n "$func_quote_for_eval_result"; then
1412 func_append func_quote_for_eval_result " $_G_quoted_arg"
1413 else
1414 func_append func_quote_for_eval_result "$_G_quoted_arg"
1415 fi
1416 shift
1417 done
1418}
1419
1420
1421# func_quote_for_expand ARG
1422# -------------------------
1423# Aesthetically quote ARG to be evaled later; same as above,
1424# but do not quote variable references.
1425func_quote_for_expand ()
1426{
1427 $debug_cmd
1428
1429 case $1 in
1430 *[\\\`\"]*)
1431 _G_arg=`$ECHO "$1" | $SED \
1432 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
1433 *)
1434 _G_arg=$1 ;;
1435 esac
1436
1437 case $_G_arg in
1438 # Double-quote args containing shell metacharacters to delay
1439 # word splitting and command substitution for a subsequent eval.
1440 # Many Bourne shells cannot handle close brackets correctly
1441 # in scan sets, so we specify it separately.
1442 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1443 _G_arg=\"$_G_arg\"
1444 ;;
1445 esac
1446
1447 func_quote_for_expand_result=$_G_arg
1448>>>>>>> build-aux/ltmain.sh
1295}1449}
12961450
12971451
@@ -1337,8 +1491,13 @@ func_show_eval ()
1337 _G_cmd=$11491 _G_cmd=$1
1338 _G_fail_exp=${2-':'}1492 _G_fail_exp=${2-':'}
13391493
1494<<<<<<< build-aux/ltmain.sh
1340 func_quote_arg pretty,expand "$_G_cmd"1495 func_quote_arg pretty,expand "$_G_cmd"
1341 eval "func_notquiet $func_quote_arg_result"1496 eval "func_notquiet $func_quote_arg_result"
1497=======
1498 func_quote_for_expand "$_G_cmd"
1499 eval "func_notquiet $func_quote_for_expand_result"
1500>>>>>>> build-aux/ltmain.sh
13421501
1343 $opt_dry_run || {1502 $opt_dry_run || {
1344 eval "$_G_cmd"1503 eval "$_G_cmd"
@@ -1363,8 +1522,13 @@ func_show_eval_locale ()
1363 _G_fail_exp=${2-':'}1522 _G_fail_exp=${2-':'}
13641523
1365 $opt_quiet || {1524 $opt_quiet || {
1525<<<<<<< build-aux/ltmain.sh
1366 func_quote_arg expand,pretty "$_G_cmd"1526 func_quote_arg expand,pretty "$_G_cmd"
1367 eval "func_echo $func_quote_arg_result"1527 eval "func_echo $func_quote_arg_result"
1528=======
1529 func_quote_for_expand "$_G_cmd"
1530 eval "func_echo $func_quote_for_expand_result"
1531>>>>>>> build-aux/ltmain.sh
1368 }1532 }
13691533
1370 $opt_dry_run || {1534 $opt_dry_run || {
@@ -1491,6 +1655,7 @@ func_lt_ver ()
1491# End:1655# End:
1492#! /bin/sh1656#! /bin/sh
14931657
1658<<<<<<< build-aux/ltmain.sh
1494# A portable, pluggable option parser for Bourne shell.1659# A portable, pluggable option parser for Bourne shell.
1495# Written by Gary V. Vaughan, 20101660# Written by Gary V. Vaughan, 2010
14961661
@@ -1511,6 +1676,32 @@ func_lt_ver ()
15111676
1512# Set a version string for this script.1677# Set a version string for this script.
1513scriptversion=2018-07-24.06; # UTC1678scriptversion=2018-07-24.06; # UTC
1679=======
1680# Set a version string for this script.
1681scriptversion=2014-01-07.03; # UTC
1682
1683# A portable, pluggable option parser for Bourne shell.
1684# Written by Gary V. Vaughan, 2010
1685
1686# Copyright (C) 2010-2015 Free Software Foundation, Inc.
1687# This is free software; see the source for copying conditions. There is NO
1688# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1689
1690# This program is free software: you can redistribute it and/or modify
1691# it under the terms of the GNU General Public License as published by
1692# the Free Software Foundation, either version 3 of the License, or
1693# (at your option) any later version.
1694
1695# This program is distributed in the hope that it will be useful,
1696# but WITHOUT ANY WARRANTY; without even the implied warranty of
1697# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1698# GNU General Public License for more details.
1699
1700# You should have received a copy of the GNU General Public License
1701# along with this program. If not, see <http://www.gnu.org/licenses/>.
1702
1703# Please report bugs or propose patches to gary@gnu.org.
1704>>>>>>> build-aux/ltmain.sh
15141705
15151706
1516## ------ ##1707## ------ ##
@@ -1533,7 +1724,11 @@ scriptversion=2018-07-24.06; # UTC
1533#1724#
1534# In order for the '--version' option to work, you will need to have a1725# In order for the '--version' option to work, you will need to have a
1535# suitably formatted comment like the one at the top of this file1726# suitably formatted comment like the one at the top of this file
1727<<<<<<< build-aux/ltmain.sh
1536# starting with '# Written by ' and ending with '# Copyright'.1728# starting with '# Written by ' and ending with '# Copyright'.
1729=======
1730# starting with '# Written by ' and ending with '# warranty; '.
1731>>>>>>> build-aux/ltmain.sh
1537#1732#
1538# For '-h' and '--help' to work, you will also need a one line1733# For '-h' and '--help' to work, you will also need a one line
1539# description of your script's purpose in a comment directly above the1734# description of your script's purpose in a comment directly above the
@@ -1545,7 +1740,11 @@ scriptversion=2018-07-24.06; # UTC
1545# to display verbose messages only when your user has specified1740# to display verbose messages only when your user has specified
1546# '--verbose'.1741# '--verbose'.
1547#1742#
1743<<<<<<< build-aux/ltmain.sh
1548# After sourcing this file, you can plug in processing for additional1744# After sourcing this file, you can plug in processing for additional
1745=======
1746# After sourcing this file, you can plug processing for additional
1747>>>>>>> build-aux/ltmain.sh
1549# options by amending the variables from the 'Configuration' section1748# options by amending the variables from the 'Configuration' section
1550# below, and following the instructions in the 'Option parsing'1749# below, and following the instructions in the 'Option parsing'
1551# section further down.1750# section further down.
@@ -1594,8 +1793,13 @@ fatal_help="Try '\$progname --help' for more information."
1594## ------------------------- ##1793## ------------------------- ##
15951794
1596# This section contains functions for adding, removing, and running hooks1795# This section contains functions for adding, removing, and running hooks
1796<<<<<<< build-aux/ltmain.sh
1597# in the main code. A hook is just a list of function names that can be1797# in the main code. A hook is just a list of function names that can be
1598# run in order later on.1798# run in order later on.
1799=======
1800# to the main code. A hook is just a named list of of function, that can
1801# be run in order later on.
1802>>>>>>> build-aux/ltmain.sh
15991803
1600# func_hookable FUNC_NAME1804# func_hookable FUNC_NAME
1601# -----------------------1805# -----------------------
@@ -1628,8 +1832,12 @@ func_add_hook ()
16281832
1629# func_remove_hook FUNC_NAME HOOK_FUNC1833# func_remove_hook FUNC_NAME HOOK_FUNC
1630# ------------------------------------1834# ------------------------------------
1835<<<<<<< build-aux/ltmain.sh
1631# Remove HOOK_FUNC from the list of hook functions to be called by1836# Remove HOOK_FUNC from the list of hook functions to be called by
1632# FUNC_NAME.1837# FUNC_NAME.
1838=======
1839# Remove HOOK_FUNC from the list of functions called by FUNC_NAME.
1840>>>>>>> build-aux/ltmain.sh
1633func_remove_hook ()1841func_remove_hook ()
1634{1842{
1635 $debug_cmd1843 $debug_cmd
@@ -1638,6 +1846,7 @@ func_remove_hook ()
1638}1846}
16391847
16401848
1849<<<<<<< build-aux/ltmain.sh
1641# func_propagate_result FUNC_NAME_A FUNC_NAME_B1850# func_propagate_result FUNC_NAME_A FUNC_NAME_B
1642# ---------------------------------------------1851# ---------------------------------------------
1643# If the *_result variable of FUNC_NAME_A _is set_, assign its value to1852# If the *_result variable of FUNC_NAME_A _is set_, assign its value to
@@ -1660,6 +1869,12 @@ func_propagate_result ()
1660# ---------------------------------1869# ---------------------------------
1661# Run all hook functions registered to FUNC_NAME.1870# Run all hook functions registered to FUNC_NAME.
1662# It's assumed that the list of hook functions contains nothing more1871# It's assumed that the list of hook functions contains nothing more
1872=======
1873# func_run_hooks FUNC_NAME [ARG]...
1874# ---------------------------------
1875# Run all hook functions registered to FUNC_NAME.
1876# It is assumed that the list of hook functions contains nothing more
1877>>>>>>> build-aux/ltmain.sh
1663# than a whitespace-delimited list of legal shell function names, and1878# than a whitespace-delimited list of legal shell function names, and
1664# no effort is wasted trying to catch shell meta-characters or preserve1879# no effort is wasted trying to catch shell meta-characters or preserve
1665# whitespace.1880# whitespace.
@@ -1669,12 +1884,17 @@ func_run_hooks ()
16691884
1670 case " $hookable_fns " in1885 case " $hookable_fns " in
1671 *" $1 "*) ;;1886 *" $1 "*) ;;
1887<<<<<<< build-aux/ltmain.sh
1672 *) func_fatal_error "'$1' does not support hook functions." ;;1888 *) func_fatal_error "'$1' does not support hook functions." ;;
1889=======
1890 *) func_fatal_error "'$1' does not support hook funcions.n" ;;
1891>>>>>>> build-aux/ltmain.sh
1673 esac1892 esac
16741893
1675 eval _G_hook_fns=\$$1_hooks; shift1894 eval _G_hook_fns=\$$1_hooks; shift
16761895
1677 for _G_hook in $_G_hook_fns; do1896 for _G_hook in $_G_hook_fns; do
1897<<<<<<< build-aux/ltmain.sh
1678 func_unset "${_G_hook}_result"1898 func_unset "${_G_hook}_result"
1679 eval $_G_hook '${1+"$@"}'1899 eval $_G_hook '${1+"$@"}'
1680 func_propagate_result $_G_hook func_run_hooks1900 func_propagate_result $_G_hook func_run_hooks
@@ -1682,6 +1902,18 @@ func_run_hooks ()
1682 eval set dummy "$func_run_hooks_result"; shift1902 eval set dummy "$func_run_hooks_result"; shift
1683 fi1903 fi
1684 done1904 done
1905=======
1906 eval $_G_hook '"$@"'
1907
1908 # store returned options list back into positional
1909 # parameters for next 'cmd' execution.
1910 eval _G_hook_result=\$${_G_hook}_result
1911 eval set dummy "$_G_hook_result"; shift
1912 done
1913
1914 func_quote_for_eval ${1+"$@"}
1915 func_run_hooks_result=$func_quote_for_eval_result
1916>>>>>>> build-aux/ltmain.sh
1685}1917}
16861918
16871919
@@ -1691,6 +1923,7 @@ func_run_hooks ()
1691## --------------- ##1923## --------------- ##
16921924
1693# In order to add your own option parsing hooks, you must accept the1925# In order to add your own option parsing hooks, you must accept the
1926<<<<<<< build-aux/ltmain.sh
1694# full positional parameter list from your hook function. You may remove1927# full positional parameter list from your hook function. You may remove
1695# or edit any options that you action, and then pass back the remaining1928# or edit any options that you action, and then pass back the remaining
1696# unprocessed options in '<hooked_function_name>_result', escaped1929# unprocessed options in '<hooked_function_name>_result', escaped
@@ -1703,6 +1936,12 @@ func_run_hooks ()
1703# machines).1936# machines).
1704#1937#
1705# Like this:1938# Like this:
1939=======
1940# full positional parameter list in your hook function, remove any
1941# options that you action, and then pass back the remaining unprocessed
1942# options in '<hooked_function_name>_result', escaped suitably for
1943# 'eval'. Like this:
1944>>>>>>> build-aux/ltmain.sh
1706#1945#
1707# my_options_prep ()1946# my_options_prep ()
1708# {1947# {
@@ -1712,8 +1951,14 @@ func_run_hooks ()
1712# usage_message=$usage_message'1951# usage_message=$usage_message'
1713# -s, --silent don'\''t print informational messages1952# -s, --silent don'\''t print informational messages
1714# '1953# '
1954<<<<<<< build-aux/ltmain.sh
1715# # No change in '$@' (ignored completely by this hook). Leave1955# # No change in '$@' (ignored completely by this hook). Leave
1716# # my_options_prep_result variable intact.1956# # my_options_prep_result variable intact.
1957=======
1958#
1959# func_quote_for_eval ${1+"$@"}
1960# my_options_prep_result=$func_quote_for_eval_result
1961>>>>>>> build-aux/ltmain.sh
1717# }1962# }
1718# func_add_hook func_options_prep my_options_prep1963# func_add_hook func_options_prep my_options_prep
1719#1964#
@@ -1722,22 +1967,31 @@ func_run_hooks ()
1722# {1967# {
1723# $debug_cmd1968# $debug_cmd
1724#1969#
1970<<<<<<< build-aux/ltmain.sh
1725# args_changed=false1971# args_changed=false
1726#1972#
1727# # Note that, for efficiency, we parse as many options as we can1973# # Note that, for efficiency, we parse as many options as we can
1974=======
1975# # Note that for efficiency, we parse as many options as we can
1976>>>>>>> build-aux/ltmain.sh
1728# # recognise in a loop before passing the remainder back to the1977# # recognise in a loop before passing the remainder back to the
1729# # caller on the first unrecognised argument we encounter.1978# # caller on the first unrecognised argument we encounter.
1730# while test $# -gt 0; do1979# while test $# -gt 0; do
1731# opt=$1; shift1980# opt=$1; shift
1732# case $opt in1981# case $opt in
1982<<<<<<< build-aux/ltmain.sh
1733# --silent|-s) opt_silent=:1983# --silent|-s) opt_silent=:
1734# args_changed=:1984# args_changed=:
1735# ;;1985# ;;
1986=======
1987# --silent|-s) opt_silent=: ;;
1988>>>>>>> build-aux/ltmain.sh
1736# # Separate non-argument short options:1989# # Separate non-argument short options:
1737# -s*) func_split_short_opt "$_G_opt"1990# -s*) func_split_short_opt "$_G_opt"
1738# set dummy "$func_split_short_opt_name" \1991# set dummy "$func_split_short_opt_name" \
1739# "-$func_split_short_opt_arg" ${1+"$@"}1992# "-$func_split_short_opt_arg" ${1+"$@"}
1740# shift1993# shift
1994<<<<<<< build-aux/ltmain.sh
1741# args_changed=:1995# args_changed=:
1742# ;;1996# ;;
1743# *) # Make sure the first unrecognised option "$_G_opt"1997# *) # Make sure the first unrecognised option "$_G_opt"
@@ -1752,6 +2006,15 @@ func_run_hooks ()
1752# func_quote eval ${1+"$@"}2006# func_quote eval ${1+"$@"}
1753# my_silent_option_result=$func_quote_result2007# my_silent_option_result=$func_quote_result
1754# fi2008# fi
2009=======
2010# ;;
2011# *) set dummy "$_G_opt" "$*"; shift; break ;;
2012# esac
2013# done
2014#
2015# func_quote_for_eval ${1+"$@"}
2016# my_silent_option_result=$func_quote_for_eval_result
2017>>>>>>> build-aux/ltmain.sh
1755# }2018# }
1756# func_add_hook func_parse_options my_silent_option2019# func_add_hook func_parse_options my_silent_option
1757#2020#
@@ -1762,14 +2025,25 @@ func_run_hooks ()
1762#2025#
1763# $opt_silent && $opt_verbose && func_fatal_help "\2026# $opt_silent && $opt_verbose && func_fatal_help "\
1764# '--silent' and '--verbose' options are mutually exclusive."2027# '--silent' and '--verbose' options are mutually exclusive."
2028<<<<<<< build-aux/ltmain.sh
1765# }2029# }
1766# func_add_hook func_validate_options my_option_validation2030# func_add_hook func_validate_options my_option_validation
1767#2031#
1768# You'll also need to manually amend $usage_message to reflect the extra2032# You'll also need to manually amend $usage_message to reflect the extra
2033=======
2034#
2035# func_quote_for_eval ${1+"$@"}
2036# my_option_validation_result=$func_quote_for_eval_result
2037# }
2038# func_add_hook func_validate_options my_option_validation
2039#
2040# You'll alse need to manually amend $usage_message to reflect the extra
2041>>>>>>> build-aux/ltmain.sh
1769# options you parse. It's preferable to append if you can, so that2042# options you parse. It's preferable to append if you can, so that
1770# multiple option parsing hooks can be added safely.2043# multiple option parsing hooks can be added safely.
17712044
17722045
2046<<<<<<< build-aux/ltmain.sh
1773# func_options_finish [ARG]...2047# func_options_finish [ARG]...
1774# ----------------------------2048# ----------------------------
1775# Finishing the option parse loop (call 'func_options' hooks ATM).2049# Finishing the option parse loop (call 'func_options' hooks ATM).
@@ -1782,6 +2056,8 @@ func_options_finish ()
1782}2056}
17832057
17842058
2059=======
2060>>>>>>> build-aux/ltmain.sh
1785# func_options [ARG]...2061# func_options [ARG]...
1786# ---------------------2062# ---------------------
1787# All the functions called inside func_options are hookable. See the2063# All the functions called inside func_options are hookable. See the
@@ -1791,6 +2067,7 @@ func_options ()
1791{2067{
1792 $debug_cmd2068 $debug_cmd
17932069
2070<<<<<<< build-aux/ltmain.sh
1794 _G_options_quoted=false2071 _G_options_quoted=false
17952072
1796 for my_func in options_prep parse_options validate_options options_finish2073 for my_func in options_prep parse_options validate_options options_finish
@@ -1812,6 +2089,19 @@ func_options ()
1812 func_quote eval ${1+"$@"}2089 func_quote eval ${1+"$@"}
1813 func_options_result=$func_quote_result2090 func_options_result=$func_quote_result
1814 }2091 }
2092=======
2093 func_options_prep ${1+"$@"}
2094 eval func_parse_options \
2095 ${func_options_prep_result+"$func_options_prep_result"}
2096 eval func_validate_options \
2097 ${func_parse_options_result+"$func_parse_options_result"}
2098
2099 eval func_run_hooks func_options \
2100 ${func_validate_options_result+"$func_validate_options_result"}
2101
2102 # save modified positional parameters for caller
2103 func_options_result=$func_run_hooks_result
2104>>>>>>> build-aux/ltmain.sh
1815}2105}
18162106
18172107
@@ -1820,8 +2110,14 @@ func_options ()
1820# All initialisations required before starting the option parse loop.2110# All initialisations required before starting the option parse loop.
1821# Note that when calling hook functions, we pass through the list of2111# Note that when calling hook functions, we pass through the list of
1822# positional parameters. If a hook function modifies that list, and2112# positional parameters. If a hook function modifies that list, and
2113<<<<<<< build-aux/ltmain.sh
1823# needs to propagate that back to rest of this script, then the complete2114# needs to propagate that back to rest of this script, then the complete
1824# modified list must be put in 'func_run_hooks_result' before returning.2115# modified list must be put in 'func_run_hooks_result' before returning.
2116=======
2117# needs to propogate that back to rest of this script, then the complete
2118# modified list must be put in 'func_run_hooks_result' before
2119# returning.
2120>>>>>>> build-aux/ltmain.sh
1825func_hookable func_options_prep2121func_hookable func_options_prep
1826func_options_prep ()2122func_options_prep ()
1827{2123{
@@ -1832,7 +2128,13 @@ func_options_prep ()
1832 opt_warning_types=2128 opt_warning_types=
18332129
1834 func_run_hooks func_options_prep ${1+"$@"}2130 func_run_hooks func_options_prep ${1+"$@"}
2131<<<<<<< build-aux/ltmain.sh
1835 func_propagate_result func_run_hooks func_options_prep2132 func_propagate_result func_run_hooks func_options_prep
2133=======
2134
2135 # save modified positional parameters for caller
2136 func_options_prep_result=$func_run_hooks_result
2137>>>>>>> build-aux/ltmain.sh
1836}2138}
18372139
18382140
@@ -1844,12 +2146,18 @@ func_parse_options ()
1844{2146{
1845 $debug_cmd2147 $debug_cmd
18462148
2149<<<<<<< build-aux/ltmain.sh
1847 _G_parse_options_requote=false2150 _G_parse_options_requote=false
2151=======
2152 func_parse_options_result=
2153
2154>>>>>>> build-aux/ltmain.sh
1848 # this just eases exit handling2155 # this just eases exit handling
1849 while test $# -gt 0; do2156 while test $# -gt 0; do
1850 # Defer to hook functions for initial option parsing, so they2157 # Defer to hook functions for initial option parsing, so they
1851 # get priority in the event of reusing an option name.2158 # get priority in the event of reusing an option name.
1852 func_run_hooks func_parse_options ${1+"$@"}2159 func_run_hooks func_parse_options ${1+"$@"}
2160<<<<<<< build-aux/ltmain.sh
1853 func_propagate_result func_run_hooks func_parse_options2161 func_propagate_result func_run_hooks func_parse_options
1854 if $func_propagate_result_result; then2162 if $func_propagate_result_result; then
1855 eval set dummy "$func_parse_options_result"; shift2163 eval set dummy "$func_parse_options_result"; shift
@@ -1858,18 +2166,30 @@ func_parse_options ()
1858 # this if-branch). No need to quote it again.2166 # this if-branch). No need to quote it again.
1859 _G_parse_options_requote=false2167 _G_parse_options_requote=false
1860 fi2168 fi
2169=======
2170
2171 # Adjust func_parse_options positional parameters to match
2172 eval set dummy "$func_run_hooks_result"; shift
2173>>>>>>> build-aux/ltmain.sh
18612174
1862 # Break out of the loop if we already parsed every option.2175 # Break out of the loop if we already parsed every option.
1863 test $# -gt 0 || break2176 test $# -gt 0 || break
18642177
2178<<<<<<< build-aux/ltmain.sh
1865 # We expect that one of the options parsed in this function matches2179 # We expect that one of the options parsed in this function matches
1866 # and thus we remove _G_opt from "$@" and need to re-quote.2180 # and thus we remove _G_opt from "$@" and need to re-quote.
1867 _G_match_parse_options=:2181 _G_match_parse_options=:
2182=======
2183>>>>>>> build-aux/ltmain.sh
1868 _G_opt=$12184 _G_opt=$1
1869 shift2185 shift
1870 case $_G_opt in2186 case $_G_opt in
1871 --debug|-x) debug_cmd='set -x'2187 --debug|-x) debug_cmd='set -x'
2188<<<<<<< build-aux/ltmain.sh
1872 func_echo "enabling shell trace mode" >&22189 func_echo "enabling shell trace mode" >&2
2190=======
2191 func_echo "enabling shell trace mode"
2192>>>>>>> build-aux/ltmain.sh
1873 $debug_cmd2193 $debug_cmd
1874 ;;2194 ;;
18752195
@@ -1879,10 +2199,14 @@ func_parse_options ()
1879 ;;2199 ;;
18802200
1881 --warnings|--warning|-W)2201 --warnings|--warning|-W)
2202<<<<<<< build-aux/ltmain.sh
1882 if test $# = 0 && func_missing_arg $_G_opt; then2203 if test $# = 0 && func_missing_arg $_G_opt; then
1883 _G_parse_options_requote=:2204 _G_parse_options_requote=:
1884 break2205 break
1885 fi2206 fi
2207=======
2208 test $# = 0 && func_missing_arg $_G_opt && break
2209>>>>>>> build-aux/ltmain.sh
1886 case " $warning_categories $1" in2210 case " $warning_categories $1" in
1887 *" $1 "*)2211 *" $1 "*)
1888 # trailing space prevents matching last $1 above2212 # trailing space prevents matching last $1 above
@@ -1935,6 +2259,7 @@ func_parse_options ()
1935 shift2259 shift
1936 ;;2260 ;;
19372261
2262<<<<<<< build-aux/ltmain.sh
1938 --) _G_parse_options_requote=: ; break ;;2263 --) _G_parse_options_requote=: ; break ;;
1939 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;2264 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1940 *) set dummy "$_G_opt" ${1+"$@"}; shift2265 *) set dummy "$_G_opt" ${1+"$@"}; shift
@@ -1953,6 +2278,17 @@ func_parse_options ()
1953 func_quote eval ${1+"$@"}2278 func_quote eval ${1+"$@"}
1954 func_parse_options_result=$func_quote_result2279 func_parse_options_result=$func_quote_result
1955 fi2280 fi
2281=======
2282 --) break ;;
2283 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
2284 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
2285 esac
2286 done
2287
2288 # save modified positional parameters for caller
2289 func_quote_for_eval ${1+"$@"}
2290 func_parse_options_result=$func_quote_for_eval_result
2291>>>>>>> build-aux/ltmain.sh
1956}2292}
19572293
19582294
@@ -1969,10 +2305,19 @@ func_validate_options ()
1969 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"2305 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
19702306
1971 func_run_hooks func_validate_options ${1+"$@"}2307 func_run_hooks func_validate_options ${1+"$@"}
2308<<<<<<< build-aux/ltmain.sh
1972 func_propagate_result func_run_hooks func_validate_options2309 func_propagate_result func_run_hooks func_validate_options
19732310
1974 # Bail if the options were screwed!2311 # Bail if the options were screwed!
1975 $exit_cmd $EXIT_FAILURE2312 $exit_cmd $EXIT_FAILURE
2313=======
2314
2315 # Bail if the options were screwed!
2316 $exit_cmd $EXIT_FAILURE
2317
2318 # save modified positional parameters for caller
2319 func_validate_options_result=$func_run_hooks_result
2320>>>>>>> build-aux/ltmain.sh
1976}2321}
19772322
19782323
@@ -2028,8 +2373,13 @@ func_missing_arg ()
20282373
2029# func_split_equals STRING2374# func_split_equals STRING
2030# ------------------------2375# ------------------------
2376<<<<<<< build-aux/ltmain.sh
2031# Set func_split_equals_lhs and func_split_equals_rhs shell variables2377# Set func_split_equals_lhs and func_split_equals_rhs shell variables
2032# after splitting STRING at the '=' sign.2378# after splitting STRING at the '=' sign.
2379=======
2380# Set func_split_equals_lhs and func_split_equals_rhs shell variables after
2381# splitting STRING at the '=' sign.
2382>>>>>>> build-aux/ltmain.sh
2033test -z "$_G_HAVE_XSI_OPS" \2383test -z "$_G_HAVE_XSI_OPS" \
2034 && (eval 'x=a/b/c;2384 && (eval 'x=a/b/c;
2035 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \2385 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
@@ -2044,9 +2394,14 @@ then
20442394
2045 func_split_equals_lhs=${1%%=*}2395 func_split_equals_lhs=${1%%=*}
2046 func_split_equals_rhs=${1#*=}2396 func_split_equals_rhs=${1#*=}
2397<<<<<<< build-aux/ltmain.sh
2047 if test "x$func_split_equals_lhs" = "x$1"; then2398 if test "x$func_split_equals_lhs" = "x$1"; then
2048 func_split_equals_rhs=2399 func_split_equals_rhs=
2049 fi2400 fi
2401=======
2402 test "x$func_split_equals_lhs" = "x$1" \
2403 && func_split_equals_rhs=
2404>>>>>>> build-aux/ltmain.sh
2050 }'2405 }'
2051else2406else
2052 # ...otherwise fall back to using expr, which is often a shell builtin.2407 # ...otherwise fall back to using expr, which is often a shell builtin.
@@ -2124,6 +2479,7 @@ func_usage_message ()
2124# func_version2479# func_version
2125# ------------2480# ------------
2126# Echo version message to standard output and exit.2481# Echo version message to standard output and exit.
2482<<<<<<< build-aux/ltmain.sh
2127# The version message is extracted from the calling file's header2483# The version message is extracted from the calling file's header
2128# comments, with leading '# ' stripped:2484# comments, with leading '# ' stripped:
2129# 1. First display the progname and version2485# 1. First display the progname and version
@@ -2133,12 +2489,15 @@ func_usage_message ()
2133# 4. Immediately followed by any lines between the previous matches,2489# 4. Immediately followed by any lines between the previous matches,
2134# except lines preceding the intervening completely blank line.2490# except lines preceding the intervening completely blank line.
2135# For example, see the header comments of this file.2491# For example, see the header comments of this file.
2492=======
2493>>>>>>> build-aux/ltmain.sh
2136func_version ()2494func_version ()
2137{2495{
2138 $debug_cmd2496 $debug_cmd
21392497
2140 printf '%s\n' "$progname $scriptversion"2498 printf '%s\n' "$progname $scriptversion"
2141 $SED -n '2499 $SED -n '
2500<<<<<<< build-aux/ltmain.sh
2142 /^# Written by /!b2501 /^# Written by /!b
2143 s|^# ||; p; n2502 s|^# ||; p; n
21442503
@@ -2162,6 +2521,27 @@ func_version ()
2162 G2521 G
2163 s|\(\n\)\n*|\1|g2522 s|\(\n\)\n*|\1|g
2164 p; q' < "$progpath"2523 p; q' < "$progpath"
2524=======
2525 /(C)/!b go
2526 :more
2527 /\./!{
2528 N
2529 s|\n# | |
2530 b more
2531 }
2532 :go
2533 /^# Written by /,/# warranty; / {
2534 s|^# ||
2535 s|^# *$||
2536 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2537 p
2538 }
2539 /^# Written by / {
2540 s|^# ||
2541 p
2542 }
2543 /^warranty; /q' < "$progpath"
2544>>>>>>> build-aux/ltmain.sh
21652545
2166 exit $?2546 exit $?
2167}2547}
@@ -2171,12 +2551,20 @@ func_version ()
2171# mode: shell-script2551# mode: shell-script
2172# sh-indentation: 22552# sh-indentation: 2
2173# eval: (add-hook 'before-save-hook 'time-stamp)2553# eval: (add-hook 'before-save-hook 'time-stamp)
2554<<<<<<< build-aux/ltmain.sh
2174# time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC"2555# time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2556=======
2557# time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2558>>>>>>> build-aux/ltmain.sh
2175# time-stamp-time-zone: "UTC"2559# time-stamp-time-zone: "UTC"
2176# End:2560# End:
21772561
2178# Set a version string.2562# Set a version string.
2563<<<<<<< build-aux/ltmain.sh
2179scriptversion='(GNU libtool) 2.4.6.42-b88ce'2564scriptversion='(GNU libtool) 2.4.6.42-b88ce'
2565=======
2566scriptversion='(GNU libtool) 2.4.6'
2567>>>>>>> build-aux/ltmain.sh
21802568
21812569
2182# func_echo ARG...2570# func_echo ARG...
@@ -2267,12 +2655,20 @@ include the following information:
2267 compiler: $LTCC2655 compiler: $LTCC
2268 compiler flags: $LTCFLAGS2656 compiler flags: $LTCFLAGS
2269 linker: $LD (gnu? $with_gnu_ld)2657 linker: $LD (gnu? $with_gnu_ld)
2658<<<<<<< build-aux/ltmain.sh
2270 version: $progname (GNU libtool) 2.4.6.42-b88ce2659 version: $progname (GNU libtool) 2.4.6.42-b88ce
2660=======
2661 version: $progname (GNU libtool) 2.4.6
2662>>>>>>> build-aux/ltmain.sh
2271 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`2663 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2272 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`2664 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
22732665
2274Report bugs to <bug-libtool@gnu.org>.2666Report bugs to <bug-libtool@gnu.org>.
2667<<<<<<< build-aux/ltmain.sh
2275GNU libtool home page: <http://www.gnu.org/s/libtool/>.2668GNU libtool home page: <http://www.gnu.org/s/libtool/>.
2669=======
2670GNU libtool home page: <http://www.gnu.org/software/libtool/>.
2671>>>>>>> build-aux/ltmain.sh
2276General help using GNU software: <http://www.gnu.org/gethelp/>."2672General help using GNU software: <http://www.gnu.org/gethelp/>."
2277 exit 02673 exit 0
2278}2674}
@@ -2469,8 +2865,11 @@ libtool_options_prep ()
2469 nonopt=2865 nonopt=
2470 preserve_args=2866 preserve_args=
24712867
2868<<<<<<< build-aux/ltmain.sh
2472 _G_rc_lt_options_prep=:2869 _G_rc_lt_options_prep=:
24732870
2871=======
2872>>>>>>> build-aux/ltmain.sh
2474 # Shorthand for --mode=foo, only valid as the first argument2873 # Shorthand for --mode=foo, only valid as the first argument
2475 case $1 in2874 case $1 in
2476 clean|clea|cle|cl)2875 clean|clea|cle|cl)
@@ -2494,6 +2893,7 @@ libtool_options_prep ()
2494 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)2893 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
2495 shift; set dummy --mode uninstall ${1+"$@"}; shift2894 shift; set dummy --mode uninstall ${1+"$@"}; shift
2496 ;;2895 ;;
2896<<<<<<< build-aux/ltmain.sh
2497 *)2897 *)
2498 _G_rc_lt_options_prep=false2898 _G_rc_lt_options_prep=false
2499 ;;2899 ;;
@@ -2504,6 +2904,13 @@ libtool_options_prep ()
2504 func_quote eval ${1+"$@"}2904 func_quote eval ${1+"$@"}
2505 libtool_options_prep_result=$func_quote_result2905 libtool_options_prep_result=$func_quote_result
2506 fi2906 fi
2907=======
2908 esac
2909
2910 # Pass back the list of options.
2911 func_quote_for_eval ${1+"$@"}
2912 libtool_options_prep_result=$func_quote_for_eval_result
2913>>>>>>> build-aux/ltmain.sh
2507}2914}
2508func_add_hook func_options_prep libtool_options_prep2915func_add_hook func_options_prep libtool_options_prep
25092916
@@ -2515,12 +2922,18 @@ libtool_parse_options ()
2515{2922{
2516 $debug_cmd2923 $debug_cmd
25172924
2925<<<<<<< build-aux/ltmain.sh
2518 _G_rc_lt_parse_options=false2926 _G_rc_lt_parse_options=false
25192927
2520 # Perform our own loop to consume as many options as possible in2928 # Perform our own loop to consume as many options as possible in
2521 # each iteration.2929 # each iteration.
2522 while test $# -gt 0; do2930 while test $# -gt 0; do
2523 _G_match_lt_parse_options=:2931 _G_match_lt_parse_options=:
2932=======
2933 # Perform our own loop to consume as many options as possible in
2934 # each iteration.
2935 while test $# -gt 0; do
2936>>>>>>> build-aux/ltmain.sh
2524 _G_opt=$12937 _G_opt=$1
2525 shift2938 shift
2526 case $_G_opt in2939 case $_G_opt in
@@ -2595,6 +3008,7 @@ libtool_parse_options ()
2595 func_append preserve_args " $_G_opt"3008 func_append preserve_args " $_G_opt"
2596 ;;3009 ;;
25973010
3011<<<<<<< build-aux/ltmain.sh
2598 # An option not handled by this hook function:3012 # An option not handled by this hook function:
2599 *) set dummy "$_G_opt" ${1+"$@"} ; shift3013 *) set dummy "$_G_opt" ${1+"$@"} ; shift
2600 _G_match_lt_parse_options=false3014 _G_match_lt_parse_options=false
@@ -2609,6 +3023,17 @@ libtool_parse_options ()
2609 func_quote eval ${1+"$@"}3023 func_quote eval ${1+"$@"}
2610 libtool_parse_options_result=$func_quote_result3024 libtool_parse_options_result=$func_quote_result
2611 fi3025 fi
3026=======
3027 # An option not handled by this hook function:
3028 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
3029 esac
3030 done
3031
3032
3033 # save modified positional parameters for caller
3034 func_quote_for_eval ${1+"$@"}
3035 libtool_parse_options_result=$func_quote_for_eval_result
3036>>>>>>> build-aux/ltmain.sh
2612}3037}
2613func_add_hook func_parse_options libtool_parse_options3038func_add_hook func_parse_options libtool_parse_options
26143039
@@ -2665,8 +3090,13 @@ libtool_validate_options ()
2665 }3090 }
26663091
2667 # Pass back the unparsed argument list3092 # Pass back the unparsed argument list
3093<<<<<<< build-aux/ltmain.sh
2668 func_quote eval ${1+"$@"}3094 func_quote eval ${1+"$@"}
2669 libtool_validate_options_result=$func_quote_result3095 libtool_validate_options_result=$func_quote_result
3096=======
3097 func_quote_for_eval ${1+"$@"}
3098 libtool_validate_options_result=$func_quote_for_eval_result
3099>>>>>>> build-aux/ltmain.sh
2670}3100}
2671func_add_hook func_validate_options libtool_validate_options3101func_add_hook func_validate_options libtool_validate_options
26723102
@@ -3632,8 +4062,13 @@ func_mode_compile ()
3632 esac4062 esac
3633 done4063 done
36344064
4065<<<<<<< build-aux/ltmain.sh
3635 func_quote_arg pretty "$libobj"4066 func_quote_arg pretty "$libobj"
3636 test "X$libobj" != "X$func_quote_arg_result" \4067 test "X$libobj" != "X$func_quote_arg_result" \
4068=======
4069 func_quote_for_eval "$libobj"
4070 test "X$libobj" != "X$func_quote_for_eval_result" \
4071>>>>>>> build-aux/ltmain.sh
3637 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \4072 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
3638 && func_warning "libobj name '$libobj' may not contain shell special characters."4073 && func_warning "libobj name '$libobj' may not contain shell special characters."
3639 func_dirname_and_basename "$obj" "/" ""4074 func_dirname_and_basename "$obj" "/" ""
@@ -3706,8 +4141,13 @@ compiler."
37064141
3707 func_to_tool_file "$srcfile" func_convert_file_msys_to_w324142 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
3708 srcfile=$func_to_tool_file_result4143 srcfile=$func_to_tool_file_result
4144<<<<<<< build-aux/ltmain.sh
3709 func_quote_arg pretty "$srcfile"4145 func_quote_arg pretty "$srcfile"
3710 qsrcfile=$func_quote_arg_result4146 qsrcfile=$func_quote_arg_result
4147=======
4148 func_quote_for_eval "$srcfile"
4149 qsrcfile=$func_quote_for_eval_result
4150>>>>>>> build-aux/ltmain.sh
37114151
3712 # Only build a PIC object if we are building libtool libraries.4152 # Only build a PIC object if we are building libtool libraries.
3713 if test yes = "$build_libtool_libs"; then4153 if test yes = "$build_libtool_libs"; then
@@ -4310,8 +4750,13 @@ func_mode_install ()
4310 case $nonopt in *shtool*) :;; *) false;; esac4750 case $nonopt in *shtool*) :;; *) false;; esac
4311 then4751 then
4312 # Aesthetically quote it.4752 # Aesthetically quote it.
4753<<<<<<< build-aux/ltmain.sh
4313 func_quote_arg pretty "$nonopt"4754 func_quote_arg pretty "$nonopt"
4314 install_prog="$func_quote_arg_result "4755 install_prog="$func_quote_arg_result "
4756=======
4757 func_quote_for_eval "$nonopt"
4758 install_prog="$func_quote_for_eval_result "
4759>>>>>>> build-aux/ltmain.sh
4315 arg=$14760 arg=$1
4316 shift4761 shift
4317 else4762 else
@@ -4321,8 +4766,13 @@ func_mode_install ()
43214766
4322 # The real first argument should be the name of the installation program.4767 # The real first argument should be the name of the installation program.
4323 # Aesthetically quote it.4768 # Aesthetically quote it.
4769<<<<<<< build-aux/ltmain.sh
4324 func_quote_arg pretty "$arg"4770 func_quote_arg pretty "$arg"
4325 func_append install_prog "$func_quote_arg_result"4771 func_append install_prog "$func_quote_arg_result"
4772=======
4773 func_quote_for_eval "$arg"
4774 func_append install_prog "$func_quote_for_eval_result"
4775>>>>>>> build-aux/ltmain.sh
4326 install_shared_prog=$install_prog4776 install_shared_prog=$install_prog
4327 case " $install_prog " in4777 case " $install_prog " in
4328 *[\\\ /]cp\ *) install_cp=: ;;4778 *[\\\ /]cp\ *) install_cp=: ;;
@@ -4379,12 +4829,21 @@ func_mode_install ()
4379 esac4829 esac
43804830
4381 # Aesthetically quote the argument.4831 # Aesthetically quote the argument.
4832<<<<<<< build-aux/ltmain.sh
4382 func_quote_arg pretty "$arg"4833 func_quote_arg pretty "$arg"
4383 func_append install_prog " $func_quote_arg_result"4834 func_append install_prog " $func_quote_arg_result"
4384 if test -n "$arg2"; then4835 if test -n "$arg2"; then
4385 func_quote_arg pretty "$arg2"4836 func_quote_arg pretty "$arg2"
4386 fi4837 fi
4387 func_append install_shared_prog " $func_quote_arg_result"4838 func_append install_shared_prog " $func_quote_arg_result"
4839=======
4840 func_quote_for_eval "$arg"
4841 func_append install_prog " $func_quote_for_eval_result"
4842 if test -n "$arg2"; then
4843 func_quote_for_eval "$arg2"
4844 fi
4845 func_append install_shared_prog " $func_quote_for_eval_result"
4846>>>>>>> build-aux/ltmain.sh
4388 done4847 done
43894848
4390 test -z "$install_prog" && \4849 test -z "$install_prog" && \
@@ -4395,8 +4854,13 @@ func_mode_install ()
43954854
4396 if test -n "$install_override_mode" && $no_mode; then4855 if test -n "$install_override_mode" && $no_mode; then
4397 if $install_cp; then :; else4856 if $install_cp; then :; else
4857<<<<<<< build-aux/ltmain.sh
4398 func_quote_arg pretty "$install_override_mode"4858 func_quote_arg pretty "$install_override_mode"
4399 func_append install_shared_prog " -m $func_quote_arg_result"4859 func_append install_shared_prog " -m $func_quote_arg_result"
4860=======
4861 func_quote_for_eval "$install_override_mode"
4862 func_append install_shared_prog " -m $func_quote_for_eval_result"
4863>>>>>>> build-aux/ltmain.sh
4400 fi4864 fi
4401 fi4865 fi
44024866
@@ -4692,8 +5156,13 @@ func_mode_install ()
4692 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`5156 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
46935157
4694 $opt_quiet || {5158 $opt_quiet || {
5159<<<<<<< build-aux/ltmain.sh
4695 func_quote_arg expand,pretty "$relink_command"5160 func_quote_arg expand,pretty "$relink_command"
4696 eval "func_echo $func_quote_arg_result"5161 eval "func_echo $func_quote_arg_result"
5162=======
5163 func_quote_for_expand "$relink_command"
5164 eval "func_echo $func_quote_for_expand_result"
5165>>>>>>> build-aux/ltmain.sh
4697 }5166 }
4698 if eval "$relink_command"; then :5167 if eval "$relink_command"; then :
4699 else5168 else
@@ -5472,8 +5941,12 @@ else
5472 if test \"\$libtool_execute_magic\" != \"$magic\"; then5941 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5473 file=\"\$0\""5942 file=\"\$0\""
54745943
5944<<<<<<< build-aux/ltmain.sh
5475 func_quote_arg pretty "$ECHO"5945 func_quote_arg pretty "$ECHO"
5476 qECHO=$func_quote_arg_result5946 qECHO=$func_quote_arg_result
5947=======
5948 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
5949>>>>>>> build-aux/ltmain.sh
5477 $ECHO "\5950 $ECHO "\
54785951
5479# A function that is used when there is no print builtin or printf.5952# A function that is used when there is no print builtin or printf.
@@ -5483,7 +5956,11 @@ func_fallback_echo ()
5483\$15956\$1
5484_LTECHO_EOF'5957_LTECHO_EOF'
5485}5958}
5959<<<<<<< build-aux/ltmain.sh
5486 ECHO=$qECHO5960 ECHO=$qECHO
5961=======
5962 ECHO=\"$qECHO\"
5963>>>>>>> build-aux/ltmain.sh
5487 fi5964 fi
54885965
5489# Very basic option parsing. These options are (a) specific to5966# Very basic option parsing. These options are (a) specific to
@@ -6826,9 +7303,15 @@ func_mode_link ()
6826 while test "$#" -gt 0; do7303 while test "$#" -gt 0; do
6827 arg=$17304 arg=$1
6828 shift7305 shift
7306<<<<<<< build-aux/ltmain.sh
6829 func_quote_arg pretty,unquoted "$arg"7307 func_quote_arg pretty,unquoted "$arg"
6830 qarg=$func_quote_arg_unquoted_result7308 qarg=$func_quote_arg_unquoted_result
6831 func_append libtool_args " $func_quote_arg_result"7309 func_append libtool_args " $func_quote_arg_result"
7310=======
7311 func_quote_for_eval "$arg"
7312 qarg=$func_quote_for_eval_unquoted_result
7313 func_append libtool_args " $func_quote_for_eval_result"
7314>>>>>>> build-aux/ltmain.sh
68327315
6833 # If the previous option needs an argument, assign it.7316 # If the previous option needs an argument, assign it.
6834 if test -n "$prev"; then7317 if test -n "$prev"; then
@@ -7426,9 +7909,15 @@ func_mode_link ()
7426 save_ifs=$IFS; IFS=,7909 save_ifs=$IFS; IFS=,
7427 for flag in $args; do7910 for flag in $args; do
7428 IFS=$save_ifs7911 IFS=$save_ifs
7912<<<<<<< build-aux/ltmain.sh
7429 func_quote_arg pretty "$flag"7913 func_quote_arg pretty "$flag"
7430 func_append arg " $func_quote_arg_result"7914 func_append arg " $func_quote_arg_result"
7431 func_append compiler_flags " $func_quote_arg_result"7915 func_append compiler_flags " $func_quote_arg_result"
7916=======
7917 func_quote_for_eval "$flag"
7918 func_append arg " $func_quote_for_eval_result"
7919 func_append compiler_flags " $func_quote_for_eval_result"
7920>>>>>>> build-aux/ltmain.sh
7432 done7921 done
7433 IFS=$save_ifs7922 IFS=$save_ifs
7434 func_stripname ' ' '' "$arg"7923 func_stripname ' ' '' "$arg"
@@ -7442,10 +7931,17 @@ func_mode_link ()
7442 save_ifs=$IFS; IFS=,7931 save_ifs=$IFS; IFS=,
7443 for flag in $args; do7932 for flag in $args; do
7444 IFS=$save_ifs7933 IFS=$save_ifs
7934<<<<<<< build-aux/ltmain.sh
7445 func_quote_arg pretty "$flag"7935 func_quote_arg pretty "$flag"
7446 func_append arg " $wl$func_quote_arg_result"7936 func_append arg " $wl$func_quote_arg_result"
7447 func_append compiler_flags " $wl$func_quote_arg_result"7937 func_append compiler_flags " $wl$func_quote_arg_result"
7448 func_append linker_flags " $func_quote_arg_result"7938 func_append linker_flags " $func_quote_arg_result"
7939=======
7940 func_quote_for_eval "$flag"
7941 func_append arg " $wl$func_quote_for_eval_result"
7942 func_append compiler_flags " $wl$func_quote_for_eval_result"
7943 func_append linker_flags " $func_quote_for_eval_result"
7944>>>>>>> build-aux/ltmain.sh
7449 done7945 done
7450 IFS=$save_ifs7946 IFS=$save_ifs
7451 func_stripname ' ' '' "$arg"7947 func_stripname ' ' '' "$arg"
@@ -7469,8 +7965,13 @@ func_mode_link ()
74697965
7470 # -msg_* for osf cc7966 # -msg_* for osf cc
7471 -msg_*)7967 -msg_*)
7968<<<<<<< build-aux/ltmain.sh
7472 func_quote_arg pretty "$arg"7969 func_quote_arg pretty "$arg"
7473 arg=$func_quote_arg_result7970 arg=$func_quote_arg_result
7971=======
7972 func_quote_for_eval "$arg"
7973 arg=$func_quote_for_eval_result
7974>>>>>>> build-aux/ltmain.sh
7474 ;;7975 ;;
74757976
7476 # Flags to be passed through unchanged, with rationale:7977 # Flags to be passed through unchanged, with rationale:
@@ -7489,6 +7990,7 @@ func_mode_link ()
7489 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization7990 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7490 # -specs=* GCC specs files7991 # -specs=* GCC specs files
7491 # -stdlib=* select c++ std lib with clang7992 # -stdlib=* select c++ std lib with clang
7993<<<<<<< build-aux/ltmain.sh
7492 # -fsanitize=* Clang/GCC memory and address sanitizer7994 # -fsanitize=* Clang/GCC memory and address sanitizer
7493 # -fuse-ld=* Linker select flags for GCC7995 # -fuse-ld=* Linker select flags for GCC
7494 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \7996 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
@@ -7497,6 +7999,14 @@ func_mode_link ()
7497 -specs=*|-fsanitize=*|-fuse-ld=*)7999 -specs=*|-fsanitize=*|-fuse-ld=*)
7498 func_quote_arg pretty "$arg"8000 func_quote_arg pretty "$arg"
7499 arg=$func_quote_arg_result8001 arg=$func_quote_arg_result
8002=======
8003 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
8004 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
8005 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
8006 -specs=*)
8007 func_quote_for_eval "$arg"
8008 arg=$func_quote_for_eval_result
8009>>>>>>> build-aux/ltmain.sh
7500 func_append compile_command " $arg"8010 func_append compile_command " $arg"
7501 func_append finalize_command " $arg"8011 func_append finalize_command " $arg"
7502 func_append compiler_flags " $arg"8012 func_append compiler_flags " $arg"
@@ -7517,15 +8027,25 @@ func_mode_link ()
7517 continue8027 continue
7518 else8028 else
7519 # Otherwise treat like 'Some other compiler flag' below8029 # Otherwise treat like 'Some other compiler flag' below
8030<<<<<<< build-aux/ltmain.sh
7520 func_quote_arg pretty "$arg"8031 func_quote_arg pretty "$arg"
7521 arg=$func_quote_arg_result8032 arg=$func_quote_arg_result
8033=======
8034 func_quote_for_eval "$arg"
8035 arg=$func_quote_for_eval_result
8036>>>>>>> build-aux/ltmain.sh
7522 fi8037 fi
7523 ;;8038 ;;
75248039
7525 # Some other compiler flag.8040 # Some other compiler flag.
7526 -* | +*)8041 -* | +*)
8042<<<<<<< build-aux/ltmain.sh
7527 func_quote_arg pretty "$arg"8043 func_quote_arg pretty "$arg"
7528 arg=$func_quote_arg_result8044 arg=$func_quote_arg_result
8045=======
8046 func_quote_for_eval "$arg"
8047 arg=$func_quote_for_eval_result
8048>>>>>>> build-aux/ltmain.sh
7529 ;;8049 ;;
75308050
7531 *.$objext)8051 *.$objext)
@@ -7645,8 +8165,13 @@ func_mode_link ()
7645 *)8165 *)
7646 # Unknown arguments in both finalize_command and compile_command need8166 # Unknown arguments in both finalize_command and compile_command need
7647 # to be aesthetically quoted because they are evaled later.8167 # to be aesthetically quoted because they are evaled later.
8168<<<<<<< build-aux/ltmain.sh
7648 func_quote_arg pretty "$arg"8169 func_quote_arg pretty "$arg"
7649 arg=$func_quote_arg_result8170 arg=$func_quote_arg_result
8171=======
8172 func_quote_for_eval "$arg"
8173 arg=$func_quote_for_eval_result
8174>>>>>>> build-aux/ltmain.sh
7650 ;;8175 ;;
7651 esac # arg8176 esac # arg
76528177
@@ -10152,8 +10677,13 @@ EOF
10152 for cmd in $concat_cmds; do10677 for cmd in $concat_cmds; do
10153 IFS=$save_ifs10678 IFS=$save_ifs
10154 $opt_quiet || {10679 $opt_quiet || {
10680<<<<<<< build-aux/ltmain.sh
10155 func_quote_arg expand,pretty "$cmd"10681 func_quote_arg expand,pretty "$cmd"
10156 eval "func_echo $func_quote_arg_result"10682 eval "func_echo $func_quote_arg_result"
10683=======
10684 func_quote_for_expand "$cmd"
10685 eval "func_echo $func_quote_for_expand_result"
10686>>>>>>> build-aux/ltmain.sh
10157 }10687 }
10158 $opt_dry_run || eval "$cmd" || {10688 $opt_dry_run || eval "$cmd" || {
10159 lt_exit=$?10689 lt_exit=$?
@@ -10246,8 +10776,13 @@ EOF
10246 eval cmd=\"$cmd\"10776 eval cmd=\"$cmd\"
10247 IFS=$save_ifs10777 IFS=$save_ifs
10248 $opt_quiet || {10778 $opt_quiet || {
10779<<<<<<< build-aux/ltmain.sh
10249 func_quote_arg expand,pretty "$cmd"10780 func_quote_arg expand,pretty "$cmd"
10250 eval "func_echo $func_quote_arg_result"10781 eval "func_echo $func_quote_arg_result"
10782=======
10783 func_quote_for_expand "$cmd"
10784 eval "func_echo $func_quote_for_expand_result"
10785>>>>>>> build-aux/ltmain.sh
10251 }10786 }
10252 $opt_dry_run || eval "$cmd" || {10787 $opt_dry_run || eval "$cmd" || {
10253 lt_exit=$?10788 lt_exit=$?
@@ -10721,6 +11256,7 @@ EOF
10721 elif eval var_value=\$$var; test -z "$var_value"; then11256 elif eval var_value=\$$var; test -z "$var_value"; then
10722 relink_command="$var=; export $var; $relink_command"11257 relink_command="$var=; export $var; $relink_command"
10723 else11258 else
11259<<<<<<< build-aux/ltmain.sh
10724 func_quote_arg pretty "$var_value"11260 func_quote_arg pretty "$var_value"
10725 relink_command="$var=$func_quote_arg_result; export $var; $relink_command"11261 relink_command="$var=$func_quote_arg_result; export $var; $relink_command"
10726 fi11262 fi
@@ -10728,6 +11264,14 @@ EOF
10728 func_quote eval cd "`pwd`"11264 func_quote eval cd "`pwd`"
10729 func_quote_arg pretty,unquoted "($func_quote_result; $relink_command)"11265 func_quote_arg pretty,unquoted "($func_quote_result; $relink_command)"
10730 relink_command=$func_quote_arg_unquoted_result11266 relink_command=$func_quote_arg_unquoted_result
11267=======
11268 func_quote_for_eval "$var_value"
11269 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
11270 fi
11271 done
11272 relink_command="(cd `pwd`; $relink_command)"
11273 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
11274>>>>>>> build-aux/ltmain.sh
10731 fi11275 fi
1073211276
10733 # Only actually do things if not in dry run mode.11277 # Only actually do things if not in dry run mode.
@@ -10967,6 +11511,7 @@ EOF
10967 elif eval var_value=\$$var; test -z "$var_value"; then11511 elif eval var_value=\$$var; test -z "$var_value"; then
10968 relink_command="$var=; export $var; $relink_command"11512 relink_command="$var=; export $var; $relink_command"
10969 else11513 else
11514<<<<<<< build-aux/ltmain.sh
10970 func_quote_arg pretty,unquoted "$var_value"11515 func_quote_arg pretty,unquoted "$var_value"
10971 relink_command="$var=$func_quote_arg_unquoted_result; export $var; $relink_command"11516 relink_command="$var=$func_quote_arg_unquoted_result; export $var; $relink_command"
10972 fi11517 fi
@@ -10976,6 +11521,15 @@ EOF
10976 relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"11521 relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10977 func_quote_arg pretty,unquoted "$relink_command"11522 func_quote_arg pretty,unquoted "$relink_command"
10978 relink_command=$func_quote_arg_unquoted_result11523 relink_command=$func_quote_arg_unquoted_result
11524=======
11525 func_quote_for_eval "$var_value"
11526 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
11527 fi
11528 done
11529 # Quote the link command for shipping.
11530 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
11531 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
11532>>>>>>> build-aux/ltmain.sh
10979 if test yes = "$hardcode_automatic"; then11533 if test yes = "$hardcode_automatic"; then
10980 relink_command=11534 relink_command=
10981 fi11535 fi
diff --git a/configure b/configure
index a0d6128..87e8811 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,10 @@
1#! /bin/sh1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.2# Guess values for system-dependent variables and create Makefiles.
3<<<<<<< configure
3# Generated by GNU Autoconf 2.69 for libseccomp 2.4.1.4# Generated by GNU Autoconf 2.69 for libseccomp 2.4.1.
5=======
6# Generated by GNU Autoconf 2.69 for libseccomp 2.4.2.
7>>>>>>> configure
4#8#
5#9#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.10# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -587,8 +591,13 @@ MAKEFLAGS=
587# Identity of this package.591# Identity of this package.
588PACKAGE_NAME='libseccomp'592PACKAGE_NAME='libseccomp'
589PACKAGE_TARNAME='libseccomp'593PACKAGE_TARNAME='libseccomp'
594<<<<<<< configure
590PACKAGE_VERSION='2.4.1'595PACKAGE_VERSION='2.4.1'
591PACKAGE_STRING='libseccomp 2.4.1'596PACKAGE_STRING='libseccomp 2.4.1'
597=======
598PACKAGE_VERSION='2.4.2'
599PACKAGE_STRING='libseccomp 2.4.2'
600>>>>>>> configure
592PACKAGE_BUGREPORT=''601PACKAGE_BUGREPORT=''
593PACKAGE_URL=''602PACKAGE_URL=''
594603
@@ -1347,7 +1356,11 @@ if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.1356 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.1357 # This message is too long to be a string in the A/UX 3.1 sh.
1349 cat <<_ACEOF1358 cat <<_ACEOF
1359<<<<<<< configure
1350\`configure' configures libseccomp 2.4.1 to adapt to many kinds of systems.1360\`configure' configures libseccomp 2.4.1 to adapt to many kinds of systems.
1361=======
1362\`configure' configures libseccomp 2.4.2 to adapt to many kinds of systems.
1363>>>>>>> configure
13511364
1352Usage: $0 [OPTION]... [VAR=VALUE]...1365Usage: $0 [OPTION]... [VAR=VALUE]...
13531366
@@ -1417,7 +1430,11 @@ fi
14171430
1418if test -n "$ac_init_help"; then1431if test -n "$ac_init_help"; then
1419 case $ac_init_help in1432 case $ac_init_help in
1433<<<<<<< configure
1420 short | recursive ) echo "Configuration of libseccomp 2.4.1:";;1434 short | recursive ) echo "Configuration of libseccomp 2.4.1:";;
1435=======
1436 short | recursive ) echo "Configuration of libseccomp 2.4.2:";;
1437>>>>>>> configure
1421 esac1438 esac
1422 cat <<\_ACEOF1439 cat <<\_ACEOF
14231440
@@ -1531,7 +1548,11 @@ fi
1531test -n "$ac_init_help" && exit $ac_status1548test -n "$ac_init_help" && exit $ac_status
1532if $ac_init_version; then1549if $ac_init_version; then
1533 cat <<\_ACEOF1550 cat <<\_ACEOF
1551<<<<<<< configure
1534libseccomp configure 2.4.11552libseccomp configure 2.4.1
1553=======
1554libseccomp configure 2.4.2
1555>>>>>>> configure
1535generated by GNU Autoconf 2.691556generated by GNU Autoconf 2.69
15361557
1537Copyright (C) 2012 Free Software Foundation, Inc.1558Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1809,7 +1830,11 @@ cat >config.log <<_ACEOF
1809This file contains any messages produced by compilers while1830This file contains any messages produced by compilers while
1810running configure, to aid debugging if configure makes a mistake.1831running configure, to aid debugging if configure makes a mistake.
18111832
1833<<<<<<< configure
1812It was created by libseccomp $as_me 2.4.1, which was1834It was created by libseccomp $as_me 2.4.1, which was
1835=======
1836It was created by libseccomp $as_me 2.4.2, which was
1837>>>>>>> configure
1813generated by GNU Autoconf 2.69. Invocation command line was1838generated by GNU Autoconf 2.69. Invocation command line was
18141839
1815 $ $0 $@1840 $ $0 $@
@@ -2679,7 +2704,11 @@ fi
26792704
2680# Define the identity of the package.2705# Define the identity of the package.
2681 PACKAGE='libseccomp'2706 PACKAGE='libseccomp'
2707<<<<<<< configure
2682 VERSION='2.4.1'2708 VERSION='2.4.1'
2709=======
2710 VERSION='2.4.2'
2711>>>>>>> configure
26832712
26842713
2685cat >>confdefs.h <<_ACEOF2714cat >>confdefs.h <<_ACEOF
@@ -4079,8 +4108,13 @@ esac
40794108
40804109
40814110
4111<<<<<<< configure
4082macro_version='2.4.6.42-b88ce'4112macro_version='2.4.6.42-b88ce'
4083macro_revision='2.4.6.42'4113macro_revision='2.4.6.42'
4114=======
4115macro_version='2.4.6'
4116macro_revision='2.4.6'
4117>>>>>>> configure
40844118
40854119
40864120
@@ -5742,12 +5776,17 @@ esac
5742fi5776fi
57435777
5744: ${AR=ar}5778: ${AR=ar}
5779<<<<<<< configure
5780=======
5781: ${AR_FLAGS=cru}
5782>>>>>>> configure
57455783
57465784
57475785
57485786
57495787
57505788
5789<<<<<<< configure
5751# Use ARFLAGS variable as AR's operation code to sync the variable naming with5790# Use ARFLAGS variable as AR's operation code to sync the variable naming with
5752# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have5791# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
5753# higher priority because thats what people were doing historically (setting5792# higher priority because thats what people were doing historically (setting
@@ -5765,6 +5804,8 @@ lt_ar_flags=$AR_FLAGS
5765# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override5804# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
5766# by AR_FLAGS because that was never working and AR_FLAGS is about to die.5805# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
57675806
5807=======
5808>>>>>>> configure
57685809
57695810
57705811
@@ -6213,7 +6254,11 @@ for ac_symprfx in "" "_"; do
6213 if test "$lt_cv_nm_interface" = "MS dumpbin"; then6254 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6214 # Fake it for dumpbin and say T for any non-static function,6255 # Fake it for dumpbin and say T for any non-static function,
6215 # D for any global variable and I for any imported variable.6256 # D for any global variable and I for any imported variable.
6257<<<<<<< configure
6216 # Also find C++ and __fastcall symbols from MSVC++ or ICC,6258 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6259=======
6260 # Also find C++ and __fastcall symbols from MSVC++,
6261>>>>>>> configure
6217 # which start with @ or ?.6262 # which start with @ or ?.
6218 lt_cv_sys_global_symbol_pipe="$AWK '"\6263 lt_cv_sys_global_symbol_pipe="$AWK '"\
6219" {last_section=section; section=\$ 3};"\6264" {last_section=section; section=\$ 3};"\
@@ -7482,8 +7527,13 @@ int forced_loaded() { return 2;}
7482_LT_EOF7527_LT_EOF
7483 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&57528 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7484 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&57529 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7530<<<<<<< configure
7485 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&57531 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
7486 $AR $AR_FLAGS libconftest.a conftest.o 2>&57532 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
7533=======
7534 echo "$AR cru libconftest.a conftest.o" >&5
7535 $AR cru libconftest.a conftest.o 2>&5
7536>>>>>>> configure
7487 echo "$RANLIB libconftest.a" >&57537 echo "$RANLIB libconftest.a" >&5
7488 $RANLIB libconftest.a 2>&57538 $RANLIB libconftest.a 2>&5
7489 cat > conftest.c << _LT_EOF7539 cat > conftest.c << _LT_EOF
@@ -8144,8 +8194,13 @@ esac
8144ofile=libtool8194ofile=libtool
8145can_build_shared=yes8195can_build_shared=yes
81468196
8197<<<<<<< configure
8147# All known linkers require a '.a' archive for static linking (except MSVC and8198# All known linkers require a '.a' archive for static linking (except MSVC and
8148# ICC, which need '.lib').8199# ICC, which need '.lib').
8200=======
8201# All known linkers require a '.a' archive for static linking (except MSVC,
8202# which needs '.lib').
8203>>>>>>> configure
8149libext=a8204libext=a
81508205
8151with_gnu_ld=$lt_cv_prog_gnu_ld8206with_gnu_ld=$lt_cv_prog_gnu_ld
@@ -9072,15 +9127,25 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
90729127
9073 case $host_os in9128 case $host_os in
9074 cygwin* | mingw* | pw32* | cegcc*)9129 cygwin* | mingw* | pw32* | cegcc*)
9130<<<<<<< configure
9075 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time9131 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9076 # When not using gcc, we currently assume that we are using9132 # When not using gcc, we currently assume that we are using
9077 # Microsoft Visual C++ or Intel C++ Compiler.9133 # Microsoft Visual C++ or Intel C++ Compiler.
9134=======
9135 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9136 # When not using gcc, we currently assume that we are using
9137 # Microsoft Visual C++.
9138>>>>>>> configure
9078 if test yes != "$GCC"; then9139 if test yes != "$GCC"; then
9079 with_gnu_ld=no9140 with_gnu_ld=no
9080 fi9141 fi
9081 ;;9142 ;;
9082 interix*)9143 interix*)
9144<<<<<<< configure
9083 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)9145 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9146=======
9147 # we just hope/assume this is gcc and not c89 (= MSVC++)
9148>>>>>>> configure
9084 with_gnu_ld=yes9149 with_gnu_ld=yes
9085 ;;9150 ;;
9086 openbsd* | bitrig*)9151 openbsd* | bitrig*)
@@ -9244,7 +9309,10 @@ _LT_EOF
9244 emximp -o $lib $output_objdir/$libname.def'9309 emximp -o $lib $output_objdir/$libname.def'
9245 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'9310 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9246 enable_shared_with_static_runtimes=yes9311 enable_shared_with_static_runtimes=yes
9312<<<<<<< configure
9247 file_list_spec='@'9313 file_list_spec='@'
9314=======
9315>>>>>>> configure
9248 ;;9316 ;;
92499317
9250 interix[3-9]*)9318 interix[3-9]*)
@@ -9462,7 +9530,11 @@ _LT_EOF
9462 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then9530 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9463 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'9531 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9464 else9532 else
9533<<<<<<< configure
9465 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'9534 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9535=======
9536 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9537>>>>>>> configure
9466 fi9538 fi
9467 aix_use_runtimelinking=no9539 aix_use_runtimelinking=no
94689540
@@ -9729,12 +9801,21 @@ fi
97299801
9730 cygwin* | mingw* | pw32* | cegcc*)9802 cygwin* | mingw* | pw32* | cegcc*)
9731 # When not using gcc, we currently assume that we are using9803 # When not using gcc, we currently assume that we are using
9804<<<<<<< configure
9732 # Microsoft Visual C++ or Intel C++ Compiler.9805 # Microsoft Visual C++ or Intel C++ Compiler.
9733 # hardcode_libdir_flag_spec is actually meaningless, as there is9806 # hardcode_libdir_flag_spec is actually meaningless, as there is
9734 # no search path for DLLs.9807 # no search path for DLLs.
9735 case $cc_basename in9808 case $cc_basename in
9736 cl* | icl*)9809 cl* | icl*)
9737 # Native MSVC or ICC9810 # Native MSVC or ICC
9811=======
9812 # Microsoft Visual C++.
9813 # hardcode_libdir_flag_spec is actually meaningless, as there is
9814 # no search path for DLLs.
9815 case $cc_basename in
9816 cl*)
9817 # Native MSVC
9818>>>>>>> configure
9738 hardcode_libdir_flag_spec=' '9819 hardcode_libdir_flag_spec=' '
9739 allow_undefined_flag=unsupported9820 allow_undefined_flag=unsupported
9740 always_export_symbols=yes9821 always_export_symbols=yes
@@ -9775,7 +9856,11 @@ fi
9775 fi'9856 fi'
9776 ;;9857 ;;
9777 *)9858 *)
9859<<<<<<< configure
9778 # Assume MSVC and ICC wrapper9860 # Assume MSVC and ICC wrapper
9861=======
9862 # Assume MSVC wrapper
9863>>>>>>> configure
9779 hardcode_libdir_flag_spec=' '9864 hardcode_libdir_flag_spec=' '
9780 allow_undefined_flag=unsupported9865 allow_undefined_flag=unsupported
9781 # Tell ltmain to make .lib files, not .a files.9866 # Tell ltmain to make .lib files, not .a files.
@@ -10099,7 +10184,10 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10099 emximp -o $lib $output_objdir/$libname.def'10184 emximp -o $lib $output_objdir/$libname.def'
10100 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'10185 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10101 enable_shared_with_static_runtimes=yes10186 enable_shared_with_static_runtimes=yes
10187<<<<<<< configure
10102 file_list_spec='@'10188 file_list_spec='@'
10189=======
10190>>>>>>> configure
10103 ;;10191 ;;
1010410192
10105 osf3*)10193 osf3*)
@@ -10807,8 +10895,13 @@ cygwin* | mingw* | pw32* | cegcc*)
10807 dynamic_linker='Win32 ld.exe'10895 dynamic_linker='Win32 ld.exe'
10808 ;;10896 ;;
1080910897
10898<<<<<<< configure
10810 *,cl* | *,icl*)10899 *,cl* | *,icl*)
10811 # Native MSVC or ICC10900 # Native MSVC or ICC
10901=======
10902 *,cl*)
10903 # Native MSVC
10904>>>>>>> configure
10812 libname_spec='$name'10905 libname_spec='$name'
10813 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'10906 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10814 library_names_spec='$libname.dll.lib'10907 library_names_spec='$libname.dll.lib'
@@ -10864,7 +10957,11 @@ cygwin* | mingw* | pw32* | cegcc*)
10864 ;;10957 ;;
1086510958
10866 *)10959 *)
10960<<<<<<< configure
10867 # Assume MSVC and ICC wrapper10961 # Assume MSVC and ICC wrapper
10962=======
10963 # Assume MSVC wrapper
10964>>>>>>> configure
10868 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'10965 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10869 dynamic_linker='Win32 ld.exe'10966 dynamic_linker='Win32 ld.exe'
10870 ;;10967 ;;
@@ -11128,6 +11225,12 @@ fi
11128 # before this can be enabled.11225 # before this can be enabled.
11129 hardcode_into_libs=yes11226 hardcode_into_libs=yes
1113011227
11228<<<<<<< configure
11229=======
11230 # Add ABI-specific directories to the system library path.
11231 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11232
11233>>>>>>> configure
11131 # Ideally, we could use ldconfig to report *all* directores which are11234 # Ideally, we could use ldconfig to report *all* directores which are
11132 # searched for libraries, however this is still not possible. Aside from not11235 # searched for libraries, however this is still not possible. Aside from not
11133 # being certain /sbin/ldconfig is available, command11236 # being certain /sbin/ldconfig is available, command
@@ -11136,7 +11239,11 @@ fi
11136 # appending ld.so.conf contents (and includes) to the search path.11239 # appending ld.so.conf contents (and includes) to the search path.
11137 if test -f /etc/ld.so.conf; then11240 if test -f /etc/ld.so.conf; then
11138 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`11241 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11242<<<<<<< configure
11139 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"11243 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11244=======
11245 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11246>>>>>>> configure
11140 fi11247 fi
1114111248
11142 # We used to test for /lib/ld.so.1 and disable shared libraries on11249 # We used to test for /lib/ld.so.1 and disable shared libraries on
@@ -12043,6 +12150,7 @@ striplib=
12043old_striplib=12150old_striplib=
12044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&512151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12045$as_echo_n "checking whether stripping libraries is possible... " >&6; }12152$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12153<<<<<<< configure
12046if test -z "$STRIP"; then12154if test -z "$STRIP"; then
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&512155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048$as_echo "no" >&6; }12156$as_echo "no" >&6; }
@@ -12056,10 +12164,23 @@ $as_echo "yes" >&6; }
12056 case $host_os in12164 case $host_os in
12057 darwin*)12165 darwin*)
12058 # FIXME - insert some real tests, host_os isn't really good enough12166 # FIXME - insert some real tests, host_os isn't really good enough
12167=======
12168if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12169 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12170 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12172$as_echo "yes" >&6; }
12173else
12174# FIXME - insert some real tests, host_os isn't really good enough
12175 case $host_os in
12176 darwin*)
12177 if test -n "$STRIP"; then
12178>>>>>>> configure
12059 striplib="$STRIP -x"12179 striplib="$STRIP -x"
12060 old_striplib="$STRIP -S"12180 old_striplib="$STRIP -S"
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&512181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12062$as_echo "yes" >&6; }12182$as_echo "yes" >&6; }
12183<<<<<<< configure
12063 ;;12184 ;;
12064 freebsd*)12185 freebsd*)
12065 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then12186 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
@@ -12078,6 +12199,18 @@ $as_echo "no" >&6; }
12078 ;;12199 ;;
12079 esac12200 esac
12080 fi12201 fi
12202=======
12203 else
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205$as_echo "no" >&6; }
12206 fi
12207 ;;
12208 *)
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210$as_echo "no" >&6; }
12211 ;;
12212 esac
12213>>>>>>> configure
12081fi12214fi
1208212215
1208312216
@@ -12301,9 +12434,15 @@ fi
12301if test "$enable_python" = yes; then :12434if test "$enable_python" = yes; then :
1230212435
12303 # cython version check12436 # cython version check
12437<<<<<<< configure
12304 if test "$CYTHON_VER_MAJ" -eq 0 -a "$CYTHON_VER_MIN" -lt 16; then :12438 if test "$CYTHON_VER_MAJ" -eq 0 -a "$CYTHON_VER_MIN" -lt 16; then :
1230512439
12306 as_fn_error $? "python bindings require cython 0.16 or higher" "$LINENO" 512440 as_fn_error $? "python bindings require cython 0.16 or higher" "$LINENO" 5
12441=======
12442 if test "$CYTHON_VER_MAJ" -eq 0 -a "$CYTHON_VER_MIN" -lt 29; then :
12443
12444 as_fn_error $? "python bindings require cython 0.29 or higher" "$LINENO" 5
12445>>>>>>> configure
1230712446
12308fi12447fi
1230912448
@@ -13495,7 +13634,11 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13495# report actual input values of CONFIG_FILES etc. instead of their13634# report actual input values of CONFIG_FILES etc. instead of their
13496# values after options handling.13635# values after options handling.
13497ac_log="13636ac_log="
13637<<<<<<< configure
13498This file was extended by libseccomp $as_me 2.4.1, which was13638This file was extended by libseccomp $as_me 2.4.1, which was
13639=======
13640This file was extended by libseccomp $as_me 2.4.2, which was
13641>>>>>>> configure
13499generated by GNU Autoconf 2.69. Invocation command line was13642generated by GNU Autoconf 2.69. Invocation command line was
1350013643
13501 CONFIG_FILES = $CONFIG_FILES13644 CONFIG_FILES = $CONFIG_FILES
@@ -13561,7 +13704,11 @@ _ACEOF
13561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=113704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13562ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"13705ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13563ac_cs_version="\\13706ac_cs_version="\\
13707<<<<<<< configure
13564libseccomp config.status 2.4.113708libseccomp config.status 2.4.1
13709=======
13710libseccomp config.status 2.4.2
13711>>>>>>> configure
13565configured by $0, generated by GNU Autoconf 2.69,13712configured by $0, generated by GNU Autoconf 2.69,
13566 with options \\"\$ac_cs_config\\"13713 with options \\"\$ac_cs_config\\"
1356713714
@@ -13732,7 +13879,10 @@ want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13732DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'13879DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13733sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'13880sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13734AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'13881AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13882<<<<<<< configure
13735lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'13883lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
13884=======
13885>>>>>>> configure
13736AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'13886AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13737archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'13887archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13738STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'13888STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
@@ -13861,6 +14011,10 @@ want_nocaseglob \
13861DLLTOOL \14011DLLTOOL \
13862sharedlib_from_linklib_cmd \14012sharedlib_from_linklib_cmd \
13863AR \14013AR \
14014<<<<<<< configure
14015=======
14016AR_FLAGS \
14017>>>>>>> configure
13864archiver_list_spec \14018archiver_list_spec \
13865STRIP \14019STRIP \
13866RANLIB \14020RANLIB \
@@ -14833,11 +14987,16 @@ sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14833# The archiver.14987# The archiver.
14834AR=$lt_AR14988AR=$lt_AR
1483514989
14990<<<<<<< configure
14836# Flags to create an archive (by configure).14991# Flags to create an archive (by configure).
14837lt_ar_flags=$lt_ar_flags14992lt_ar_flags=$lt_ar_flags
1483814993
14839# Flags to create an archive.14994# Flags to create an archive.
14840AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}14995AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
14996=======
14997# Flags to create an archive.
14998AR_FLAGS=$lt_AR_FLAGS
14999>>>>>>> configure
1484115000
14842# How to feed a file listing to the archiver.15001# How to feed a file listing to the archiver.
14843archiver_list_spec=$lt_archiver_list_spec15002archiver_list_spec=$lt_archiver_list_spec
diff --git a/configure.ac b/configure.ac
index 05d34a5..d4fd1cf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,7 +19,11 @@ dnl #
19dnl ####19dnl ####
20dnl libseccomp defines20dnl libseccomp defines
21dnl ####21dnl ####
22<<<<<<< configure.ac
22AC_INIT([libseccomp], [2.4.1])23AC_INIT([libseccomp], [2.4.1])
24=======
25AC_INIT([libseccomp], [2.4.2])
26>>>>>>> configure.ac
2327
24dnl ####28dnl ####
25dnl autoconf configuration29dnl autoconf configuration
@@ -109,8 +113,13 @@ AC_ARG_ENABLE([python],
109 [build the python bindings, requires cython])])113 [build the python bindings, requires cython])])
110AS_IF([test "$enable_python" = yes], [114AS_IF([test "$enable_python" = yes], [
111 # cython version check115 # cython version check
116<<<<<<< configure.ac
112 AS_IF([test "$CYTHON_VER_MAJ" -eq 0 -a "$CYTHON_VER_MIN" -lt 16], [117 AS_IF([test "$CYTHON_VER_MAJ" -eq 0 -a "$CYTHON_VER_MIN" -lt 16], [
113 AC_MSG_ERROR([python bindings require cython 0.16 or higher])118 AC_MSG_ERROR([python bindings require cython 0.16 or higher])
119=======
120 AS_IF([test "$CYTHON_VER_MAJ" -eq 0 -a "$CYTHON_VER_MIN" -lt 29], [
121 AC_MSG_ERROR([python bindings require cython 0.29 or higher])
122>>>>>>> configure.ac
114 ])123 ])
115 AM_PATH_PYTHON124 AM_PATH_PYTHON
116])125])
diff --git a/debian/changelog b/debian/changelog
index d6cc9b4..05e3b6d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,18 @@
1<<<<<<< debian/changelog
2=======
3libseccomp (2.4.2-0ubuntu1) focal; urgency=medium
4
5 * New upstream release 2.4.2 for compatibility with newer kernels and
6 and FTBFS (LP: #1849785).
7 - drop d/p/python_install_dir.patch (now upstream)
8 - d/rules: adapt to python 3.8 lacking the m modifier on includes
9 see https://wiki.debian.org/Python/Python3.8
10 - d/p/tests-rely-on-__SNR_xxx-instead-of-__NR_xxx-for-sysc.patch: fix
11 build time test on arm64
12
13 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Mon, 11 Nov 2019 11:31:26 +0100
14
15>>>>>>> debian/changelog
1libseccomp (2.4.1-2) unstable; urgency=medium16libseccomp (2.4.1-2) unstable; urgency=medium
217
3 * Remove build-dependency on valgrind for mipsel and x32 as it's broken18 * Remove build-dependency on valgrind for mipsel and x32 as it's broken
diff --git a/debian/control b/debian/control
index 5515592..2afe09c 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,12 @@
1Source: libseccomp1Source: libseccomp
2Section: libs2Section: libs
3Priority: optional3Priority: optional
4<<<<<<< debian/control
4Maintainer: Kees Cook <kees@debian.org>5Maintainer: Kees Cook <kees@debian.org>
6=======
7Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
8XSBC-Original-Maintainer: Kees Cook <kees@debian.org>
9>>>>>>> debian/control
5Uploaders: Luca Bruno <lucab@debian.org>, Felix Geyer <fgeyer@debian.org>10Uploaders: Luca Bruno <lucab@debian.org>, Felix Geyer <fgeyer@debian.org>
6Build-Depends: debhelper-compat (= 12),11Build-Depends: debhelper-compat (= 12),
7 linux-libc-dev,12 linux-libc-dev,
diff --git a/debian/patches/series b/debian/patches/series
index 05d7297..fa08aca 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,5 @@
1<<<<<<< debian/patches/series
1python_install_dir.patch2python_install_dir.patch
3=======
4tests-rely-on-__SNR_xxx-instead-of-__NR_xxx-for-sysc.patch
5>>>>>>> debian/patches/series
diff --git a/debian/patches/tests-rely-on-__SNR_xxx-instead-of-__NR_xxx-for-sysc.patch b/debian/patches/tests-rely-on-__SNR_xxx-instead-of-__NR_xxx-for-sysc.patch
2new file mode 1006446new file mode 100644
index 0000000..82c9360
--- /dev/null
+++ b/debian/patches/tests-rely-on-__SNR_xxx-instead-of-__NR_xxx-for-sysc.patch
@@ -0,0 +1,47 @@
1From 35803ceb43c453762a3ab5177c5f8d5dbb813478 Mon Sep 17 00:00:00 2001
2From: Paul Moore <paul@paul-moore.com>
3Date: Tue, 5 Nov 2019 15:11:11 -0500
4Subject: [PATCH] tests: rely on __SNR_xxx instead of __NR_xxx for syscalls
5
6We recently changed how libseccomp handles syscall numbers that are
7not defined natively, but we missed test #15.
8
9Signed-off-by: Paul Moore <paul@paul-moore.com>
10
11Note: Tagged for v2.5, but needed to build 2.4.2 with newer kernels on arm
12This is part of PR: https://github.com/seccomp/libseccomp/pull/182
13Upstream Bug: https://github.com/seccomp/libseccomp/issues/184
14Origin: upstream, https://github.com/pcmoore/misc-libseccomp/commit/35803ceb43c453762a3ab5177c5f8d5dbb813478
15Bug-Ubuntu: https://bugs.launchpad.net/bugs/1849785
16Last-Update: 2019-11-12
17
18---
19 tests/15-basic-resolver.c | 6 +++---
20 1 file changed, 3 insertions(+), 3 deletions(-)
21
22diff --git a/tests/15-basic-resolver.c b/tests/15-basic-resolver.c
23index 6badef1..0c1eefe 100644
24--- a/tests/15-basic-resolver.c
25+++ b/tests/15-basic-resolver.c
26@@ -55,15 +55,15 @@ int main(int argc, char *argv[])
27 unsigned int arch;
28 char *name = NULL;
29
30- if (seccomp_syscall_resolve_name("open") != __NR_open)
31+ if (seccomp_syscall_resolve_name("open") != __SNR_open)
32 goto fail;
33- if (seccomp_syscall_resolve_name("read") != __NR_read)
34+ if (seccomp_syscall_resolve_name("read") != __SNR_read)
35 goto fail;
36 if (seccomp_syscall_resolve_name("INVALID") != __NR_SCMP_ERROR)
37 goto fail;
38
39 rc = seccomp_syscall_resolve_name_rewrite(SCMP_ARCH_NATIVE, "openat");
40- if (rc != __NR_openat)
41+ if (rc != __SNR_openat)
42 goto fail;
43
44 while ((arch = arch_list[iter++]) != -1) {
45--
462.24.0
47
diff --git a/debian/rules b/debian/rules
index ee252c9..da915cc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -25,8 +25,18 @@ override_dh_auto_build:
2525
26override_dh_auto_install:26override_dh_auto_install:
27 dh_auto_install27 dh_auto_install
28<<<<<<< debian/rules
28 set -e; export _PYTHON_SYSCONFIGDATA_NAME='_sysconfigdata_m_${DEB_HOST_ARCH_OS}_${DEB_HOST_MULTIARCH}'; \29 set -e; export _PYTHON_SYSCONFIGDATA_NAME='_sysconfigdata_m_${DEB_HOST_ARCH_OS}_${DEB_HOST_MULTIARCH}'; \
29 for pyver in `py3versions -s`; do \30 for pyver in `py3versions -s`; do \
31=======
32 for pyver in `py3versions -s`; do \
33 set -e; \
34 if python -c "pyver='$$pyver'; exit(0 if float(pyver[6:]) >= 3.8 else 1)"; then \
35 export _PYTHON_SYSCONFIGDATA_NAME='_sysconfigdata__${DEB_HOST_ARCH_OS}_${DEB_HOST_MULTIARCH}'; \
36 else \
37 export _PYTHON_SYSCONFIGDATA_NAME='_sysconfigdata_m_${DEB_HOST_ARCH_OS}_${DEB_HOST_MULTIARCH}'; \
38 fi; \
39>>>>>>> debian/rules
30 dh_auto_configure -- --enable-python PYTHON=$$pyver; \40 dh_auto_configure -- --enable-python PYTHON=$$pyver; \
31 dh_auto_install --sourcedirectory=src/python -- PYTHON=$$pyver; \41 dh_auto_install --sourcedirectory=src/python -- PYTHON=$$pyver; \
32 done42 done
diff --git a/include/Makefile.am b/include/Makefile.am
index ba3723f..aecccda 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -16,4 +16,8 @@
16# along with this library; if not, see <http://www.gnu.org/licenses>.16# along with this library; if not, see <http://www.gnu.org/licenses>.
17#17#
1818
19<<<<<<< include/Makefile.am
19include_HEADERS = seccomp.h20include_HEADERS = seccomp.h
21=======
22include_HEADERS = seccomp.h seccomp-syscalls.h
23>>>>>>> include/Makefile.am
diff --git a/include/Makefile.in b/include/Makefile.in
index b9c38dc..06dffe9 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -330,7 +330,11 @@ target_alias = @target_alias@
330top_build_prefix = @top_build_prefix@330top_build_prefix = @top_build_prefix@
331top_builddir = @top_builddir@331top_builddir = @top_builddir@
332top_srcdir = @top_srcdir@332top_srcdir = @top_srcdir@
333<<<<<<< include/Makefile.in
333include_HEADERS = seccomp.h334include_HEADERS = seccomp.h
335=======
336include_HEADERS = seccomp.h seccomp-syscalls.h
337>>>>>>> include/Makefile.in
334all: all-am338all: all-am
335339
336.SUFFIXES:340.SUFFIXES:
diff --git a/include/seccomp-syscalls.h b/include/seccomp-syscalls.h
337new file mode 100644341new file mode 100644
index 0000000..6457592
--- /dev/null
+++ b/include/seccomp-syscalls.h
@@ -0,0 +1,2292 @@
1/**
2 * Seccomp Library
3 *
4 * Copyright (c) 2019 Cisco Systems <pmoore2@cisco.com>
5 * Author: Paul Moore <paul@paul-moore.com>
6 */
7
8/*
9 * This library is free software; you can redistribute it and/or modify it
10 * under the terms of version 2.1 of the GNU Lesser General Public License as
11 * published by the Free Software Foundation.
12 *
13 * This library is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
16 * for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this library; if not, see <http://www.gnu.org/licenses>.
20 */
21
22#ifndef _SECCOMP_H
23#error "do not include seccomp-syscalls.h directly, use seccomp.h instead"
24#endif
25
26/*
27 * psuedo syscall definitions
28 */
29
30/* socket syscalls */
31
32#define __PNR_socket -101
33#define __PNR_bind -102
34#define __PNR_connect -103
35#define __PNR_listen -104
36#define __PNR_accept -105
37#define __PNR_getsockname -106
38#define __PNR_getpeername -107
39#define __PNR_socketpair -108
40#define __PNR_send -109
41#define __PNR_recv -110
42#define __PNR_sendto -111
43#define __PNR_recvfrom -112
44#define __PNR_shutdown -113
45#define __PNR_setsockopt -114
46#define __PNR_getsockopt -115
47#define __PNR_sendmsg -116
48#define __PNR_recvmsg -117
49#define __PNR_accept4 -118
50#define __PNR_recvmmsg -119
51#define __PNR_sendmmsg -120
52
53/* ipc syscalls */
54
55#define __PNR_semop -201
56#define __PNR_semget -202
57#define __PNR_semctl -203
58#define __PNR_semtimedop -204
59#define __PNR_msgsnd -211
60#define __PNR_msgrcv -212
61#define __PNR_msgget -213
62#define __PNR_msgctl -214
63#define __PNR_shmat -221
64#define __PNR_shmdt -222
65#define __PNR_shmget -223
66#define __PNR_shmctl -224
67
68/* single syscalls */
69
70#define __PNR_arch_prctl -10001
71#define __PNR_bdflush -10002
72#define __PNR_break -10003
73#define __PNR_chown32 -10004
74#define __PNR_epoll_ctl_old -10005
75#define __PNR_epoll_wait_old -10006
76#define __PNR_fadvise64_64 -10007
77#define __PNR_fchown32 -10008
78#define __PNR_fcntl64 -10009
79#define __PNR_fstat64 -10010
80#define __PNR_fstatat64 -10011
81#define __PNR_fstatfs64 -10012
82#define __PNR_ftime -10013
83#define __PNR_ftruncate64 -10014
84#define __PNR_getegid32 -10015
85#define __PNR_geteuid32 -10016
86#define __PNR_getgid32 -10017
87#define __PNR_getgroups32 -10018
88#define __PNR_getresgid32 -10019
89#define __PNR_getresuid32 -10020
90#define __PNR_getuid32 -10021
91#define __PNR_gtty -10022
92#define __PNR_idle -10023
93#define __PNR_ipc -10024
94#define __PNR_lchown32 -10025
95#define __PNR__llseek -10026
96#define __PNR_lock -10027
97#define __PNR_lstat64 -10028
98#define __PNR_mmap2 -10029
99#define __PNR_mpx -10030
100#define __PNR_newfstatat -10031
101#define __PNR__newselect -10032
102#define __PNR_nice -10033
103#define __PNR_oldfstat -10034
104#define __PNR_oldlstat -10035
105#define __PNR_oldolduname -10036
106#define __PNR_oldstat -10037
107#define __PNR_olduname -10038
108#define __PNR_prof -10039
109#define __PNR_profil -10040
110#define __PNR_readdir -10041
111#define __PNR_security -10042
112#define __PNR_sendfile64 -10043
113#define __PNR_setfsgid32 -10044
114#define __PNR_setfsuid32 -10045
115#define __PNR_setgid32 -10046
116#define __PNR_setgroups32 -10047
117#define __PNR_setregid32 -10048
118#define __PNR_setresgid32 -10049
119#define __PNR_setresuid32 -10050
120#define __PNR_setreuid32 -10051
121#define __PNR_setuid32 -10052
122#define __PNR_sgetmask -10053
123#define __PNR_sigaction -10054
124#define __PNR_signal -10055
125#define __PNR_sigpending -10056
126#define __PNR_sigprocmask -10057
127#define __PNR_sigreturn -10058
128#define __PNR_sigsuspend -10059
129#define __PNR_socketcall -10060
130#define __PNR_ssetmask -10061
131#define __PNR_stat64 -10062
132#define __PNR_statfs64 -10063
133#define __PNR_stime -10064
134#define __PNR_stty -10065
135#define __PNR_truncate64 -10066
136#define __PNR_tuxcall -10067
137#define __PNR_ugetrlimit -10068
138#define __PNR_ulimit -10069
139#define __PNR_umount -10070
140#define __PNR_vm86 -10071
141#define __PNR_vm86old -10072
142#define __PNR_waitpid -10073
143#define __PNR_create_module -10074
144#define __PNR_get_kernel_syms -10075
145#define __PNR_get_thread_area -10076
146#define __PNR_nfsservctl -10077
147#define __PNR_query_module -10078
148#define __PNR_set_thread_area -10079
149#define __PNR__sysctl -10080
150#define __PNR_uselib -10081
151#define __PNR_vserver -10082
152#define __PNR_arm_fadvise64_64 -10083
153#define __PNR_arm_sync_file_range -10084
154#define __PNR_pciconfig_iobase -10086
155#define __PNR_pciconfig_read -10087
156#define __PNR_pciconfig_write -10088
157#define __PNR_sync_file_range2 -10089
158#define __PNR_syscall -10090
159#define __PNR_afs_syscall -10091
160#define __PNR_fadvise64 -10092
161#define __PNR_getpmsg -10093
162#define __PNR_ioperm -10094
163#define __PNR_iopl -10095
164#define __PNR_migrate_pages -10097
165#define __PNR_modify_ldt -10098
166#define __PNR_putpmsg -10099
167#define __PNR_sync_file_range -10100
168#define __PNR_select -10101
169#define __PNR_vfork -10102
170#define __PNR_cachectl -10103
171#define __PNR_cacheflush -10104
172#define __PNR_sysmips -10106
173#define __PNR_timerfd -10107
174#define __PNR_time -10108
175#define __PNR_getrandom -10109
176#define __PNR_memfd_create -10110
177#define __PNR_kexec_file_load -10111
178#define __PNR_sysfs -10145
179#define __PNR_oldwait4 -10146
180#define __PNR_access -10147
181#define __PNR_alarm -10148
182#define __PNR_chmod -10149
183#define __PNR_chown -10150
184#define __PNR_creat -10151
185#define __PNR_dup2 -10152
186#define __PNR_epoll_create -10153
187#define __PNR_epoll_wait -10154
188#define __PNR_eventfd -10155
189#define __PNR_fork -10156
190#define __PNR_futimesat -10157
191#define __PNR_getdents -10158
192#define __PNR_getpgrp -10159
193#define __PNR_inotify_init -10160
194#define __PNR_lchown -10161
195#define __PNR_link -10162
196#define __PNR_lstat -10163
197#define __PNR_mkdir -10164
198#define __PNR_mknod -10165
199#define __PNR_open -10166
200#define __PNR_pause -10167
201#define __PNR_pipe -10168
202#define __PNR_poll -10169
203#define __PNR_readlink -10170
204#define __PNR_rename -10171
205#define __PNR_rmdir -10172
206#define __PNR_signalfd -10173
207#define __PNR_stat -10174
208#define __PNR_symlink -10175
209#define __PNR_unlink -10176
210#define __PNR_ustat -10177
211#define __PNR_utime -10178
212#define __PNR_utimes -10179
213#define __PNR_getrlimit -10180
214#define __PNR_mmap -10181
215#define __PNR_breakpoint -10182
216#define __PNR_set_tls -10183
217#define __PNR_usr26 -10184
218#define __PNR_usr32 -10185
219#define __PNR_multiplexer -10186
220#define __PNR_rtas -10187
221#define __PNR_spu_create -10188
222#define __PNR_spu_run -10189
223#define __PNR_swapcontext -10190
224#define __PNR_sys_debug_setcontext -10191
225#define __PNR_switch_endian -10191
226#define __PNR_get_mempolicy -10192
227#define __PNR_move_pages -10193
228#define __PNR_mbind -10194
229#define __PNR_set_mempolicy -10195
230#define __PNR_s390_runtime_instr -10196
231#define __PNR_s390_pci_mmio_read -10197
232#define __PNR_s390_pci_mmio_write -10198
233#define __PNR_membarrier -10199
234#define __PNR_userfaultfd -10200
235#define __PNR_pkey_mprotect -10201
236#define __PNR_pkey_alloc -10202
237#define __PNR_pkey_free -10203
238#define __PNR_get_tls -10204
239#define __PNR_s390_guarded_storage -10205
240#define __PNR_s390_sthyi -10206
241#define __PNR_subpage_prot -10207
242#define __PNR_statx -10208
243#define __PNR_io_pgetevents -10209
244#define __PNR_rseq -10210
245#define __PNR_setrlimit -10211
246#define __PNR_clock_adjtime64 -10212
247#define __PNR_clock_getres_time64 -10213
248#define __PNR_clock_gettime64 -10214
249#define __PNR_clock_nanosleep_time64 -10215
250#define __PNR_clock_settime64 -10216
251#define __PNR_clone3 -10217
252#define __PNR_fsconfig -10218
253#define __PNR_fsmount -10219
254#define __PNR_fsopen -10220
255#define __PNR_fspick -10221
256#define __PNR_futex_time64 -10222
257#define __PNR_io_pgetevents_time64 -10223
258#define __PNR_move_mount -10224
259#define __PNR_mq_timedreceive_time64 -10225
260#define __PNR_mq_timedsend_time64 -10226
261#define __PNR_open_tree -10227
262#define __PNR_pidfd_open -10228
263#define __PNR_pidfd_send_signal -10229
264#define __PNR_ppoll_time64 -10230
265#define __PNR_pselect6_time64 -10231
266#define __PNR_recvmmsg_time64 -10232
267#define __PNR_rt_sigtimedwait_time64 -10233
268#define __PNR_sched_rr_get_interval_time64 -10234
269#define __PNR_semtimedop_time64 -10235
270#define __PNR_timer_gettime64 -10236
271#define __PNR_timer_settime64 -10237
272#define __PNR_timerfd_gettime64 -10238
273#define __PNR_timerfd_settime64 -10239
274#define __PNR_utimensat_time64 -10240
275
276/*
277 * libseccomp syscall definitions
278 */
279
280#ifdef __NR__llseek
281#define __SNR__llseek __NR__llseek
282#else
283#define __SNR__llseek __PNR__llseek
284#endif
285
286#ifdef __NR__newselect
287#define __SNR__newselect __NR__newselect
288#else
289#define __SNR__newselect __PNR__newselect
290#endif
291
292#ifdef __NR__sysctl
293#define __SNR__sysctl __NR__sysctl
294#else
295#define __SNR__sysctl __PNR__sysctl
296#endif
297
298#ifdef __NR_accept
299#define __SNR_accept __NR_accept
300#else
301#define __SNR_accept __PNR_accept
302#endif
303
304#ifdef __NR_accept4
305#define __SNR_accept4 __NR_accept4
306#else
307#define __SNR_accept4 __PNR_accept4
308#endif
309
310#ifdef __NR_access
311#define __SNR_access __NR_access
312#else
313#define __SNR_access __PNR_access
314#endif
315
316#define __SNR_acct __NR_acct
317
318#define __SNR_add_key __NR_add_key
319
320#define __SNR_adjtimex __NR_adjtimex
321
322#ifdef __NR_afs_syscall
323#define __SNR_afs_syscall __NR_afs_syscall
324#else
325#define __SNR_afs_syscall __PNR_afs_syscall
326#endif
327
328#ifdef __NR_alarm
329#define __SNR_alarm __NR_alarm
330#else
331#define __SNR_alarm __PNR_alarm
332#endif
333
334#ifdef __NR_arm_fadvise64_64
335#define __SNR_arm_fadvise64_64 __NR_arm_fadvise64_64
336#else
337#define __SNR_arm_fadvise64_64 __PNR_arm_fadvise64_64
338#endif
339
340#ifdef __NR_arm_sync_file_range
341#define __SNR_arm_sync_file_range __NR_arm_sync_file_range
342#else
343#define __SNR_arm_sync_file_range __PNR_arm_sync_file_range
344#endif
345
346#ifdef __NR_arch_prctl
347#define __SNR_arch_prctl __NR_arch_prctl
348#else
349#define __SNR_arch_prctl __PNR_arch_prctl
350#endif
351
352#ifdef __NR_bdflush
353#define __SNR_bdflush __NR_bdflush
354#else
355#define __SNR_bdflush __PNR_bdflush
356#endif
357
358#ifdef __NR_bind
359#define __SNR_bind __NR_bind
360#else
361#define __SNR_bind __PNR_bind
362#endif
363
364#define __SNR_bpf __NR_bpf
365
366#ifdef __NR_break
367#define __SNR_break __NR_break
368#else
369#define __SNR_break __PNR_break
370#endif
371
372#ifdef __NR_breakpoint
373#ifdef __ARM_NR_breakpoint
374#define __SNR_breakpoint __ARM_NR_breakpoint
375#else
376#define __SNR_breakpoint __NR_breakpoint
377#endif
378#else
379#define __SNR_breakpoint __PNR_breakpoint
380#endif
381
382#define __SNR_brk __NR_brk
383
384#ifdef __NR_cachectl
385#define __SNR_cachectl __NR_cachectl
386#else
387#define __SNR_cachectl __PNR_cachectl
388#endif
389
390#ifdef __NR_cacheflush
391#ifdef __ARM_NR_cacheflush
392#define __SNR_cacheflush __ARM_NR_cacheflush
393#else
394#define __SNR_cacheflush __NR_cacheflush
395#endif
396#else
397#define __SNR_cacheflush __PNR_cacheflush
398#endif
399
400#define __SNR_capget __NR_capget
401
402#define __SNR_capset __NR_capset
403
404#define __SNR_chdir __NR_chdir
405
406#ifdef __NR_chmod
407#define __SNR_chmod __NR_chmod
408#else
409#define __SNR_chmod __PNR_chmod
410#endif
411
412#ifdef __NR_chown
413#define __SNR_chown __NR_chown
414#else
415#define __SNR_chown __PNR_chown
416#endif
417
418#ifdef __NR_chown32
419#define __SNR_chown32 __NR_chown32
420#else
421#define __SNR_chown32 __PNR_chown32
422#endif
423
424#define __SNR_chroot __NR_chroot
425
426#define __SNR_clock_adjtime __NR_clock_adjtime
427
428#ifdef __NR_clock_adjtime64
429#define __SNR_clock_adjtime64 __NR_clock_adjtime64
430#else
431#define __SNR_clock_adjtime64 __PNR_clock_adjtime64
432#endif
433
434#define __SNR_clock_getres __NR_clock_getres
435
436#ifdef __NR_clock_getres_time64
437#define __SNR_clock_getres_time64 __NR_clock_getres_time64
438#else
439#define __SNR_clock_getres_time64 __PNR_clock_getres_time64
440#endif
441
442#define __SNR_clock_gettime __NR_clock_gettime
443
444#ifdef __NR_clock_gettime64
445#define __SNR_clock_gettime64 __NR_clock_gettime64
446#else
447#define __SNR_clock_gettime64 __PNR_clock_gettime64
448#endif
449
450#define __SNR_clock_nanosleep __NR_clock_nanosleep
451
452#ifdef __NR_clock_nanosleep_time64
453#define __SNR_clock_nanosleep_time64 __NR_clock_nanosleep_time64
454#else
455#define __SNR_clock_nanosleep_time64 __PNR_clock_nanosleep_time64
456#endif
457
458#define __SNR_clock_settime __NR_clock_settime
459
460#ifdef __NR_clock_settime64
461#define __SNR_clock_settime64 __NR_clock_settime64
462#else
463#define __SNR_clock_settime64 __PNR_clock_settime64
464#endif
465
466#define __SNR_clone __NR_clone
467
468#ifdef __NR_clone3
469#define __SNR_clone3 __NR_clone3
470#else
471#define __SNR_clone3 __PNR_clone3
472#endif
473
474#define __SNR_close __NR_close
475
476#ifdef __NR_connect
477#define __SNR_connect __NR_connect
478#else
479#define __SNR_connect __PNR_connect
480#endif
481
482#define __SNR_copy_file_range __NR_copy_file_range
483
484#ifdef __NR_creat
485#define __SNR_creat __NR_creat
486#else
487#define __SNR_creat __PNR_creat
488#endif
489
490#ifdef __NR_create_module
491#define __SNR_create_module __NR_create_module
492#else
493#define __SNR_create_module __PNR_create_module
494#endif
495
496#define __SNR_delete_module __NR_delete_module
497
498#ifdef __NR_dup
499#define __SNR_dup __NR_dup
500#else
501#define __SNR_dup __PNR_dup
502#endif
503
504#ifdef __NR_dup2
505#define __SNR_dup2 __NR_dup2
506#else
507#define __SNR_dup2 __PNR_dup2
508#endif
509
510#define __SNR_dup3 __NR_dup3
511
512#ifdef __NR_epoll_create
513#define __SNR_epoll_create __NR_epoll_create
514#else
515#define __SNR_epoll_create __PNR_epoll_create
516#endif
517
518#define __SNR_epoll_create1 __NR_epoll_create1
519
520#ifdef __NR_epoll_ctl
521#define __SNR_epoll_ctl __NR_epoll_ctl
522#else
523#define __SNR_epoll_ctl __PNR_epoll_ctl
524#endif
525
526#ifdef __NR_epoll_ctl_old
527#define __SNR_epoll_ctl_old __NR_epoll_ctl_old
528#else
529#define __SNR_epoll_ctl_old __PNR_epoll_ctl_old
530#endif
531
532#define __SNR_epoll_pwait __NR_epoll_pwait
533
534#ifdef __NR_epoll_wait
535#define __SNR_epoll_wait __NR_epoll_wait
536#else
537#define __SNR_epoll_wait __PNR_epoll_wait
538#endif
539
540#ifdef __NR_epoll_wait_old
541#define __SNR_epoll_wait_old __NR_epoll_wait_old
542#else
543#define __SNR_epoll_wait_old __PNR_epoll_wait_old
544#endif
545
546#ifdef __NR_eventfd
547#define __SNR_eventfd __NR_eventfd
548#else
549#define __SNR_eventfd __PNR_eventfd
550#endif
551
552#define __SNR_eventfd2 __NR_eventfd2
553
554#define __SNR_execve __NR_execve
555
556#define __SNR_execveat __NR_execveat
557
558#define __SNR_exit __NR_exit
559
560#define __SNR_exit_group __NR_exit_group
561
562#define __SNR_faccessat __NR_faccessat
563
564#ifdef __NR_fadvise64
565#define __SNR_fadvise64 __NR_fadvise64
566#else
567#define __SNR_fadvise64 __PNR_fadvise64
568#endif
569
570#ifdef __NR_fadvise64_64
571#define __SNR_fadvise64_64 __NR_fadvise64_64
572#else
573#define __SNR_fadvise64_64 __PNR_fadvise64_64
574#endif
575
576#define __SNR_fallocate __NR_fallocate
577
578#define __SNR_fanotify_init __NR_fanotify_init
579
580#define __SNR_fanotify_mark __NR_fanotify_mark
581
582#define __SNR_fchdir __NR_fchdir
583
584#define __SNR_fchmod __NR_fchmod
585
586#define __SNR_fchmodat __NR_fchmodat
587
588#ifdef __NR_fchown
589#define __SNR_fchown __NR_fchown
590#else
591#define __SNR_fchown __PNR_fchown
592#endif
593
594#ifdef __NR_fchown32
595#define __SNR_fchown32 __NR_fchown32
596#else
597#define __SNR_fchown32 __PNR_fchown32
598#endif
599
600#define __SNR_fchownat __NR_fchownat
601
602#ifdef __NR_fcntl
603#define __SNR_fcntl __NR_fcntl
604#else
605#define __SNR_fcntl __PNR_fcntl
606#endif
607
608#ifdef __NR_fcntl64
609#define __SNR_fcntl64 __NR_fcntl64
610#else
611#define __SNR_fcntl64 __PNR_fcntl64
612#endif
613
614#define __SNR_fdatasync __NR_fdatasync
615
616#define __SNR_fgetxattr __NR_fgetxattr
617
618#define __SNR_finit_module __NR_finit_module
619
620#define __SNR_flistxattr __NR_flistxattr
621
622#define __SNR_flock __NR_flock
623
624#ifdef __NR_fork
625#define __SNR_fork __NR_fork
626#else
627#define __SNR_fork __PNR_fork
628#endif
629
630#define __SNR_fremovexattr __NR_fremovexattr
631
632#ifdef __NR_fsconfig
633#define __SNR_fsconfig __NR_fsconfig
634#else
635#define __SNR_fsconfig __PNR_fsconfig
636#endif
637
638#define __SNR_fsetxattr __NR_fsetxattr
639
640#ifdef __NR_fsmount
641#define __SNR_fsmount __NR_fsmount
642#else
643#define __SNR_fsmount __PNR_fsmount
644#endif
645
646#ifdef __NR_fsopen
647#define __SNR_fsopen __NR_fsopen
648#else
649#define __SNR_fsopen __PNR_fsopen
650#endif
651
652#ifdef __NR_fspick
653#define __SNR_fspick __NR_fspick
654#else
655#define __SNR_fspick __PNR_fspick
656#endif
657
658#ifdef __NR_fstat
659#define __SNR_fstat __NR_fstat
660#else
661#define __SNR_fstat __PNR_fstat
662#endif
663
664#ifdef __NR_fstat64
665#define __SNR_fstat64 __NR_fstat64
666#else
667#define __SNR_fstat64 __PNR_fstat64
668#endif
669
670#ifdef __NR_fstatat64
671#define __SNR_fstatat64 __NR_fstatat64
672#else
673#define __SNR_fstatat64 __PNR_fstatat64
674#endif
675
676#ifdef __NR_fstatfs
677#define __SNR_fstatfs __NR_fstatfs
678#else
679#define __SNR_fstatfs __PNR_fstatfs
680#endif
681
682#ifdef __NR_fstatfs64
683#define __SNR_fstatfs64 __NR_fstatfs64
684#else
685#define __SNR_fstatfs64 __PNR_fstatfs64
686#endif
687
688#define __SNR_fsync __NR_fsync
689
690#ifdef __NR_ftime
691#define __SNR_ftime __NR_ftime
692#else
693#define __SNR_ftime __PNR_ftime
694#endif
695
696#ifdef __NR_ftruncate
697#define __SNR_ftruncate __NR_ftruncate
698#else
699#define __SNR_ftruncate __PNR_ftruncate
700#endif
701
702#ifdef __NR_ftruncate64
703#define __SNR_ftruncate64 __NR_ftruncate64
704#else
705#define __SNR_ftruncate64 __PNR_ftruncate64
706#endif
707
708#define __SNR_futex __NR_futex
709
710#ifdef __NR_futex_time64
711#define __SNR_futex_time64 __NR_futex_time64
712#else
713#define __SNR_futex_time64 __PNR_futex_time64
714#endif
715
716#ifdef __NR_futimesat
717#define __SNR_futimesat __NR_futimesat
718#else
719#define __SNR_futimesat __PNR_futimesat
720#endif
721
722#ifdef __NR_get_kernel_syms
723#define __SNR_get_kernel_syms __NR_get_kernel_syms
724#else
725#define __SNR_get_kernel_syms __PNR_get_kernel_syms
726#endif
727
728#ifdef __NR_get_mempolicy
729#define __SNR_get_mempolicy __NR_get_mempolicy
730#else
731#define __SNR_get_mempolicy __PNR_get_mempolicy
732#endif
733
734#define __SNR_get_robust_list __NR_get_robust_list
735
736#ifdef __NR_get_thread_area
737#define __SNR_get_thread_area __NR_get_thread_area
738#else
739#define __SNR_get_thread_area __PNR_get_thread_area
740#endif
741
742#ifdef __NR_get_tls
743#ifdef __ARM_NR_get_tls
744#define __SNR_get_tls __ARM_NR_get_tls
745#else
746#define __SNR_get_tls __NR_get_tls
747#endif
748#else
749#define __SNR_get_tls __PNR_get_tls
750#endif
751
752#define __SNR_getcpu __NR_getcpu
753
754#define __SNR_getcwd __NR_getcwd
755
756#ifdef __NR_getdents
757#define __SNR_getdents __NR_getdents
758#else
759#define __SNR_getdents __PNR_getdents
760#endif
761
762#define __SNR_getdents64 __NR_getdents64
763
764#ifdef __NR_getegid
765#define __SNR_getegid __NR_getegid
766#else
767#define __SNR_getegid __PNR_getegid
768#endif
769
770#ifdef __NR_getegid32
771#define __SNR_getegid32 __NR_getegid32
772#else
773#define __SNR_getegid32 __PNR_getegid32
774#endif
775
776#ifdef __NR_geteuid
777#define __SNR_geteuid __NR_geteuid
778#else
779#define __SNR_geteuid __PNR_geteuid
780#endif
781
782#ifdef __NR_geteuid32
783#define __SNR_geteuid32 __NR_geteuid32
784#else
785#define __SNR_geteuid32 __PNR_geteuid32
786#endif
787
788#ifdef __NR_getgid
789#define __SNR_getgid __NR_getgid
790#else
791#define __SNR_getgid __PNR_getgid
792#endif
793
794#ifdef __NR_getgid32
795#define __SNR_getgid32 __NR_getgid32
796#else
797#define __SNR_getgid32 __PNR_getgid32
798#endif
799
800#ifdef __NR_getgroups
801#define __SNR_getgroups __NR_getgroups
802#else
803#define __SNR_getgroups __PNR_getgroups
804#endif
805
806#ifdef __NR_getgroups32
807#define __SNR_getgroups32 __NR_getgroups32
808#else
809#define __SNR_getgroups32 __PNR_getgroups32
810#endif
811
812#define __SNR_getitimer __NR_getitimer
813
814#ifdef __NR_getpeername
815#define __SNR_getpeername __NR_getpeername
816#else
817#define __SNR_getpeername __PNR_getpeername
818#endif
819
820#define __SNR_getpgid __NR_getpgid
821
822#ifdef __NR_getpgrp
823#define __SNR_getpgrp __NR_getpgrp
824#else
825#define __SNR_getpgrp __PNR_getpgrp
826#endif
827
828#define __SNR_getpid __NR_getpid
829
830#ifdef __NR_getpmsg
831#define __SNR_getpmsg __NR_getpmsg
832#else
833#define __SNR_getpmsg __PNR_getpmsg
834#endif
835
836#define __SNR_getppid __NR_getppid
837
838#define __SNR_getpriority __NR_getpriority
839
840#ifdef __NR_getrandom
841#define __SNR_getrandom __NR_getrandom
842#else
843#define __SNR_getrandom __PNR_getrandom
844#endif
845
846#ifdef __NR_getresgid
847#define __SNR_getresgid __NR_getresgid
848#else
849#define __SNR_getresgid __PNR_getresgid
850#endif
851
852#ifdef __NR_getresgid32
853#define __SNR_getresgid32 __NR_getresgid32
854#else
855#define __SNR_getresgid32 __PNR_getresgid32
856#endif
857
858#ifdef __NR_getresuid
859#define __SNR_getresuid __NR_getresuid
860#else
861#define __SNR_getresuid __PNR_getresuid
862#endif
863
864#ifdef __NR_getresuid32
865#define __SNR_getresuid32 __NR_getresuid32
866#else
867#define __SNR_getresuid32 __PNR_getresuid32
868#endif
869
870#ifdef __NR_getrlimit
871#define __SNR_getrlimit __NR_getrlimit
872#else
873#define __SNR_getrlimit __PNR_getrlimit
874#endif
875
876#define __SNR_getrusage __NR_getrusage
877
878#define __SNR_getsid __NR_getsid
879
880#ifdef __NR_getsockname
881#define __SNR_getsockname __NR_getsockname
882#else
883#define __SNR_getsockname __PNR_getsockname
884#endif
885
886#ifdef __NR_getsockopt
887#define __SNR_getsockopt __NR_getsockopt
888#else
889#define __SNR_getsockopt __PNR_getsockopt
890#endif
891
892#define __SNR_gettid __NR_gettid
893
894#define __SNR_gettimeofday __NR_gettimeofday
895
896#ifdef __NR_getuid
897#define __SNR_getuid __NR_getuid
898#else
899#define __SNR_getuid __PNR_getuid
900#endif
901
902#ifdef __NR_getuid32
903#define __SNR_getuid32 __NR_getuid32
904#else
905#define __SNR_getuid32 __PNR_getuid32
906#endif
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches