1 |
cebix |
1.1 |
dnl Process this file with autoconf to produce a configure script. |
2 |
|
|
dnl Written in 2000 by Christian Bauer |
3 |
|
|
|
4 |
|
|
AC_INIT(src/mon.cpp) |
5 |
|
|
AC_PREREQ(2.13) |
6 |
|
|
|
7 |
|
|
dnl This defines PACKAGE and VERSION. |
8 |
cebix |
1.7 |
AM_INIT_AUTOMAKE([cxmon], [3.0]) |
9 |
cebix |
1.1 |
AM_CONFIG_HEADER(config.h) |
10 |
|
|
|
11 |
|
|
dnl Checks for programs. |
12 |
cebix |
1.4 |
AC_PROG_CC |
13 |
|
|
AC_PROG_CPP |
14 |
cebix |
1.1 |
AC_PROG_CXX |
15 |
|
|
AC_PROG_CXXCPP |
16 |
|
|
AC_PROG_INSTALL |
17 |
cebix |
1.4 |
AC_PROG_RANLIB |
18 |
cebix |
1.1 |
|
19 |
|
|
dnl Checks for header files. |
20 |
|
|
AC_HEADER_STDC |
21 |
cebix |
1.2 |
AC_CHECK_HEADERS(unistd.h readline.h history.h readline/readline.h readline/history.h) |
22 |
cebix |
1.1 |
|
23 |
|
|
dnl Checks for typedefs, structures, and compiler characteristics. |
24 |
|
|
AC_CHECK_SIZEOF(short, 2) |
25 |
|
|
AC_CHECK_SIZEOF(int, 4) |
26 |
|
|
AC_CHECK_SIZEOF(long, 4) |
27 |
gbeauche |
1.9 |
AC_CHECK_SIZEOF(long long, 8) |
28 |
|
|
AC_CHECK_SIZEOF(void *, 4) |
29 |
cebix |
1.2 |
|
30 |
|
|
dnl Checks for libraries. |
31 |
gbeauche |
1.8 |
AC_CHECK_LIB(ncurses, tgetent, , |
32 |
|
|
AC_CHECK_LIB(termcap, tgetent, , |
33 |
|
|
AC_CHECK_LIB(termlib, tgetent, , |
34 |
|
|
AC_CHECK_LIB(terminfo, tgetent, , |
35 |
|
|
AC_CHECK_LIB(Hcurses, tgetent, , |
36 |
|
|
AC_CHECK_LIB(curses, tgetent)))))) |
37 |
cebix |
1.2 |
AC_CHECK_LIB(readline, readline) |
38 |
cebix |
1.1 |
|
39 |
|
|
dnl Generate Makefile. |
40 |
|
|
AC_OUTPUT([ |
41 |
|
|
Makefile |
42 |
cebix |
1.7 |
cxmon.spec |
43 |
cebix |
1.1 |
src/Makefile |
44 |
cebix |
1.4 |
src/disass/Makefile |
45 |
cebix |
1.1 |
]) |
46 |
|
|
|
47 |
|
|
dnl Print summary. |
48 |
|
|
echo "Configuration done. Now type \"make\"." |