]> sigrok.org Git - sigrok-gtk.git/blame - configure.ac
Split README, add appropriate ones per-project.
[sigrok-gtk.git] / configure.ac
CommitLineData
3f63165c
UH
1##
2## This file is part of the sigrok project.
3##
4## Copyright (C) 2010 Bert Vermeulen <bert@biot.com>
5##
6## This program is free software: you can redistribute it and/or modify
7## it under the terms of the GNU General Public License as published by
8## the Free Software Foundation, either version 3 of the License, or
9## (at your option) any later version.
10##
11## This program is distributed in the hope that it will be useful,
12## but WITHOUT ANY WARRANTY; without even the implied warranty of
13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14## GNU General Public License for more details.
15##
16## You should have received a copy of the GNU General Public License
17## along with this program. If not, see <http://www.gnu.org/licenses/>.
18##
19
20AC_INIT([sigrok-gtk], [0.1], [gareth@blacksphere.co.nz])
21AC_CONFIG_SRCDIR([main.c])
22AC_PREREQ(2.57)
23AM_INIT_AUTOMAKE([-Wall -Werror foreign std-options])
24m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
25
26CFLAGS="-g -Wall -Wextra"
27
28AC_PROG_CC
29AM_PROG_AS
30AC_STDC_HEADERS
31AC_PROG_INSTALL
32
33# Initialize libtool.
34LT_INIT
35
36# Initialize pkg-config.
37# We require at least 0.22, as "Requires.private" behaviour changed there.
38PKG_PROG_PKG_CONFIG([0.22])
39
40AC_CHECK_TOOL([WINDRES], windres, [])
41AM_CONDITIONAL([WINDOWS], test x$WINDRES != x)
42
43PKG_CHECK_MODULES([gtk], [gtk+-2.0 gmodule-2.0],
44 [CFLAGS="$CFLAGS $gtk_CFLAGS";
45 LIBS="$LIBS $gtk_LIBS"])
46
47PKG_CHECK_MODULES([libsigrok], [libsigrok],
48 [CFLAGS="$CFLAGS $libsigrok_CFLAGS";
49 LIBS="$LIBS $libsigrok_LIBS"])
50
51AC_CONFIG_FILES([Makefile])
52AC_OUTPUT
53