mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05: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 098fb87065e2c69f4f9ef65d16901e336a72b789.
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…
x
Reference in New Issue
Block a user