• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2
3AUTORECONF=$(which autoreconf 2>/dev/null)
4if test $? -ne 0; then
5  echo "No 'autoreconf' found. You must install the autoconf package."
6  exit 1
7fi
8
9GIT=$(which git 2>/dev/null)
10if test $? -ne 0; then
11  echo "No 'git' found. You must install the git package."
12  exit 1
13fi
14
15#  create m4 before gtkdocize
16mkdir -p m4 2>/dev/null
17
18GTKDOCIZE=$(which gtkdocize 2>/dev/null)
19if test $? -ne 0; then
20  echo "No gtk-doc support found. You can't build the docs."
21  # rm because gtk-doc.make might be a link to a protected file
22  rm -f gtk-doc.make 2>/dev/null
23  echo "EXTRA_DIST =" >gtk-doc.make
24  echo "CLEANFILES =" >>gtk-doc.make
25  GTKDOCIZE=""
26else
27  $GTKDOCIZE
28fi
29
30$GIT submodule init
31$GIT submodule update
32$AUTORECONF --install --force --symlink
33
34echo
35echo "----------------------------------------------------------------"
36echo "Initialized build system. For a common configuration please run:"
37echo "----------------------------------------------------------------"
38echo
39if test -z $GTKDOCIZE; then
40  echo "./configure"
41else
42  echo "./configure --enable-gtk-doc"
43fi
44echo
45