Commit | Line | Data |
---|---|---|
1f79a056 | 1 | dnl -*-autoconf-*- |
b91e2391 | 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') | |
fcc208c5 | 11 | dnl |
b91e2391 | 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. | |
fcc208c5 | 16 | dnl |
b91e2391 | 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. | |
fcc208c5 | 21 | dnl |
b91e2391 | 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 | ||
ba4d97a4 MW |
26 | dnl-------------------------------------------------------------------------- |
27 | dnl Initialization. | |
28 | ||
1f79a056 | 29 | mdw_AUTO_VERSION |
fcc208c5 | 30 | AC_INIT([Common Files Distribution], AUTO_VERSION, |
ba4d97a4 | 31 | [mdw@distorted.org.uk], [cfd]) |
1f79a056 | 32 | AC_CONFIG_SRCDIR([mdw-setup]) |
ba4d97a4 MW |
33 | AC_CONFIG_AUX_DIR([config]) |
34 | AM_INIT_AUTOMAKE([foreign]) | |
6888a158 | 35 | mdw_SILENT_RULES |
1f79a056 | 36 | |
ba4d97a4 MW |
37 | dnl-------------------------------------------------------------------------- |
38 | dnl Finding installation directories. | |
39 | ||
40 | AC_ARG_WITH( | |
41 | [aclocaldir], | |
42 | AS_HELP_STRING([--with-aclocaldir=DIR], | |
43 | [store autoconf snippets in DIR]), | |
44 | [aclocaldir=$withval], | |
45 | [AC_CACHE_CHECK([where to stash Autoconf macros], [mdw_cv_aclocaldir], [ | |
46 | mdw_cv_aclocaldir=$(aclocal --print-ac-dir) | |
47 | if test $? -ne 0; then AC_MSG_ERROR([aclocal not installed]); fi | |
48 | ]) | |
49 | aclocaldir=$mdw_cv_aclocaldir]) | |
1f79a056 MW |
50 | AC_SUBST([aclocaldir]) |
51 | ||
ba4d97a4 MW |
52 | dnl-------------------------------------------------------------------------- |
53 | dnl Output. | |
54 | ||
55 | AC_CONFIG_FILES([Makefile]) | |
1f79a056 | 56 | AC_OUTPUT |
ba4d97a4 MW |
57 | |
58 | dnl----- That's all, folks -------------------------------------------------- |