2 dnl $Heimdal: with-all.m4 14147 2004-08-25 14:14:01Z joda $
8 AC_DEFUN([AC_WITH_ALL], [
10 AS_HELP_STRING([--with-$1=dir],
14 AS_HELP_STRING([--with-$1-lib=dir],
15 [use $1 libraries in dir]),
16 [if test "$withval" = "yes" -o "$withval" = "no"; then
17 AC_MSG_ERROR([No argument for --with-$1-lib])
18 elif test "X$with_$1" = "X"; then
22 AC_ARG_WITH($1-include,
23 AS_HELP_STRING([--with-$1-include=dir],
24 [use $1 headers in dir]),
25 [if test "$withval" = "yes" -o "$withval" = "no"; then
26 AC_MSG_ERROR([No argument for --with-$1-include])
27 elif test "X$with_$1" = "X"; then
35 *) if test "$with_$1_include" = ""; then
36 with_$1_include="$with_$1/include"
38 if test "$with_$1_lib" = ""; then
39 with_$1_lib="$with_$1/lib$abilibdirext"