strace/m4/gen_bpf_attr_m4.sh
Dmitry V. Levin b93d52fe3d Change the license of strace to LGPL-2.1-or-later
strace is now provided under the terms of the GNU Lesser General
Public License version 2.1 or later, see COPYING for more details.

strace test suite is now provided under the terms of the GNU General
Public License version 2 or later, see tests/COPYING for more details.
2018-12-10 00:00:00 +00:00

24 lines
464 B
Bash
Executable File

#!/bin/sh -efu
# Copyright (c) 2018 Dmitry V. Levin <ldv@altlinux.org>
# All rights reserved.
#
# SPDX-License-Identifier: LGPL-2.1-or-later
input=bpf_attr.h
output="${0%/*}"/bpf_attr.m4
exec > "$output"
cat <<EOF
dnl Generated by $0 from $input; do not edit.
AC_DEFUN([st_BPF_ATTR], [dnl
AC_CHECK_MEMBERS(m4_normalize([
EOF
gawk -f "${0%/*}"/gen_bpf_attr_m4.awk < "$input" | sort -u
cat <<'EOF'
union bpf_attr.dummy
]),,, [#include <linux/bpf.h>])
])
EOF