summaryrefslogtreecommitdiffstats
path: root/src/plugins/locate/python/Makefile.in
Commit message (Expand)AuthorAgeFilesLines
* Get rid of fake-installGreg Hudson2011-11-041-1/+1
* Use for loops for recursion in the Windows build, cutting down on theGreg Hudson2010-11-281-1/+1
* Consolidate Makefile variables now that we have only a single globalGreg Hudson2009-11-221-2/+0
* Restore limited support for static linkingGreg Hudson2009-06-081-1/+1
* move generated dependencies out of Makefile.inKen Raeburn2009-01-051-11/+0
* Build against Python 2.5 as well as 2.3. Long term, should use python-configKen Raeburn2009-01-051-1/+1
* Generate makefiles for two static libs plus the python plugin from the top-le...Ken Raeburn2007-03-251-2/+2
* Depend on support libraryKen Raeburn2007-03-251-2/+2
* make dependKen Raeburn2006-12-121-6/+4
* autoconf 2.60 compatibilityKen Raeburn2006-06-281-2/+2
* update dependenciesKen Raeburn2006-05-231-7/+7
* Initial enhanced error message support, similar to what I sent toKen Raeburn2006-03-261-5/+6
* Merge from plugin branchKen Raeburn2006-03-071-0/+42
n/ConfigureChecks.cmake?h=ticket-477-6&id=770cc205a0108be22922c46a39d162dc31c55724'>plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
include(CheckIncludeFile)
include(CheckSymbolExists)
include(CheckFunctionExists)
include(CheckLibraryExists)
include(CheckTypeSize)
include(CheckCXXSourceCompiles)
include(TestBigEndian)

set(PACKAGE ${APPLICATION_NAME})
set(VERSION ${APPLICATION_VERSION})
set(DATADIR ${DATA_INSTALL_DIR})
set(LIBDIR ${LIB_INSTALL_DIR})
set(PLUGINDIR "${PLUGIN_INSTALL_DIR}-${LIBRARY_SOVERSION}")
set(SYSCONFDIR ${SYSCONF_INSTALL_DIR})

set(BINARYDIR ${CMAKE_BINARY_DIR})
set(SOURCEDIR ${CMAKE_SOURCE_DIR})

function(COMPILER_DUMPVERSION _OUTPUT_VERSION)
    # Remove whitespaces from the argument.
    # This is needed for CC="ccache gcc" cmake ..
    string(REPLACE " " "" _C_COMPILER_ARG "${CMAKE_C_COMPILER_ARG1}")

    execute_process(
        COMMAND
            ${CMAKE_C_COMPILER} ${_C_COMPILER_ARG} -dumpversion
        OUTPUT_VARIABLE _COMPILER_VERSION
    )

    string(REGEX REPLACE "([0-9])\\.([0-9])(\\.[0-9])?" "\\1\\2"
        _COMPILER_VERSION ${_COMPILER_VERSION})

    set(${_OUTPUT_VERSION} ${_COMPILER_VERSION} PARENT_SCOPE)
endfunction()

if(CMAKE_COMPILER_IS_GNUCC AND NOT MINGW)
    compiler_dumpversion(GNUCC_VERSION)
    if (NOT GNUCC_VERSION EQUAL 34)
        check_c_compiler_flag("-fvisibility=hidden" WITH_VISIBILITY_HIDDEN)
    endif (NOT GNUCC_VERSION EQUAL 34)
endif(CMAKE_COMPILER_IS_GNUCC AND NOT MINGW)

# PLATTFORM

if (UNIX AND NOT WIN32)
    set(XP_UNIX 1)
endif (UNIX AND NOT WIN32)

# HEADER FILES
check_include_file(argp.h HAVE_ARGP_H)

if (CMAKE_HAVE_PTHREAD_H)
  set(HAVE_PTHREAD_H 1)
endif (CMAKE_HAVE_PTHREAD_H)

# FUNCTIONS

check_function_exists(strncpy HAVE_STRNCPY)
check_function_exists(vsnprintf HAVE_VSNPRINTF)
check_function_exists(snprintf HAVE_SNPRINTF)

# LIBRARIES
if (CMAKE_HAVE_THREADS_LIBRARY)
    if (CMAKE_USE_PTHREADS_INIT)
        set(HAVE_PTHREAD 1)
    endif (CMAKE_USE_PTHREADS_INIT)
endif (CMAKE_HAVE_THREADS_LIBRARY)

# ENDIAN
if (NOT WIN32)
    test_big_endian(WORDS_BIGENDIAN)
endif (NOT WIN32)