2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00
bind/m4/ax_posix_shell.m4
Ondřej Surý 58bd26b6cf Update the copyright information in all files in the repository
This commit converts the license handling to adhere to the REUSE
specification.  It specifically:

1. Adds used licnses to LICENSES/ directory

2. Add "isc" template for adding the copyright boilerplate

3. Changes all source files to include copyright and SPDX license
   header, this includes all the C sources, documentation, zone files,
   configuration files.  There are notes in the doc/dev/copyrights file
   on how to add correct headers to the new files.

4. Handle the rest that can't be modified via .reuse/dep5 file.  The
   binary (or otherwise unmodifiable) files could have license places
   next to them in <foo>.license file, but this would lead to cluttered
   repository and most of the files handled in the .reuse/dep5 file are
   system test files.
2022-01-11 09:05:02 +01:00

40 lines
1.1 KiB
Plaintext

# SPDX-License-Identifier: FSFAP
#
# AX_POSIX_SHELL
# -------------
# Check for a POSIX-compatible shell.
#
# LICENSE
#
# Copyright (c) 2021 Internet Systems Consortium
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved. This file is offered as-is, without any
# warranty.
AC_DEFUN([AX_POSIX_SHELL],
[AC_CACHE_CHECK([for a POSIX-compatible shell], [ac_cv_prog_shell],
[ac_test_shell_script='
test "$(expr 1 + 1)" = "2" &&
test "$(( 1 + 1 ))" = "2"
'
for ac_cv_prog_shell in \
"$CONFIG_SHELL" "$SHELL" /bin/sh /bin/bash /bin/ksh /bin/sh5 no; do
AS_CASE([$ac_cv_prog_shell],
[/*],[
AS_IF(["$ac_cv_prog_shell" -c "$ac_test_shell_script" 2>/dev/null],
[break])
])
done
])
AS_IF([test "$ac_cv_prog_shell" = "no"],
[SHELL=/bin/sh
AC_MSG_WARN([using $SHELL, even though it does not conform to POSIX])
],
[SHELL="$ac_cv_prog_shell"
])
AC_SUBST([SHELL])
])