]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
First try autotools then cmake
authorOndřej Surý <ondrej@sury.org>
Wed, 13 May 2015 09:50:55 +0000 (11:50 +0200)
committerOndřej Surý <ondrej@sury.org>
Wed, 13 May 2015 09:50:55 +0000 (11:50 +0200)
scripts/bootstrap-depends.sh

index c2eaebce67df3868ffe90393cd01dfbc3750e7e6..4df95363cc5009403ae5b2c7843d5d13a4b3bb95 100755 (executable)
@@ -46,18 +46,18 @@ function fetch_pkg {
 }
 
 function build_pkg {
-       if [ -f CMakeLists.txt ]; then
-               [ -e cmake-build ] && rm -rf cmake-build; mkdir cmake-build; cd cmake-build
-               cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} ..
-               make ${MAKEOPTS}
-               make install
-       elif [ -f configure.ac ]; then
+       if [ -f configure.ac ]; then
                if [ ! -e ./configure ]; then
                        [ -e autogen.sh ] && sh autogen.sh || autoreconf -if
                fi
                ./configure --prefix=${PREFIX} --enable-shared $*
                make ${MAKEOPTS}
                make install
+       elif [ -f CMakeLists.txt ]; then
+               [ -e cmake-build ] && rm -rf cmake-build; mkdir cmake-build; cd cmake-build
+               cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} ..
+               make ${MAKEOPTS}
+               make install
        else
                make $*
        fi