Add some file or other.
[become] / aclocal.m4
CommitLineData
8ddbfc62 1dnl -*-fundamental-*-
2dnl
03f996bd 3dnl $Id: aclocal.m4,v 1.2 1997/08/04 10:24:19 mdw Exp $
8ddbfc62 4dnl
5dnl Configuration macros for `become'
6dnl
7dnl (c) 1997 Mark Wooding
8dnl
9
10dnl----- Licensing notice ---------------------------------------------------
11dnl
12dnl This file is part of `become'
13dnl
14dnl `Become' 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 `Become' 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 `become'; 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: aclocal.m4,v $
03f996bd 31dnl Revision 1.2 1997/08/04 10:24:19 mdw
8ddbfc62 32dnl Sources placed under CVS control.
33dnl
34
35dnl MDW_CHECK_MANYLIBS(FUNC, LIBS, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
36dnl
37dnl Tries to find FUNC in one of the space-separated libraries given in LIBS.
38dnl The first one to match is added to the LIBS variable.
39
40AC_DEFUN(MDW_CHECK_MANYLIBS,[
41AC_CACHE_CHECK([for library containing $1], [mdw_cv_lib_$1],
42[mdw_save_LIBS="$LIBS"
43mdw_cv_lib_$1="no"
44AC_TRY_LINK(,[$1()], [mdw_cv_lib_$1="none required"])
45test "$mdw_cv_lib_$1" = "no" && for i in $2; do
46LIBS="-l$i $mdw_save_LIBS"
47AC_TRY_LINK(,[$1()],
48[mdw_cv_lib_$1="-l$i"
49break])
50done
51LIBS="$mdw_save_LIBS"])
52if test "$mdw_cv_lib_$1" != "no"; then
53 test "$mdw_cv_lib_$1" = "none required" || LIBS="$mdw_cv_lib_$1 $LIBS"
54 $3
55else
56 :
57 $4
58fi])
59
60dnl----- That's all, folks --------------------------------------------------