-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
44 lines (34 loc) · 1.04 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([waitpid], [0.3], [https://github.com/andrea-corbellini/waitpid])
AC_CONFIG_SRCDIR([waitpid.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile])
AM_INIT_AUTOMAKE([foreign -Wall std-options])
# Checks for programs.
AC_PROG_CC
AC_PROG_CC_C99
AM_PROG_CC_C_O
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDBOOL
AC_CHECK_HEADER([getopt.h],,[
AC_MSG_ERROR([unable to find the getopt.h header])
])
AC_CHECK_HEADERS([sys/wait.h])
AC_CHECK_HEADERS([sys/ptrace.h],,,
[#include <sys/types.h>
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif])
AS_IF([test "x$ac_cv_header_sys_ptrace_h" == "xyes"],
[AC_DEFINE([HAVE_PTRACE], [1], [Define if ptrace is available])])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T
AC_TYPE_SIZE_T
if test "x$GCC" = "xyes"; then
CFLAGS="$CFLAGS -Wall -pedantic"
fi
# Checks for library functions.
AC_OUTPUT