source: heimdal/trunk/cf/with-all.m4@ 4

Last change on this file since 4 was 1, checked in by Paul Smedley, 10 years ago

Initial commit of Heimdal 1.5.3

File size: 850 bytes
Line 
1dnl
2dnl $Id$
3dnl
4
5dnl AC_WITH_ALL(name)
6
7AC_DEFUN([AC_WITH_ALL], [
8AC_ARG_WITH($1,
9 AS_HELP_STRING([--with-$1=dir],
10 [use $1 in dir]))
11
12AC_ARG_WITH($1-lib,
13 AS_HELP_STRING([--with-$1-lib=dir],
14 [use $1 libraries in dir]),
15[if test "$withval" = "yes" -o "$withval" = "no"; then
16 AC_MSG_ERROR([No argument for --with-$1-lib])
17elif test "X$with_$1" = "X"; then
18 with_$1=yes
19fi])
20
21AC_ARG_WITH($1-include,
22 AS_HELP_STRING([--with-$1-include=dir],
23 [use $1 headers in dir]),
24[if test "$withval" = "yes" -o "$withval" = "no"; then
25 AC_MSG_ERROR([No argument for --with-$1-include])
26elif test "X$with_$1" = "X"; then
27 with_$1=yes
28fi])
29
30case "$with_$1" in
31yes) ;;
32no) ;;
33"") ;;
34*) if test "$with_$1_include" = ""; then
35 with_$1_include="$with_$1/include"
36 fi
37 if test "$with_$1_lib" = ""; then
38 with_$1_lib="$with_$1/lib$abilibdirext"
39 fi
40 ;;
41esac
42])
Note: See TracBrowser for help on using the repository browser.