]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/ntp/acinclude.m4
This commit was generated by cvs2svn to compensate for changes in r171366,
[FreeBSD/FreeBSD.git] / contrib / ntp / acinclude.m4
1 AC_DEFUN(hs_ULONG_CONST,
2 [ AH_TEMPLATE(ULONG_CONST, [How do we create unsigned long constants?])
3 AC_EGREP_CPP(Circus,
4  [#define ACAT(a,b)a ## b
5 ACAT(Cir,cus)
6 ], AC_DEFINE([ULONG_CONST(a)], [a ## UL]),
7     AC_EGREP_CPP(Reiser,
8 [#define RCAT(a,b)a/**/b
9 RCAT(Rei,ser)
10 ], AC_DEFINE([ULONG_CONST(a)], [a/**/L]),
11     AC_MSG_ERROR([How do we create an unsigned long constant?])))])
12 dnl @synopsis AC_DEFINE_DIR(VARNAME, DIR [, DESCRIPTION])
13 dnl
14 dnl This macro defines (with AC_DEFINE) VARNAME to the expansion of the DIR
15 dnl variable, taking care of fixing up ${prefix} and such.
16 dnl
17 dnl Note that the 3 argument form is only supported with autoconf 2.13 and
18 dnl later (i.e. only where AC_DEFINE supports 3 arguments).
19 dnl
20 dnl Examples:
21 dnl
22 dnl    AC_DEFINE_DIR(DATADIR, datadir)
23 dnl    AC_DEFINE_DIR(PROG_PATH, bindir, [Location of installed binaries])
24 dnl
25 dnl @version $Id: acinclude.m4,v 1.3 2000/08/04 03:26:22 stenn Exp $
26 dnl @author Alexandre Oliva <oliva@lsd.ic.unicamp.br>
27
28 AC_DEFUN(AC_DEFINE_DIR, [
29         ac_expanded=`(
30             test "x$prefix" = xNONE && prefix="$ac_default_prefix"
31             test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
32             eval echo \""[$]$2"\"
33         )`
34         ifelse($3, ,
35           AC_DEFINE_UNQUOTED($1, "$ac_expanded"),
36           AC_DEFINE_UNQUOTED($1, "$ac_expanded", $3))
37 ])