mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-28 03:06:20 -04:00
Fix expansion when setting LOCALEDIR
Use the localedir variable so configure's --localedir option is
honoured. Expand the variable twice to first expand the datadir
and then the prefix variable referenced by datadir.
Noticed by Witold, who also made a similar fix (modulo --localedir)
in elinks-0.12 098fb87065
.
This commit is contained in:
parent
504eb26ae5
commit
e1d82ba441
@ -1275,7 +1275,9 @@ AC_DEFINE_UNQUOTED(CONFDIR, "$CONFDIR", [Directory containing default config])
|
||||
AC_SUBST(CONFDIR)
|
||||
|
||||
# Create LOCALEDIR #define for config.h
|
||||
LOCALEDIR=`eval echo "$datadir/locale"`
|
||||
test -z "$localedir" && localedir="$datadir/locale"
|
||||
localedir0=`eval echo "$localedir"`
|
||||
LOCALEDIR=`eval echo "$localedir0"`
|
||||
AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR", [Directory containing locales])
|
||||
AC_SUBST(LOCALEDIR)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user