source: trunk/third/gstreamer/autogen.sh @ 21448

Revision 21448, 3.2 KB checked in by ghudson, 19 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21447, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2# Run this to generate all the initial makefiles, etc.
3
4DIE=0
5package=gstreamer
6srcfile=gst/gst.c
7
8# a quick cvs co to ease the transition
9if test ! -d common; then
10  if test -f CVS/Tag; then
11    # get everything from CVS/Tag from second character on
12    TAG="-r `tail -c +2 CVS/Tag`"
13  fi
14  echo "+ getting common from cvs"; cvs co $TAG common
15fi
16
17# source helper functions
18if test ! -f common/gst-autogen.sh;
19then
20  echo There is something wrong with your source tree.
21  echo You are missing common/gst-autogen.sh
22  exit 1
23fi
24. common/gst-autogen.sh
25
26CONFIGURE_DEF_OPT='--enable-maintainer-mode --enable-plugin-builddir --enable-failing-tests --enable-poisoning'
27
28autogen_options $@
29
30echo -n "+ check for build tools"
31if test ! -z "$NOCHECK"; then echo ": skipped version checks"; else  echo; fi
32version_check "autoconf" "$AUTOCONF autoconf autoconf-2.54 autoconf-2.53 autoconf-2.52" \
33              "ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 52 || DIE=1
34version_check "automake" "$AUTOMAKE automake automake-1.7 automake17 automake-1.6" \
35              "ftp://ftp.gnu.org/pub/gnu/automake/" 1 6 || DIE=1
36version_check "autopoint" "autopoint" \
37              "ftp://ftp.gnu.org/pub/gnu/gettext/" 0 11 5 || DIE=1
38version_check "libtoolize" "libtoolize" \
39              "ftp://ftp.gnu.org/pub/gnu/libtool/" 1 5 0 || DIE=1
40version_check "pkg-config" "" \
41              "http://www.freedesktop.org/software/pkgconfig" 0 8 0 || DIE=1
42
43die_check $DIE
44
45autoconf_2_52d_check || DIE=1
46aclocal_check || DIE=1
47autoheader_check || DIE=1
48
49die_check $DIE
50
51# if no arguments specified then this will be printed
52if test -z "$*"; then
53  echo "+ checking for autogen.sh options"
54  echo "  This autogen script will automatically run ./configure as:"
55  echo "  ./configure $CONFIGURE_DEF_OPT"
56  echo "  To pass any additional options, please specify them on the $0"
57  echo "  command line."
58fi
59
60toplevel_check $srcfile
61
62# autopoint
63#    older autopoint (< 0.12) has a tendency to complain about mkinstalldirs
64if test -x mkinstalldirs; then rm mkinstalldirs; fi
65#    first remove patch if necessary, then run autopoint, then reapply
66if test -f po/Makefile.in.in;
67then
68  patch -p0 -R < common/gettext.patch
69fi
70tool_run "$autopoint" "--force" "patch -p0 < common/gettext.patch"
71patch -p0 < common/gettext.patch
72
73# aclocal
74if test -f acinclude.m4; then rm acinclude.m4; fi
75tool_run "$aclocal" "-I common/m4 $ACLOCAL_FLAGS"
76
77tool_run "$libtoolize" "--copy --force"
78tool_run "$autoheader"
79
80# touch the stamp-h.in build stamp so we don't re-run autoheader in maintainer mode -- wingo
81echo timestamp > stamp-h.in 2> /dev/null
82
83tool_run "$autoconf"
84debug "automake: $automake"
85tool_run "$automake" "--add-missing --copy"
86
87test -n "$NOCONFIGURE" && {
88  echo "skipping configure stage for package $package, as requested."
89  echo "autogen.sh done."
90  exit 0
91}
92
93echo "+ running configure ... "
94test ! -z "$CONFIGURE_DEF_OPT" && echo "  ./configure default flags: $CONFIGURE_DEF_OPT"
95test ! -z "$CONFIGURE_EXT_OPT" && echo "  ./configure external flags: $CONFIGURE_EXT_OPT"
96echo
97
98echo ./configure $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT
99./configure $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT || {
100        echo "  configure failed"
101        exit 1
102}
103
104echo "Now type 'make' to compile $package."
105
Note: See TracBrowser for help on using the repository browser.