PageRenderTime 21ms CodeModel.GetById 16ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/crypto/heimdal/cf/with-all.m4

https://bitbucket.org/freebsd/freebsd-head/
m4 | 42 lines | 37 code | 5 blank | 0 comment | 0 complexity | 12d4d62f0d150fba9780791e84966599 MD5 | raw file
 1dnl
 2dnl $Id: with-all.m4 14147 2004-08-25 14:14:01Z joda $
 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])