configure.ac revision 3538fbe3
1
2dnl  Copyright 2005 Red Hat, Inc.
3dnl
4dnl  Permission to use, copy, modify, distribute, and sell this software and its
5dnl  documentation for any purpose is hereby granted without fee, provided that
6dnl  the above copyright notice appear in all copies and that both that
7dnl  copyright notice and this permission notice appear in supporting
8dnl  documentation, and that the name of Red Hat not be used in
9dnl  advertising or publicity pertaining to distribution of the software without
10dnl  specific, written prior permission.  Red Hat makes no
11dnl  representations about the suitability of this software for any purpose.  It
12dnl  is provided "as is" without express or implied warranty.
13dnl
14dnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15dnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16dnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17dnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18dnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19dnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20dnl  PERFORMANCE OF THIS SOFTWARE.
21dnl
22dnl Process this file with autoconf to create configure.
23
24AC_PREREQ([2.60])
25AC_INIT([xfd],[1.1.1],
26	[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xfd])
27AM_INIT_AUTOMAKE([foreign dist-bzip2])
28AM_MAINTAINER_MODE
29
30# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
31m4_ifndef([XORG_MACROS_VERSION],
32          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
33XORG_MACROS_VERSION(1.8)
34XORG_DEFAULT_OPTIONS
35
36AC_CONFIG_HEADERS([config.h])
37
38
39# Internationalization & localization support
40AC_SEARCH_LIBS([gettext], [intl], [USE_GETTEXT="yes"], [USE_GETTEXT="no"])
41AC_MSG_CHECKING([where to install localized messages])
42AC_ARG_WITH([localedir], AS_HELP_STRING([--with-localedir=<path>],
43        [Path to install message files in (default: datadir/locale)]),
44        [LOCALEDIR=${withval}], [LOCALEDIR=${datadir}/locale])
45AC_SUBST([LOCALEDIR])
46if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
47        AC_MSG_RESULT([nowhere])
48        USE_GETTEXT="no"
49else
50        AC_MSG_RESULT([$LOCALEDIR])
51fi
52
53if test "x$USE_GETTEXT" = "xyes" ; then
54        AC_DEFINE([USE_GETTEXT], 1,
55                  [Define to 1 if you want to use the gettext() function.])
56fi
57AM_CONDITIONAL(USE_GETTEXT, test "x$USE_GETTEXT" = "xyes")
58
59# Checks for pkg-config packages
60PKG_CHECK_MODULES(XFD, xaw7 fontconfig xft xrender xmu)
61
62PKG_CHECK_MODULES(APPDEFS, xt)
63xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
64AC_ARG_WITH(appdefaultdir,
65	AS_HELP_STRING([--with-appdefaultdir=<pathname>],
66	  [specify directory for app-defaults files (default is autodetected)]),
67	[appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"])
68AC_SUBST(appdefaultdir)
69
70
71AC_CONFIG_FILES([
72	Makefile
73	man/Makefile])
74AC_OUTPUT
75