From 28ee83c1f4f3901bbfd0316320006b3bbfaf8b42 Mon Sep 17 00:00:00 2001
From: Adrian Bunk <bunk@stusta.de>
Date: Sun, 7 Apr 2013 12:32:28 +0300
Subject: configure.ac cleanups
Remove tests whose results are not used:
- AC_CHECK_HEADERS of unistd.h, fcntl.h, sys/time.h, sys/types.h
- AC_HEADER_MAJOR
- AC_HEADER_TIME
- AC_HEADER_DIRENT
- AC_CHECK_FUNCS of isascii, statfs, sysconf, tcgetattr,
tcsetattr, ftruncate
- AC_FUNC_STRCOLL
AC_C_CONST is obsolete, today it is safe to assume all C compilers
support at least C89.
The INTERACTIVE UNIX that needed AC_ISC_POSIX is long dead.
---
configure.ac | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/configure.ac b/configure.ac
index 2c35d06..63fef7f 100644
a
|
b
|
dnl ############################################################################ |
156 | 156 | dnl Check for header files |
157 | 157 | dnl ############################################################################ |
158 | 158 | |
159 | | AC_CHECK_HEADERS([unistd.h string.h memory.h limits.h malloc.h \ |
160 | | utime.h fcntl.h sys/statfs.h sys/vfs.h sys/time.h \ |
| 159 | AC_CHECK_HEADERS([string.h memory.h limits.h malloc.h \ |
| 160 | utime.h sys/statfs.h sys/vfs.h \ |
161 | 161 | sys/select.h sys/ioctl.h stropts.h arpa/inet.h \ |
162 | | sys/socket.h sys/sysmacros.h sys/types.h sys/mkdev.h]) |
163 | | AC_HEADER_MAJOR |
164 | | AC_HEADER_TIME |
165 | | AC_HEADER_DIRENT |
| 162 | sys/socket.h sys/sysmacros.h sys/mkdev.h]) |
166 | 163 | AC_HEADER_ASSERT |
167 | 164 | |
168 | 165 | |
… |
… |
dnl ############################################################################ |
170 | 167 | dnl Check for types |
171 | 168 | dnl ############################################################################ |
172 | 169 | |
173 | | AC_C_CONST |
174 | 170 | dnl Check largefile before type sizeof checks |
175 | 171 | AC_SYS_LARGEFILE |
176 | 172 | |
… |
… |
dnl Check for functions |
226 | 222 | dnl ############################################################################ |
227 | 223 | |
228 | 224 | AC_CHECK_FUNCS([\ |
229 | | isascii \ |
230 | | statfs sysconf \ |
231 | | tcgetattr tcsetattr \ |
232 | | ftruncate \ |
233 | 225 | strverscmp \ |
234 | 226 | strncasecmp \ |
235 | 227 | realpath |
236 | 228 | ]) |
237 | | AC_FUNC_STRCOLL |
238 | 229 | |
239 | 230 | dnl getpt is a GNU Extension (glibc 2.1.x) |
240 | 231 | AC_CHECK_FUNCS(posix_openpt, , [AC_CHECK_FUNCS(getpt)]) |
… |
… |
dnl ############################################################################ |
280 | 271 | dnl OS specific flags |
281 | 272 | dnl ############################################################################ |
282 | 273 | |
283 | | AC_ISC_POSIX |
284 | | |
285 | 274 | case $host_os in |
286 | 275 | aux*) |
287 | 276 | # A/UX |