9
|
1 AC_PREREQ(2.59)
|
10
|
2 AC_INIT(sm-archive,1.3,carl@five-ten-sg.com)
|
9
|
3 AC_CONFIG_SRCDIR([config.h.in])
|
|
4 AC_CONFIG_HEADER([config.h])
|
|
5
|
|
6 AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION)
|
1
|
7
|
9
|
8 # Checks for programs.
|
|
9 AC_PROG_CXX
|
|
10 AC_PROG_CC
|
|
11 AC_PROG_CPP
|
|
12 AC_PROG_INSTALL
|
|
13 AC_PROG_LN_S
|
|
14 AC_PROG_MAKE_SET
|
|
15 AC_PROG_RANLIB
|
1
|
16
|
9
|
17 # Checks for header files.
|
|
18 AC_HEADER_SYS_WAIT
|
|
19 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h syslog.h unistd.h])
|
1
|
20
|
9
|
21 # Checks for typedefs, structures, and compiler characteristics.
|
|
22 AC_HEADER_STDBOOL
|
|
23 AC_C_CONST
|
|
24
|
|
25 # Checks for library functions.
|
|
26 AC_FUNC_FORK
|
|
27 AC_FUNC_GETPGRP
|
|
28 AC_HEADER_STDC
|
|
29 AC_FUNC_STAT
|
|
30 AC_CHECK_FUNCS([memset socket strchr strdup strncasecmp strtol daemon])
|
|
31
|
10
|
32 # check for posix threads
|
|
33 ACX_PTHREAD
|
|
34
|
9
|
35 AC_CONFIG_FILES([Makefile
|
|
36 sm-archive.spec
|
|
37 html/Makefile
|
|
38 info/Makefile
|
|
39 man/Makefile
|
|
40 src/Makefile
|
|
41 xml/Makefile
|
|
42 xml/sm-archive])
|
|
43 AC_OUTPUT
|