]> git.sesse.net Git - vlc/commitdiff
Don't use uname in configure.ac.
authorDaniel Mierswa <impulze@impulze.org>
Sun, 24 Jan 2010 21:24:14 +0000 (22:24 +0100)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 3 Feb 2010 20:41:54 +0000 (22:41 +0200)
uname considers the build system not the host system.

Signed-off-by: Daniel Mierswa <impulze@impulze.org>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
configure.ac

index f78d3d8ba605eae1824db82ce149840dc9b27ae8..99dc41be2f7e6649a837228c2cef8365b17f1974 100644 (file)
@@ -142,10 +142,10 @@ AC_ARG_WITH(contrib,
        with_cyberlink_tree=${CONTRIB_DIR}/src/clinkcc
     fi
 
-    if test ".`uname -s`" = ".Darwin"; then
+    if test "${SYS}" = "darwin"; then
       export LD_LIBRARY_PATH=${CONTRIB_DIR}/lib:$LD_LIBRARY_PATH
       export DYLD_LIBRARY_PATH=${CONTRIB_DIR}/lib:$DYLD_LIBRARY_PATH
-    elif test ".`uname -s`" = ".BeOS"; then
+    elif test "${SYS}" = "beos"; then
       export LIBRARY_PATH=${CONTRIB_DIR}/lib:$LIBRARY_PATH
       export BELIBRARIES=${CONTRIB_DIR}/lib:$BELIBRARIES
     fi
@@ -273,7 +273,7 @@ case "${host_os}" in
     fi
     ;;
   darwin9*)
-    if (test ".`uname -p`" = ".i386"); then
+    if test "${host_cpu}" = "i386"; then
         dnl Due to a ld(64) bug in 10.5 we cannot use our mmx code
         dnl without hacking it a lot, we disable mmx and sse.
         dnl (that bug is about ld being unable to handle