Add missing libraries to examples' Makefiles
[dockapps.git] / wmbatteries / acinclude.m4
blob7ddd15dc58886aa861c8d7b9e8b3de104c70e583
1 #!/bin/sh
3 # $Id: acinclude.m4,v 1.1.1.1 2003/09/15 14:21:33 onkelflo Exp $
5 dnl
6 dnl DA_CHECK_LIB(NAME, FUNCTION, EXTRALIBS)
7 dnl
8 AC_DEFUN(DA_CHECK_LIB,
10 LDFLAGS_old="$LDFLAGS"
11 LDFLAGS="$LDFLAGS $lib_search_path"
12 AC_CHECK_LIB([$1],[$2],yes=yes,no=no,[$3])
13 LDFLAGS="$LDFLAGS_old"
17 dnl
18 dnl DA_CHECK_HEADER(NAME)
19 dnl
20 AC_DEFUN(DA_CHECK_HEADER,
22 CPPFLAGS_old="$CPPFLAGS"
23 CPPFLAGS="$CPPFLAGS $inc_search_path"
24 AC_CHECK_HEADER([$1])
25 CPPFLAGS="$CPPFLAGS_old"