File: configure.ac

package info (click to toggle)
basilisk2 0.9.20240402%2Bdfsg-1
  • links: PTS, VCS
  • area: contrib
  • in suites: sid, trixie
  • size: 15,980 kB
  • sloc: cpp: 219,080; ansic: 48,228; sh: 3,713; asm: 1,904; makefile: 1,317; objc: 745; perl: 198
file content (47 lines) | stat: -rw-r--r-- 1,128 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
dnl Process this file with autoconf to produce a configure script.
dnl Written by Christian Bauer

AC_PREREQ(2.69)
AC_INIT([cxmon], [3.2], [cb@cebix.net], [cxmon])
AC_CONFIG_SRCDIR([src/mon.cpp])
AM_INIT_AUTOMAKE([1.12 foreign])

AM_CONFIG_HEADER(config.h)

dnl Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_CXXCPP
AC_PROG_INSTALL
AC_PROG_RANLIB

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h readline.h history.h readline/readline.h readline/history.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_SIZEOF(short, 2)
AC_CHECK_SIZEOF(int, 4)
AC_CHECK_SIZEOF(long, 4)
AC_CHECK_SIZEOF(long long, 8)
AC_CHECK_SIZEOF(void *, 4)

dnl Checks for libraries.
AC_SEARCH_LIBS([tgetent], [ncurses termcap termlib terminfo Hcurses curses], [], [
  AC_MSG_ERROR([unable to find the tgetent() function])
])
AC_SEARCH_LIBS([readline], [readline], [], [
  AC_MSG_ERROR([unable to find the readline() function])
])

dnl Generate Makefile.
AC_OUTPUT([
Makefile
cxmon.spec
src/Makefile
src/disass/Makefile
])

dnl Print summary.
echo "Configuration done. Now type \"make\"."