reduce cluttering of the root directory.
config.cache
config.rpath
config.status
-config.guess
-config.sub
confdefs.h
conftest.cc
autom4te.cache
build-stamp
stamp-h*
aclocal.m4
-install-sh
-missing
-mkinstalldirs
-compile
-depcomp
vlc-debug.*
vlc-log.*
vlc-config
# something. DIST_SUBDIRS stores the directories where nothing is built but
# which have makefiles with distribution information.
SUBDIRS = po intl m4 share
-DIST_SUBDIRS = $(SUBDIRS) modules src debian doc ipkg lib
+DIST_SUBDIRS = $(SUBDIRS) modules src debian doc ipkg lib autotools
EXTRA_DIST = HACKING MAINTAINERS src/extras/COPYING \
INSTALL.win32 README.MacOSX.rtf vlc.spec install-win32 \
--- /dev/null
+.dirstamp
+Makefile
+Makefile.in
+compile
+config.guess
+config.sub
+depcomp
+install-sh
+missing
+mkinstalldirs
#! /bin/sh
## bootstrap file for the VLC media player
-## $Id: bootstrap,v 1.44 2003/03/12 04:16:02 sam Exp $
+## $Id: bootstrap,v 1.45 2003/03/17 16:59:46 sam Exp $
##
## Authors: Samuel Hocevar <sam@zoy.org>
### classic bootstrap stuff
###
set -x
-rm -f aclocal.m4 m4/oldgettext.m4 configure config.guess config.log config.sub ltmain.sh libtool ltconfig missing mkinstalldirs depcomp install-sh ABOUT-NLS
+
+# remove autotools cruft
+rm -f aclocal.m4 configure config.log
+# remove old autotools extra cruft
+rm -f config.guess config.sub missing mkinstalldirs compile depcomp install-sh
+# remove new autotools extra cruft
+(cd autotools && rm -f config.guess config.sub missing mkinstalldirs compile depcomp install-sh)
+# remove libtool cruft
+rm -f ltmain.sh libtool ltconfig
+# remove gettext cruft
+rm -f m4/oldgettext.m4 ABOUT-NLS
rm -Rf intl
# Check for gettext
AC_PREREQ(2.50)
AC_CONFIG_SRCDIR(src/libvlc.c)
+AC_CONFIG_AUX_DIR(autotools)
AC_CANONICAL_SYSTEM
dnl XXX: we don't put any flags here, because automake 1.5 doesn't support
dnl Build the gtk_main plugins?
NEED_GTK_MAIN=no
NEED_GNOME_MAIN=no
+NEED_GTK2_MAIN=no
+NEED_GNOME2_MAIN=no
dnl build the qte plugin ?
NEED_QTE_MAIN=no
fi
fi
+dnl
+dnl Gtk+2 module
+dnl
+AC_ARG_ENABLE(gtk2,
+ [ --enable-gtk2 Gtk2 support (default disabled)])
+if test "x${enable_gtk2}" = "xyes"
+then
+ PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.0.0, gthread-2.0])
+ CFLAGS_gtk2="${CFLAGS_gtk2} ${GTK2_CFLAGS}"
+ LDFLAGS_gtk2="${LDFLAGS_gtk2} ${GTK2_LIBS}"
+ PLUGINS="${PLUGINS} gtk2"
+ if test "x${SYS}" != "xmingw32"; then
+ NEED_GTK2_MAIN=yes
+ fi
+fi
+
dnl
dnl Familiar module uses Gtk+ library
dnl
CPPFLAGS="${CPPFLAGS_save}"
fi])
+dnl
+dnl Gnome2 module
+dnl
+AC_ARG_ENABLE(gnome2,
+ [ --enable-gnome2 Gnome2 support (default disabled)])
+if test "x${enable_gnome2}" = "xyes"
+then
+ PKG_CHECK_MODULES(GNOME2, [libgnomeui-2.0])
+ CFLAGS_gnome2="${CFLAGS_gnome2} ${GNOME2_CFLAGS}"
+ LDFLAGS_gnome2="${LDFLAGS_gnome2} ${GNOME2_LIBS}"
+ PLUGINS="${PLUGINS} gnome2"
+ if test "x${SYS}" != "xmingw32"; then
+ NEED_GNOME2_MAIN=yes
+ fi
+fi
+
dnl
dnl wxWindows module
dnl
then
PLUGINS="${PLUGINS} gtk_main"
CFLAGS_gtk="${CFLAGS_gtk} -DNEED_GTK_MAIN"
- CFLAGS_familiar="${CFLAGS_familiar} -DNEED_GTK_MAIN"
+ CFLAGS_familiar="${CFLAGS_familiar} -DNEED_GTK_MAIN"
CFLAGS_gtk_main="${CFLAGS_gtk_main} ${CFLAGS_gtk} ${CFLAGS_familiar}"
LDFLAGS_gtk_main="${LDFLAGS_gtk_main} ${LDFLAGS_gtk} ${LDFLAGS_familiar}"
fi
LDFLAGS_gnome_main="${LDFLAGS_gnome_main} ${LDFLAGS_gtk} ${LDFLAGS_familiar} ${LDFLAGS_gnome}"
fi
+if test "x${NEED_GTK2_MAIN}" != "xno"
+then
+ PLUGINS="${PLUGINS} gtk2_main"
+ CFLAGS_gtk2="${CFLAGS_gtk2} -DNEED_GTK2_MAIN"
+ CFLAGS_gtk2_main="${CFLAGS_gtk2_main} ${CFLAGS_gtk2}"
+ LDFLAGS_gtk2_main="${LDFLAGS_gtk2_main} ${LDFLAGS_gtk2}"
+fi
+
+if test "x${NEED_GNOME2_MAIN}" != "xno"
+then
+ PLUGINS="${PLUGINS} gnome2_main"
+ CFLAGS_gnome2_main="${CFLAGS_gnome2_main} ${CFLAGS_gtk2} ${CFLAGS_gnome2}"
+ LDFLAGS_gnome2_main="${LDFLAGS_gnome2_main} ${LDFLAGS_gtk2} ${LDFLAGS_gnome2}"
+fi
+
dnl
dnl qte_main plugin
dnl
AC_OUTPUT([
Makefile
+ autotools/Makefile
debian/Makefile
doc/Makefile
intl/Makefile
#! /bin/sh
## toolbox for the VLC media player
-## $Id: toolbox,v 1.14 2003/03/12 05:12:05 sam Exp $
+## $Id: toolbox,v 1.15 2003/03/17 16:59:46 sam Exp $
##
## Authors: Samuel Hocevar <sam@zoy.org>
###
### argument check
###
-do_changelog=no
-do_po=no
-do_vc=no
-do_includes=no
-do_glade=no
if test "$1" = ""
then
case "$1" in
--update-changelog)
- do_changelog=yes
+ action=changelog
;;
--update-vc)
- do_vc=yes
+ action=vc
;;
--update-po)
- do_po=yes
+ action=po
;;
--update-includes)
- do_includes=yes
+ action=includes
;;
--update-glade|--fix-glade)
- do_glade=yes
+ action=glade
;;
--help)
help
##
## Update the CVS changelog
##
-if test "$do_changelog" = "yes"
+if test "${action}" = "changelog"
then
cvs2cl --help >/dev/null 2>&1 || exit 1
rm -f ChangeLog
##
## Update the MSVC project files
##
-if test "$do_vc" = "yes"
+if test "${action}" = "vc"
then
echo "generating Visual Studio files..."
##
## Update the potfiles because no one ever does it
##
-if test "$do_po" = "yes"
+if test "${action}" = "po"
then
# create a fake file containing win32 strings
rm -f modules/gui/win32/strings.cpp
##
## Create include files
##
-if test "$do_includes" = "yes"
+if test "${action}" = "includes"
then
set -x
##
## Fix glade-generated files
##
-if test "$do_glade" = "yes"
+if test "${action}" = "glade"
then
for file in modules/gui/gtk/gnome.glade modules/gui/gtk/gtk.glade modules/gui/familiar/familiar.glade
do