Ticket #57039: patch-autogen.sh.diff

File patch-autogen.sh.diff, 727 bytes (added by xstnztk (Martin Jerabek), 6 years ago)

Patch fixing the autogen.sh script to use command -v instead of which to determine if a command is present.

  • autogen.sh

    old new  
    77olddir=`pwd`
    88cd "$srcdir"
    99
    10 GTKDOCIZE=$(which gtkdocize 2>/dev/null)
    11 if test -z $GTKDOCIZE; then
     10GTKDOCIZE="$(command -v gtkdocize)"
     11if test -z "$GTKDOCIZE"; then
    1212        echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation."
    1313        rm -f gtk-doc.make
    1414        cat > gtk-doc.make <<EOF
     
    1919        gtkdocize || exit $?
    2020fi
    2121
    22 AUTORECONF=`which autoreconf`
    23 if test -z $AUTORECONF; then
     22AUTORECONF="$(command -v autoreconf)"
     23if test -z "$AUTORECONF"; then
    2424        echo "*** No autoreconf found, please install it ***"
    2525        exit 1
    2626fi