#! /bin/sh
## bootstrap file for the VLC media player
-## $Id: bootstrap,v 1.67 2003/07/08 13:09:30 sam Exp $
+## $Id: bootstrap,v 1.71 2003/07/24 20:34:47 sam Exp $
##
## Authors: Sam Hocevar <sam@zoy.org>
endif
if UNTRUE
-L${mod}-p = lib${mod}_plugin.a
-D${mod}-p = lib${mod}_plugin\$(LIBEXT)
-L${mod}-b = lib${mod}.a
-L${mod}-pic = lib${mod}_pic.a
+L${mod}p = lib${mod}_plugin.a
+D${mod}p = lib${mod}_plugin\$(LIBEXT)
+L${mod}b = lib${mod}.a
+L${mod}pic = lib${mod}_pic.a
EOF
if [ "${NODIST}" != "#" ]; then cat >> modules/${dir}/Makefile.am << EOF
B${mod} = \$(nodist_SOURCES_${mod})
lib${mod}_a_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags builtin ${mod}\`
lib${mod}_a_OBJCFLAGS = \`\$(VLC_CONFIG) --objcflags builtin ${mod}\`
-libvlc_LIBRARIES += \$(L${mod}-b) \$(L${mod}-pic)
-lib${mod}_DATA = \$(D${mod}-p)
+libvlc_LIBRARIES += \$(L${mod}b) \$(L${mod}pic)
+lib${mod}_DATA = \$(D${mod}p)
lib${mod}dir = \$(libdir)/vlc/${topdir}
-${PRIVATE}noinst_LIBRARIES += \$(L${mod}-p)
+${PRIVATE}noinst_LIBRARIES += \$(L${mod}p)
${PRIVATE}lib${mod}_plugin\$(LIBEXT): \$(lib${mod}_plugin_a_OBJECTS)
${PRIVATE} @case \`\$(VLC_CONFIG) --linkage ${mod}\` in \\
${PRIVATE} c++) echo \$(CXXLINK) \$(lib${mod}_plugin_a_OBJECTS) \\\`\$(VLC_CONFIG) --libs plugin ${mod}\\\` ; \$(CXXLINK) \$(lib${mod}_plugin_a_OBJECTS) \`\$(VLC_CONFIG) --libs plugin ${mod}\` ;; \\
set -x
# remove autotools cruft
-rm -f aclocal.m4 configure configure.ac.in config.log Modules.am config.h config.h.in
+rm -f aclocal.m4 configure config.log config.h config.h.in
# remove old autotools extra cruft
rm -f config.guess config.sub missing mkinstalldirs compile depcomp install-sh
# remove new autotools extra cruft
# remove libtool cruft
rm -f ltmain.sh libtool ltconfig
# remove gettext cruft
-rm -f m4/oldgettext.m4 ABOUT-NLS
+rm -f ABOUT-NLS
rm -Rf intl
+# remove old vlc cruft
+rm -f m4/oldgettext.m4 stamp-pic configure.ac.in Modules.am
+# remove new vlc cruft
+rm -f stamp-builtin stamp-h* mozilla/stamp-pic
# Check for gettext
if gettextize --version >/dev/null 2>&1; then
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=autopoint
GETTEXT=yes
else
# User's gettext is too old. try to continue anyway.
AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
EOF
+ autopoint=:
GETTEXT=old
fi;else
# we don't have gettext. grmbl. try to continue anyway.
AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
EOF
+ autopoint=:
GETTEXT=no
fi
amvers="-1.7"
# If we also have 1.6, use it instead because it is faster
if automake-1.6 --version >/dev/null 2>&1; then
- if expr "`automake-1.6 --version | sed -e '1s/[^0-9]*//' -e q`" ">" "1.6.1" > /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
+ amvers="-1.6"
fi
fi
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
+ 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
exit 1
fi
+aclocal=aclocal${amvers}
+automake=automake${amvers}
+autoconf=autoconf
+autoheader=autoheader
+
# Automake complains if this is not present
rm -f vlc-config.in && printf "" > vlc-config.in
# Do the rest
-aclocal${amvers} -I m4
-autoconf
-autoheader
-automake${amvers} --add-missing --copy
+${autopoint} -f
+${aclocal} -I m4
+${autoconf}
+${autoheader}
+${automake} --add-missing --copy
##
## files which need to be regenerated