From 19ad1353bee6d61f1854ab26a6c3de07e6d38ec2 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 27 Feb 2015 10:38:25 +0100 Subject: [PATCH] config.site: take AC_PREFIX_DEFAULT into account Resolves: rhbz#1196340 Version: 2.69-17 --- autoconf.spec | 6 +++++- config.site | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/autoconf.spec b/autoconf.spec index 59018a5..201054a 100644 --- a/autoconf.spec +++ b/autoconf.spec @@ -1,7 +1,7 @@ Summary: A GNU tool for automatically configuring source code Name: autoconf Version: 2.69 -Release: 16%{?dist} +Release: 17%{?dist} License: GPLv2+ and GFDL Group: Development/Tools Source0: http://ftpmirror.gnu.org/autoconf/autoconf-%{version}.tar.xz @@ -100,6 +100,10 @@ fi %doc AUTHORS COPYING* ChangeLog NEWS README THANKS TODO %changelog +* Fri Feb 27 2015 Pavel Raiskup - 2.69-17 +- config.site: take AC_PREFIX_DEFAULT([/usr]) into account, by + agruen at kernel.org (rhbz#1196340) + * Wed Nov 12 2014 Pavel Raiskup - 2.69-16 - avoid generating empty man pages for gnuconfig (#1162227) diff --git a/config.site b/config.site index f5d8d70..5bea225 100644 --- a/config.site +++ b/config.site @@ -12,7 +12,9 @@ if test -n "$host"; then return 0 fi -if test "$prefix" = /usr; then +if test "$prefix" = /usr \ + || { test "$prefix" = NONE && test "$ac_default_prefix" = /usr ; } +then test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc test "$sharedstatedir" = '${prefix}/com' && sharedstatedir=/var test "$localstatedir" = '${prefix}/var' && localstatedir=/var