|
Revision 1:d03d67d05dcf, 0.6 kB
(checked in by Daniel Burrows <dburrows@…>, 5 years ago)
|
|
[aptitude @ Import the Subversion repository into darcs.]
|
| Line | |
|---|
| 1 | dnl FC_EXPAND_DIR(VARNAME, DIR) |
|---|
| 2 | dnl expands occurrences of ${prefix} and ${exec_prefix} in the given DIR, |
|---|
| 3 | dnl and assigns the resulting string to VARNAME |
|---|
| 4 | dnl example: FC_EXPAND_DIR(LOCALEDIR, "$datadir/locale") |
|---|
| 5 | dnl eg, then: AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR") |
|---|
| 6 | dnl by Alexandre Oliva |
|---|
| 7 | dnl from http://www.cygnus.com/ml/automake/1998-Aug/0040.html |
|---|
| 8 | AC_DEFUN([FC_EXPAND_DIR], [ |
|---|
| 9 | $1=$2 |
|---|
| 10 | $1=`( |
|---|
| 11 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" |
|---|
| 12 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" |
|---|
| 13 | eval echo \""[$]$1"\" |
|---|
| 14 | )` |
|---|
| 15 | ]) |
|---|