X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=configure;h=2e1f1232791dc1c1680e0cb2f089c113b407c0ee;hb=5c87606b67fe75e740305a8c7455cda5aa748f36;hp=7290f16064350247dfa4d2d5f2fcbba096a9bf2b;hpb=0f71d26e346631862bc00473662e674df3faa57f;p=pkg%2Fabook.git diff --git a/configure b/configure index 7290f16..2e1f123 100755 --- a/configure +++ b/configure @@ -10189,7 +10189,15 @@ _ACEOF -localedir="$ac_default_prefix/share/locale" + + + + abook_localedir="$datadir/locale" + abook_localedir=`( test "x$prefix" = xNONE && prefix="$ac_default_prefix" + eval echo \""$abook_localedir"\" )` + +localedir="\$(datadir)/locale" + # Check whether --with-localedir or --without-localedir was given. if test "${with_localedir+set}" = set; then @@ -10197,13 +10205,13 @@ if test "${with_localedir+set}" = set; then fi; if test "x$with_localedir" != "x"; then + abook_localedir="$with_localedir" localedir="$with_localedir" -elif test "x${prefix}" != "xNONE"; then - localedir="$prefix/share/locale" fi + cat >>confdefs.h <<_ACEOF -#define LOCALEDIR "$localedir" +#define LOCALEDIR "$abook_localedir" _ACEOF