lib: fix libvlc_media_player_set_renderer
[vlc.git] / bootstrap
blobe701f519d1fbf902a41f4cb00812fa3b531935ca
1 #! /bin/sh
3 ## bootstrap file for the VLC media player
4 ##
5 ## Copyright (C) 2005-2008 the VideoLAN team
6 ##
7 ## Authors: Sam Hocevar <sam@zoy.org>
8 ## RĂ©mi Denis-Courmont <rem # videolan # org>
10 set -e
12 cd "$(dirname "$0")"
14 if test "$#" != "0"; then
15 echo "Usage: $0"
16 echo " Calls autoreconf to generate m4 macros and prepare Makefiles."
17 exit 1
20 ACLOCAL_ARGS="-I m4 ${ACLOCAL_ARGS}"
22 # Check for tools directory
23 if test -d extras/tools/build/bin; then
24 PATH="`pwd`/extras/tools/build/bin:$PATH"
27 ###
28 ### Get a sane environment, just in case
29 ###
30 CYGWIN=binmode
31 export CYGWIN
33 # Check for pkg-config
34 if ! "${PKG_CONFIG:-pkg-config}" --version >/dev/null 2>&1; then
35 echo 'Error: "pkg-config" is not installed.' >&2
36 exit 1
39 # Check for autopoint (GNU gettext)
40 export AUTOPOINT
41 test "$AUTOPOINT" || AUTOPOINT=autopoint
42 if ! "$AUTOPOINT" --dry-run --force >/dev/null 2>&1; then
43 AUTOPOINT=true
44 cat << EOF
45 NOTE: autopoint (GNU gettext-tools) appears to be missing or out-of-date.
46 Please install or update GNU gettext tools.
47 Otherwise, you will not be able to build a source tarball.
48 ==========================================================================
50 EOF
53 # Check for flex and bison
54 if ! flex --version >/dev/null 2>&1; then
55 cat << EOF
56 NOTE: flex appears to be missing. Please install it.
57 Otherwise, you might not be able to build properly.
58 ==========================================================================
60 EOF
63 if ! bison --version >/dev/null 2>&1; then
64 cat << EOF
65 NOTE: bison appears to be missing. Please install it.
66 Otherwise, you might not be able to build properly.
67 ==========================================================================
69 EOF
72 ###
73 ### classic bootstrap stuff
74 ###
76 autoreconf --install --force --verbose ${ACLOCAL_ARGS}
77 rm -f po/Makevars.template
80 ## files which need to be regenerated
82 rm -f stamp-h*
84 # Shut up
85 set +x
86 echo "Successfully bootstrapped"