~drizzle-trunk/libdrizzle/jenkins-Libdrizzle-6

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Andrew Hutchings
  • Date: 2012-12-17 12:03:43 UTC
  • mfrom: (44.1.1 libdrizzle)
  • Revision ID: andrew@linuxjedi.co.uk-20121217120343-tgde4ngz85yc6rsq
Merge in Brian's autoconf work

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env bash
 
2
# libdrizzle
 
3
# Copyright (C) 2012 Drizzle Development Team, http://drizzle.org/
 
4
# All rights reserved.
 
5
#
 
6
# Use and distribution licensed under the BSD license.  See
 
7
# the COPYING file in this directory for full text.
 
8
 
 
9
AC_INIT([libdrizzle],[5.0.0])
 
10
 
 
11
AC_CONFIG_AUX_DIR([build-aux])
 
12
 
 
13
AC_CANONICAL_TARGET
 
14
 
 
15
AM_INIT_AUTOMAKE([1.11 color-tests -Wno-portability subdir-objects foreign tar-ustar])
 
16
AC_PREREQ([2.63])
 
17
 
 
18
AC_CANONICAL_HOST
 
19
AC_CANONICAL_BUILD
 
20
AC_ARG_PROGRAM
 
21
AC_USE_SYSTEM_EXTENSIONS
 
22
 
 
23
AC_CONFIG_MACRO_DIR([m4])
 
24
 
 
25
 
 
26
AC_CONFIG_HEADERS([config.h:config.in])dnl Keep filename to 8.3 for MS-DOS.
 
27
 
 
28
AC_CONFIG_SRCDIR([libdrizzle/drizzle.c])
 
29
 
 
30
#shared library versioning
 
31
LIBDRIZZLE_LIBRARY_VERSION=5:0:0
 
32
#                         | | |
 
33
#                  +------+ | +---+
 
34
#                  |        |     |
 
35
#                 current:revision:age
 
36
#                  |        |     |
 
37
#                  |        |     +- increment if interfaces have been added
 
38
#                  |        |        set to zero if interfaces have been removed or changed
 
39
#                  |        +- increment if source code has changed
 
40
#                  |           set to zero if current is incremented
 
41
#                  +- increment if interfaces have been added, removed or changed
 
42
AC_SUBST([LIBDRIZZLE_LIBRARY_VERSION])
 
43
 
 
44
LT_PREREQ([2.2])
 
45
LT_INIT
 
46
LT_LANG([C++])
 
47
 
 
48
AX_PLATFORM
 
49
AX_ASSERT
 
50
 
 
51
# Specialty checks
 
52
AX_CXX_CINTTYPES
 
53
CONFIG_EXTRA
 
54
SOCKET_SEND_FLAGS
 
55
 
 
56
# Checks for programs.
 
57
AX_PROG_SPHINX_BUILD
 
58
 
 
59
# Checks for libraries.
 
60
AX_CXX_GCC_ABI_DEMANGLE
 
61
AX_CHECK_OPENSSL
 
62
 
 
63
# Checks for header files.
 
64
AC_DEFUN([CHECK_FOR_CXXABI],
 
65
         [AC_LANG_PUSH([C++])
 
66
         AC_CHECK_HEADERS([cxxabi.h])
 
67
         AC_LANG_POP
 
68
         ])
 
69
CHECK_FOR_CXXABI
 
70
AC_CHECK_HEADERS_ONCE([errno.h])
 
71
AC_CHECK_HEADERS_ONCE([sys/socket.h])
 
72
 
 
73
# Checks for typedefs, structures, and compiler characteristics.
 
74
 
 
75
# Checks for library functions.
 
76
 
 
77
AX_ENDIAN
 
78
AX_HEX_VERSION([libdrizle],[$VERSION])
 
79
AX_HARDEN_COMPILER_FLAGS
 
80
 
 
81
AX_AM_JOBSERVER([yes])
 
82
 
 
83
AC_CONFIG_FILES([Makefile
 
84
                 docs/conf.py
 
85
                 rpm/spec
 
86
                 libdrizzle/version.h
 
87
                 ])
 
88
 
 
89
AC_OUTPUT
 
90
 
 
91
echo "---"
 
92
echo "Configuration summary for $PACKAGE_NAME version $VERSION"
 
93
echo ""
 
94
echo "   * Installation prefix:       $prefix"
 
95
echo "   * System type:               $host_vendor-$host_os"
 
96
echo "   * Host CPU:                  $host_cpu"
 
97
echo "   * Compiler Vendor:           $ax_cv_c_compiler_vendor"
 
98
echo "   * C Compiler:                $CC"
 
99
echo "   * C Compiler Version:        $ax_c_compiler_version"
 
100
echo "   * C Flags:                   $CFLAGS"
 
101
echo "   * C++ Compiler:              $CXX"
 
102
echo "   * C++ Version:               $ax_cxx_compiler_version"
 
103
echo "   * C++ Flags:                 $CXXFLAGS"
 
104
echo "   * CPP Flags:                 $CPPFLAGS"
 
105
echo "   * LIB Flags:                 $LIB"
 
106
echo "   * Assertions enabled:        $ax_enable_assert"
 
107
echo "   * Debug enabled:             $ax_enable_debug"
 
108
echo "   * Warnings as failure:       $ac_cv_warnings_as_errors"
 
109
echo "   * make -j:                   $enable_jobserver"
 
110
echo "   * VCS checkout:              $ac_cv_vcs_system"
 
111
echo ""
 
112
echo "---"