annotate lib/swig/swigwin-2.0.11/Tools/config/ac_define_dir.m4 @ 2408:4bb0b96cec90

Слияние
author Ritor1
date Mon, 14 Jul 2014 18:09:42 +0600
parents b3009adc0e2f
children
rev   line source
1899
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1 dnl @synopsis AC_DEFINE_DIR(VARNAME, DIR [, DESCRIPTION])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
2 dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
3 dnl This macro sets VARNAME to the expansion of the DIR variable,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
4 dnl taking care of fixing up ${prefix} and such.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
5 dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
6 dnl VARNAME is then offered as both an output variable and a C
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
7 dnl preprocessor symbol.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
8 dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
9 dnl Example:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
10 dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
11 dnl AC_DEFINE_DIR([DATADIR], [datadir], [Where data are placed to.])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
12 dnl
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
13 dnl @category Misc
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
14 dnl @author Stepan Kasal <kasal@ucw.cz>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
15 dnl @author Andreas Schwab <schwab@suse.de>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
16 dnl @author Guido Draheim <guidod@gmx.de>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
17 dnl @author Alexandre Oliva
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
18 dnl @version 2005-07-29
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
19 dnl @license AllPermissive
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
20
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
21 AC_DEFUN([AC_DEFINE_DIR], [
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
22 prefix_NONE=
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
23 exec_prefix_NONE=
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
24 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
25 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
26 dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in turn
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
27 dnl refers to ${prefix}. Thus we have to use `eval' twice.
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
28 eval ac_define_dir="\"[$]$2\""
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
29 eval ac_define_dir="\"$ac_define_dir\""
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
30 AC_SUBST($1, "$ac_define_dir")
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
31 AC_DEFINE_UNQUOTED($1, "$ac_define_dir", [$3])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
32 test "$prefix_NONE" && prefix=NONE
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
33 test "$exec_prefix_NONE" && exec_prefix=NONE
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
34 ])
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
35