tizen 2.3.1 release
[external/libiri.git] / configure.ac
1 dnl @(#) $Id$
2
3 dnl Copyright (c) 2005, 2008 Mo McRoberts.
4 dnl
5 dnl Redistribution and use in source and binary forms, with or without
6 dnl modification, are permitted provided that the following conditions
7 dnl are met:
8 dnl 1. Redistributions of source code must retain the above copyright
9 dnl    notice, this list of conditions and the following disclaimer.
10 dnl 2. Redistributions in binary form must reproduce the above copyright
11 dnl    notice, this list of conditions and the following disclaimer in the
12 dnl    documentation and/or other materials provided with the distribution.
13 dnl 3. The names of the author(s) of this software may not be used to endorse
14 dnl    or promote products derived from this software without specific prior
15 dnl    written permission.
16 dnl
17 dnl THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 
18 dnl INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 
19 dnl AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
20 dnl AUTHORS OF THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 dnl SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
22 dnl TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23 dnl PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 
24 dnl LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 dnl NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26 dnl SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28 AC_INIT(libiri, 2.0)
29 #AC_CONFIG_SRCDIR([include/iri.h])
30 AC_CONFIG_SRCDIR([libiri.pc.in])
31 AM_INIT_AUTOMAKE([foreign])
32 AM_MAINTAINER_MODE
33
34 CPPFLAGS="$CPPFLAGS -W -Wall -D_REENTRANT -I\${top_srcdir}/include"
35 export CPPFLAGS
36
37 CFLAGS="$CFLAGS -g -O0"
38 export CFLAGS
39
40 AC_PROG_CC
41 AC_PROG_LIBTOOL
42
43 spfx="${prefix}"
44 sepfx="${exec_prefix}"
45 test x"${prefix}" = x"NONE" && prefix="${ac_default_prefix}"
46 test x"${exec_prefix}" = x"NONE" && exec_prefix="${prefix}"
47
48 IRI_VERSION="${VERSION}"
49 AC_SUBST([IRI_VERSION])
50
51 IRI_CFLAGS="-I`eval echo $includedir`"
52 AC_SUBST([IRI_CFLAGS])
53
54 IRI_INCLUDES="-I`eval echo $includedir`"
55 AC_SUBST([IRI_INCLUDES])
56
57 IRI_LIBS="-L`eval echo $libdir` -liri"
58 AC_SUBST([IRI_LIBS])
59
60 prefix="${spfx}"
61 exec_prefix="${sepfx}"
62
63 AC_CONFIG_HEADER([config.h])
64
65 AC_CONFIG_FILES([Makefile
66 include/Makefile
67 libiri/Makefile
68 iri-config/iri-config.c
69 iri-config/Makefile
70 tests/Makefile
71 libiri.pc
72 ])
73
74 AC_OUTPUT
75