root/trunk/msn/configure.ac

Revision 6517, 2.5 kB (checked in by flynd, 3 months ago)

Bumped version to 1.3.6 for upcoming release. All plugins updated to have same version as daemon.

  • Property svn:eol-style set to native
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(src/msn.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-MSN-Protocol, 1.3.6)
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, [Version number as an integer])
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
26LICQ_CXX_WEXTRA
27AC_ISC_POSIX
28AC_PROG_MAKE_SET
29AC_PROG_INSTALL
30AC_PATH_PROG(PROG_STRIP,strip,:)
31AC_PATH_PROG(PROG_SIZE,size,:)
32
33dnl libtool checks
34AC_LIBTOOL_DLOPEN
35AC_DISABLE_STATIC
36m4_defun([_LT_AC_LANG_F77_CONFIG], [:])
37AM_PROG_LIBTOOL
38AC_LIBTOOL_CXX
39LIBTOOL="$LIBTOOL --silent"
40
41dnl Checks for header files.
42AC_HEADER_STDC
43AC_CHECK_HEADERS(errno.h dirent.h getopt.h malloc.h pwd.h sys/time.h)
44AC_HEADER_TIME
45LICQ_SYS_ERRLIST
46LICQ_CHECK_LICQ
47LICQ_CHECK_OPENSSL
48AX_BOOST_BASE([1.31.1])
49
50dnl Checks for library functions.
51AC_CHECK_FUNCS(inet_addr inet_aton strerror strndup)
52AC_CHECK_LIB(ssl, MD5, [], AC_MSG_ERROR([
53*** OpenSSL is required by MSN. Please visit http://www.openssl.org and
54*** install the latest version]))
55
56dnl Switch to C++ mode and check for needed C++ headers
57AC_LANG_SAVE
58AC_LANG_CPLUSPLUS
59
60AC_CHECK_HEADER(vector,,
61  AC_MSG_ERROR(You need to have the libstdc++ headers installed))
62
63AC_LANG_RESTORE
64
65msn_gcc_major_version=0
66AC_MSG_CHECKING([whether the compiler is gcc 4 or greater])
67if test x"$GXX" = xno; then
68  AC_MSG_RESULT([no])
69else
70  # On some distros, there are snapshots available as gcc4
71  if test -z "$ac_cv_prog_CC" || test x"$CC" = xgcc4; then
72    our_gcc="$CC"
73  else
74    our_gcc="$ac_cv_prog_CC"
75  fi
76  # new major versions must be added here
77  case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
78    *4.)
79      msn_gcc_major_version=4
80      ;;
81    *3.)
82      msn_gcc_major_version=3
83      ;;
84    *2.)
85      msn_gcc_major_version=2
86      ;;
87    *1.)
88      msn_gcc_major_version=1
89      ;;
90  esac
91  if test "$msn_gcc_major_version" -ge 4; then
92    AC_MSG_RESULT([yes])
93  else
94    AC_MSG_RESULT([no])
95  fi
96fi
97
98# Remember that all following tests will run with this CXXFLAGS by default
99if test "$msn_gcc_major_version" -ge 4; then
100  CXXFLAGS=`echo $CXXFLAGS | sed 's/-O.//1'`
101  CFLAGS=`echo $CFLAGS | sed 's/-O.//1'`
102fi
103
104AC_OUTPUT(
105  src/Makefile
106    Makefile)
Note: See TracBrowser for help on using the browser.