6 |
|
AM_INIT_AUTOMAKE(libstatgrab, 0.1) |
7 |
|
|
8 |
|
dnl The file we use to pass #define's to the source |
9 |
< |
AM_CONFIG_HEADER(config.h) |
9 |
> |
AC_CONFIG_HEADER(config.h) |
10 |
|
|
11 |
< |
dnl We need a CC, install, and ranlib |
11 |
> |
dnl We need a CC, install, and libtool |
12 |
|
AC_PROG_CC |
13 |
|
AC_PROG_INSTALL |
14 |
< |
AC_PROG_RANLIB |
14 |
> |
AC_PROG_LIBTOOL |
15 |
|
|
16 |
|
dnl And we probably need the standard C bits |
17 |
|
AC_HEADER_STDC |
19 |
|
dnl The program needs to know whether it can use getloadavg |
20 |
|
AC_CHECK_FUNCS(getloadavg) |
21 |
|
|
22 |
– |
dnl Figure out details about the host - we need the OS |
23 |
– |
AC_CANONICAL_HOST |
24 |
– |
|
22 |
|
dnl Set things up for different OS's |
23 |
|
dnl We define the name of the OS so the code can act accordingly |
24 |
|
dnl We also need to add the right LDFLAGS |
40 |
|
esac |
41 |
|
|
42 |
|
dnl And finish by changing these files |
43 |
< |
AC_OUTPUT([Makefile]) |
43 |
> |
AC_OUTPUT([Makefile src/Makefile]) |