~ubuntu-branches/ubuntu/trusty/libopensync-plugin-file/trusty

« back to all changes in this revision

Viewing changes to cmake/modules/FindGNUTLS.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2010-02-06 22:18:21 UTC
  • mfrom: (1.1.3 upstream) (4.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100206221821-kvbuxtp4n8r8ko6z
Tags: 0.39-1
* New upstream development release.
* debian/control (Build-Depends): Updated libopensync-dev build
  dependency to libopensync1exp7-dev.
* Upload to unstable.
* debian/rules (configure-stamp): Pass $(CFLAGS) to cmake instead of a
  hardcoded list.
* debian/control (Build-Depends): Bump required debhelper version to 7.0.0.
* debian/compat: Set to 7.
* debian/control (Standards-Version): Bumped to 3.8.3.
* debian/rules (install): Replace call to dh_clean -k with dh_prep.
* debian/rules (binary-arch): Removed call to dh_makeshlibs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# - Try to find GNUTLS 
 
2
# Find GNUTLS headers, libraries and the answer to all questions.
 
3
#
 
4
#  GNUTLS_FOUND               True if gnutls got found
 
5
#  GNUTLS_INCLUDE_DIRS        Location of gnutls headers 
 
6
#  GNUTLS_LIBRARIES           List of libaries to use gnutls 
 
7
#
 
8
# Copyright (c) 2007 Bjoern Ricks <b.ricks@fh-osnabrueck.de>
 
9
#
 
10
#  Redistribution and use is allowed according to the terms of the New
 
11
#  BSD license.
 
12
#  For details see the accompanying COPYING-CMAKE-SCRIPTS file.
 
13
#
 
14
 
 
15
INCLUDE( FindPkgConfig )
 
16
 
 
17
IF ( GNUTLS_FIND_REQUIRED )
 
18
        SET( _pkgconfig_REQUIRED "REQUIRED" )
 
19
ELSE( GNUTLS_FIND_REQUIRED )
 
20
        SET( _pkgconfig_REQUIRED "" )   
 
21
ENDIF ( GNUTLS_FIND_REQUIRED )
 
22
 
 
23
IF ( GNUTLS_MIN_VERSION )
 
24
        PKG_SEARCH_MODULE( GNUTLS ${_pkgconfig_REQUIRED} gnutls>=${GNUTLS_MIN_VERSION} )
 
25
ELSE ( GNUTLS_MIN_VERSION )
 
26
        PKG_SEARCH_MODULE( GNUTLS ${_pkgconfig_REQUIRED} gnutls )
 
27
ENDIF ( GNUTLS_MIN_VERSION )
 
28
 
 
29
 
 
30
IF( NOT GNUTLS_FOUND AND NOT PKG_CONFIG_FOUND )
 
31
        FIND_PATH( GNUTLS_INCLUDE_DIRS gnutls/gnutls.h )
 
32
        FIND_LIBRARY( GNUTLS_LIBRARIES gnutls)
 
33
 
 
34
        # Report results
 
35
        IF ( GNUTLS_LIBRARIES AND GNUTLS_INCLUDE_DIRS ) 
 
36
                SET( GNUTLS_FOUND 1 )
 
37
                IF ( NOT GNUTLS_FIND_QUIETLY )
 
38
                        MESSAGE( STATUS "Found gnutls: ${GNUTLS_LIBRARIES}" )
 
39
                ENDIF ( NOT GNUTLS_FIND_QUIETLY )
 
40
        ELSE ( GNUTLS_LIBRARIES AND GNUTLS_INCLUDE_DIRS )       
 
41
                IF ( GNUTLS_FIND_REQUIRED )
 
42
                        MESSAGE( SEND_ERROR "Could NOT find gnutls" )
 
43
                ELSE ( GNUTLS_FIND_REQUIRED )
 
44
                        IF ( NOT GNUTLS_FIND_QUIETLY )
 
45
                                MESSAGE( STATUS "Could NOT find gnutls" )       
 
46
                        ENDIF ( NOT GNUTLS_FIND_QUIETLY )
 
47
                ENDIF ( GNUTLS_FIND_REQUIRED )
 
48
        ENDIF ( GNUTLS_LIBRARIES AND GNUTLS_INCLUDE_DIRS )
 
49
ENDIF( NOT GNUTLS_FOUND AND NOT PKG_CONFIG_FOUND )
 
50
 
 
51
MARK_AS_ADVANCED( GNUTLS_LIBRARIES GNUTLS_INCLUDE_DIRS )