bigendian="no"
# OS
-targetos=`uname -s`
+targetos=`tolower \` uname -s\` `
beos_netserver="no"
os2="no"
wince="no"
# OS specific
osextralibs="-lm"
-case `tolower $targetos` in
+case $targetos in
beos|haiku|zeta)
PREFIX="$HOME/config"
# helps building libavcodec
add_extralibs -lws2_32
;;
cygwin*)
- targetos=CYGWIN
+ targetos=cygwin
shlibdir="$bindir"
dv1394="no"
VHOOKSHFLAGS='-shared -L$(BUILD_ROOT)/libavformat -L$(BUILD_ROOT)/libavcodec -L$(BUILD_ROOT)/libswscale -L$(BUILD_ROOT)/libavutil'
LDLATEFLAGS="-Wl,--as-needed $LDLATEFLAGS"
;;
irix*)
- targetos=IRIX
+ targetos=irix
ranlib="echo ignoring ranlib"
;;
os/2)
#Darwin CC versions
needmdynamicnopic="no"
-if test $targetos = Darwin; then
+if test $targetos = darwin; then
if test -n "`$cc -v 2>&1 | grep xlc`"; then
add_cflags "-qpdf2 -qlanglvl=extc99 -qmaxmem=-1 -qarch=auto -qtune=auto"
else
fi
if test $arch = "x86_32" -o $arch = "x86_64"; then
- if test "$targetos" = "mingw32" -o "$targetos" = "CYGWIN"; then
+ if test "$targetos" = mingw32 -o "$targetos" = cygwin; then
cat <<EOF
WARNING: The following test might cause a testapp to crash (intentionally)
resulting in the appearance of a dialog box. Please click "Don't send" and
enabled_any vhook liba52bin libfaadbin ffserver && add_extralibs $ldl
-if test "$targetos" = "CYGWIN" && enabled static ; then
+if test "$targetos" = cygwin && enabled static ; then
vhook="no"
echo
echo "At the moment vhooks don't work on Cygwin static builds."
print_config CONFIG_ $TMPH config.mak $CONFIG_LIST
print_config TARGET_ $TMPH config.mak $TARGET_LIST
-if test "$targetos" = "Darwin"; then
+if test "$targetos" = darwin; then
echo "#define CONFIG_DARWIN 1" >> $TMPH
fi