|
Last change
on this file since f27baf was 5d30c1, checked in by Frederik Heber <heber@…>, 13 years ago |
|
Initial commit based on 3.0.0alpha (here claimed as 2.4).
|
-
Property mode
set to
100644
|
|
File size:
943 bytes
|
| Line | |
|---|
| 1 | dnl @synopsis AC_DEFINE_DIR(VARNAME, DIR [, DESCRIPTION])
|
|---|
| 2 | dnl
|
|---|
| 3 | dnl This macro _AC_DEFINEs VARNAME to the expansion of the DIR
|
|---|
| 4 | dnl variable, taking care of fixing up ${prefix} and such.
|
|---|
| 5 | dnl
|
|---|
| 6 | dnl Note that the 3 argument form is only supported with autoconf 2.13 and
|
|---|
| 7 | dnl later (i.e. only where _AC_DEFINE supports 3 arguments).
|
|---|
| 8 | dnl
|
|---|
| 9 | dnl Examples:
|
|---|
| 10 | dnl
|
|---|
| 11 | dnl AC_DEFINE_DIR(DATADIR, datadir)
|
|---|
| 12 | dnl AC_DEFINE_DIR(PROG_PATH, bindir, [Location of installed binaries])
|
|---|
| 13 | dnl
|
|---|
| 14 | dnl @version $Id: acinclude.m4,v 1.3 2003/02/06 01:02:12 cljanss Exp $
|
|---|
| 15 | dnl @author Guido Draheim <guidod@gmx.de>, original by Alexandre Oliva
|
|---|
| 16 |
|
|---|
| 17 | AC_DEFUN([AC_DEFINE_DIR], [
|
|---|
| 18 | test "x$prefix" = xNONE && prefix="$ac_default_prefix"
|
|---|
| 19 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|---|
| 20 | ac_define_dir=`eval echo [$]$2`
|
|---|
| 21 | ac_define_dir=`eval echo [$]ac_define_dir`
|
|---|
| 22 | ifelse($3, ,
|
|---|
| 23 | AC_DEFINE_UNQUOTED($1, "$ac_define_dir"),
|
|---|
| 24 | AC_DEFINE_UNQUOTED($1, "$ac_define_dir", $3))
|
|---|
| 25 | ])
|
|---|
| 26 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.