3 ## bootstrap file for the VLC media player
5 ## Copyright (C) 2005-2008 the VideoLAN team
7 ## Authors: Sam Hocevar <sam@zoy.org>
8 ## RĂ©mi Denis-Courmont <rem # videolan # org>
14 if test "$#" != "0"; then
16 echo " Calls autoreconf to generate m4 macros and prepare Makefiles."
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"
28 ### Get a sane environment, just in case
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
39 # Prepare m4/private.m4
40 rm -f m4/private.m4 && cat > m4/private.m4 << EOF
41 dnl Private VLC macros - generated by bootstrap
44 # Check for autopoint (GNU gettext)
46 test "$AUTOPOINT" || AUTOPOINT=autopoint
47 if ! "$AUTOPOINT" --dry-run --force >/dev/null 2>&1; then
50 NOTE: GNU gettext appears to be missing or out-of-date.
51 Please install or update GNU gettext.
52 Also check if you have cvs, a dependency of autopoint.
53 Otherwise, you will not be able to build a source tarball.
54 ==============================================================
60 ### Generate the modules makefile, by parsing modules/**/Modules.am
63 echo "generating modules/**/Makefile.am"
64 find modules/ -name Modules.am | \
65 sed -ne 's,modules/\(.*\)/Modules.am,\1,p' | \
75 ### classic bootstrap stuff
78 # Automake complains if these are not present
80 cp -f INSTALL INSTALL.git
82 autoreconf --install --force --verbose ${ACLOCAL_ARGS}
83 rm -f po/Makevars.template ABOUT-NLS
85 mv -f INSTALL.git INSTALL
88 ## files which need to be regenerated
94 echo "Successfully bootstrapped"