chiark / gitweb /
Uprate build system again, for new style.
[cfd] / configure.ac
1 dnl -*-autoconf-*-
2 dnl
3 dnl Configuring the Common Files Distribution
4 dnl
5 dnl (c) 1997 Mark Wooding
6 dnl
7
8 dnl----- Licensing notice ---------------------------------------------------
9 dnl
10 dnl This file is part of the Common Files Distribution (`common')
11 dnl 
12 dnl `Common' is free software; you can redistribute it and/or modify
13 dnl it under the terms of the GNU General Public License as published by
14 dnl the Free Software Foundation; either version 2 of the License, or
15 dnl (at your option) any later version.
16 dnl 
17 dnl `Common' is distributed in the hope that it will be useful,
18 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
19 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 dnl GNU General Public License for more details.
21 dnl 
22 dnl You should have received a copy of the GNU General Public License
23 dnl along with `common'; if not, write to the Free Software Foundation,
24 dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26 dnl--------------------------------------------------------------------------
27 dnl Initialization.
28
29 mdw_AUTO_VERSION
30 AC_INIT([Common Files Distribution], AUTO_VERSION, 
31         [mdw@distorted.org.uk], [cfd])
32 AC_CONFIG_SRCDIR([mdw-setup])
33 AC_CONFIG_AUX_DIR([config])
34 AM_INIT_AUTOMAKE([foreign])
35
36 dnl--------------------------------------------------------------------------
37 dnl Finding installation directories.
38
39 AC_ARG_WITH(
40   [aclocaldir],
41   AS_HELP_STRING([--with-aclocaldir=DIR],
42                  [store autoconf snippets in DIR]),
43   [aclocaldir=$withval],
44   [AC_CACHE_CHECK([where to stash Autoconf macros], [mdw_cv_aclocaldir], [
45      mdw_cv_aclocaldir=$(aclocal --print-ac-dir)
46      if test $? -ne 0; then AC_MSG_ERROR([aclocal not installed]); fi
47    ])
48    aclocaldir=$mdw_cv_aclocaldir])
49 AC_SUBST([aclocaldir])
50
51 dnl--------------------------------------------------------------------------
52 dnl Output.
53
54 AC_CONFIG_FILES([Makefile])
55 AC_OUTPUT
56
57 dnl----- That's all, folks --------------------------------------------------