Do not pre-expand localedir as substituted in the makefile, so that 'make

install prefix=elsewhere' works.
This commit is contained in:
Peter Eisentraut 2001-08-06 15:46:44 +00:00
parent 4e75fcb80c
commit 5558e15ce5
2 changed files with 221 additions and 219 deletions

View file

@ -1,4 +1,4 @@
# $Header: /cvsroot/pgsql/config/programs.m4,v 1.5 2001/06/02 18:25:16 petere Exp $
# $Header: /cvsroot/pgsql/config/programs.m4,v 1.6 2001/08/06 15:46:44 petere Exp $
# PGAC_PATH_FLEX
@ -120,13 +120,14 @@ dnl FIXME: We should probably check for version >=0.10.36.
AC_CHECK_PROGS(XGETTEXT, xgettext)
# Note: share/locale is always the default, independent of $datadir
localedir='${prefix}/share/locale'
if test x"$prefix" = x"NONE"; then
localedir="$ac_default_prefix/share/locale"
exp_localedir="$ac_default_prefix/share/locale"
else
localedir="$prefix/share/locale"
exp_localedir="$prefix/share/locale"
fi
AC_SUBST(localedir)
AC_DEFINE_UNQUOTED(LOCALEDIR, ["$localedir"],
AC_DEFINE_UNQUOTED(LOCALEDIR, ["$exp_localedir"],
[location of locale files])
])# PGAC_CHECK_GETTEXT

431
configure vendored

File diff suppressed because it is too large Load diff