~ubuntu-branches/ubuntu/natty/centerim/natty

« back to all changes in this revision

Viewing changes to libmsn/configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-03-26 19:51:53 UTC
  • mfrom: (1.1.5 upstream) (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090326195153-dxo63t1lwbp2m592
Tags: 4.22.7-1ubuntu1
* Merge from debian unstable, Ubuntu remaining changes:
  - Packages that Depend/Recommend/Suggest firefox (metapackage) must
    must alternatively Depend/Recommend/Suggest abrowser.
* Bugfix-only release, fixed bugs: LP: #146308 and LP: #186381.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_INIT(aclocal.m4)
2
 
AM_INIT_AUTOMAKE(libmsn, 0.1)
3
 
 
4
 
AM_CONFIG_HEADER(config.h)
5
 
 
6
 
AC_PROG_CXX
7
 
AC_PROG_CPP
8
 
AC_PROG_RANLIB
9
 
 
10
 
AC_ARG_ENABLE(msn, [  --disable-msn   Build without MSN], build_msn="$enableval", build_msn="yes")
11
 
AM_CONDITIONAL(BUILD_MSN, test "x$build_msn" = xyes)
12
 
 
13
 
if test "$build_msn" = "yes"; then
14
 
    AC_LANG_SAVE
15
 
    AC_LANG_CPLUSPLUS
16
 
    AC_CHECK_HEADERS([sstream strstream])
17
 
    AC_LANG_RESTORE
18
 
 
19
 
    # Checks for header files.
20
 
    AC_HEADER_STDC
21
 
    AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h])
22
 
 
23
 
    # Checks for typedefs, structures, and compiler characteristics.
24
 
    AC_C_CONST
25
 
    AC_TYPE_SIZE_T
26
 
    AC_HEADER_TIME
27
 
 
28
 
    # Checks for library functions.
29
 
    AC_FUNC_SELECT_ARGTYPES
30
 
    AC_CHECK_FUNCS([gethostbyname gethostname getpass inet_ntoa memset select socket strerror strtol])
31
 
 
32
 
    # Checks for libraries.
33
 
    AC_ARG_WITH(curl,
34
 
        [  --with-curl=[DIR]    curl-config in DIR],
35
 
        [CURL_CONFIG=$withval],
36
 
        [ AC_PATH_PROG(CURL_CONFIG,
37
 
            curl-config,
38
 
            AC_MSG_ERROR(curl-config not found))])
39
 
 
40
 
    CXXFLAGS="$CXXFLAGS `$CURL_CONFIG --cflags`"
41
 
fi
42
 
 
43
 
AC_OUTPUT(Makefile msn/Makefile)