Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Pkg Iptables
Commits
5beab31f
Commit
5beab31f
authored
Feb 02, 2018
by
Arturo Borrero Gonzalez
Browse files
New upstream version 1.6.2
parent
f1f129da
Changes
151
Expand all
Show whitespace changes
Inline
Side-by-side
.gitignore
View file @
5beab31f
...
...
@@ -19,3 +19,7 @@ Makefile.in
/configure
/libtool
/stamp-h1
/iptables/iptables-apply.8
/iptables/xtables-multi
/iptables/xtables-compat-multi
Makefile.in
View file @
5beab31f
# Makefile.in generated by automake 1.1
4.1
from Makefile.am.
# Makefile.in generated by automake 1.1
5
from Makefile.am.
# @configure_input@
# Copyright (C) 1994-201
3
Free Software Foundation, Inc.
# Copyright (C) 1994-201
4
Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
...
...
@@ -17,7 +17,17 @@
# -*- Makefile -*-
VPATH
=
@srcdir@
am__is_gnu_make
=
test
-n
'
$(MAKEFILE_LIST)
'
&&
test
-n
'
$(MAKELEVEL)
'
am__is_gnu_make
=
{
\
if
test
-z
'
$(MAKELEVEL)
'
;
then
\
false
;
\
elif
test
-n
'
$(MAKE_HOST)
'
;
then
\
true
;
\
elif
test
-n
'
$(MAKE_VERSION)
'
&&
test
-n
'
$(CURDIR)
'
;
then
\
true
;
\
else
\
false
;
\
fi
;
\
}
am__make_running_with_option
=
\
case
$
${
target_option
-
}
in
\
?
)
;;
\
...
...
@@ -82,19 +92,6 @@ host_triplet = @host@
@ENABLE_DEVEL_TRUE@
am__append_1
=
include
@ENABLE_LIBIPQ_TRUE@
am__append_2
=
libipq
subdir
=
.
DIST_COMMON
=
$(srcdir)
/Makefile.in
$(srcdir)
/Makefile.am
\
$(top_srcdir)
/configure
$(am__configure_deps)
\
$(srcdir)
/config.h.in
$(top_srcdir)
/extensions/GNUmakefile.in
\
$(top_srcdir)
/include/iptables/internal.h.in
\
$(am__dist_conf_DATA_DIST)
COPYING INSTALL build-aux/ar-lib
\
build-aux/compile build-aux/config.guess build-aux/config.sub
\
build-aux/install-sh build-aux/missing build-aux/ltmain.sh
\
$(top_srcdir)
/build-aux/ar-lib
$(top_srcdir)
/build-aux/compile
\
$(top_srcdir)
/build-aux/config.guess
\
$(top_srcdir)
/build-aux/config.sub
\
$(top_srcdir)
/build-aux/install-sh
\
$(top_srcdir)
/build-aux/ltmain.sh
\
$(top_srcdir)
/build-aux/missing
ACLOCAL_M4
=
$(top_srcdir)
/aclocal.m4
am__aclocal_m4_deps
=
$(top_srcdir)
/m4/ax_check_linker_flags.m4
\
$(top_srcdir)
/m4/libtool.m4
$(top_srcdir)
/m4/ltoptions.m4
\
...
...
@@ -102,6 +99,9 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_linker_flags.m4 \
$(top_srcdir)
/m4/lt~obsolete.m4
$(top_srcdir)
/configure.ac
am__configure_deps
=
$(am__aclocal_m4_deps)
$(CONFIGURE_DEPENDENCIES)
\
$(ACLOCAL_M4)
DIST_COMMON
=
$(srcdir)
/Makefile.am
$(top_srcdir)
/configure
\
$(am__configure_deps)
$(am__dist_conf_DATA_DIST)
\
$(am__DIST_COMMON)
am__CONFIG_DISTCLEAN_FILES
=
config.status config.cache config.log
\
configure.lineno config.status.lineno
mkinstalldirs
=
$(install_sh)
-d
...
...
@@ -197,6 +197,18 @@ CTAGS = ctags
CSCOPE
=
cscope
DIST_SUBDIRS
=
libiptc libxtables include libipq utils extensions
\
iptables
am__DIST_COMMON
=
$(srcdir)
/Makefile.in
$(srcdir)
/config.h.in
\
$(top_srcdir)
/build-aux/ar-lib
$(top_srcdir)
/build-aux/compile
\
$(top_srcdir)
/build-aux/config.guess
\
$(top_srcdir)
/build-aux/config.sub
\
$(top_srcdir)
/build-aux/install-sh
\
$(top_srcdir)
/build-aux/ltmain.sh
\
$(top_srcdir)
/build-aux/missing
\
$(top_srcdir)
/extensions/GNUmakefile.in
\
$(top_srcdir)
/include/iptables/internal.h.in COPYING INSTALL
\
build-aux/ar-lib build-aux/compile build-aux/config.guess
\
build-aux/config.sub build-aux/install-sh build-aux/ltmain.sh
\
build-aux/missing
DISTFILES
=
$(DIST_COMMON)
$(DIST_SOURCES)
$(TEXINFOS)
$(EXTRA_DIST)
distdir
=
$(PACKAGE)
-
$(VERSION)
top_distdir
=
$(distdir)
...
...
@@ -282,6 +294,7 @@ LIBTOOL = @LIBTOOL@
LIPO
=
@LIPO@
LN_S
=
@LN_S@
LTLIBOBJS
=
@LTLIBOBJS@
LT_SYS_LIBRARY_PATH
=
@LT_SYS_LIBRARY_PATH@
MAKEINFO
=
@MAKEINFO@
MANIFEST_TOOL
=
@MANIFEST_TOOL@
MKDIR_P
=
@MKDIR_P@
...
...
@@ -379,6 +392,7 @@ program_transform_name = @program_transform_name@
psdir
=
@psdir@
regular_CFLAGS
=
@regular_CFLAGS@
regular_CPPFLAGS
=
@regular_CPPFLAGS@
runstatedir
=
@runstatedir@
sbindir
=
@sbindir@
sharedstatedir
=
@sharedstatedir@
srcdir
=
@srcdir@
...
...
@@ -415,7 +429,6 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
echo
' cd
$(top_srcdir)
&&
$(AUTOMAKE)
--foreign Makefile'
;
\
$(am__cd)
$(top_srcdir)
&&
\
$(AUTOMAKE)
--foreign
Makefile
.PRECIOUS
:
Makefile
Makefile
:
$(srcdir)/Makefile.in $(top_builddir)/config.status
@
case
'$?'
in
\
*
config.status
*
)
\
...
...
@@ -671,15 +684,15 @@ dist-xz: distdir
$(am__post_remove_distdir)
dist-tarZ
:
distdir
@
echo
WARNING:
"Support for
shar
distribution archives
is
"
\
"
deprecated."
>
&2
@
echo
WARNING:
"Support for distribution archives
compressed with
"
\
"legacy program 'compress' is
deprecated."
>
&2
@
echo
WARNING:
"It will be removed altogether in Automake 2.0"
>
&2
tardir
=
$(distdir)
&&
$(am__tar)
| compress
-c
>
$(distdir)
.tar.Z
$(am__post_remove_distdir)
dist-shar
:
distdir
@
echo
WARNING:
"Support for distribution archives
compressed with
"
\
"legacy program 'compress' is
deprecated."
>
&2
@
echo
WARNING:
"Support for
shar
distribution archives
is
"
\
"
deprecated."
>
&2
@
echo
WARNING:
"It will be removed altogether in Automake 2.0"
>
&2
shar
$(distdir)
|
GZIP
=
$(GZIP_ENV)
gzip
-c
>
$(distdir)
.shar.gz
$(am__post_remove_distdir)
...
...
@@ -715,17 +728,17 @@ distcheck: dist
esac
chmod
-R
a-w
$(distdir)
chmod
u+w
$(distdir)
mkdir
$(distdir)
/_build
$(distdir)
/_inst
mkdir
$(distdir)
/_build
$(distdir)
/_build/sub
$(distdir)
/_inst
chmod
a-w
$(distdir)
test
-d
$(distdir)
/_build
||
exit
0
;
\
dc_install_base
=
`
$(am__cd)
$(distdir)
/_inst
&&
pwd
|
sed
-e
's,^[^:\\/]:[\\/],/,'
`
\
&&
dc_destdir
=
"
$
${
TMPDIR
-/tmp
}
/am-dc-
$$$$
/"
\
&&
am__cwd
=
`
pwd
`
\
&&
$(am__cd)
$(distdir)
/_build
\
&&
../configure
\
&&
$(am__cd)
$(distdir)
/_build
/sub
\
&&
../
../configure
\
$(AM_DISTCHECK_CONFIGURE_FLAGS)
\
$(DISTCHECK_CONFIGURE_FLAGS)
\
--srcdir
=
..
--prefix
=
"
$$
dc_install_base"
\
--srcdir
=
..
/..
--prefix
=
"
$$
dc_install_base"
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
dvi
\
&&
$(MAKE)
$(AM_MAKEFLAGS)
check
\
...
...
@@ -905,6 +918,8 @@ uninstall-am: uninstall-dist_confDATA
mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall
\
uninstall-am uninstall-dist_confDATA
.PRECIOUS
:
Makefile
.PHONY
:
tarball
tarball
:
...
...
aclocal.m4
View file @
5beab31f
This diff is collapsed.
Click to expand it.
build-aux/ar-lib
View file @
5beab31f
...
...
@@ -4,7 +4,7 @@
me
=
ar-lib
scriptversion
=
2012-03-01.08
;
# UTC
# Copyright (C) 2010-201
3
Free Software Foundation, Inc.
# Copyright (C) 2010-201
4
Free Software Foundation, Inc.
# Written by Peter Rosin <peda@lysator.liu.se>.
#
# This program is free software; you can redistribute it and/or modify
...
...
build-aux/compile
View file @
5beab31f
...
...
@@ -3,7 +3,7 @@
scriptversion
=
2012-10-14.11
;
# UTC
# Copyright (C) 1999-201
3
Free Software Foundation, Inc.
# Copyright (C) 1999-201
4
Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program is free software; you can redistribute it and/or modify
...
...
build-aux/config.guess
View file @
5beab31f
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright 1992-201
4
Free Software Foundation, Inc.
# Copyright 1992-201
6
Free Software Foundation, Inc.
timestamp
=
'201
4-03-23
'
timestamp
=
'201
6-10-02
'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
...
...
@@ -24,12 +24,12 @@ timestamp='2014-03-23'
# program. This Exception is an additional permission under section 7
# of the GNU General Public License, version 3 ("GPLv3").
#
# Originally written by Per Bothner.
# Originally written by Per Bothner
; maintained since 2000 by Ben Elliston
.
#
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
;hb=HEAD
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
#
# Please send patches
with a ChangeLog entry
to config-patches@gnu.org.
# Please send patches to
<
config-patches@gnu.org
>
.
me
=
`
echo
"
$0
"
|
sed
-e
's,.*/,,'
`
...
...
@@ -50,7 +50,7 @@ version="\
GNU config.guess (
$timestamp
)
Originally written by Per Bothner.
Copyright 1992-201
4
Free Software Foundation, Inc.
Copyright 1992-201
6
Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
...
...
@@ -168,19 +168,29 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# Note: NetBSD doesn't particularly care about the vendor
# portion of the name. We always set it to "unknown".
sysctl
=
"sysctl -n hw.machine_arch"
UNAME_MACHINE_ARCH
=
`
(
/sbin/
$sysctl
2>/dev/null
||
\
/usr/sbin/
$sysctl
2>/dev/null
||
echo
unknown
)
`
UNAME_MACHINE_ARCH
=
`
(
uname
-p
2>/dev/null
||
\
/sbin/
$sysctl
2>/dev/null
||
\
/usr/sbin/
$sysctl
2>/dev/null
||
\
echo
unknown
)
`
case
"
${
UNAME_MACHINE_ARCH
}
"
in
armeb
)
machine
=
armeb-unknown
;;
arm
*
)
machine
=
arm-unknown
;;
sh3el
)
machine
=
shl-unknown
;;
sh3eb
)
machine
=
sh-unknown
;;
sh5el
)
machine
=
sh5le-unknown
;;
earmv
*
)
arch
=
`
echo
${
UNAME_MACHINE_ARCH
}
|
sed
-e
's,^e\(armv[0-9]\).*$,\1,'
`
endian
=
`
echo
${
UNAME_MACHINE_ARCH
}
|
sed
-ne
's,^.*\(eb\)$,\1,p'
`
machine
=
${
arch
}${
endian
}
-unknown
;;
*
)
machine
=
${
UNAME_MACHINE_ARCH
}
-unknown
;;
esac
# The Operating System including object format, if it has switched
# to ELF recently
,
or will in the future.
# to ELF recently
(
or will in the future
) and ABI
.
case
"
${
UNAME_MACHINE_ARCH
}
"
in
earm
*
)
os
=
netbsdelf
;;
arm
*
|
i386|m68k|ns32k|sh3
*
|
sparc|vax
)
eval
$set_cc_for_build
if
echo
__ELF__ |
$CC_FOR_BUILD
-E
- 2>/dev/null
\
...
...
@@ -197,6 +207,13 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
os
=
netbsd
;;
esac
# Determine ABI tags.
case
"
${
UNAME_MACHINE_ARCH
}
"
in
earm
*
)
expr
=
's/^earmv[0-9]/-eabi/;s/eb$//'
abi
=
`
echo
${
UNAME_MACHINE_ARCH
}
|
sed
-e
"
$expr
"
`
;;
esac
# The OS release
# Debian GNU/NetBSD machines have a different userland, and
# thus, need a distinct triplet. However, they do not need
...
...
@@ -207,13 +224,13 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
release
=
'-gnu'
;;
*
)
release
=
`
echo
${
UNAME_RELEASE
}
|
sed
-e
's/[-_].*/
\.
/'
`
release
=
`
echo
${
UNAME_RELEASE
}
|
sed
-e
's/[-_].*//'
|
cut
-d
.
-f1
,2
`
;;
esac
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
# contains redundant information, the shorter form:
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
echo
"
${
machine
}
-
${
os
}${
release
}
"
echo
"
${
machine
}
-
${
os
}${
release
}
${
abi
}
"
exit
;;
*
:Bitrig:
*
:
*
)
UNAME_MACHINE_ARCH
=
`
arch
|
sed
's/Bitrig.//'
`
...
...
@@ -223,6 +240,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
UNAME_MACHINE_ARCH
=
`
arch
|
sed
's/OpenBSD.//'
`
echo
${
UNAME_MACHINE_ARCH
}
-unknown-openbsd
${
UNAME_RELEASE
}
exit
;;
*
:LibertyBSD:
*
:
*
)
UNAME_MACHINE_ARCH
=
`
arch
|
sed
's/^.*BSD\.//'
`
echo
${
UNAME_MACHINE_ARCH
}
-unknown-libertybsd
${
UNAME_RELEASE
}
exit
;;
*
:ekkoBSD:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-ekkobsd
${
UNAME_RELEASE
}
exit
;;
...
...
@@ -235,6 +256,9 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
*
:MirBSD:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-mirbsd
${
UNAME_RELEASE
}
exit
;;
*
:Sortix:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-sortix
exit
;;
alpha:OSF1:
*
:
*
)
case
$UNAME_RELEASE
in
*
4.0
)
...
...
@@ -251,42 +275,42 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
ALPHA_CPU_TYPE
=
`
/usr/sbin/psrinfo
-v
|
sed
-n
-e
's/^ The alpha \(.*\) processor.*$/\1/p'
|
head
-n
1
`
case
"
$ALPHA_CPU_TYPE
"
in
"EV4 (21064)"
)
UNAME_MACHINE
=
"
alpha
"
;;
UNAME_MACHINE
=
alpha
;;
"EV4.5 (21064)"
)
UNAME_MACHINE
=
"
alpha
"
;;
UNAME_MACHINE
=
alpha
;;
"LCA4 (21066/21068)"
)
UNAME_MACHINE
=
"
alpha
"
;;
UNAME_MACHINE
=
alpha
;;
"EV5 (21164)"
)
UNAME_MACHINE
=
"
alphaev5
"
;;
UNAME_MACHINE
=
alphaev5
;;
"EV5.6 (21164A)"
)
UNAME_MACHINE
=
"
alphaev56
"
;;
UNAME_MACHINE
=
alphaev56
;;
"EV5.6 (21164PC)"
)
UNAME_MACHINE
=
"
alphapca56
"
;;
UNAME_MACHINE
=
alphapca56
;;
"EV5.7 (21164PC)"
)
UNAME_MACHINE
=
"
alphapca57
"
;;
UNAME_MACHINE
=
alphapca57
;;
"EV6 (21264)"
)
UNAME_MACHINE
=
"
alphaev6
"
;;
UNAME_MACHINE
=
alphaev6
;;
"EV6.7 (21264A)"
)
UNAME_MACHINE
=
"
alphaev67
"
;;
UNAME_MACHINE
=
alphaev67
;;
"EV6.8CB (21264C)"
)
UNAME_MACHINE
=
"
alphaev68
"
;;
UNAME_MACHINE
=
alphaev68
;;
"EV6.8AL (21264B)"
)
UNAME_MACHINE
=
"
alphaev68
"
;;
UNAME_MACHINE
=
alphaev68
;;
"EV6.8CX (21264D)"
)
UNAME_MACHINE
=
"
alphaev68
"
;;
UNAME_MACHINE
=
alphaev68
;;
"EV6.9A (21264/EV69A)"
)
UNAME_MACHINE
=
"
alphaev69
"
;;
UNAME_MACHINE
=
alphaev69
;;
"EV7 (21364)"
)
UNAME_MACHINE
=
"
alphaev7
"
;;
UNAME_MACHINE
=
alphaev7
;;
"EV7.9 (21364A)"
)
UNAME_MACHINE
=
"
alphaev79
"
;;
UNAME_MACHINE
=
alphaev79
;;
esac
# A Pn.n version is a patched version.
# A Vn.n version is a released version.
# A Tn.n version is a released field test version.
# A Xn.n version is an unreleased experimental baselevel.
# 1.2 uses "1.2" for uname -r.
echo
${
UNAME_MACHINE
}
-dec-osf
`
echo
${
UNAME_RELEASE
}
|
sed
-e
's/^[PVTX]//'
|
tr
'
ABCDEFGHIJKLMNOPQRSTUVWXYZ
'
'
abcdefghijklmnopqrstuvwxyz
'
`
echo
${
UNAME_MACHINE
}
-dec-osf
`
echo
${
UNAME_RELEASE
}
|
sed
-e
's/^[PVTX]//'
|
tr
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
`
# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
exitcode
=
$?
trap
''
0
...
...
@@ -359,16 +383,16 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
exit
;;
i86pc:SunOS:5.
*
:
*
|
i86xen:SunOS:5.
*
:
*
)
eval
$set_cc_for_build
SUN_ARCH
=
"
i386
"
SUN_ARCH
=
i386
# If there is a compiler, see if it is configured for 64-bit objects.
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
# This test works for both compilers.
if
[
"
$CC_FOR_BUILD
"
!=
'
no_compiler_found
'
]
;
then
if
[
"
$CC_FOR_BUILD
"
!=
no_compiler_found
]
;
then
if
(
echo
'#ifdef __amd64'
;
echo
IS_64BIT_ARCH
;
echo
'#endif'
)
|
\
(
CCOPTS
=
$CC_FOR_BUILD
-E
- 2>/dev/null
)
|
\
(
CCOPTS
=
""
$CC_FOR_BUILD
-E
- 2>/dev/null
)
|
\
grep
IS_64BIT_ARCH
>
/dev/null
then
SUN_ARCH
=
"
x86_64
"
SUN_ARCH
=
x86_64
fi
fi
echo
${
SUN_ARCH
}
-pc-solaris2
`
echo
${
UNAME_RELEASE
}
|sed
-e
's/[^.]*//'
`
...
...
@@ -393,7 +417,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
exit
;;
sun
*
:
*
:4.2BSD:
*
)
UNAME_RELEASE
=
`
(
sed
1q /etc/motd |
awk
'{print substr($5,1,3)}'
)
2>/dev/null
`
test
"x
${
UNAME_RELEASE
}
"
=
"x"
&&
UNAME_RELEASE
=
3
test
"x
${
UNAME_RELEASE
}
"
=
x
&&
UNAME_RELEASE
=
3
case
"
`
/bin/arch
`
"
in
sun3
)
echo
m68k-sun-sunos
${
UNAME_RELEASE
}
...
...
@@ -579,8 +603,9 @@ EOF
else
IBM_ARCH
=
powerpc
fi
if
[
-x
/usr/bin/oslevel
]
;
then
IBM_REV
=
`
/usr/bin/oslevel
`
if
[
-x
/usr/bin/lslpp
]
;
then
IBM_REV
=
`
/usr/bin/lslpp
-Lqc
bos.rte.libc |
awk
-F
:
'{ print $3 }'
|
sed
s/[0-9]
*
$/
0/
`
else
IBM_REV
=
${
UNAME_VERSION
}
.
${
UNAME_RELEASE
}
fi
...
...
@@ -617,13 +642,13 @@ EOF
sc_cpu_version
=
`
/usr/bin/getconf SC_CPU_VERSION 2>/dev/null
`
sc_kernel_bits
=
`
/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null
`
case
"
${
sc_cpu_version
}
"
in
523
)
HP_ARCH
=
"
hppa1.0
"
;;
# CPU_PA_RISC1_0
528
)
HP_ARCH
=
"
hppa1.1
"
;;
# CPU_PA_RISC1_1
523
)
HP_ARCH
=
hppa1.0
;;
# CPU_PA_RISC1_0
528
)
HP_ARCH
=
hppa1.1
;;
# CPU_PA_RISC1_1
532
)
# CPU_PA_RISC2_0
case
"
${
sc_kernel_bits
}
"
in
32
)
HP_ARCH
=
"
hppa2.0n
"
;;
64
)
HP_ARCH
=
"
hppa2.0w
"
;;
''
)
HP_ARCH
=
"
hppa2.0
"
;;
# HP-UX 10.20
32
)
HP_ARCH
=
hppa2.0n
;;
64
)
HP_ARCH
=
hppa2.0w
;;
''
)
HP_ARCH
=
hppa2.0
;;
# HP-UX 10.20
esac
;;
esac
fi
...
...
@@ -662,11 +687,11 @@ EOF
exit (0);
}
EOF
(
CCOPTS
=
$CC_FOR_BUILD
-o
$dummy
$dummy
.c 2>/dev/null
)
&&
HP_ARCH
=
`
$dummy
`
(
CCOPTS
=
""
$CC_FOR_BUILD
-o
$dummy
$dummy
.c 2>/dev/null
)
&&
HP_ARCH
=
`
$dummy
`
test
-z
"
$HP_ARCH
"
&&
HP_ARCH
=
hppa
fi
;;
esac
if
[
${
HP_ARCH
}
=
"
hppa2.0w
"
]
if
[
${
HP_ARCH
}
=
hppa2.0w
]
then
eval
$set_cc_for_build
...
...
@@ -679,12 +704,12 @@ EOF
# $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
# => hppa64-hp-hpux11.23
if
echo
__LP64__ |
(
CCOPTS
=
$CC_FOR_BUILD
-E
- 2>/dev/null
)
|
if
echo
__LP64__ |
(
CCOPTS
=
""
$CC_FOR_BUILD
-E
- 2>/dev/null
)
|
grep
-q
__LP64__
then
HP_ARCH
=
"
hppa2.0w
"
HP_ARCH
=
hppa2.0w
else
HP_ARCH
=
"
hppa64
"
HP_ARCH
=
hppa64
fi
fi
echo
${
HP_ARCH
}
-hp-hpux
${
HPUX_REV
}
...
...
@@ -789,14 +814,14 @@ EOF
echo
craynv-cray-unicosmp
${
UNAME_RELEASE
}
|
sed
-e
's/\.[^.]*$/.X/'
exit
;;
F30[01]:UNIX_System_V:
*
:
*
|
F700:UNIX_System_V:
*
:
*
)
FUJITSU_PROC
=
`
uname
-m
|
tr
'
ABCDEFGHIJKLMNOPQRSTUVWXYZ
'
'
abcdefghijklmnopqrstuvwxyz
'
`
FUJITSU_SYS
=
`
uname
-p
|
tr
'
ABCDEFGHIJKLMNOPQRSTUVWXYZ
'
'
abcdefghijklmnopqrstuvwxyz
'
|
sed
-e
's/\///'
`
FUJITSU_PROC
=
`
uname
-m
|
tr
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
`
FUJITSU_SYS
=
`
uname
-p
|
tr
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz |
sed
-e
's/\///'
`
FUJITSU_REL
=
`
echo
${
UNAME_RELEASE
}
|
sed
-e
's/ /_/'
`
echo
"
${
FUJITSU_PROC
}
-fujitsu-
${
FUJITSU_SYS
}${
FUJITSU_REL
}
"
exit
;;
5000:UNIX_System_V:4.
*
:
*
)
FUJITSU_SYS
=
`
uname
-p
|
tr
'
ABCDEFGHIJKLMNOPQRSTUVWXYZ
'
'
abcdefghijklmnopqrstuvwxyz
'
|
sed
-e
's/\///'
`
FUJITSU_REL
=
`
echo
${
UNAME_RELEASE
}
|
tr
'
ABCDEFGHIJKLMNOPQRSTUVWXYZ
'
'
abcdefghijklmnopqrstuvwxyz
'
|
sed
-e
's/ /_/'
`
FUJITSU_SYS
=
`
uname
-p
|
tr
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz |
sed
-e
's/\///'
`
FUJITSU_REL
=
`
echo
${
UNAME_RELEASE
}
|
tr
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz |
sed
-e
's/ /_/'
`
echo
"sparc-fujitsu-
${
FUJITSU_SYS
}${
FUJITSU_REL
}
"
exit
;;
i
*
86:BSD/386:
*
:
*
|
i
*
86:BSD/OS:
*
:
*
|
*
:Ascend
\
Embedded/OS:
*
:
*
)
...
...
@@ -878,7 +903,7 @@ EOF
exit
;;
*
:GNU/
*
:
*
:
*
)
# other systems with GNU libc and userland
echo
${
UNAME_MACHINE
}
-unknown-
`
echo
${
UNAME_SYSTEM
}
|
sed
's,^[^/]*/,,'
|
tr
'[A-Z]'
'[a-z]'
``
echo
${
UNAME_RELEASE
}
|sed
-e
's/[-(].*//'
`
-
${
LIBC
}
echo
${
UNAME_MACHINE
}
-unknown-
`
echo
${
UNAME_SYSTEM
}
|
sed
's,^[^/]*/,,'
|
tr
"[:upper:]"
"[:lower:]"
``
echo
${
UNAME_RELEASE
}
|sed
-e
's/[-(].*//'
`
-
${
LIBC
}
exit
;;
i
*
86:Minix:
*
:
*
)
echo
${
UNAME_MACHINE
}
-pc-minix
...
...
@@ -901,7 +926,7 @@ EOF
EV68
*
)
UNAME_MACHINE
=
alphaev68
;;
esac
objdump
--private-headers
/bin/sh |
grep
-q
ld.so.1
if
test
"
$?
"
=
0
;
then
LIBC
=
"
gnulibc1
"
;
fi
if
test
"
$?
"
=
0
;
then
LIBC
=
gnulibc1
;
fi
echo
${
UNAME_MACHINE
}
-unknown-linux-
${
LIBC
}
exit
;;
arc:Linux:
*
:
*
|
arceb:Linux:
*
:
*
)
...
...
@@ -932,6 +957,9 @@ EOF
crisv32:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-axis-linux-
${
LIBC
}
exit
;;
e2k:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-linux-
${
LIBC
}
exit
;;
frv:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-linux-
${
LIBC
}
exit
;;
...
...
@@ -944,6 +972,9 @@ EOF
ia64:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-linux-
${
LIBC
}
exit
;;
k1om:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-linux-
${
LIBC
}
exit
;;
m32r
*
:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-linux-
${
LIBC
}
exit
;;
...
...
@@ -969,6 +1000,9 @@ EOF
eval
`
$CC_FOR_BUILD
-E
$dummy
.c 2>/dev/null |
grep
'^CPU'
`
test
x
"
${
CPU
}
"
!=
x
&&
{
echo
"
${
CPU
}
-unknown-linux-
${
LIBC
}
"
;
exit
;
}
;;
mips64el:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-linux-
${
LIBC
}
exit
;;
openrisc
*
:Linux:
*
:
*
)
echo
or1k-unknown-linux-
${
LIBC
}
exit
;;
...
...
@@ -1001,6 +1035,9 @@ EOF
ppcle:Linux:
*
:
*
)
echo
powerpcle-unknown-linux-
${
LIBC
}
exit
;;
riscv32:Linux:
*
:
*
|
riscv64:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-linux-
${
LIBC
}
exit
;;
s390:Linux:
*
:
*
|
s390x:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-ibm-linux-
${
LIBC
}
exit
;;
...
...
@@ -1020,7 +1057,7 @@ EOF
echo
${
UNAME_MACHINE
}
-dec-linux-
${
LIBC
}
exit
;;
x86_64:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-
unknown
-linux-
${
LIBC
}
echo
${
UNAME_MACHINE
}
-
pc
-linux-
${
LIBC
}
exit
;;
xtensa
*
:Linux:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-linux-
${
LIBC
}
...
...
@@ -1099,7 +1136,7 @@ EOF
# uname -m prints for DJGPP always 'pc', but it prints nothing about
# the processor, so we play safe by assuming i586.
# Note: whatever this is, it MUST be the same as what config.sub
# prints for the "djgpp" host, or else GDB configur
y
will decide that
# prints for the "djgpp" host, or else GDB configur
e
will decide that
# this is a cross-build.
echo
i586-pc-msdosdjgpp
exit
;;
...
...
@@ -1248,6 +1285,9 @@ EOF
SX-8R:SUPER-UX:
*
:
*
)
echo
sx8r-nec-superux
${
UNAME_RELEASE
}
exit
;;
SX-ACE:SUPER-UX:
*
:
*
)
echo
sxace-nec-superux
${
UNAME_RELEASE
}
exit
;;
Power
*
:Rhapsody:
*
:
*
)
echo
powerpc-apple-rhapsody
${
UNAME_RELEASE
}
exit
;;
...
...
@@ -1261,9 +1301,9 @@ EOF
UNAME_PROCESSOR
=
powerpc
fi
if
test
`
echo
"
$UNAME_RELEASE
"
|
sed
-e
's/\..*//'
`
-le
10
;
then
if
[
"
$CC_FOR_BUILD
"
!=
'
no_compiler_found
'
]
;
then
if
[
"
$CC_FOR_BUILD
"
!=
no_compiler_found
]
;
then
if
(
echo
'#ifdef __LP64__'
;
echo
IS_64BIT_ARCH
;
echo
'#endif'
)
|
\
(
CCOPTS
=
$CC_FOR_BUILD
-E
- 2>/dev/null
)
|
\
(
CCOPTS
=
""
$CC_FOR_BUILD
-E
- 2>/dev/null
)
|
\
grep
IS_64BIT_ARCH
>
/dev/null
then
case
$UNAME_PROCESSOR
in
...
...
@@ -1285,7 +1325,7 @@ EOF
exit
;;
*
:procnto
*
:
*
:
*
|
*
:QNX:[0123456789]
*
:
*
)
UNAME_PROCESSOR
=
`
uname
-p
`
if
test
"
$UNAME_PROCESSOR
"
=
"
x86
"
;
then
if
test
"
$UNAME_PROCESSOR
"
=
x86
;
then
UNAME_PROCESSOR
=
i386
UNAME_MACHINE
=
pc
fi
...
...
@@ -1316,7 +1356,7 @@ EOF
# "uname -m" is not consistent, so use $cputype instead. 386
# is converted to i386 for consistency with other x86
# operating systems.
if
test
"
$cputype
"
=
"
386
"
;
then
if
test
"
$cputype
"
=
386
;
then
UNAME_MACHINE
=
i386
else
UNAME_MACHINE
=
"
$cputype
"
...
...
@@ -1358,7 +1398,7 @@ EOF
echo
i386-pc-xenix
exit
;;
i
*
86:skyos:
*
:
*
)
echo
${
UNAME_MACHINE
}
-pc-skyos
`
echo
${
UNAME_RELEASE
}
`
|
sed
-e
's/ .*$//'
echo
${
UNAME_MACHINE
}
-pc-skyos
`
echo
${
UNAME_RELEASE
}
|
sed
-e
's/ .*$//'
`
exit
;;
i
*
86:rdos:
*
:
*
)
echo
${
UNAME_MACHINE
}
-pc-rdos
...
...
@@ -1369,23 +1409,25 @@ EOF
x86_64:VMkernel:
*
:
*
)
echo
${
UNAME_MACHINE
}
-unknown-esx
exit
;;
amd64:Isilon
\
OneFS:
*
:
*
)
echo
x86_64-unknown-onefs
exit
;;
esac
cat
>
&2
<<
EOF
$0
: unable to guess system type
This script
, last modified
$timestamp
, has failed to recognize
the
operating system you are using. I
t is advised that you
download the most up to d
ate version
of the config script
s from
This script
(version
$timestamp
)
, has failed to recognize
the
operating system you are using. I
f your script is old, overwrite
config.guess and config.sub with the l
ate
st
versions from
:
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
;hb=HEAD
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
and
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
;hb=HEAD
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
If the version you run (
$0
) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.
If
$0
has already been updated, send the following data and any
information you think might be pertinent to config-patches@gnu.org to
provide the necessary information to handle your system.
config.guess timestamp =
$timestamp
...
...
build-aux/config.sub
View file @
5beab31f
#! /bin/sh
# Configuration validation subroutine script.
# Copyright 1992-201
4
Free Software Foundation, Inc.
# Copyright 1992-201
6
Free Software Foundation, Inc.
timestamp
=
'201
4-09-11
'
timestamp
=
'201
6-11-04
'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
...
...
@@ -25,7 +25,7 @@ timestamp='2014-09-11'
# of the GNU General Public License, version 3 ("GPLv3").
# Please send patches
with a ChangeLog entry
to config-patches@gnu.org.
# Please send patches to
<
config-patches@gnu.org
>
.
#
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
...
...
@@ -33,7 +33,7 @@ timestamp='2014-09-11'
# Otherwise, we print the canonical config type on stdout and succeed.
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
;hb=HEAD
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
...
...
@@ -53,8 +53,7 @@ timestamp='2014-09-11'
me
=
`
echo
"
$0
"
|
sed
-e
's,.*/,,'
`
usage
=
"
\
Usage:
$0
[OPTION] CPU-MFR-OPSYS
$0
[OPTION] ALIAS
Usage:
$0
[OPTION] CPU-MFR-OPSYS or ALIAS
Canonicalize a configuration name.
...
...
@@ -68,7 +67,7 @@ Report bugs and patches to <config-patches@gnu.org>."
version
=
"
\
GNU config.sub (
$timestamp
)
Copyright 1992-201
4
Free Software Foundation, Inc.
Copyright 1992-201
6
Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
...
...
@@ -117,8 +116,8 @@ maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case
$maybe_os
in
nto-qnx
*
|
linux-gnu
*
|
linux-android
*
|
linux-dietlibc
|
linux-newlib
*
|
\
linux-musl
*
|
linux-uclibc
*
|
uclinux-uclibc
*
|
uclinux-gnu
*
|
kfreebsd
*
-gnu
*
|
\
knetbsd
*
-gnu
*
|
netbsd
*
-gnu
*
|
\
kopensolaris
*
-gnu
*
|
\
knetbsd
*
-gnu
*
|
netbsd
*
-gnu
*
|
netbsd
*
-eabi
*
|
\
kopensolaris
*
-gnu
*
|
cloudabi
*
-eabi
*
|
\
storm-chaos
*
|
os2-emx
*
|
rtmk-nova
*
)
os
=
-
$maybe_os
basic_machine
=
`
echo
$1
|
sed
's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'
`
...
...
@@ -255,12 +254,13 @@ case $basic_machine in
|
arc
|
arceb
\
|
arm
|
arm[bl]e
|
arme[lb]
|
armv[2-8]
|
armv[3-8][lb]
|
armv7[arm]
\
|
avr
|
avr32
\
|
ba
\
|
be32
|
be64
\
|
bfin
\
|
c4x
|
c8051
|
clipper
\
|
d10v
|
d30v
|
dlx
|
dsp16xx
\
|
epiphany
\
|
fido
|
fr30
|
frv
\
|
e2k
|
epiphany
\
|
fido
|
fr30
|
frv
|
ft32
\
|
h8300
|
h8500
|
hppa
|
hppa1.[01]
|
hppa2.0
|
hppa2.0[nw]
|
hppa64
\
|
hexagon
\
|
i370
|
i860
|
i960
|
ia64
\
...
...
@@ -301,11 +301,12 @@ case $basic_machine in
|
open8
|
or1k
|
or1knd
|
or32
\
|
pdp10
|
pdp11
|
pj
|
pjl
\
|
powerpc
|
powerpc64
|
powerpc64le
|
powerpcle
\
|
pru
\
|
pyramid
\
|
riscv32
|
riscv64
\
|
rl78
|
rx
\
|
score
\
|
sh
|
sh[1234]
|
sh[24]a
|
sh[24]aeb
|
sh[23]e
|
sh[34]eb
|
sheb
|
shbe
|
shle
|
sh[1234]le
|
sh3ele
\
|
sh
|
sh[1234]
|
sh[24]a
|
sh[24]aeb
|
sh[23]e
|
sh[
2
34]eb
|
sheb
|
shbe
|
shle
|
sh[1234]le
|
sh3ele
\
|
sh64
|
sh64le
\
|
sparc
|
sparc64
|
sparc64b
|
sparc64v
|
sparc86x
|
sparclet
|
sparclite
\
|
sparcv8
|
sparcv9
|
sparcv9b
|
sparcv9v
\
...
...
@@ -313,6 +314,7 @@ case $basic_machine in
|
tahoe
|
tic4x
|
tic54x
|
tic55x
|
tic6x
|
tic80
|
tron
\
|
ubicom32
\
|
v850
|
v850e
|
v850e1
|
v850e2
|
v850es
|
v850e2v3
\
|
visium
\
|
we32k
\
|
x86
|
xc16x
|
xstormy16
|
xtensa
\
|
z8k
|
z80
)
...
...
@@ -327,6 +329,9 @@ case $basic_machine in
c6x
)
basic_machine
=
tic6x-unknown
;;
leon|leon[3-9]
)
basic_machine
=
sparc-
$basic_machine
;;
m6811
|
m68hc11
|
m6812
|
m68hc12
|
m68hcs12x
|
nvptx
|
picochip
)
basic_machine
=
$basic_machine
-unknown
os
=
-none
...
...
@@ -372,12 +377,13 @@ case $basic_machine in
|
alphapca5[67]-
*
|
alpha64pca5[67]-
*
|
arc-
*
|
arceb-
*
\
|
arm-
*
|
armbe-
*
|
armle-
*
|
armeb-
*
|
armv
*
-
*
\
|
avr-
*
|
avr32-
*
\
|
ba-
*
\
|
be32-
*
|
be64-
*
\
|
bfin-
*
|
bs2000-
*
\
|
c[123]
*
|
c30-
*
|
[
cjt]90-
*
|
c4x-
*
\
|
c8051-
*
|
clipper-
*
|
craynv-
*
|
cydra-
*
\
|
d10v-
*
|
d30v-
*
|
dlx-
*
\
|
elxsi-
*
\
|
e2k-
*
|
elxsi-
*
\
|
f30[01]-
*
|
f700-
*
|
fido-
*
|
fr30-
*
|
frv-
*
|
fx80-
*
\
|
h8300-
*
|
h8500-
*
\
|
hppa-
*
|
hppa1.[01]-
*
|
hppa2.0-
*
|
hppa2.0[nw]-
*
|
hppa64-
*
\
...
...
@@ -423,13 +429,15 @@ case $basic_machine in
|
orion-
*
\
|
pdp10-
*
|
pdp11-
*
|
pj-
*
|
pjl-
*
|
pn-
*
|
power-
*
\
|
powerpc-
*
|
powerpc64-
*
|
powerpc64le-
*
|
powerpcle-
*
\
|
pru-
*
\
|
pyramid-
*
\
|
riscv32-
*
|
riscv64-
*
\
|
rl78-
*
|
romp-
*
|
rs6000-
*
|
rx-
*
\
|
sh-
*
|
sh[1234]-
*
|
sh[24]a-
*
|
sh[24]aeb-
*
|
sh[23]e-
*
|
sh[34]eb-
*
|
sheb-
*
|
shbe-
*
\
|
shle-
*
|
sh[1234]le-
*
|
sh3ele-
*
|
sh64-
*
|
sh64le-
*
\
|
sparc-
*
|
sparc64-
*
|
sparc64b-
*
|
sparc64v-
*
|
sparc86x-
*
|
sparclet-
*
\
|
sparclite-
*
\
|
sparcv8-
*
|
sparcv9-
*
|
sparcv9b-
*
|
sparcv9v-
*
|
sv1-
*
|
sx
?
-
*
\
|
sparcv8-
*
|
sparcv9-
*
|
sparcv9b-
*
|
sparcv9v-
*
|
sv1-
*
|
sx
*
-
*
\
|
tahoe-
*
\
|
tic30-
*
|
tic4x-
*
|
tic54x-
*
|
tic55x-
*
|
tic6x-
*
|
tic80-
*
\
|
tile
*
-
*
\
...
...
@@ -437,6 +445,7 @@ case $basic_machine in
|
ubicom32-
*
\
|
v850-
*
|
v850e-
*
|
v850e1-
*
|
v850es-
*
|
v850e2-
*
|
v850e2v3-
*
\
|
vax-
*
\
|
visium-
*
\
|
we32k-
*
\
|
x86-
*
|
x86_64-
*
|
xc16x-
*
|
xps100-
*
\
|
xstormy16-
*
|
xtensa
*
-
*
\
...
...
@@ -513,6 +522,9 @@ case $basic_machine in
basic_machine
=
i386-pc
os
=
-aros
;;
asmjs
)
basic_machine
=
asmjs-unknown
;;
aux
)
basic_machine
=
m68k-apple
os
=
-aux
...
...
@@ -633,6 +645,14 @@ case $basic_machine in
basic_machine
=
m68k-bull
os
=
-sysv3
;;
e500v[12]
)
basic_machine
=
powerpc-unknown
os
=
$os
"spe"
;;
e500v[12]-
*
)
basic_machine
=
powerpc-
`
echo
$basic_machine
|
sed
's/^[^-]*-//'
`
os
=
$os
"spe"
;;
ebmon29k
)
basic_machine
=
a29k-amd
os
=
-ebmon
...
...
@@ -774,6 +794,9 @@ case $basic_machine in
basic_machine
=
m68k-isi
os
=
-sysv
;;
leon-
*
|
leon[3-9]-
*
)
basic_machine
=
sparc-
`
echo
$basic_machine
|
sed
's/-.*//'
`
;;
m68knommu
)
basic_machine
=
m68k-unknown
os
=
-linux
...
...
@@ -1009,7 +1032,7 @@ case $basic_machine in
ppc-
*
|
ppcbe-
*
)
basic_machine
=
powerpc-
`
echo
$basic_machine
|
sed
's/^[^-]*-//'
`
;;
ppcle
|
powerpclittle
|
ppc-le
|
powerpc-little
)
ppcle
|
powerpclittle
)
basic_machine
=
powerpcle-unknown
;;
ppcle-
*
|
powerpclittle-
*
)
...
...
@@ -1019,7 +1042,7 @@ case $basic_machine in
;;
ppc64-
*
)
basic_machine
=
powerpc64-
`
echo
$basic_machine
|
sed
's/^[^-]*-//'
`
;;
ppc64le
|
powerpc64little
|
ppc64-le
|
powerpc64-little
)
ppc64le
|
powerpc64little
)
basic_machine
=
powerpc64le-unknown
;;
ppc64le-
*
|
powerpc64little-
*
)
...
...
@@ -1365,18 +1388,18 @@ case $os in
|
-hpux
*
|
-unos
*
|
-osf
*
|
-luna
*
|
-dgux
*
|
-auroraux
*
|
-solaris
*
\
|
-sym
*
|
-kopensolaris
*
|
-plan9
*
\
|
-amigaos
*
|
-amigados
*
|
-msdos
*
|
-newsos
*
|
-unicos
*
|
-aof
*
\
|
-aos
*
|
-aros
*
\
|
-aos
*
|
-aros
*
|
-cloudabi
*
|
-sortix
*
\
|
-nindy
*
|
-vxsim
*
|
-vxworks
*
|
-ebmon
*
|
-hms
*
|
-mvs
*
\
|
-clix
*
|
-riscos
*
|
-uniplus
*
|
-iris
*
|
-rtu
*
|
-xenix
*
\
|
-hiux
*
|
-386bsd
*
|
-knetbsd
*
|
-mirbsd
*
|
-netbsd
*
\
|
-bitrig
*
|
-openbsd
*
|
-solidbsd
*
\
|
-bitrig
*
|
-openbsd
*
|
-solidbsd
*
|
-libertybsd
*
\
|
-ekkobsd
*
|
-kfreebsd
*
|
-freebsd
*
|
-riscix
*
|
-lynxos
*
\
|
-bosx
*
|
-nextstep
*
|
-cxux
*
|
-aout
*
|
-elf
*
|
-oabi
*
\
|
-ptx
*
|
-coff
*
|
-ecoff
*
|
-winnt
*
|
-domain
*
|
-vsta
*
\
|
-udi
*
|
-eabi
*
|
-lites
*
|
-ieee
*
|
-go32
*
|
-aux
*
\
|
-chorusos
*
|
-chorusrdb
*
|
-cegcc
*
\
|
-cygwin
*
|
-msys
*
|
-pe
*
|
-psos
*
|
-moss
*
|
-proelf
*
|
-rtems
*
\
|
-mingw32
*
|
-mingw64
*
|
-linux-gnu
*
|
-linux-android
*
\
|
-midipix
*
|
-mingw32
*
|
-mingw64
*
|
-linux-gnu
*
|
-linux-android
*
\
|
-linux-newlib
*
|
-linux-musl
*
|
-linux-uclibc
*
\
|
-uxpv
*
|
-beos
*
|
-mpeix
*
|
-udk
*
|
-moxiebox
*
\
|
-interix
*
|
-uwin
*
|
-mks
*
|
-rhapsody
*
|
-darwin
*
|
-opened
*
\
...
...
@@ -1385,7 +1408,8 @@ case $os in
|
-os2
*
|
-vos
*
|
-palmos
*
|
-uclinux
*
|
-nucleus
*
\
|
-morphos
*
|
-superux
*
|
-rtmk
*
|
-rtmk-nova
*
|
-windiss
*
\
|
-powermax
*
|
-dnix
*
|
-nx6
|
-nx7
|
-sei
*
|
-dragonfly
*
\
|
-skyos
*
|
-haiku
*
|
-rdos
*
|
-toppers
*
|
-drops
*
|
-es
*
|
-tirtos
*
)
|
-skyos
*
|
-haiku
*
|
-rdos
*
|
-toppers
*
|
-drops
*
|
-es
*
\
|
-onefs
*
|
-tirtos
*
|
-phoenix
*
|
-fuchsia
*
)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx
*
)
...
...
@@ -1517,6 +1541,8 @@ case $os in
;;
-nacl
*
)
;;
-ios
)
;;
-none
)
;;
*
)
...
...
build-aux/depcomp
View file @
5beab31f
...
...
@@ -3,7 +3,7 @@
scriptversion
=
2013-05-30.07
;
# UTC
# Copyright (C) 1999-201
3
Free Software Foundation, Inc.
# Copyright (C) 1999-201
4
Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
build-aux/install-sh
View file @
5beab31f
#!/bin/sh
# install - install a program, script, or datafile
scriptversion
=
201
1-11-20.07
;
# UTC
scriptversion
=
201
4-09-12.12
;
# UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
...
...
@@ -41,19 +41,15 @@ scriptversion=2011-11-20.07; # UTC
# This script is compatible with the BSD install script, but was written
# from scratch.
tab
=
' '
nl
=
'
'
IFS
=
"
""
$nl
"
IFS
=
"
$tab
$nl
"
#
s
et DOITPROG to echo to test this script
#
S
et DOITPROG to
"
echo
"
to test this script
.
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit
=
${
DOITPROG
-
}
if
test
-z
"
$doit
"
;
then
doit_exec
=
exec
else
doit_exec
=
$doit
fi
doit_exec
=
${
doit
:-
exec
}
# Put in absolute file names if you don't have them in your path;
# or use environment vars.
...
...
@@ -68,17 +64,6 @@ mvprog=${MVPROG-mv}
rmprog
=
${
RMPROG
-rm
}
stripprog
=
${
STRIPPROG
-strip
}
posix_glob
=
'?'
initialize_posix_glob
=
'
test "$posix_glob" != "?" || {
if (set -f) 2>/dev/null; then
posix_glob=
else
posix_glob=:
fi
}
'
posix_mkdir
=
# Desired mode of installed file.
...
...
@@ -97,7 +82,7 @@ dir_arg=
dst_arg
=
copy_on_change
=
false
no
_target_directory
=
is
_target_
a_
directory
=
possibly
usage
=
"
\
Usage:
$0
[OPTION]... [-T] SRCFILE DSTFILE
...
...
@@ -143,8 +128,7 @@ while test $# -ne 0; do
-m
)
mode
=
$2
case
$mode
in
*
' '
*
|
*
' '
*
|
*
'
'
*
|
*
'*'
*
|
*
'?'
*
|
*
'['
*
)
*
' '
*
|
*
"
$tab
"
*
|
*
"
$nl
"
*
|
*
'*'
*
|
*
'?'
*
|
*
'['
*
)
echo
"
$0
: invalid mode:
$mode
"
>
&2
exit
1
;;
esac
...
...
@@ -155,14 +139,16 @@ while test $# -ne 0; do
-s
)
stripcmd
=
$stripprog
;;
-t
)
dst_arg
=
$2
-t
)
is_target_a_directory
=
always
dst_arg
=
$2
# Protect names problematic for 'test' and other utilities.
case
$dst_arg
in
-
*
|
[=
\(\)
!]
)
dst_arg
=
./
$dst_arg
;;
esac
shift
;;
-T
)
no
_target_directory
=
true
;;
-T
)
is
_target_
a_
directory
=
never
;;
--version
)
echo
"
$0
$scriptversion
"
;
exit
$?
;;
...
...
@@ -177,6 +163,16 @@ while test $# -ne 0; do
shift
done
# We allow the use of options -d and -T together, by making -d
# take the precedence; this is for compatibility with GNU install.
if
test
-n
"
$dir_arg
"
;
then
if
test
-n
"
$dst_arg
"
;
then
echo
"
$0
: target directory not allowed when installing a directory."
>
&2
exit
1
fi
fi
if
test
$#
-ne
0
&&
test
-z
"
$dir_arg$dst_arg
"
;
then
# When -d is used, all remaining arguments are directories to create.
# When -t is used, the destination is already specified.
...
...
@@ -207,6 +203,15 @@ if test $# -eq 0; then
exit
0
fi
if
test
-z
"
$dir_arg
"
;
then
if
test
$#
-gt
1
||
test
"
$is_target_a_directory
"
=
always
;
then
if
test
!
-d
"
$dst_arg
"
;
then
echo
"
$0
:
$dst_arg
: Is not a directory."
>
&2
exit
1
fi
fi
fi
if
test
-z
"
$dir_arg
"
;
then
do_exit
=
'(exit $ret); exit $ret'
trap
"ret=129;
$do_exit
"
1
...
...
@@ -269,7 +274,7 @@ do
# If destination is a directory, append the input filename; won't work
# if double slashes aren't ignored.
if
test
-d
"
$dst
"
;
then
if
test
-n
"
$no
_target_directory
"
;
then
if
test
"
$is
_target_
a_
directory
"
=
never
;
then
echo
"
$0
:
$dst_arg
: Is a directory"
>
&2
exit
1
fi
...
...
@@ -277,33 +282,7 @@ do
dst
=
$dstdir
/
`
basename
"
$src
"
`
dstdir_status
=
0
else
# Prefer dirname, but fall back on a substitute if dirname fails.
dstdir
=
`
(
dirname
"
$dst
"
)
2>/dev/null
||
expr
X
"
$dst
"
:
'X\(.*[^/]\)//*[^/][^/]*/*$'
\|
\
X
"
$dst
"
:
'X\(//\)[^/]'
\|
\
X
"
$dst
"
:
'X\(//\)$'
\|
\
X
"
$dst
"
:
'X\(/\)'
\|
.
2>/dev/null
||
echo
X
"
$dst
"
|
sed
'/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'
`
dstdir
=
`
dirname
"
$dst
"
`
test
-d
"
$dstdir
"
dstdir_status
=
$?
fi
...
...
@@ -345,34 +324,41 @@ do
# is incompatible with FreeBSD 'install' when (umask & 300) != 0.
;;
*
)
# $RANDOM is not portable (e.g. dash); use it when possible to
# lower collision chance
tmpdir
=
${
TMPDIR
-/tmp
}
/ins
$RANDOM
-
$$
trap
'ret=$?; rmdir "$tmpdir/
d
" "$tmpdir" 2>/dev/null; exit $ret'
0
trap
'ret=$?; rmdir "$tmpdir/
a/b" "$tmpdir/a
" "$tmpdir" 2>/dev/null; exit $ret'
0
# As "mkdir -p" follows symlinks and we work in /tmp possibly; so
# create the $tmpdir first (and fail if unsuccessful) to make sure
# that nobody tries to guess the $tmpdir name.
if
(
umask
$mkdir_umask
&&
exec
$mkdirprog
$mkdir_mode
-p
--
"
$tmpdir
/d"
)
>
/dev/null 2>&1
$mkdirprog
$mkdir_mode
"
$tmpdir
"
&&
exec
$mkdirprog
$mkdir_mode
-p
--
"
$tmpdir
/a/b"
)
>
/dev/null 2>&1
then
if
test
-z
"
$dir_arg
"
||
{
# Check for POSIX incompatibilities with -m.
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
# other-writable bit of parent directory when it shouldn't.
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
ls_ld_tmpdir
=
`
ls
-ld
"
$tmpdir
"
`
test_tmpdir
=
"
$tmpdir
/a"
ls_ld_tmpdir
=
`
ls
-ld
"
$test_tmpdir
"
`
case
$ls_ld_tmpdir
in
d????-?r-
*
)
different_mode
=
700
;;
d????-?--
*
)
different_mode
=
755
;;
*
)
false
;;
esac
&&
$mkdirprog
-m
$different_mode
-p
--
"
$tmpdir
"
&&
{
ls_ld_tmpdir_1
=
`
ls
-ld
"
$tmpdir
"
`
$mkdirprog
-m
$different_mode
-p
--
"
$
test_
tmpdir
"
&&
{
ls_ld_tmpdir_1
=
`
ls
-ld
"
$
test_
tmpdir
"
`
test
"
$ls_ld_tmpdir
"
=
"
$ls_ld_tmpdir_1
"
}
}
then
posix_mkdir
=
:
fi
rmdir
"
$tmpdir
/
d
"
"
$tmpdir
"
rmdir
"
$tmpdir
/
a/b"
"
$tmpdir
/a
"
"
$tmpdir
"
else
# Remove any dirs left behind by ancient mkdir implementations.
rmdir
./
$mkdir_mode
./-p ./-- 2>/dev/null
rmdir
./
$mkdir_mode
./-p ./--
"
$tmpdir
"
2>/dev/null
fi
trap
''
0
;;
esac
;;
...
...
@@ -396,14 +382,12 @@ do
*
)
prefix
=
''
;;
esac
eval
"
$initialize_posix_glob
"
oIFS
=
$IFS
IFS
=
/
$posix_glob
set
-f
set
-f
set
fnord
$dstdir
shift
$posix_glob
set
+f
set
+f
IFS
=
$oIFS
prefixes
=
...
...
@@ -474,13 +458,10 @@ do
if
$copy_on_change
&&
old
=
`
LC_ALL
=
C
ls
-dlL
"
$dst
"
2>/dev/null
`
&&
new
=
`
LC_ALL
=
C
ls
-dlL
"
$dsttmp
"
2>/dev/null
`
&&
eval
"
$initialize_posix_glob
"
&&
$posix_glob
set
-f
&&
set
-f
&&
set
X
$old
&&
old
=
:
$2
:
$4
:
$5
:
$6
&&
set
X
$new
&&
new
=
:
$2
:
$4
:
$5
:
$6
&&
$posix_glob
set
+f
&&
set
+f
&&
test
"
$old
"
=
"
$new
"
&&
$cmpprog
"
$dst
"
"
$dsttmp
"
>
/dev/null 2>&1
then
...
...
build-aux/ltmain.sh
View file @
5beab31f
This diff is collapsed.
Click to expand it.
build-aux/missing
View file @
5beab31f
...
...
@@ -3,7 +3,7 @@
scriptversion
=
2013-10-28.13
;
# UTC
# Copyright (C) 1996-201
3
Free Software Foundation, Inc.
# Copyright (C) 1996-201
4
Free Software Foundation, Inc.
# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# This program is free software; you can redistribute it and/or modify
...
...
build-aux/ylwrap
View file @
5beab31f
...
...
@@ -3,7 +3,7 @@
scriptversion
=
2013-01-12.17
;
# UTC
# Copyright (C) 1996-201
3
Free Software Foundation, Inc.
# Copyright (C) 1996-201
4
Free Software Foundation, Inc.
#
# Written by Tom Tromey <tromey@cygnus.com>.
#
...
...
config.h.in
View file @
5beab31f
...
...
@@ -48,8 +48,7 @@
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
/* Define to the sub-directory where libtool stores uninstalled libraries. */
#undef LT_OBJDIR
/* Name of package */
...
...
@@ -82,6 +81,9 @@
/* Version number of package */
#undef VERSION
/* Location of the iptables lock file */
#undef XT_LOCK_NAME
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
`char[]'. */
#undef YYTEXT_POINTER
configure
View file @
5beab31f
This diff is collapsed.
Click to expand it.
configure.ac
View file @
5beab31f
AC_INIT([iptables], [1.6.
1
])
AC_INIT([iptables], [1.6.
2
])
# See libtool.info "Libtool's versioning system"
libxtables_vcurrent=12
...
...
@@ -42,8 +42,9 @@ AC_ARG_ENABLE([ipv6],
AC_ARG_ENABLE([largefile],
AS_HELP_STRING([--disable-largefile], [Do not build largefile support]),
[enable_largefile="$enableval"],
[enable_largefile="yes";
largefile_cppflags='-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64'])
[enable_largefile="yes"])
AS_IF([test "$enable_largefile" = "yes"], [largefile_cppflags='-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64'])
AC_ARG_ENABLE([devel],
AS_HELP_STRING([--enable-devel],
[Install Xtables development headers]),
...
...
@@ -67,6 +68,10 @@ AC_ARG_ENABLE([connlabel],
AS_HELP_STRING([--disable-connlabel],
[Do not build libnetfilter_conntrack]),
[enable_connlabel="$enableval"], [enable_connlabel="yes"])
AC_ARG_WITH([xt-lock-name], AS_HELP_STRING([--with-xt-lock-name=PATH],
[Path to the xtables lock [[/run/xtables.lock]]]),
[xt_lock_name="$withval"],
[xt_lock_name="/run/xtables.lock"])
libiptc_LDFLAGS2="";
AX_CHECK_LINKER_FLAGS([-Wl,--no-as-needed],
...
...
@@ -232,6 +237,9 @@ AC_SUBST([libxtables_vage])
libxtables_vmajor=$(($libxtables_vcurrent - $libxtables_vage));
AC_SUBST([libxtables_vmajor])
AC_DEFINE_UNQUOTED([XT_LOCK_NAME], "${xt_lock_name}",
[Location of the iptables lock file])
AC_CONFIG_FILES([Makefile extensions/GNUmakefile include/Makefile
iptables/Makefile iptables/xtables.pc
iptables/iptables.8 iptables/iptables-extensions.8.tmpl
...
...
@@ -241,7 +249,8 @@ AC_CONFIG_FILES([Makefile extensions/GNUmakefile include/Makefile
libiptc/Makefile libiptc/libiptc.pc
libiptc/libip4tc.pc libiptc/libip6tc.pc
libxtables/Makefile utils/Makefile
include/xtables-version.h include/iptables/internal.h])
include/xtables-version.h include/iptables/internal.h
utils/nfnl_osf.8])
AC_OUTPUT
...
...
@@ -265,7 +274,8 @@ Build parameters:
Support plugins via dlopen (shared): ${enable_shared}
Installation prefix (--prefix): ${prefix}
Xtables extension directory: ${e_xtlibdir}
Pkg-config directory: ${e_pkgconfigdir}"
Pkg-config directory: ${e_pkgconfigdir}
Xtables lock file: ${xt_lock_name}"
if [[ -n "$ksourcedir" ]]; then
echo " Kernel source directory: ${ksourcedir}"
...
...
extensions/GNUmakefile.in
View file @
5beab31f
...
...
@@ -101,7 +101,7 @@ init%.o: init%.c
# Shared libraries
#
lib%.so: lib%.oo
${AM_VERBOSE_CCLD} ${CCLD} ${AM_LDFLAGS}
-shared
${LDFLAGS} -o $@ $< -L../libxtables/.libs -lxtables ${$*_LIBADD};
${AM_VERBOSE_CCLD} ${CCLD} ${AM_LDFLAGS} ${LDFLAGS}
-shared
-o $@ $< -L../libxtables/.libs -lxtables ${$*_LIBADD};
lib%.oo: ${srcdir}/lib%.c
${AM_VERBOSE_CC} ${CC} ${AM_CPPFLAGS} ${AM_DEPFLAGS} ${AM_CFLAGS} -D_INIT=lib$*_init -DPIC -fPIC ${CFLAGS} -o $@ -c $<;
...
...
extensions/generic.txlate
0 → 100644
View file @
5beab31f
iptables-translate -I OUTPUT -p udp -d 8.8.8.8 -j ACCEPT
nft insert rule ip filter OUTPUT ip protocol udp ip daddr 8.8.8.8 counter accept
iptables-translate -F -t nat
nft flush table ip nat
extensions/libebt_limit.c
View file @
5beab31f
...
...
@@ -29,7 +29,7 @@
#define ARG_LIMIT '1'
#define ARG_LIMIT_BURST '2'
static
struct
option
brlimit_opts
[]
=
static
const
struct
option
brlimit_opts
[]
=
{
{
.
name
=
"limit"
,
.
has_arg
=
true
,
.
val
=
ARG_LIMIT
},
{
.
name
=
"limit-burst"
,.
has_arg
=
true
,
.
val
=
ARG_LIMIT_BURST
},
...
...
extensions/libebt_log.c
View file @
5beab31f
...
...
@@ -27,12 +27,12 @@
#define LOG_LOG '5'
#define LOG_IP6 '6'
typedef
struct
_
code
{
struct
code
{
char
*
c_name
;
int
c_val
;
}
CODE
;
};
static
CODE
eight_priority
[]
=
{
static
struct
code
eight_priority
[]
=
{
{
"emerg"
,
LOG_EMERG
},
{
"alert"
,
LOG_ALERT
},
{
"crit"
,
LOG_CRIT
},
...
...
extensions/libebt_mark.c
View file @
5beab31f
...
...
@@ -25,7 +25,7 @@ static int mark_supplied;
#define MARK_ORMARK '3'
#define MARK_ANDMARK '4'
#define MARK_XORMARK '5'
static
struct
option
brmark_opts
[]
=
{
static
const
struct
option
brmark_opts
[]
=
{
{
.
name
=
"mark-target"
,.
has_arg
=
true
,
.
val
=
MARK_TARGET
},
/* an oldtime messup, we should have always used the scheme
* <extension-name>-<option> */
...
...
Prev
1
2
3
4
5
…
8
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment