Build separately from mLib.
[sw-tools] / configure.in
CommitLineData
3315e8b3 1dnl -*-fundamental-*-
2dnl
c629200b 3dnl $Id: configure.in,v 1.10 1999/11/11 20:24:37 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 $
c629200b 31dnl Revision 1.10 1999/11/11 20:24:37 mdw
32dnl Build separately from mLib.
33dnl
842fb8d4 34dnl Revision 1.9 1999/09/24 13:17:53 mdw
37baafc2 35dnl Version bump.
36dnl
0e0feb0b 37dnl Revision 1.7 1999/07/30 18:45:36 mdw
38dnl Configure the Perl bits.
39dnl
22c1e3f5 40dnl Revision 1.6 1999/07/28 09:31:49 mdw
41dnl Small amounts of tidying.
42dnl
c12f3803 43dnl Revision 1.5 1999/07/16 12:46:04 mdw
44dnl First proper release version.
45dnl
de50c780 46dnl Revision 1.3 1999/06/18 18:59:39 mdw
47dnl Preliminary work for Perl scripts.
48dnl
b2f455ee 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)
c629200b 56AM_INIT_AUTOMAKE(sw-tools, 1.0.3)
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
c629200b 95mdw_MLIB
22c1e3f5 96mdw_CHECK_MANYLIBS(socketpair, socket)
3315e8b3 97
98dnl --- Write in some useful paths ---
99
100mdw_prefix=$prefix mdw_exec_prefix=$exec_prefix
101transform=`echo "$program_transform_name"|sed 's,\\\\\\\\,\\\\,g; s,\\$\\$,$,g'`
102test "$prefix" = "NONE" && prefix=$ac_default_prefix
103test "$exec_prefix" = "NONE" && exec_prefix=$prefix
104SW=`echo sw|sed "$transform"`
105AC_SUBST(SW)
106AC_DEFINE_UNQUOTED(PREFIX, "$mdw_prefix")
107AC_DEFINE_UNQUOTED(BINDIR, "`eval echo $bindir`")
108AC_DEFINE_UNQUOTED(DATADIR, "`eval echo $datadir`")
109AC_DEFINE_UNQUOTED(SW, "$SW")
de50c780 110pkgdatadir="`eval echo $datadir/sw`"
111AC_SUBST(pkgdatadir)
3315e8b3 112prefix=$mdw_prefix exec_prefix=$mdw_exec_prefix
113
114dnl --- Output the configuration ---
115
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 -------------------------------------------------