5 # Run this to generate all the initial makefiles, etc.
7 # This file has been generated from common/autogen.sh.in via common/update-autogen
10 test -n "$srcdir" || srcdir=`dirname "$0"`
11 test -n "$srcdir" || srcdir=.
17 srcfile=gstreamer.doap
19 # Make sure we have common
20 if test ! -f common/gst-autogen.sh;
22 echo "+ Setting up common submodule"
27 # source helper functions
28 if test ! -f common/gst-autogen.sh;
30 echo There is something wrong with your source tree.
31 echo You are missing common/gst-autogen.sh
34 . common/gst-autogen.sh
36 # install pre-commit hook for doing clean commits
37 if test ! \( -x .git/hooks/pre-commit -a -L .git/hooks/pre-commit \);
39 rm -f .git/hooks/pre-commit
40 if ! ln -s ../../common/hooks/pre-commit.hook .git/hooks/pre-commit 2> /dev/null
42 echo "Failed to create commit hook symlink, copying instead ..."
43 cp common/hooks/pre-commit.hook .git/hooks/pre-commit
47 # GNU gettext automake support doesn't get along with git.
48 # https://bugzilla.gnome.org/show_bug.cgi?id=661128
50 touch -t 200001010000 po/gstreamer-1.0.pot
53 CONFIGURE_DEF_OPT='--enable-maintainer-mode --enable-gtk-doc'
55 if test "x$package" = "xgstreamer"; then
56 CONFIGURE_DEF_OPT="$CONFIGURE_DEF_OPT --enable-docbook --enable-failing-tests --enable-poisoning"
61 printf "+ check for build tools"
62 if test -z "$NOCHECK"; then
65 printf " checking for autoreconf ... "
67 which "autoreconf" 2>/dev/null || {
68 echo "not found! Please install the autoconf package."
72 printf " checking for pkg-config ... "
74 which "pkg-config" 2>/dev/null || {
75 echo "not found! Please install pkg-config."
79 echo ": skipped version checks"
82 # if no arguments specified then this will be printed
83 if test -z "$*" && test -z "$NOCONFIGURE"; then
84 echo "+ checking for autogen.sh options"
85 echo " This autogen script will automatically run ./configure as:"
86 echo " ./configure $CONFIGURE_DEF_OPT"
87 echo " To pass any additional options, please specify them on the $0"
91 toplevel_check $srcfile
94 if test -d po && grep ^AM_GNU_GETTEXT_VERSION configure.ac >/dev/null ; then
95 tool_run "autopoint" "--force"
99 if test -f acinclude.m4; then rm acinclude.m4; fi
101 autoreconf --force --install || exit 1
103 test -n "$NOCONFIGURE" && {
104 echo "+ skipping configure stage for package $package, as requested."
105 echo "+ autogen.sh done."
111 echo "+ running configure ... "
112 test ! -z "$CONFIGURE_DEF_OPT" && echo " default flags: $CONFIGURE_DEF_OPT"
113 test ! -z "$CONFIGURE_EXT_OPT" && echo " external flags: $CONFIGURE_EXT_OPT"
116 echo "$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT
117 "$srcdir/configure" $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT || {
118 echo " configure failed"
122 echo "Now type 'make' to compile $package."