1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00

"function f()" non supported by FreeBSD's /bin/sh

"if ! true" construction neither
(thanks to Bohdan 'Nexus' Horst <nexus at irc.pl>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2194 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pl 2001-10-13 20:14:05 +00:00
parent 95f3e087b8
commit 2749975763

20
configure vendored
View File

@ -109,13 +109,13 @@
# SOME MACROS/USEFUL FUNCTIONS # SOME MACROS/USEFUL FUNCTIONS
# Returns error code only - NO displaye # Returns error code only - NO displaye
function cc_check() { cc_check() {
"$_cc" "$TMPC" -o "$TMPO" "$@" >/dev/null 2>&1 "$_cc" "$TMPC" -o "$TMPO" "$@" >/dev/null 2>&1
return "$?" return "$?"
} }
# Display error message, flushes tempfile, exit # Display error message, flushes tempfile, exit
function die () { die () {
echo echo
echo "Error: $@" >&2 echo "Error: $@" >&2
echo >&2 echo >&2
@ -123,23 +123,23 @@ function die () {
exit 1 exit 1
} }
function linux() { linux() {
test "$system_name" = "Linux" test "$system_name" = "Linux"
return "$?" return "$?"
} }
function freebsd() { freebsd() {
test "$system_name" = "FreeBSD" test "$system_name" = "FreeBSD"
return "$?" return "$?"
} }
function openbsd() { openbsd() {
test "$system_name" = "OpenBSD" test "$system_name" = "OpenBSD"
return "$?" return "$?"
} }
function bsdos() { bsdos() {
test "$system_name" = "BSD/OS" test "$system_name" = "BSD/OS"
return "$?" return "$?"
} }
function bsd() { bsd() {
freebsd || openbsd || bsdos freebsd || openbsd || bsdos
return "$?" return "$?"
} }
@ -1948,10 +1948,10 @@ else
fi fi
# malloc.h useless in FreeBSD # malloc.h useless in FreeBSD
if test "$_malloc_h" = yes && ! freebsd ; then if test "$_malloc_h" = yes && test ! freebsd ; then
_have_malloc_h='#define HAVE_MALLOC_H 1' _have_malloc_h='#define HAVE_MALLOC_H 1'
else else
_have_malloc_h='#undef HAVE_MALLOC_H' _have_malloc_h='#undef HAVE_MALLOC_H'
fi fi
if test "$_memalign" = yes ; then if test "$_memalign" = yes ; then