Commit 05d53d90 authored by Sam Hocevar's avatar Sam Hocevar

* bootstrap: Fixed an automake breakage when gettext is not present.

parent 294d05e1
#! /bin/sh #! /bin/sh
## bootstrap file for the VLC media player ## bootstrap file for the VLC media player
## $Id: bootstrap,v 1.80 2003/10/26 14:49:26 sam Exp $ ## $Id: bootstrap,v 1.81 2003/11/04 15:31:44 sam Exp $
## ##
## Authors: Sam Hocevar <sam@zoy.org> ## Authors: Sam Hocevar <sam@zoy.org>
...@@ -75,16 +75,10 @@ if expr `gettextize --version | sed -e '1s/[^0-9]*//' -e q` \ ...@@ -75,16 +75,10 @@ if expr `gettextize --version | sed -e '1s/[^0-9]*//' -e q` \
GETTEXT=yes GETTEXT=yes
else else
# User's gettext is too old. try to continue anyway. # User's gettext is too old. try to continue anyway.
echo > ABOUT-NLS
mkdir -p intl
echo > intl/Makefile.am
autopoint=: autopoint=:
GETTEXT=old GETTEXT=old
fi;else fi;else
# we don't have gettext. grmbl. try to continue anyway. # we don't have gettext. grmbl. try to continue anyway.
echo > ABOUT-NLS
mkdir -p intl
echo > intl/Makefile.am
autopoint=: autopoint=:
GETTEXT=no GETTEXT=no
fi fi
...@@ -107,7 +101,7 @@ autoheader=autoheader ...@@ -107,7 +101,7 @@ autoheader=autoheader
## ##
set +x set +x
printf "generating modules/**/Makefile.am and m4/private.m4" echo "generating modules/**/Makefile.am and m4/private.m4"
# Prepare m4/private.m4 # Prepare m4/private.m4
rm -f m4/private.m4 && cat > m4/private.m4 << EOF rm -f m4/private.m4 && cat > m4/private.m4 << EOF
...@@ -325,7 +319,7 @@ BLAH ...@@ -325,7 +319,7 @@ BLAH
EOF EOF
cat m4/private.m4-tmp4 >> m4/private.m4 && rm -f m4/private.m4-tmp4 cat m4/private.m4-tmp4 >> m4/private.m4 && rm -f m4/private.m4-tmp4
echo "done." echo " done."
### ###
### classic bootstrap stuff ### classic bootstrap stuff
...@@ -348,8 +342,13 @@ rm -f m4/oldgettext.m4 stamp-pic configure.ac.in Modules.am ...@@ -348,8 +342,13 @@ rm -f m4/oldgettext.m4 stamp-pic configure.ac.in Modules.am
# remove new vlc cruft # remove new vlc cruft
rm -f stamp-builtin stamp-h* mozilla/stamp-pic rm -f stamp-builtin stamp-h* mozilla/stamp-pic
# Automake complains if this is not present # Automake complains if these are not present
rm -f vlc-config.in && printf "" > vlc-config.in rm -f vlc-config.in && printf "" > vlc-config.in
if [ "$GETTEXT" != "yes" ]; then
test -d intl || mkdir intl
printf "" > intl/Makefile.am
printf "" > ABOUT-NLS
fi
# Do the rest # Do the rest
${autopoint} -f ${autopoint} -f
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment