Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • release/202005
  • release/202001
  • release/201912
  • release/201911
  • release/releaseWindowsTestOne
  • release/windowsReleaseTest
  • release/releaseTest
  • release/releaseWindowsTest
  • release/201910
  • release/qt/201910
  • release/windows-test/201910
  • release/201908
  • release/201906
  • release/201905
  • release/201904
  • release/201903
  • release/201902
  • release/201901
  • release/201812
  • 4.0.0
  • 2.2.0
  • 2.1.0
  • 2.0.1
  • 2.0.0
  • 1.4.1
  • 1.4.0
  • 1.3.0
  • 1.2.0
  • 1.1.0
30 results

autogen.sh

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    autogen.sh 1.06 KiB
    #!/usr/bin/env bash
    
    AUTORECONF=`which autoreconf`
    if test -z $AUTORECONF; then
            echo "*** No autoreconf found, please install it ***"
            exit 1
    fi
    
    if !"${PKG_CONFIG:-pkg-config}" --version >/dev/null 2>&1; then
        echo "*** No pkg-config found, please install it ***"
        # warn without exiting, since pkg-config is only needed
        # by configure, not autogen.sh
    fi
    
    LIBTOOLIZE=`which libtoolize || which glibtoolize`
    if test -z $LIBTOOLIZE; then
        LIBTOOLIZE=`which glibtoolize`
        if test -z $LIBTOOLIZE; then
            echo "*** No libtool found, please install it ***"
            exit 1
        fi
    fi
    
    # Workaround for http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565663
    mkdir -p m4
    
    HOOKS_DIR=".git/hooks"
    # install pre-commit hook for doing clean commits
    if [ -d "$HOOKS_DIR" ];
    then
        pushd ${HOOKS_DIR}
        if test ! \( -x pre-commit -a -L pre-commit \);
        then
            echo "Creating symbolic link for pre-commit hook..."
            rm -f pre-commit
            ln -s pre-commit.sample pre-commit
        fi
        popd
    fi
    
    autoreconf --force --install --verbose -Wall -I m4