Revision 25905,
1.2 KB
checked in by achernya, 11 years ago
(diff) |
Transform athdir into an automake project; also relicense to BSD-2-Clause
|
Line | |
---|
1 | # -*- Autoconf -*- |
---|
2 | # Process this file with autoconf to produce a configure script. |
---|
3 | |
---|
4 | AC_PREREQ([2.67]) |
---|
5 | AC_INIT([libathdir], [10.0.2], [debathena@mit.edu]) |
---|
6 | AM_INIT_AUTOMAKE([-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 | AC_PROG_INSTALL |
---|
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 | AC_PROG_LIBTOOL |
---|
20 | |
---|
21 | # Checks for libraries. |
---|
22 | |
---|
23 | # Checks for header files. |
---|
24 | AC_CHECK_HEADERS([stdlib.h string.h sys/param.h]) |
---|
25 | |
---|
26 | # Checks for typedefs, structures, and compiler characteristics. |
---|
27 | |
---|
28 | # Checks for library functions. |
---|
29 | AC_FUNC_MALLOC |
---|
30 | AC_FUNC_REALLOC |
---|
31 | AC_CHECK_FUNCS([strchr]) |
---|
32 | |
---|
33 | # More stuff |
---|
34 | AS_IF([test x"$ATHENA_SYS" = x], [AC_MSG_ERROR([ATHENA_SYS must be set])]) |
---|
35 | AS_IF([test x"$ATHENA_HOSTTYPE" = x], [AC_MSG_ERROR([ATHENA_HOSTTYPE must be set])]) |
---|
36 | AC_DEFINE_UNQUOTED([ATHSYS], ["$ATHENA_SYS"], [Define the Athena System Version]) |
---|
37 | AC_DEFINE_UNQUOTED([HOSTTYPE_$ATHENA_HOSTTYPE], [Define the type of the Athena System]) |
---|
38 | |
---|
39 | |
---|
40 | AC_CONFIG_FILES([Makefile |
---|
41 | src/Makefile |
---|
42 | src/athdir.pc |
---|
43 | ]) |
---|
44 | AC_OUTPUT |
---|
Note: See
TracBrowser
for help on using the repository browser.