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}"
23 ### Get a sane environment, just in case
28 # Prepare m4/private.m4
29 rm -f m
4/private.
m4 && cat > m
4/private.
m4 << EOF
30 dnl Private VLC macros - generated by bootstrap
33 # Check for pkg-config
34 if ! pkg-config
--version >/dev
/null
2>&1; then
36 NOTE: "pkg-config" is missing from your system.
37 Many underlying libraries will not be detected.
38 ==============================================================
41 cat >> m
4/private.
m4 << EOF
42 dnl User does not have pkg-config, so assume package was not found
43 AC_DEFUN([PKG_CHECK_MODULES],[ifelse([\$4], , :, [\$4])])
48 # Check for autopoint (GNU gettext)
50 test "$AUTOPOINT" || AUTOPOINT
=autopoint
51 if ! "$AUTOPOINT" --dry-run --force >/dev
/null
2>&1; then
54 NOTE: GNU gettext appears to be missing or out-of-date.
55 Please install or update GNU gettext.
56 Also check if you have cvs, a dependency of autopoint.
57 Otherwise, you will not be able to build a source tarball.
58 ==============================================================
63 # Check for contrib directory
64 if test -d extras
/contrib
/build
/bin
; then
65 PATH
="`pwd`/extras/contrib/build/bin:$PATH"
66 if test -d extras
/contrib
/build
/share
/aclocal
; then
67 ACLOCAL_ARGS
="${ACLOCAL_ARGS} -I extras/contrib/build/share/aclocal"
69 if test ".`uname -s`" = ".Darwin"; then
70 LD_LIBRARY_PATH
=.
/extras
/contrib
/build
/lib
:$LD_LIBRARY_PATH
71 DYLD_LIBRARY_PATH
=.
/extras
/contrib
/build
/lib
:$DYLD_LIBRARY_PATH
72 export LD_LIBRARY_PATH
73 export DYLD_LIBRARY_PATH
78 ### Generate the modules makefile, by parsing modules/**/Modules.am
81 echo "generating modules/**/Makefile.am"
82 find modules
/ -name Modules.am | \
83 sed -ne 's,modules/\(.*\)/Modules.am,\1,p' | \
93 ### classic bootstrap stuff
96 # Automake complains if these are not present
98 cp -f INSTALL INSTALL.git
100 autoreconf
--install --force --verbose ${ACLOCAL_ARGS}
101 rm -f po
/Makevars.template ABOUT-NLS
103 mv -f INSTALL.git INSTALL
106 ## files which need to be regenerated
112 echo "Successfully bootstrapped"