gparted/autogen.sh
Mike Fleetwood fdc0f3b391 Remove deprecated USE_GNOME2_MACROS from autogen.sh
Use of USE_GNOME2_MACROS is deprecated in GNOME 3 and produced this
warning:

    $ ./autogen.sh
    /usr/bin/gnome-autogen.sh
    ...
    ***Warning*** USE_GNOME2_MACROS is deprecated, you may remove it from autogen.sh
    ...

It's use appears to have been removed first from GNOME 2.8 with this
commit from 2004:

    https://git.gnome.org/browse/gnome-common/commit/?id=ea9e85851445efa0135c3f8d08c3d1ea53760d91
    delete some files that were unused after the reorganisation

The oldest supported distribution is RHEL / CentOS 6 which is using
gnome-common-2.28.0 from 2009.  Therefore unconditionally remove the
USE_GNOME2_MACROS setting.

Also confirmed that it makes no difference by running ./autogen.sh with
and without USE_GNOME2_MACROS being set.  The produced GParted build
trees were the same.  Therefore the release and executable can't be
affected.
2018-02-08 21:58:51 +00:00

44 lines
1.2 KiB
Bash
Executable file

#!/bin/sh
# autogen.sh - Run this to generate all the initial makefiles, etc.
#
# Copyright (C) 2004 Bart 'plors' Hakvoort
# Copyright (C) 2008 Curtis Gedak
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="gparted"
which gnome-autogen.sh || {
echo "You need to install gnome-common"
exit 1
}
# Ensure that m4 directory exists
if ! test -d $srcdir/m4; then
mkdir $srcdir/m4
fi
# Check for GNOME-DOC-UTILS
GDUMAKE="gnome-doc-utils.make"
datadir=`pkg-config --variable=datadir gnome-doc-utils`
GDUMAKEFULLPATH="$datadir/gnome-doc-utils/$GDUMAKE"
if test "X$datadir" = 'X' || ! test -f "${GDUMAKEFULLPATH}" ; then
echo "Cannot find file: $GDUMAKE"
echo "You need to install gnome-doc-utils"
exit 1
fi
# Ensure a copy of gnome-doc-utils.make exists in the top source directory
test -e $srcdir/$GDUMAKE || {
echo "Copying $GDUMAKEFULLPATH to $srcdir"
cp -p $GDUMAKEFULLPATH $srcdir
}
REQUIRED_AUTOMAKE_VERSION=1.9 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh