summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: a2f799fe1239b546eb99064d64381466f2305a77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

# a silly hack that generates autoregen.sh but it's handy
echo "#!/bin/sh" > autoregen.sh
echo "./autogen.sh $@ \$@" >> autoregen.sh
chmod +x autoregen.sh

mkdir -p m4

test -n "$srcdir" || srcdir=$(dirname "$0")
test -n "$srcdir" || srcdir=.
(
  cd "$srcdir" &&
  AUTOPOINT='intltoolize --automake -c -f' autoreconf -fivm
) || exit
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"