X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=config%2Fautorun.sh;h=4785b9fccab1d95e75873d89bf0f06b82ab393b9;hb=75bbebb7976acf3cbfdf1525599180cf49e67f56;hp=2e0d839f779d6ab50b5bc3195d64b37a81f5bd3b;hpb=4a7112e5a33198d533a88446f430c33f12391c24;p=m6w6%2Flibmemcached diff --git a/config/autorun.sh b/config/autorun.sh index 2e0d839f..4785b9fc 100755 --- a/config/autorun.sh +++ b/config/autorun.sh @@ -35,6 +35,18 @@ locate_binary() { return 1 } + +if test -f config/pre_hook.sh +then + . config/pre_hook.sh +fi + +# We need to some file here for the m4_sinclude, even if it's just empty +if test ! -f config/plugin.ac +then + touch config/plugin.ac +fi + # Try to detect the supported binaries if the user didn't # override that by pushing the environment variable if test x$LIBTOOLIZE = x; then @@ -45,14 +57,14 @@ if test x$LIBTOOLIZE = x; then fi if test x$ACLOCAL = x; then - ACLOCAL=`locate_binary aclocal-1.10 aclocal-1.9 aclocal19 aclocal` + ACLOCAL=`locate_binary aclocal-1.11 aclocal-1.10 aclocal-1.9 aclocal19 aclocal` if test x$ACLOCAL = x; then die "Did not find a supported aclocal" fi fi if test x$AUTOMAKE = x; then - AUTOMAKE=`locate_binary automake-1.10 automake-1.9 automake19 automake` + AUTOMAKE=`locate_binary automake-1.11 automake-1.10 automake-1.9 automake19 automake` if test x$AUTOMAKE = x; then die "Did not find a supported automake" fi @@ -78,6 +90,11 @@ run $AUTOHEADER || die "Can't execute autoheader" run $AUTOMAKE $AUTOMAKE_FLAGS || die "Can't execute automake" run $AUTOCONF || die "Can't execute autoconf" +if test -f config/post_hook.sh +then + . config/post_hook.sh +fi + echo "---" echo "Configured with the following tools:" echo " * `$LIBTOOLIZE --version | head -1`"