Version bump.
[sw-tools] / configure.in
CommitLineData
3315e8b3 1dnl -*-fundamental-*-
2dnl
37baafc2 3dnl $Id: configure.in,v 1.8 1999/09/10 15:28:20 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 $
37baafc2 31dnl Revision 1.8 1999/09/10 15:28:20 mdw
32dnl Version bump.
33dnl
0e0feb0b 34dnl Revision 1.7 1999/07/30 18:45:36 mdw
35dnl Configure the Perl bits.
36dnl
22c1e3f5 37dnl Revision 1.6 1999/07/28 09:31:49 mdw
38dnl Small amounts of tidying.
39dnl
c12f3803 40dnl Revision 1.5 1999/07/16 12:46:04 mdw
41dnl First proper release version.
42dnl
de50c780 43dnl Revision 1.3 1999/06/18 18:59:39 mdw
44dnl Preliminary work for Perl scripts.
45dnl
b2f455ee 46dnl Revision 1.1.1.1 1999/06/02 16:53:33 mdw
47dnl Initial import.
3315e8b3 48dnl
49
50dnl --- Boring boilerplate ---
51
52AC_INIT(src/sw.c)
37baafc2 53AM_INIT_AUTOMAKE(sw-tools, 1.0.1)
3315e8b3 54AM_CONFIG_HEADER(config.h)
55
56dnl --- Work out the architecture name ---
57
58AC_MSG_CHECKING([architecture name])
59arch=`$srcdir/sw.in --archname`
60AC_MSG_RESULT($arch)
61AC_DEFINE_UNQUOTED(ARCH, "$arch")
62AC_SUBST(arch)
63
64dnl --- Set up the C compiler ---
65
66AC_PROG_CC
67mdw_GCC_FLAGS
68
de50c780 69dnl --- Find a Perl ---
70
71mdw_PROG_PERL(5.003)
72mdw_CHECK_PERL(5.003)
73
3315e8b3 74dnl --- Find an appropriate remote shell program ---
75
76AC_ARG_WITH(rsh,
77[ --with-rsh=PROGRAM use PROGRAM to start remote shells],
78[RSH=$withval])
79AC_PATH_PROGS(RSH, $RSH remsh rsh ssh, rsh)
80AC_DEFINE_UNQUOTED(RSH, "$RSH")
81
22c1e3f5 82dnl --- Various simple tests ---
3315e8b3 83
22c1e3f5 84AC_CHECK_HEADERS(unistd.h)
85mdw_DECL_ENVIRON
3315e8b3 86AC_TYPE_PID_T
87AC_TYPE_SIZE_T
88AC_TYPE_UID_T
22c1e3f5 89mdw_TYPE_SSIZE_T
90AC_CHECK_FUNCS(strsignal _sys_siglist, break)
91mdw_CURSES
92mdw_CHECK_MANYLIBS(socketpair, socket)
3315e8b3 93
94dnl --- Write in some useful paths ---
95
96mdw_prefix=$prefix mdw_exec_prefix=$exec_prefix
97transform=`echo "$program_transform_name"|sed 's,\\\\\\\\,\\\\,g; s,\\$\\$,$,g'`
98test "$prefix" = "NONE" && prefix=$ac_default_prefix
99test "$exec_prefix" = "NONE" && exec_prefix=$prefix
100SW=`echo sw|sed "$transform"`
101AC_SUBST(SW)
102AC_DEFINE_UNQUOTED(PREFIX, "$mdw_prefix")
103AC_DEFINE_UNQUOTED(BINDIR, "`eval echo $bindir`")
104AC_DEFINE_UNQUOTED(DATADIR, "`eval echo $datadir`")
105AC_DEFINE_UNQUOTED(SW, "$SW")
de50c780 106pkgdatadir="`eval echo $datadir/sw`"
107AC_SUBST(pkgdatadir)
3315e8b3 108prefix=$mdw_prefix exec_prefix=$mdw_exec_prefix
109
110dnl --- Output the configuration ---
111
112AC_CONFIG_SUBDIRS(mLib)
0e0feb0b 113AC_OUTPUT(dnl
114 Makefile src/Makefile perl/Makefile dnl
115 perl/SWConfig.pm perl/sw perl/sw-tidy dnl
116 sw sw-share dnl
117)
3315e8b3 118
119dnl ----- That's all, folks -------------------------------------------------