forked from xfguo/lua-daemon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
46 lines (33 loc) · 995 Bytes
/
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
45
AC_PREREQ([2.65])
AC_INIT([luadeamon], [1.0.0], [[email protected]], [luadaemon],
[http://smherwig.org])
AM_INIT_AUTOMAKE
LT_PREREQ([2.2])
LT_INIT
AC_CONFIG_SRCDIR([include/lua-daemon.h])
AC_CONFIG_HEADERS([config.h])
AC_PROG_CC
AC_PROG_INSTALL
missing_header=no
AC_CHECK_HEADERS([fcntl.h string.h unistd.h lua.h lualib.h lauxlib.h],
[],
[missing_header=yes])
if test "x${missing_header}" = xyes; then
AC_MSG_ERROR([Missing required header file])
fi
AC_FUNC_FORK
AC_CHECK_FUNCS([dup2 strdup strerror])
AC_CONFIG_FILES([Makefile
include/Makefile
share/Makefile
src/Makefile])
AC_OUTPUT
echo \
"-----------------------------------------------------------
${PACKAGE_NAME} version ${PACKAGE_VERSION}
Prefix: '${prefix}'
Now type 'make @<:@<taret>@:>@'
where the optional <target> is:
all - build all binaries
install - install everything
-----------------------------------------------------------"