3 dnl $Id: configure.in,v 1.1 1997/07/21 13:47:51 mdw Exp $
5 dnl Source for auto configuration for `become'
7 dnl (c) 1997 Mark Wooding
10 dnl----- Licencing notice ---------------------------------------------------
12 dnl This file is part of `become'
14 dnl `Become' is free software; you can redistribute it and/or modify
15 dnl it under the terms of the GNU General Public License as published by
16 dnl the Free Software Foundation; either version 2 of the License, or
17 dnl (at your option) any later version.
19 dnl `Become' is distributed in the hope that it will be useful,
20 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
21 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 dnl GNU General Public License for more details.
24 dnl You should have received a copy of the GNU General Public License
25 dnl along with `become'; if not, write to the Free Software
26 dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 dnl----- Revision history ---------------------------------------------------
30 dnl $Log: configure.in,v $
31 dnl Revision 1.1 1997/07/21 13:47:51 mdw
36 AC_CONFIG_HEADER(config.h)
37 VERSION=1.1 AC_SUBST(VERSION)
38 AC_DEFINE(VERSION, "1.1 (22 February 1997)")
40 dnl --- Check for compilers and things ---
45 AC_CHECK_PROG(AR, ar, ar)
48 if test "$ac_cv_prog_gcc" = "yes"; then
49 CFLAGS="$CFLAGS -pedantic -Wall"
54 AC_CHECK_LIB(socket, socket)
62 dnl --- Check on endianness ---
66 dnl --- Check on type sizes ---
70 dnl --- Set the path separator ---
72 AC_DEFINE(PATHSEP, '/')
74 dnl --- Debugging stuff ---
76 AC_ARG_ENABLE(debugging,
77 [--enable-debugging spews vast swathes of useless information],
78 [if test "$enableval" = "no"; then
83 dnl --- Yell^H^H^H^HNetwork Information System ---
86 [--enable-yp read user names using ypcat],
87 [if test "$enableval" != "no"; then
92 dnl --- Define where things get put ---
94 mdw_save_prefix="$prefix"
95 test "x$prefix" = "xNONE" && prefix="$ac_default_prefix"
96 AC_DEFINE_UNQUOTED(ETCDIR, "`eval echo ${sysconfdir}`")
97 prefix="$mdw_save_prefix"
103 dnl----- That's all, folks --------------------------------------------------