root/tags/forwarder-0_66/email/configure.in

Revision 1958, 1.6 kB (checked in by graham, 9 years ago)

v0.66

  • 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/forwarder.h)
3
4AC_CANONICAL_SYSTEM
5AC_ARG_PROGRAM
6
7dnl All versioning is done via the following line
8AM_INIT_AUTOMAKE(Licq-Forwarder, 0.66)
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
24AC_PROG_CXXCPP
25LICQ_CXX_FLAGS
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
36
37dnl Checks for header files.
38AC_HEADER_STDC
39AC_CHECK_HEADERS(errno.h dirent.h getopt.h malloc.h pwd.h sys/time.h)
40AC_HEADER_TIME
41AC_SYS_ERRLIST
42AC_CHECK_LICQ
43
44if test "$have_licq_inc" = no; then
45  AC_MSG_ERROR([
46
47I can't find the Licq header files.
48You must unpack this archive into the plugins/ directory off of the
49main Licq source tree.  In other words, we should be in
50/some/dir/licq-0.xx/plugins/email-0.xx right now.
51])
52fi
53
54
55dnl Checks for library functions.
56#AC_CHECK_LIB(xnet,inet_addr)
57#AC_CHECK_LIB(socket, socket)
58#AC_CHECK_LIB(nsl, gethostbyname)
59AC_CHECK_FUNCS(inet_addr inet_aton strerror)
60
61dnl Switch to C++ mode and check for needed C++ headers
62AC_LANG_SAVE
63AC_LANG_CPLUSPLUS
64
65AC_CHECK_HEADER(vector.h,,
66  AC_MSG_ERROR(You need to have the libstdc++ headers installed))
67
68AC_LANG_RESTORE
69
70AC_OUTPUT(
71  src/Makefile
72    Makefile)
Note: See TracBrowser for help on using the browser.