-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.in
81 lines (69 loc) · 2.47 KB
/
configure.in
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
73
74
75
76
77
78
79
80
81
#
# C++ sphinx search client library
# Copyright (C) 2007 Seznam.cz, a.s.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Seznam.cz, a.s.
# Radlicka 2, Praha 5, 15000, Czech Republic
# http://www.seznam.cz, mailto:[email protected]
#
#
# $Id$
#
# DESCRIPTION
# configure template Sphinx client
#
# AUTHORS
# Jan Kirschner <[email protected]>
#
# HISTORY
# 2006-12-04 (kirschner)
# Created.
#
# initialize autoconf
AC_INIT(sphinxclient, m4_esyscmd([head -n1 debian/changelog | tr -d '()' | cut -d' ' -f2 | tr -d '\n']))
# initialize automake(use AC_INIT's arguments)
AM_INIT_AUTOMAKE(-Wall foreign)
AC_PREREQ(2.50)
# tell autoconf where to find sources
AC_CONFIG_SRCDIR([src/sphinxclient.cc])
# check for C++ compiler
AC_PROG_CXX
# check for std C headers
AC_HEADER_STDC
PKG_PROG_PKG_CONFIG
# check for libtool
AC_PROG_LIBTOOL
# This version number needs to be changed in several different ways for each
# release. Please read the libtool documentation (info libtool 'Updating
# version info') before touching this. (this is *.so version number).
VERSION_INFO="-version-info 6:0:0"
AC_SUBST(VERSION_INFO)
AC_CHECK_HEADERS([fcntl.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/file.h sys/socket.h sys/time.h unistd.h time.h])
AC_CHECK_HEADER(netdb.h, , AC_MSG_ERROR([netdb.h header missing], 1))
AC_CHECK_HEADER(netinet/in.h, , AC_MSG_ERROR([in.h header missing], 1))
AC_CHECK_HEADER(sys/socket.h, , AC_MSG_ERROR([socket.h header missing], 1))
AC_CHECK_HEADER(stdlib.h, , AC_MSG_ERROR([Standart C header missing], 1))
AC_CHECK_HEADER(unistd.h, , AC_MSG_ERROR([Standart unix header missing], 1))
# generate Makefile
AC_OUTPUT([
version
Makefile
src/Makefile
include/Makefile
include/sphinxclient/Makefile
sphinxclient.pc
])