~ubuntu-branches/ubuntu/wily/libservicelog/wily

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Dimitri John Ledkov
  • Date: 2014-04-03 19:30:14 UTC
  • Revision ID: package-import@ubuntu.com-20140403193014-w4j3dvho6j1axd6k
Tags: upstream-1.1.14
ImportĀ upstreamĀ versionĀ 1.1.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2008, IBM
 
2
#
 
3
# This program is free software; you can redistribute it and/or
 
4
# modify it under the terms of the GNU Library General Public License
 
5
# as published by the Free Software Foundation; either version 2
 
6
# of the License, or (at your option) any later version.
 
7
#
 
8
# This program is distributed in the hope that it will be useful,
 
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
# GNU Library General Public License for more details.
 
12
#
 
13
# You should have received a copy of the GNU Library General Public
 
14
# Licence along with this program; if not, see <http://www.gnu.org/licenses/>. 
 
15
 
 
16
#                                               -*- Autoconf -*-
 
17
# Process this file with autoconf to produce a configure script.
 
18
 
 
19
AC_PREREQ(2.59)
 
20
AC_INIT([libservicelog],[1.1.14],[hegdevasant@in.ibm.com])
 
21
AC_CONFIG_SRCDIR([src/servicelog.c])
 
22
AC_CONFIG_HEADER([src/config.h])
 
23
AM_INIT_AUTOMAKE
 
24
 
 
25
GENERIC_LIBRARY_NAME=libservicelog
 
26
GENERIC_PACKAGE_NAME=servicelog
 
27
GENERIC_MAJOR_VERSION=1
 
28
GENERIC_MINOR_VERSION=1
 
29
GENERIC_MICRO_VERSION=14
 
30
GENERIC_API_VERSION=$GENERIC_MAJOR_VERSION
 
31
AC_SUBST(GENERIC_API_VERSION)
 
32
 
 
33
AC_SUBST(GENERIC_LIBRARY_VERSION)
 
34
AC_SUBST(GENERIC_PACKAGE_NAME)
 
35
 
 
36
PACKAGE=$GENERIC_LIBRARY_NAME
 
37
AC_SUBST(GENERIC_LIBRARY_NAME)
 
38
 
 
39
GENERIC_VERSION=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION.$GENERIC_MICRO_VERSION
 
40
GENERIC_RELEASE=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION
 
41
AC_SUBST(GENERIC_RELEASE)
 
42
AC_SUBST(GENERIC_VERSION)
 
43
 
 
44
VERSION=$GENERIC_VERSION
 
45
 
 
46
# Checks for programs.
 
47
AC_PROG_CC
 
48
AC_PROG_YACC
 
49
AC_PROG_LEX
 
50
AC_PROG_INSTALL
 
51
AC_PROG_LN_S
 
52
AC_PROG_MAKE_SET
 
53
AM_PROG_LIBTOOL
 
54
AC_SUBST(LIBTOOL_DEPS)
 
55
 
 
56
# Checks for libraries.
 
57
AC_CHECK_LIB([sqlite3], [sqlite3_open], [], [
 
58
        echo "Error! libsqlite3 not found"
 
59
    exit -1])
 
60
AC_CHECK_LIB([rtasevent], [parse_rtas_event], [], [
 
61
        echo "Error! librtasevent not found"
 
62
        exit -1])
 
63
AC_CHECK_LIB([rtas], [rtas_activate_firmware], [], [
 
64
        echo "Error! librtas not found"
 
65
        exit -1])
 
66
 
 
67
# Checks for header files.
 
68
AC_HEADER_STDC
 
69
AC_CHECK_HEADERS([stdint.h stdlib.h string.h unistd.h])
 
70
 
 
71
# Checks for typedefs, structures, and compiler characteristics.
 
72
AC_TYPE_SIZE_T
 
73
AC_STRUCT_TM
 
74
 
 
75
# Checks for library functions.
 
76
AC_FUNC_MALLOC
 
77
AC_FUNC_MKTIME
 
78
AC_FUNC_STAT
 
79
AC_FUNC_STRFTIME
 
80
AC_CHECK_FUNCS([memset strerror strtoull uname])
 
81
 
 
82
AC_CONFIG_FILES([Makefile src/Makefile libservicelog.spec src/servicelog-1.pc])
 
83
AC_OUTPUT