[vlc-devel] commit: contrib: match distribution also for x86-64 and armel ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Aug 29 22:38:21 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 29 23:36:55 2009 +0300| [97f64152e06c225520cca71449d3179e29690bdb] | committer: Rémi Denis-Courmont
contrib: match distribution also for x86-64 and armel
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=97f64152e06c225520cca71449d3179e29690bdb
---
extras/contrib/bootstrap | 55 +++++++++++++++++++++++----------------------
1 files changed, 28 insertions(+), 27 deletions(-)
diff --git a/extras/contrib/bootstrap b/extras/contrib/bootstrap
index f603581..a49e435 100755
--- a/extras/contrib/bootstrap
+++ b/extras/contrib/bootstrap
@@ -252,37 +252,38 @@ case $HOST in
echo "LIBRARY_PATH = /usr/lib64" >> config.mak
echo "PKG_CONFIG_PATH = /usr/lib64/pkgconfig" >> config.mak
echo "PKG_CONFIG_LIBDIR = /usr/lib64/pkgconfig" >> config.mak
- cat src/Distributions/unix.mak >> distro.mak
;;
- *)
- if test "$HOST" = "$BUILD"; then
- if test -d "/usr/lib/pkgconfig"; then
- if test -z "$PKG_CONFIG_PATH"; then
- echo "PKG_CONFIG_PATH = /usr/lib/pkgconfig" >> config.mak
- fi
- if test -z "$PKG_CONFIG_LIBDIR"; then
- echo "PKG_CONFIG_LIBDIR = /usr/lib/pkgconfig" >> config.mak
- fi
- fi
- # Try to match distribution
- if test -f /etc/fedora-release; then
- cat src/Distributions/fedora.mak >> distro.mak
- elif test -f /etc/maemo_version; then
- cat src/Distributions/maemo.mak >> distro.mak
- echo 'HAVE_MAEMO = 1' >> config.mak
- else
- # Default Unix-like systems
- cat src/Distributions/unix.mak >> distro.mak
+esac
+
+if ! test -f distro.mak; then
+ if test ! -z "${DISTRO}"; then
+ cat src/Distributions/${DISTRO}.mak >> distro.mak
+ elif test "$HOST" = "$BUILD"; then
+ if test -d "/usr/lib/pkgconfig"; then
+ if test -z "$PKG_CONFIG_PATH"; then
+ echo "PKG_CONFIG_PATH = /usr/lib/pkgconfig" >> config.mak
fi
- else # unknown distro
- if test ! -z "${DISTRO}"; then
- cat src/Distributions/${DISTRO}.mak >> distro.mak
- else
- cat src/Distributions/unix.mak >> distro.mak
+ if test -z "$PKG_CONFIG_LIBDIR"; then
+ echo "PKG_CONFIG_LIBDIR = /usr/lib/pkgconfig" >> config.mak
fi
fi
- ;;
-esac
+ # Try to match distribution
+ if test -f /etc/fedora-release; then
+ cat src/Distributions/fedora.mak >> distro.mak
+ elif test -f /etc/maemo_version; then
+ cat src/Distributions/maemo.mak >> distro.mak
+ echo 'HAVE_MAEMO = 1' >> config.mak
+ elif test -f /etc/debian_version; then
+ # NOTE: check for Debian *after* its derivatives
+ cat src/Distribution/debian.mak >> distro.mak
+ fi
+ fi
+fi
+
+if ! test -f distro.mak; then
+ # Default Unix-like systems
+ cat src/Distributions/unix.mak >> distro.mak
+fi
echo "BUILD = $BUILD" >> config.mak
echo "HOST = $HOST" >> config.mak
More information about the vlc-devel
mailing list