aboutsummaryrefslogtreecommitdiffstats
path: root/src/autogen.sh
blob: e2887bf2ad37cdd0d676533a15f10aea539c52eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
rm -rf autom4te.cache
AUTOGEN_TARGET=${AUTOGEN_TARGET-configure:config.h.in}
set -e
case :$AUTOGEN_TARGET: in
*:configure:*)
    automake_libdir=`automake --print-libdir`
    [ -e config.guess ] || cp $automake_libdir/config.guess .
    [ -e config.sub ] || cp $automake_libdir/config.sub .
    [ -e install-sh ] || cp $automake_libdir/install-sh .
    autoconf
    # autoconf only updates the timestamp if the output actually changed.
    # The target's timestamp must be updated or make is confused
    touch configure
    ;;
esac
case :$AUTOGEN_TARGET: in
*:config.h.in:*)
    autoheader
    # autoheader only updates the timestamp if the output actually changed.
    # The target's timestamp must be updated or make is confused
    touch config.h.in
    ;;
esac
bues.ch cgit interface