root/tags/console-1_02/console/configure.in

Revision 2493, 1.5 kB (checked in by graham, 8 years ago)

Version 1.0.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(src/console.h)
3AC_CONFIG_AUX_DIR(admin)
4AC_CANONICAL_SYSTEM
5AC_ARG_PROGRAM
6
7dnl All versioning is done via the following line
8AM_INIT_AUTOMAKE(Licq-Console, 1.0.2)
9AM_CONFIG_HEADER(config.h)
10
11dnl Chuck #defines for PACKAGE and VERSION into config.h
12AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
13AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
14AC_DEFINE_UNQUOTED(INT_VERSION,$INT_VERSION)
15
16dnl Also substitute PACKAGE and VERSION in the AC_OUTPUT files
17AC_SUBST(PACKAGE)
18AC_SUBST(VERSION)
19
20dnl Checks for programs.
21AC_PROG_CC
22AC_PROG_CPP
23AC_PROG_CXX
24LICQ_CXX_FLAGS
25AC_PROG_CXXCPP
26AC_ISC_POSIX
27AC_PROG_MAKE_SET
28AC_PROG_INSTALL
29AC_PATH_PROG(PROG_STRIP,strip,:)
30AC_PATH_PROG(PROG_SIZE,size,:)
31
32dnl libtool checks
33AC_LIBTOOL_DLOPEN
34AC_DISABLE_STATIC
35AM_PROG_LIBTOOL
36AC_LIBTOOL_CXX
37
38dnl Checks for header files.
39AC_HEADER_STDC
40AC_CHECK_HEADERS(errno.h dirent.h locale.h malloc.h pwd.h sys/time.h)
41AC_HEADER_TIME
42LICQ_SYS_ERRLIST
43LICQ_CHECK_LICQ
44
45dnl Checks for library functions.
46AC_CHECK_FUNCS(inet_addr inet_aton strerror)
47
48dnl Switch to C++ mode and check for needed C++ headers
49AC_LANG_SAVE
50AC_LANG_CPLUSPLUS
51
52AC_CHECK_HEADER(vector.h,,
53  AC_MSG_ERROR(You need to have the libstdc++ headers installed))
54
55AC_LANG_RESTORE
56
57dnl check for ncurses
58AC_CHECK_LIB(ncurses, initscr,,
59  AC_MSG_ERROR([
60
61I can't find the ncurses library. This is needed if you want
62to compile this plugin. Sorry.
63]))
64
65AC_OUTPUT(
66  src/Makefile \
67  Makefile
68)
Note: See TracBrowser for help on using the browser.