Include `%'-escape substitution.
[sw-tools] / configure.in
CommitLineData
3315e8b3 1dnl -*-fundamental-*-
2dnl
0e0feb0b 3dnl $Id: configure.in,v 1.7 1999/07/30 18:45:36 mdw Exp $
3315e8b3 4dnl
5dnl Configuration for sw-tools
6dnl
7dnl (c) 1999 EBI
8dnl
9
10dnl ----- Licensing notice --------------------------------------------------
11dnl
12dnl This file is part of sw-tools.
13dnl
14dnl sw-tools is free software; you can redistribute it and/or modify
15dnl it under the terms of the GNU General Public License as published by
16dnl the Free Software Foundation; either version 2 of the License, or
17dnl (at your option) any later version.
18dnl
19dnl sw-tools is distributed in the hope that it will be useful,
20dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
21dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22dnl GNU General Public License for more details.
23dnl
24dnl You should have received a copy of the GNU General Public License
25dnl along with sw-tools; if not, write to the Free Software Foundation,
26dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27
28dnl ----- Revision history --------------------------------------------------
29dnl
30dnl $Log: configure.in,v $
0e0feb0b 31dnl Revision 1.7 1999/07/30 18:45:36 mdw
32dnl Configure the Perl bits.
33dnl
22c1e3f5 34dnl Revision 1.6 1999/07/28 09:31:49 mdw
35dnl Small amounts of tidying.
36dnl
c12f3803 37dnl Revision 1.5 1999/07/16 12:46:04 mdw
38dnl First proper release version.
39dnl
b171c283 40dnl Revision 1.4 1999/06/24 15:53:11 mdw
41dnl Bump the version number again.
42dnl
de50c780 43dnl Revision 1.3 1999/06/18 18:59:39 mdw
44dnl Preliminary work for Perl scripts.
45dnl
b2f455ee 46dnl Revision 1.2 1999/06/04 13:56:36 mdw
47dnl Bump version.
48dnl
49dnl Revision 1.1.1.1 1999/06/02 16:53:33 mdw
50dnl Initial import.
3315e8b3 51dnl
52
53dnl --- Boring boilerplate ---
54
55AC_INIT(src/sw.c)
c12f3803 56AM_INIT_AUTOMAKE(sw-tools, 1.0.0)
3315e8b3 57AM_CONFIG_HEADER(config.h)
58
59dnl --- Work out the architecture name ---
60
61AC_MSG_CHECKING([architecture name])
62arch=`$srcdir/sw.in --archname`
63AC_MSG_RESULT($arch)
64AC_DEFINE_UNQUOTED(ARCH, "$arch")
65AC_SUBST(arch)
66
67dnl --- Set up the C compiler ---
68
69AC_PROG_CC
70mdw_GCC_FLAGS
71
de50c780 72dnl --- Find a Perl ---
73
74mdw_PROG_PERL(5.003)
75mdw_CHECK_PERL(5.003)
76
3315e8b3 77dnl --- Find an appropriate remote shell program ---
78
79AC_ARG_WITH(rsh,
80[ --with-rsh=PROGRAM use PROGRAM to start remote shells],
81[RSH=$withval])
82AC_PATH_PROGS(RSH, $RSH remsh rsh ssh, rsh)
83AC_DEFINE_UNQUOTED(RSH, "$RSH")
84
22c1e3f5 85dnl --- Various simple tests ---
3315e8b3 86
22c1e3f5 87AC_CHECK_HEADERS(unistd.h)
88mdw_DECL_ENVIRON
3315e8b3 89AC_TYPE_PID_T
90AC_TYPE_SIZE_T
91AC_TYPE_UID_T
22c1e3f5 92mdw_TYPE_SSIZE_T
93AC_CHECK_FUNCS(strsignal _sys_siglist, break)
94mdw_CURSES
95mdw_CHECK_MANYLIBS(socketpair, socket)
3315e8b3 96
97dnl --- Write in some useful paths ---
98
99mdw_prefix=$prefix mdw_exec_prefix=$exec_prefix
100transform=`echo "$program_transform_name"|sed 's,\\\\\\\\,\\\\,g; s,\\$\\$,$,g'`
101test "$prefix" = "NONE" && prefix=$ac_default_prefix
102test "$exec_prefix" = "NONE" && exec_prefix=$prefix
103SW=`echo sw|sed "$transform"`
104AC_SUBST(SW)
105AC_DEFINE_UNQUOTED(PREFIX, "$mdw_prefix")
106AC_DEFINE_UNQUOTED(BINDIR, "`eval echo $bindir`")
107AC_DEFINE_UNQUOTED(DATADIR, "`eval echo $datadir`")
108AC_DEFINE_UNQUOTED(SW, "$SW")
de50c780 109pkgdatadir="`eval echo $datadir/sw`"
110AC_SUBST(pkgdatadir)
3315e8b3 111prefix=$mdw_prefix exec_prefix=$mdw_exec_prefix
112
113dnl --- Output the configuration ---
114
115AC_CONFIG_SUBDIRS(mLib)
0e0feb0b 116AC_OUTPUT(dnl
117 Makefile src/Makefile perl/Makefile dnl
118 perl/SWConfig.pm perl/sw perl/sw-tidy dnl
119 sw sw-share dnl
120)
3315e8b3 121
122dnl ----- That's all, folks -------------------------------------------------