Revision 25919,
1.0 KB
checked in by achernya, 12 years ago
(diff) |
Convert athdir to automake
|
Line | |
---|
1 | # -*- Autoconf -*- |
---|
2 | # Process this file with autoconf to produce a configure script. |
---|
3 | |
---|
4 | AC_PREREQ([2.65]) |
---|
5 | AC_INIT([athdir], [10.1], [debathena@mit.edu]) |
---|
6 | AM_INIT_AUTOMAKE([foreign -Wall]) |
---|
7 | AM_MAINTAINER_MODE([enable]) |
---|
8 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
---|
9 | AC_CONFIG_MACRO_DIR([m4]) |
---|
10 | AC_CONFIG_SRCDIR([src/athdir.c]) |
---|
11 | AC_CONFIG_HEADERS([config.h]) |
---|
12 | |
---|
13 | # Checks for programs. |
---|
14 | AC_PROG_CC |
---|
15 | AM_PROG_CC_C_O |
---|
16 | # automake 1.12 seems to require this, but automake 1.11 doesn't recognize it |
---|
17 | m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) |
---|
18 | LT_INIT |
---|
19 | |
---|
20 | # Checks for libraries. |
---|
21 | |
---|
22 | # Checks for header files. |
---|
23 | AC_CHECK_HEADERS([stdlib.h string.h sys/param.h]) |
---|
24 | |
---|
25 | # Checks for typedefs, structures, and compiler characteristics. |
---|
26 | |
---|
27 | # Checks for library functions. |
---|
28 | AC_FUNC_MALLOC |
---|
29 | AC_FUNC_REALLOC |
---|
30 | AC_CHECK_FUNCS([strchr]) |
---|
31 | |
---|
32 | # More stuff |
---|
33 | PKG_CHECK_MODULES([LIBATHDIR], [athdir]) |
---|
34 | AC_SUBST([LIBATHDIR_CFLAGS]) |
---|
35 | AC_SUBST([LIBATHDIR_LIBS]) |
---|
36 | |
---|
37 | AC_CONFIG_FILES([Makefile |
---|
38 | src/Makefile |
---|
39 | man/Makefile |
---|
40 | ]) |
---|
41 | AC_OUTPUT |
---|
Note: See
TracBrowser
for help on using the repository browser.