* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 20:32:02 +08:00
#! /bin/sh
2003-02-02 12:01:29 +08:00
## bootstrap file for the VLC media player
2004-03-26 06:45:59 +08:00
## $Id$
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 20:32:02 +08:00
##
2005-08-13 16:12:37 +08:00
## Copyright (C) 2005 the VideoLAN team
##
## Initial author: Sam Hocevar <sam@zoy.org>
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 20:32:02 +08:00
2003-06-27 21:50:13 +08:00
if test "$#" != "0"; then
echo "Usage: $0"
echo " Calls automake, autoconf, autoheader, autopoint and other auto* to generate"
echo " m4 macros and prepare Makefiles."
2002-12-26 18:55:35 +08:00
exit 1
fi
2002-07-21 23:27:09 +08:00
###
2002-11-20 01:38:07 +08:00
### Get a sane environment, just in case
2002-07-21 23:27:09 +08:00
###
2002-08-30 07:53:22 +08:00
LANG=C
export LANG
2002-11-20 01:38:07 +08:00
CYGWIN=binmode
export CYGWIN
2002-07-21 23:27:09 +08:00
2003-07-05 22:47:53 +08:00
set -e
2003-10-23 23:30:22 +08:00
set -x
2003-07-05 22:47:53 +08:00
2002-11-14 04:51:05 +08:00
##
2003-10-23 23:30:22 +08:00
## Check for various tools
2002-11-14 04:51:05 +08:00
##
2002-12-26 06:36:14 +08:00
AUTOMAKESUCKS=no
INSTALLSUCKS=no
2002-11-11 02:04:24 +08:00
2004-07-05 22:18:51 +08:00
ACLOCAL_ARGS="-I m4"
2003-11-15 09:21:48 +08:00
# Check for contrib directory
if test -d extras/contrib/bin; then
export PATH=./extras/contrib/bin:$PATH
2004-07-05 22:18:51 +08:00
ACLOCAL_ARGS="${ACLOCAL_ARGS} -I extras/contrib/share/aclocal"
2004-07-23 00:48:38 +08:00
if test ".`uname -s`" = ".Darwin"; then
export LD_LIBRARY_PATH=./extras/contrib/lib:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=./extras/contrib/lib:$DYLD_LIBRARY_PATH
elif test ".`uname -s`" = ".BeOS"; then
export LIBRARY_PATH=./extras/contrib/lib:$LIBRARY_PATH
export BELIBRARIES=./extras/contrib/lib:$BELIBRARIES
fi
2003-11-15 09:21:48 +08:00
fi
2003-10-23 23:30:22 +08:00
# Check for automake
amvers="none"
2005-08-20 16:41:50 +08:00
if automake-1.9 --version >/dev/null 2>&1; then
2005-08-20 16:37:45 +08:00
amvers="-1.9"
2005-08-20 16:41:50 +08:00
elif automake-1.8 --version >/dev/null 2>&1; then
amvers="-1.8"
2004-08-22 10:17:43 +08:00
elif automake-1.7 --version >/dev/null 2>&1; then
2003-10-23 23:30:22 +08:00
amvers="-1.7"
elif automake-1.6 --version >/dev/null 2>&1; then
amvers="-1.6"
if expr "`automake-1.6 --version | sed -e '1s/[^0-9]*//' -e q`" "<=" "1.6.1" > /dev/null 2>&1; then
AUTOMAKESUCKS=yes
fi
elif automake-1.5 --version >/dev/null 2>&1; then
INSTALLSUCKS=yes
amvers="-1.5"
elif automake --version > /dev/null 2>&1; then
amvers=""
case "`automake --version | sed -e '1s/[^0-9]*//' -e q`" in
0|0.*|1|1.[01234]|1.[01234][-.]*)
amvers="none" ;;
1.5|1.5.*)
INSTALLSUCKS=yes ;;
1.6|1.6.0|1.6.1)
AUTOMAKESUCKS=yes ;;
2004-12-08 10:06:58 +08:00
1.9|1.9.2)
;;
2003-10-23 23:30:22 +08:00
esac
fi
if test "${amvers}" = "none"; then
set +x
echo "you need automake version 1.5 or later"
exit 1
fi
# Check for gettext
if gettextize --version >/dev/null 2>&1; then
# Autopoint is available from 0.11.3, but we need 0.11.5
if expr `gettextize --version | sed -e '1s/[^0-9]*//' -e q` \
'>=' 0.11.5 >/dev/null 2>&1; then
# We have gettext, and a recent version! Everything is cool.
autopoint=autopoint
GETTEXT=yes
else
# User's gettext is too old. try to continue anyway.
autopoint=:
GETTEXT=old
fi;else
2005-09-23 19:47:52 +08:00
set +x
echo "you need gettextize (package gettext-devel or gettext)"
exit 1
2003-10-23 23:30:22 +08:00
fi
# Check for pkg-config
if pkg-config --version >/dev/null 2>&1; then
# We have pkg-config, everything is cool.
PKGCONFIG=yes
else
PKGCONFIG=no
fi
aclocal=aclocal${amvers}
automake=automake${amvers}
autoconf=autoconf
autoheader=autoheader
2002-09-30 19:05:42 +08:00
##
## Generate the modules makefile, by parsing modules/**/Modules.am
##
2003-10-23 23:30:22 +08:00
set +x
2003-11-04 23:31:44 +08:00
echo "generating modules/**/Makefile.am and m4/private.m4"
2002-09-30 19:05:42 +08:00
2003-07-02 00:25:24 +08:00
# Prepare m4/private.m4
2003-06-27 21:50:13 +08:00
rm -f m4/private.m4 && cat > m4/private.m4 << EOF
2003-06-22 01:04:20 +08:00
dnl Private VLC macros - generated by bootstrap
2002-09-30 19:05:42 +08:00
EOF
2003-10-26 01:48:05 +08:00
if [ "${PKGCONFIG}" = "no" ]; then cat >> m4/private.m4 << EOF
2005-11-02 21:42:48 +08:00
dnl User does not have pkg-config, so assume package was not found
AC_DEFUN([PKG_CHECK_MODULES],[ifelse([\$4], , :, [\$4])])
2003-10-26 01:48:05 +08:00
EOF
fi
if [ "${GETTEXT}" != "yes" ]; then cat >> m4/private.m4 << EOF
dnl User does not have gettext, so this is a no-op
AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
EOF
fi
2003-06-27 21:50:13 +08:00
rm -f m4/private.m4-tmp1 && cat > m4/private.m4-tmp1 << EOF
dnl The required AM_CONDITIONAL calls
dnl XXX: too many conditionals make the build very slow, disabled them
2004-06-25 20:21:32 +08:00
AC_DEFUN([VLC_CONDITIONALS], [
2003-06-27 21:50:13 +08:00
EOF
rm -f m4/private.m4-tmp2 && cat > m4/private.m4-tmp2 << EOF
dnl The required AC_SUBST calls
2004-06-25 20:21:32 +08:00
AC_DEFUN([VLC_SUBSTS], [
2003-06-27 21:50:13 +08:00
EOF
rm -f m4/private.m4-tmp3 && cat > m4/private.m4-tmp3 << EOF
dnl The required AC_OUTPUT calls
dnl XXX: this feature is only supported starting from automake-1.7
2004-06-25 20:21:32 +08:00
AC_DEFUN([VLC_MAKEFILES], [AC_OUTPUT([
2003-06-27 21:50:13 +08:00
EOF
rm -f m4/private.m4-tmp4 && cat > m4/private.m4-tmp4 << EOF
dnl Helper macro for vlc-config generation
2004-06-25 20:21:32 +08:00
AC_DEFUN([VLC_CONFIG_HELPER], [
2003-06-27 21:50:13 +08:00
cat >> vlc-config.in << BLAH
EOF
2002-09-30 19:05:42 +08:00
modules=""
2003-06-27 21:50:13 +08:00
rm -f modules/Makefile.am && cat > modules/Makefile.am << EOF
# Autogenerated by bootstrap - DO NOT EDIT
EXTRA_DIST = LIST
2003-06-28 07:31:24 +08:00
SUBDIRS = `sed -ne 's,modules/\([^/]*\)/Makefile,\1,p' configure.ac | xargs`
2003-06-27 21:50:13 +08:00
EOF
2002-09-30 19:05:42 +08:00
2003-07-02 00:25:24 +08:00
for dir in `sed -ne 's,modules/\(.*\)/Makefile,\1,p' configure.ac`
2003-06-27 21:50:13 +08:00
do
printf "."
2005-08-13 16:12:37 +08:00
modf="modules/${dir}/Modules.am"
makf="modules/${dir}/Makefile.am"
2004-03-26 06:45:59 +08:00
basedir="`echo "${dir}" | cut -f1 -d/`"
2003-06-27 21:50:13 +08:00
# automake will not recurse for make dist if we don't define SUBDIRS = .
2003-07-02 00:25:24 +08:00
subdirs="`sed -ne 's,'modules/${dir}'/\([^/]*\)/Makefile,\1,p' configure.ac | xargs`"
2005-08-13 16:12:37 +08:00
mods="`sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < "${modf}" | xargs`"
extra_libs=""
for mod in $mods
do
extra_libs="${extra_libs} lib${mod}_plugin.a"
extra_libs="${extra_libs} lib${mod}.a lib${mod}_pic.a"
done
rm -f "${makf}" && cat > "${makf}" << EOF
2003-06-27 21:50:13 +08:00
2005-08-13 16:12:37 +08:00
# ${makf} automatically generated from ${modf} by bootstrap
2005-08-18 23:36:12 +08:00
# DO NOT EDIT - edit Modules.am or \$(top_srcdir)/bootstrap instead
basedir = ${basedir}
mods = ${mods}
2003-06-27 21:50:13 +08:00
NULL =
libvlc_LIBRARIES =
noinst_LIBRARIES =
noinst_HEADERS =
EXTRA_DIST = Modules.am
BUILT_SOURCES =
2003-06-28 07:31:24 +08:00
SUBDIRS = ${subdirs}
2005-08-19 01:00:20 +08:00
SUFFIXES = _plugin\$(LIBEXT) _plugin.a
2005-08-18 23:36:12 +08:00
libvlcdir = \$(libdir)/vlc/\$(basedir)
2005-08-13 16:12:37 +08:00
EXTRA_LIBRARIES = ${extra_libs}
2003-06-27 21:50:13 +08:00
include Modules.am
2003-07-02 19:21:27 +08:00
2003-10-25 12:48:55 +08:00
all: all-modules
2005-08-19 01:00:20 +08:00
# Find out which modules were enabled and tell make to build them
2003-10-25 12:48:55 +08:00
all-modules:
2003-10-25 11:44:46 +08:00
@set fnord \$\$MAKEFLAGS; amf=\$\$2; targets=\`\\
2005-08-18 23:36:12 +08:00
if test "\$(plugin)" != "no"; then z=\$\$(\$(VLC_CONFIG) --list plugin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}_plugin\$(LIBEXT);; esac; done; fi; \\
if test "\$(builtin)" != "no"; then z=\$\$(\$(VLC_CONFIG) --list builtin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}.a;; esac; done; fi; \\
2005-10-26 22:31:03 +08:00
if test "\$(pic)" = "pic"; then z=\$\$(\$(VLC_CONFIG) --list builtin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}_pic.a;; esac; done; fi; \\
2003-10-25 11:44:46 +08:00
\`; case "\$\$targets" in *lib*) \$(MAKE) \$(AM_MAKEFLAGS) \$\$targets || case "\$\$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; ;; esac; \\
test -z "\$\$fail"
2005-08-19 01:00:20 +08:00
# Build a plugin with the adequate linker and linker's flags
_plugin.a_plugin\$(LIBEXT):
2005-10-26 22:37:49 +08:00
@mod="\$*" ; mod=\$\${mod#lib} ; \
2005-08-19 23:18:24 +08:00
ldfl="\`\$(VLC_CONFIG) --libs plugin \$\$mod\` -u \$(SYMPREF)\$(VLC_ENTRY)" ; \
2005-08-19 01:00:20 +08:00
case \`\$(VLC_CONFIG) --linkage \$\$mod\` in \\
c++) ld="\$(CXXLINK)" ;; \
objc) ld="\$(OBJCLINK)" ;; \
c|*) ld="\$(LINK)" ;; \
esac ; \
echo \$\$ld \$< \$\$ldfl ; \
\$\$ld \$< \$\$ldfl
2005-09-23 20:09:46 +08:00
if MAINTAINER_MODE
2005-08-14 01:43:47 +08:00
\$(srcdir)/Makefile.am: \$(srcdir)/Modules.am \$(top_srcdir)/bootstrap
2005-08-13 16:12:37 +08:00
cd \$(top_srcdir) && \$(SHELL) ./bootstrap
2005-09-23 20:09:46 +08:00
endif
2005-08-13 16:12:37 +08:00
2005-08-18 23:36:12 +08:00
mostlyclean-local:
-rm -f *.a *\$(LIBEXT)
### automake creates libvlcdir after running install-*-local
### so we have to create it ourselves first
install-exec-local: all-modules
2005-08-19 22:27:52 +08:00
mkdir -p -- "\$(DESTDIR)\$(libvlcdir)"
2005-08-18 23:36:12 +08:00
@z=\$\$(\$(VLC_CONFIG) --list plugin); \
for mod in \$(mods); do \
case "\$\$z " \
in *\ \$\${mod}\ *) \
2005-08-19 23:18:24 +08:00
echo \$(INSTALL_PROGRAM) "lib\$\${mod}_plugin\$(LIBEXT)" "\$(DESTDIR)\$(libvlcdir)/" ; \
\$(INSTALL_PROGRAM) "lib\$\${mod}_plugin\$(LIBEXT)" "\$(DESTDIR)\$(libvlcdir)/" || exit \$\$?; \
2005-08-18 23:36:12 +08:00
;; \
esac; \
done
@z=\$\$(\$(VLC_CONFIG) --list builtin); \
for mod in \$(mods); do \
case "\$\$z " \
in *\ \$\${mod}\ *) \
2005-08-19 23:18:24 +08:00
echo \$(INSTALL_DATA) "lib\$\${mod}.a" "\$(DESTDIR)\$(libdir)/vlc/" ; \
\$(INSTALL_DATA) "lib\$\${mod}.a" "\$(DESTDIR)\$(libdir)/vlc/" || exit \$\$?; \
2005-08-18 23:36:12 +08:00
;; \
esac; \
done
if BUILD_MOZILLA
@z=\$\$(\$(VLC_CONFIG) --list builtin); \
for mod in \$(mods); do \
case "\$\$z " \
in *\ \$\${mod}\ *) \
2005-08-19 23:18:24 +08:00
echo \$(INSTALL_DATA) "lib\$\${mod}_pic.a" "\$(DESTDIR)\$(libdir)/vlc/" ; \
\$(INSTALL_DATA) "lib\$\${mod}_pic.a" "\$(DESTDIR)\$(libdir)/vlc/" || exit \$\$?; \
2005-08-18 23:36:12 +08:00
;; \
esac; \
done
endif
uninstall-local:
@z=\$\$(\$(VLC_CONFIG) --list plugin); \
for mod in \$(mods); do \
case "\$\$z " \
in *\ \$\${mod}\ *) \
echo rm -f "\$(DESTDIR)\$(libvlcdir)/lib\$\${mod}_plugin\$(LIBEXT)" ; \
rm -f "\$(DESTDIR)\$(libvlcdir)/lib\$\${mod}_plugin\$(LIBEXT)" || true; \
;; \
esac; \
done
@z=\$\$(\$(VLC_CONFIG) --list builtin); \
for mod in \$(mods); do \
case "\$\$z " \
in *\ \$\${mod}\ *) \
echo rm -f "\$(DESTDIR)\$(libdir)/vlc/lib\$\${mod}.a" ; \
rm -f "\$(DESTDIR)\$(libdir)/vlc/lib\$\${mod}.a" || true; \
;; \
esac; \
done
if BUILD_MOZILLA
@z=\$\$(\$(VLC_CONFIG) --list builtin); \
for mod in \$(mods); do \
case "\$\$z " \
in *\ \$\${mod}\ *) \
echo rm -f "\$(DESTDIR)\$(libdir)/vlc/lib\$\${mod}_pic.a" ; \
rm -f "\$(DESTDIR)\$(libdir)/vlc/lib\$\${mod}_pic.a" || true; \
;; \
esac; \
done
endif
2002-09-30 19:05:42 +08:00
EOF
2005-08-13 16:12:37 +08:00
for mod in $mods
2002-09-30 19:05:42 +08:00
do
2005-08-13 16:12:37 +08:00
if grep '^nodist_SOURCES_'${mod}'' < "${modf}" >/dev/null 2>&1; then
2002-09-30 19:05:42 +08:00
NODIST=''; else
NODIST='#'; fi
2003-06-27 21:50:13 +08:00
cat >> m4/private.m4-tmp4 << EOF
${mod}) list="\\\${list} ${dir}/lib${mod}" ;;
2002-09-30 19:05:42 +08:00
EOF
2003-06-27 21:50:13 +08:00
# Generation of modules/**/Makefile.am
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2002-10-03 00:02:43 +08:00
# - L_ is for LIBRARIES_, D_ for DATA_, B_ for BUILT_SOURCES_, F_ for LDFLAGS_,
# S_ for SOURCES_, _p is for _plugin, _b is for _builtin. This is to reduce
# the resulting file size.
2003-06-27 21:50:13 +08:00
# - *_CFLAGS, *_CXXFLAGS etc. because per-object CPPFLAGS does not seem to
# work properly with any automake version I tested.
2005-08-13 16:12:37 +08:00
cat >> "${makf}" << EOF
2002-09-30 19:05:42 +08:00
# The ${mod} plugin
2003-07-01 20:50:56 +08:00
2003-07-08 00:53:48 +08:00
EOF
2005-08-13 16:12:37 +08:00
if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF
2003-10-25 11:44:46 +08:00
clean-local: clean-${mod}
2003-07-08 00:53:48 +08:00
clean-${mod}:
2003-07-08 21:09:30 +08:00
-test -z "\$(nodist_SOURCES_${mod})" || rm -f \$(nodist_SOURCES_${mod})
2003-07-08 00:53:48 +08:00
EOF
fi
2005-08-13 16:12:37 +08:00
if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF
2005-08-19 01:00:20 +08:00
BUILT_SOURCES += \$(B${mod})
2003-06-27 21:50:13 +08:00
EOF
fi
2005-08-13 16:12:37 +08:00
cat >> "${makf}" << EOF
2005-08-19 01:00:20 +08:00
lib${mod}_plugin_a_SOURCES = \$(SOURCES_${mod})
2003-06-27 21:50:13 +08:00
EOF
2005-08-13 16:12:37 +08:00
if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF
2005-08-19 01:00:20 +08:00
nodist_lib${mod}_plugin_a_SOURCES = \$(nodist_SOURCES_${mod})
2003-06-27 21:50:13 +08:00
EOF
fi
2005-08-13 16:12:37 +08:00
cat >> "${makf}" << EOF
2003-06-27 21:50:13 +08:00
lib${mod}_plugin_a_CFLAGS = \`\$(VLC_CONFIG) --cflags plugin ${mod}\`
lib${mod}_plugin_a_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags plugin ${mod}\`
lib${mod}_plugin_a_OBJCFLAGS = \`\$(VLC_CONFIG) --objcflags plugin ${mod}\`
2005-08-19 01:00:20 +08:00
lib${mod}_pic_a_SOURCES = \$(SOURCES_${mod})
2003-06-27 21:50:13 +08:00
EOF
2005-08-13 16:12:37 +08:00
if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF
2005-08-19 01:00:20 +08:00
nodist_lib${mod}_pic_a_SOURCES = \$(nodist_SOURCES_${mod})
2003-06-27 21:50:13 +08:00
EOF
fi
2005-08-13 16:12:37 +08:00
cat >> "${makf}" << EOF
2003-06-27 21:50:13 +08:00
lib${mod}_pic_a_CFLAGS = \`\$(VLC_CONFIG) --cflags builtin pic ${mod}\`
lib${mod}_pic_a_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags builtin pic ${mod}\`
lib${mod}_pic_a_OBJCFLAGS = \`\$(VLC_CONFIG) --objcflags builtin pic ${mod}\`
lib${mod}_a_SOURCES = ${PRIVATE}\$(SOURCES_${mod})
EOF
2005-08-13 16:12:37 +08:00
if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF
2003-06-27 21:50:13 +08:00
nodist_lib${mod}_a_SOURCES = ${PRIVATE}\$(nodist_SOURCES_${mod})
EOF
fi
2005-08-13 16:12:37 +08:00
cat >> "${makf}" << EOF
2003-06-27 21:50:13 +08:00
lib${mod}_a_CFLAGS = \`\$(VLC_CONFIG) --cflags builtin ${mod}\`
lib${mod}_a_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags builtin ${mod}\`
lib${mod}_a_OBJCFLAGS = \`\$(VLC_CONFIG) --objcflags builtin ${mod}\`
2002-09-30 19:05:42 +08:00
EOF
done
done
2003-06-27 21:50:13 +08:00
cat >> m4/private.m4-tmp1 << EOF
])
EOF
cat m4/private.m4-tmp1 >> m4/private.m4 && rm -f m4/private.m4-tmp1
cat >> m4/private.m4-tmp2 << EOF
])
EOF
cat m4/private.m4-tmp2 >> m4/private.m4 && rm -f m4/private.m4-tmp2
cat >> m4/private.m4-tmp3 << EOF
])])
EOF
cat m4/private.m4-tmp3 >> m4/private.m4 && rm -f m4/private.m4-tmp3
cat >> m4/private.m4-tmp4 << EOF
BLAH
2003-06-22 01:04:20 +08:00
])
EOF
2003-06-27 21:50:13 +08:00
cat m4/private.m4-tmp4 >> m4/private.m4 && rm -f m4/private.m4-tmp4
2002-09-30 19:05:42 +08:00
2003-11-04 23:31:44 +08:00
echo " done."
2002-09-30 19:05:42 +08:00
2002-08-26 07:18:05 +08:00
###
2002-09-30 19:05:42 +08:00
### classic bootstrap stuff
2002-08-26 07:18:05 +08:00
###
2002-08-27 04:49:50 +08:00
set -x
2003-03-18 00:59:47 +08:00
# remove autotools cruft
2003-07-17 21:09:46 +08:00
rm -f aclocal.m4 configure config.log config.h config.h.in
2005-08-20 20:30:12 +08:00
rm -Rf autom4te*.cache
2003-03-18 00:59:47 +08:00
# remove old autotools extra cruft
rm -f config.guess config.sub missing mkinstalldirs compile depcomp install-sh
# remove new autotools extra cruft
2004-07-30 23:46:01 +08:00
rm -Rf autotools
mkdir autotools
2003-03-18 00:59:47 +08:00
# remove libtool cruft
rm -f ltmain.sh libtool ltconfig
# remove gettext cruft
2003-07-17 21:09:46 +08:00
rm -f ABOUT-NLS
2002-10-16 23:10:39 +08:00
rm -Rf intl
2003-07-17 21:09:46 +08:00
# remove old vlc cruft
rm -f m4/oldgettext.m4 stamp-pic configure.ac.in Modules.am
2003-07-25 04:34:47 +08:00
# remove new vlc cruft
rm -f stamp-builtin stamp-h* mozilla/stamp-pic
2002-08-26 09:01:13 +08:00
2003-11-04 23:31:44 +08:00
# Automake complains if these are not present
2003-06-27 21:50:13 +08:00
rm -f vlc-config.in && printf "" > vlc-config.in
2003-11-04 23:31:44 +08:00
if [ "$GETTEXT" != "yes" ]; then
test -d intl || mkdir intl
printf "" > intl/Makefile.am
printf "" > ABOUT-NLS
fi
2003-06-27 21:50:13 +08:00
2002-08-28 22:22:17 +08:00
# Do the rest
2003-07-25 04:34:47 +08:00
${autopoint} -f
2004-07-05 22:18:51 +08:00
${aclocal} ${ACLOCAL_ARGS}
2003-07-25 04:34:47 +08:00
${autoconf}
${autoheader}
${automake} --add-missing --copy
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 20:32:02 +08:00
##
2003-06-27 21:50:13 +08:00
## files which need to be regenerated
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 20:32:02 +08:00
##
2003-06-27 21:50:13 +08:00
rm -f vlc-config.in vlc-config
2005-06-04 20:55:23 +08:00
rm -f src/misc/modules_builtin.h
2002-10-02 20:59:59 +08:00
rm -f mozilla/vlcintf.h
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 20:32:02 +08:00
2003-07-05 22:47:53 +08:00
# Shut up
2002-10-02 20:59:59 +08:00
set +x
* ALL: the first libvlc commit.
As for video output 4, this breaks almost everything, but I'll slowly
do what remains to be fixed during the weekend.
Changes in vlc:
===============
* vlc is now a very small program (20 lines) which uses the libvlc API;
it is quite simple for the moment but can be extended in the future.
* interfaces, decoders, video outputs, etc. are now almost the same
objects (yes, I know, this is C++ redone in C) and are structured in
a tree. More about this later, but basically it allows the following
nice features:
- several interfaces
- several playlists with several outputs
- input plugins spawning helper interfaces (will be used for DVD menus)
- anything spawning anything; I swear there are useful uses for this!
* libvlc can be used in other programs; I'm currently writing a Mozilla
plugin for my employer.
Things currently broken:
========================
* most interfaces, most ports
* the playlist handling (almost finished rewriting this though). This means
no file can be played from the GUI, you need to use the commandline. This
also means it segfaults at EOF, when exiting the program, and it sometimes
refuses to open a file when asked to.
2002-06-01 20:32:02 +08:00
2002-08-28 20:50:13 +08:00
##
2003-03-20 18:27:35 +08:00
## Tell the user about gettext, pkg-config and sed
2002-08-28 20:50:13 +08:00
##
2005-10-26 22:31:03 +08:00
if [ "${GETTEXT}" = "old" ]; then
2005-09-23 19:47:52 +08:00
cat << EOF
2002-12-17 22:39:05 +08:00
==========================================================
NOTE: you have an old version of gettext installed on your
2002-12-26 06:36:14 +08:00
system. The vlc build will work, but if your system does not
have libintl you will not have internationalization support.
2003-06-23 18:21:25 +08:00
We suggest upgrading to gettext 0.11.5 or later.
2002-12-17 22:39:05 +08:00
EOF
2005-09-23 19:47:52 +08:00
fi
2002-08-28 20:50:13 +08:00
2005-10-26 22:31:03 +08:00
if [ "$PKGCONFIG" = "no" ]; then
2005-09-23 19:47:52 +08:00
cat << EOF
2003-03-20 18:27:35 +08:00
==============================================================
NOTE: you do not have the "pkg-config" utility on your system;
detection of the Gtk-2.0 and GNOME 2.0 libraries will not be
reliable.
EOF
2005-09-23 19:47:52 +08:00
fi
2003-03-20 18:27:35 +08:00
2005-10-26 22:31:03 +08:00
if [ "$AUTOMAKESUCKS" = "yes" ]; then
2005-09-23 19:47:52 +08:00
cat << EOF
2002-12-17 22:39:05 +08:00
=============================================================
IMPORTANT NOTE: your version of automake has a bug which will
prevent proper plugin compilation. Either compile VLC with
the --disable-plugins flag, or use a version of automake newer
than 1.6.1 (1.6.2 is OK, and so are the 1.5 series).
EOF
2005-09-23 19:47:52 +08:00
fi
2002-12-17 22:39:05 +08:00
2005-10-26 22:31:03 +08:00
if [ "$INSTALLSUCKS" = "yes" ]; then
2005-09-23 19:47:52 +08:00
cat << EOF
2002-12-17 22:39:05 +08:00
=============================================================
IMPORTANT NOTE: your version of automake has a bug which will
prevent proper installation. Do not use "make install" with this
version of automake, or use a version of automake newer than 1.5
(such as 1.6 or 1.7).
EOF
2005-09-23 19:47:52 +08:00
fi
2002-10-03 00:02:43 +08:00