Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: remove unused autoconf tests
- X-seq: zsh-workers 53094
- From: Oliver Kiddle <opk@xxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: remove unused autoconf tests
- Date: Mon, 16 Sep 2024 01:45:02 +0200
- Archived-at: <https://zsh.org/workers/53094>
- List-id: <zsh-workers.zsh.org>
I checked for cases of function and header checks where the outcome of
the test is ignored. Much of this is bits of the signal and NIS handling
that I must have missed. The test for xw looks like something that got
added by accident.
There remain many other things explicitly for NeXT, Reliant Unix/sinix,
BeOS, SCO, sysv4, esix, internix, Cray unicos. Sadly IRIX is also
questionable. Pre 10.6 of MacOS also gets some special handling. Does
anyone regard any of these as still relevant or have evidence that
recent zsh would even work on any of them without a lot of work.
Given that we decided to allow C99, can the variable array macros also
perhaps go?
While rather newer, does the unicode9 stuff still serve a purpose? As I
understand it you needed newer unicode support in your terminal emulator
than your libc and Unicode has now moved on a good few versions. So
there was only ever a small window of systems for which this was
relevant(?) But as my unicode usage rarely stretches much beyond umlauts
and the odd Euro symbol someone else might be better able to extract
this cleanly.
Oliver
dife --git a/Src/signals.h b/Src/signals.h
index ea7e780ac..3c329eb42 100644
--- a/Src/signals.h
+++ b/Src/signals.h
@@ -126,10 +126,5 @@
#define queue_signal_level() queueing_enabled
-#ifdef BSD_SIGNALS
-#define signal_block(S) sigblock(S)
-#else
extern sigset_t signal_block (sigset_t);
-#endif /* BSD_SIGNALS */
-
extern sigset_t signal_unblock (sigset_t);
diff --git a/configure.ac b/configure.ac
index 474f0ccee..7073f4e2c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -634,7 +634,7 @@ if test "x$enable_pcre" = xyes; then
fi
AC_CHECK_HEADERS(sys/time.h sys/times.h sys/select.h termcap.h termio.h \
- termios.h sys/param.h sys/filio.h string.h memory.h \
+ termios.h sys/param.h sys/filio.h \
limits.h fcntl.h libc.h sys/utsname.h sys/resource.h \
sys/sysctl.h sys/random.h \
locale.h errno.h stdio.h stdarg.h varargs.h stdlib.h \
@@ -849,11 +849,6 @@ esac])
AC_SEARCH_LIBS(getpwnam, nsl)
-dnl I am told that told that unicos reqire these for nis_list
-if test `echo $host_os | sed 's/^\(unicos\).*/\1/'` = unicos; then
- LIBS="-lcraylm -lkrb -lnisdb -lnsl -lrpcsvc $LIBS"
-fi
-
if test "x$dynamic" = xyes; then
AC_CHECK_LIB(dl, dlopen)
fi
@@ -1258,13 +1253,12 @@ AC_CHECK_FUNCS(strftime strptime mktime timelocal \
fpurge fseeko ftello \
mkfifo _mktemp mkstemp \
waitpid wait3 \
- sigaction sigblock sighold sigrelse sigsetmask sigprocmask \
sigqueue \
killpg setpgid setpgrp tcsetpgrp tcgetattr nice \
gethostname gethostbyname2 getipnodebyname \
inet_aton inet_pton inet_ntop \
getlogin getpwent getpwnam getpwuid getgrgid getgrnam \
- initgroups nis_list \
+ initgroups \
setuid seteuid setreuid setresuid setsid \
setgid setegid setregid setresgid \
memcpy memmove strstr strerror strtoul \
@@ -1275,7 +1269,7 @@ AC_CHECK_FUNCS(strftime strptime mktime timelocal \
signgam tgamma \
log2 \
scalbn \
- putenv getenv setenv unsetenv xw\
+ putenv getenv setenv unsetenv \
brk sbrk \
pathconf sysconf \
tgetent tigetflag tigetnum tigetstr setupterm initscr resize_term \
Messages sorted by:
Reverse Date,
Date,
Thread,
Author