Debian Codegraph @

m4/expand.m4

raw
1 # From https://github.com/kakaroto/e17/blob/master/BINDINGS/javascript/elixir/m4/ac_expand_dir.m4
2 # By Alexandre Oliva <[email protected]>
3
4 # AC_EXPAND_DIR(VARNAME, DIR)
5 # ------------------------------------------------------------
6 # Expands occurrences of ${prefix} and ${exec_prefix} in the
7 # given DIR, and assigns the resulting string to VARNAME
8 #
9 # Example: AC_DEFINE_DIR(DATADIR, "$datadir")
10 AC_DEFUN([AC_EXPAND_DIR], [
11 $1=$2
12 $1=`(
13 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15 eval echo \""[$]$1"\"
16 )`
17 ])