2
2
AC_INIT ( [ DOMjudge] ,
3
3
m4_esyscmd ( [ sed -n '1s/^.*version //p' README | tr -d '\n'] ) ,
4
4
5
+ AC_PREREQ ( [ 2.60] )
6
+ AC_REVISION ( $Rev$ )
5
7
AC_CONFIG_HEADERS ( [ etc/config.h] )
6
8
AC_CONFIG_SRCDIR ( [ Makefile.global] )
7
9
@@ -19,7 +21,7 @@ if test "x$prefix" = xNONE; then
19
21
fi
20
22
21
23
if test -z "$PACKAGE_VERSION"; then
22
- AC_MSG_ERROR ( [ Could not find version on first line of README file.] )
24
+ AC_MSG_ERROR ( [ could not find version on first line of README file.] )
23
25
fi
24
26
AC_SUBST ( DOMJUDGE_VERSION , $PACKAGE_VERSION )
25
27
AC_DEFINE_UNQUOTED ( DOMJUDGE_VERSION , "$PACKAGE_VERSION" ,
@@ -40,7 +42,7 @@ DEF_LDFLAGS=""
40
42
41
43
AX_CHECK_COMPILER_FLAGS(-Wall, DEF_CXFLAGS="$DEF_CXFLAGS -Wall")
42
44
AX_CHECK_COMPILER_FLAGS(-fstack-protector, DEF_CXFLAGS="$DEF_CXFLAGS -fstack-protector")
43
- AX_CHECK_COMPILER_FLAGS(-fPIE, DEF_CXFLAGS="$DEF_CXFLAGS -fPIE"
45
+ AX_CHECK_COMPILER_FLAGS(-fPIE -pie, DEF_CXFLAGS="$DEF_CXFLAGS -fPIE"
44
46
DEF_LDFLAGS="$DEF_LDFLAGS -pie")
45
47
46
48
test "x$enable_CFLAGS_setting" = xyes && AC_SUBST ( CFLAGS , $DEF_CXFLAGS )
@@ -208,9 +210,10 @@ AC_SUBST(CHROOTDIR, $judgehost_chrootdir)
208
210
AC_PROG_CXX
209
211
AC_PROG_CC
210
212
AC_PROG_CPP
211
- # AC_PROG_INSTALL
213
+ AC_PROG_INSTALL
212
214
AC_PROG_LN_S
213
215
AC_PROG_MAKE_SET
216
+ AC_PROG_MKDIR_P
214
217
215
218
# check for htpasswd/htpasswd2
216
219
AC_CHECK_PROGS ( HTPASSWD ,[ htpasswd htpasswd2] ,[ no htpasswd binary found] )
@@ -254,29 +257,25 @@ AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, 200112L, [Include POSIX.1-2001 base specific
254
257
AC_DEFINE_UNQUOTED ( _XOPEN_SOURCE , 500 , [ Include SUSv2 (UNIX 98) extensions] )
255
258
256
259
# Checks for header files.
257
- AC_HEADER_STDC
258
- AC_HEADER_SYS_WAIT
260
+ AC_HEADER_STDBOOL
259
261
AC_CHECK_HEADERS ( [ fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h magic.h] )
260
262
261
263
# Checks for typedefs, structures, and compiler characteristics.
262
- AC_C_CONST
264
+ AC_C_INLINE
263
265
AC_TYPE_PID_T
264
266
AC_TYPE_SIZE_T
265
267
AC_TYPE_SSIZE_T
266
- AC_HEADER_TIME
267
- AC_HEADER_STDBOOL
268
268
269
269
# Checks for library functions.
270
+ dnl FIXME: need to use the results...
270
271
AC_FUNC_ERROR_AT_LINE
271
272
AC_FUNC_FORK
272
- AC_PROG_GCC_TRADITIONAL
273
273
AC_FUNC_MALLOC
274
- AC_FUNC_SETVBUF_REVERSED
275
- AC_TYPE_SIGNAL
276
- AC_FUNC_STAT
277
- AC_FUNC_STRFTIME
278
- AC_FUNC_VPRINTF
279
- AC_CHECK_FUNCS ( [ alarm dup2 getcwd gettimeofday memset mkdir realpath setenv socket strchr strdup strerror strncasecmp strrchr strstr strtol] )
274
+ AC_FUNC_REALLOC
275
+ AC_FUNC_STRTOD
276
+ AC_REPLACE_FUNCS ( [ atexit dup2 getcwd gettimeofday memset mkdir realpath setenv \
277
+ socket strchr strdup strerror strncasecmp strrchr strstr strtol] ,
278
+ [ ] ,[ AC_MSG_ERROR ( [ required C function is missing.] ) ] )
280
279
281
280
AC_CONFIG_FILES ( [ paths.mk] )
282
281
AC_OUTPUT
0 commit comments