configure.ac revision 126a8a12
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.57)
5AC_INIT([libSM],
6        1.0.3,
7        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
8        libSM)
9
10AC_CONFIG_SRCDIR([Makefile.am])
11AM_INIT_AUTOMAKE([dist-bzip2])
12
13AM_MAINTAINER_MODE
14
15AM_CONFIG_HEADER([config.h])
16
17# Checks for programs.
18AC_PROG_LIBTOOL
19AC_PROG_CC
20
21# Checks for pkg-config packages
22PKG_CHECK_MODULES(SM, ice xproto)
23AC_SUBST(SM_CFLAGS)
24AC_SUBST(SM_LIBS)
25
26PKG_CHECK_MODULES(XTRANS, xtrans)
27AC_SUBST(XTRANS_CFLAGS)
28AC_SUBST(XTRANS_LIBS)
29
30# Checks for libraries.
31
32# Checks for header files.
33AC_HEADER_STDC
34
35# Needed to check for TCP & IPv6 support and set flags appropriately
36XTRANS_CONNECTION_FLAGS
37
38if test "x$GCC" = "xyes"; then
39	GCC_WARNINGS="-Wall -Wpointer-arith -Wstrict-prototypes \
40	-Wmissing-prototypes -Wmissing-declarations \
41	-Wnested-externs -fno-strict-aliasing"
42	CFLAGS="$GCC_WARNINGS $CFLAGS"
43fi
44
45XORG_RELEASE_VERSION
46
47AC_OUTPUT([Makefile
48	   src/Makefile
49	   sm.pc])
50