Git init
[framework/uifw/xorg/lib/libxmu.git] / configure.ac
1
2 #                                               -*- Autoconf -*-
3 # Process this file with autoconf to produce a configure script.
4
5 AC_PREREQ([2.60])
6
7 AC_INIT([libXmu],
8         [1.1.0],
9         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
10         [libXmu])
11
12 AC_CONFIG_SRCDIR([Makefile.am])
13 AC_CONFIG_AUX_DIR(.)
14 AM_INIT_AUTOMAKE([foreign dist-bzip2])
15
16 AM_MAINTAINER_MODE
17
18 # Require xorg-macros minimum of 1.10 for HAVE_STYLESHEETS in XORG_CHECK_SGML_DOCTOOLS
19 m4_ifndef([XORG_MACROS_VERSION],
20           [m4_fatal([must install xorg-macros 1.10 or later before running autoconf/autogen])])
21 XORG_MACROS_VERSION(1.10)
22 XORG_DEFAULT_OPTIONS
23 XORG_ENABLE_DOCS
24 XORG_WITH_XMLTO(0.0.20)
25 XORG_WITH_FOP
26 XORG_CHECK_SGML_DOCTOOLS(1.5)
27
28 AM_CONFIG_HEADER([config.h])
29
30
31 # Checks for programs.
32 AC_PROG_LIBTOOL
33
34 # Checks for pkg-config packages
35 PKG_CHECK_MODULES(XMU, xt xext x11 xextproto)
36 PKG_CHECK_MODULES(XMUU, x11)
37
38 # CvtStdSel.c needs to know which network transports to build hostname
39 # conversion routines for
40 XTRANS_CONNECTION_FLAGS
41
42 #
43 # Assume that we have sprintf. If a system shows up
44 # that doesn't, we will deal with it at that point.
45 #
46 # The way to deal with it is:
47 #
48 #  1. Add a test for sprintf it here in configure.ac
49 #     that sets or unsets HAS_SNPRINTF as appropriate
50 #
51 #  2. add a copy of xc/lib/misc/snprintf.c
52 #
53 # The source file in question is Lower.c
54 #
55
56 AC_DEFINE(HAS_SNPRINTF, [], [Whether we have snprintf()])
57 AC_SUBST(HAS_SNPRINTF)
58
59 dnl Allow checking code with lint, sparse, etc.
60 XORG_WITH_LINT
61 XORG_LINT_LIBRARY([Xmu])
62 LINTLIBUU=`echo $LINTLIB | sed s/Xmu/Xmuu/`
63 AC_SUBST(LINTLIBUU)
64
65 AC_OUTPUT([Makefile
66            doc/Makefile
67            include/Makefile
68            src/Makefile
69            xmu.pc
70            xmuu.pc])