2011-04-02 11:17:48 -06:00
|
|
|
dnl
|
|
|
|
dnl Process this file with autoconf to create configure.
|
|
|
|
|
|
|
|
# Initialize Autoconf
|
|
|
|
AC_PREREQ([2.60])
|
|
|
|
AC_INIT([xorg-cf-files], [1.0.4],
|
|
|
|
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
|
|
|
[xorg-cf-files])
|
|
|
|
AC_CONFIG_SRCDIR([Makefile.am])
|
|
|
|
|
|
|
|
# Initialize Automake
|
2006-11-25 09:15:45 -07:00
|
|
|
AM_INIT_AUTOMAKE([foreign dist-bzip2])
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
2011-04-02 11:17:48 -06:00
|
|
|
# Require xorg-macros 1.4 or later: XORG_DEFAULT_OPTIONS, XORG_INSTALL
|
2009-11-12 14:05:42 -07:00
|
|
|
m4_ifndef([XORG_MACROS_VERSION],
|
2011-04-02 11:17:48 -06:00
|
|
|
[m4_fatal([must install xorg-macros 1.4 or later before running autoconf/autogen])])
|
|
|
|
XORG_MACROS_VERSION(1.4)
|
2009-11-12 14:05:42 -07:00
|
|
|
XORG_DEFAULT_OPTIONS
|
|
|
|
|
2011-04-02 11:17:48 -06:00
|
|
|
# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR
|
|
|
|
m4_ifndef([XORG_FONT_MACROS_VERSION],
|
|
|
|
[m4_fatal([must install X.Org font-util 1.1 or later before running autoconf/autogen])])
|
|
|
|
XORG_FONT_MACROS_VERSION(1.1)
|
|
|
|
XORG_FONTROOTDIR
|
|
|
|
XORG_FONTSUBDIR([ENCODINGSDIR],[encodingsdir],[encodings])
|
|
|
|
|
2006-11-25 09:15:45 -07:00
|
|
|
m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))])
|
|
|
|
|
|
|
|
DEFAULT_XCONFDIR="${libdir}/X11/config"
|
|
|
|
AC_ARG_WITH(config-dir,
|
|
|
|
AS_HELP_STRING([--with-config-dir=<path>], [Path to config dir (default: ${libdir}/X11/config)]),
|
|
|
|
[XCONFDIR="$withval"],
|
|
|
|
[XCONFDIR="$DEFAULT_XCONFDIR"])
|
|
|
|
AC_SUBST(XCONFDIR)
|
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
|
|
|
site.def
|
|
|
|
])
|