22# Process this file with autoconf to produce a configure script.
33
44# bootstrap / init
5- AC_PREREQ ( [ 2.61 ] )
5+ AC_PREREQ ( [ 2.69 ] )
66
77AC_INIT ( [ booth] ,
8- m4_esyscmd ( [ build-aux/git-version-gen --fallback 1.0 .tarball-version .gitarchivever] ) ,
8+ [ m4_esyscmd ( [ build-aux/git-version-gen --fallback 1.0 .tarball-version .gitarchivever] ) ] ,
991010
1111AC_USE_SYSTEM_EXTENSIONS
@@ -14,7 +14,7 @@ AM_INIT_AUTOMAKE([-Wno-portability subdir-objects])
1414
1515AC_CONFIG_MACRO_DIR ( [ build-aux] )
1616AC_CONFIG_SRCDIR ( [ src/main.c] )
17- AC_CONFIG_HEADER ([ src/b_config.h src/booth_config.h] )
17+ AC_CONFIG_HEADERS ( [ src/b_config.h src/booth_config.h] )
1818
1919AC_CANONICAL_HOST
2020
@@ -106,7 +106,6 @@ AM_CONDITIONAL(PYTHON_IS_VERSION3, test "x${PYTHON_VERSION%%.*}" = "x3")
106106# Checks for header files.
107107AC_FUNC_ALLOCA
108108AC_HEADER_DIRENT
109- AC_HEADER_STDC
110109AC_HEADER_SYS_WAIT
111110AC_CHECK_HEADERS ( [ arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stdint.h \
112111 stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h \
@@ -133,7 +132,6 @@ AC_TYPE_INT64_T
133132AC_TYPE_INT8_T
134133AC_TYPE_SIZE_T
135134AC_TYPE_SSIZE_T
136- AC_HEADER_TIME
137135AC_TYPE_UINT16_T
138136AC_TYPE_UINT32_T
139137AC_TYPE_UINT64_T
@@ -150,7 +148,6 @@ AC_FUNC_MALLOC
150148AC_FUNC_MEMCMP
151149AC_FUNC_REALLOC
152150AC_FUNC_SELECT_ARGTYPES
153- AC_TYPE_SIGNAL
154151AC_FUNC_VPRINTF
155152AC_CHECK_FUNCS ( [ alarm alphasort atexit bzero dup2 endgrent endpwent fcntl \
156153 getcwd getpeerucred getpeereid gettimeofday memmove \
371368dnl Check for POSIX clock_gettime
372369dnl
373370AC_CACHE_CHECK ( [ have clock_gettime] ,ac_cv_HAVE_CLOCK_GETTIME ,[
374- AC_TRY_COMPILE ( [
371+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
375372#include <time.h>
376- ] ,
377- [ struct timespec tv; clock_gettime(CLOCK_REALTIME, &tv); return 0;] ,
378- ac_cv_HAVE_CLOCK_GETTIME=yes , ac_cv_HAVE_CLOCK_GETTIME=no , ac_cv_HAVE_CLOCK_GETTIME=cross ) ] )
373+ ] ] ,
374+ [ [ struct timespec tv; clock_gettime(CLOCK_REALTIME, &tv); return 0;] ] ) ] ,
375+ [ ac_cv_HAVE_CLOCK_GETTIME=yes] , [ ac_cv_HAVE_CLOCK_GETTIME=no] ) ] )
379376AM_CONDITIONAL(BUILD_TIMER_C, test x"$ac_cv_HAVE_CLOCK_GETTIME" = x"yes")
380377
381378# extra warnings
0 commit comments