mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
- acinclude.m4: remove more old unused cruft
I don't know if CC/CXX-handling is right, but powerpc-tuxbox-linux-gnu was definitely wrong.
This commit is contained in:
18
acinclude.m4
18
acinclude.m4
@@ -42,11 +42,10 @@ elif test "$TARGET" = "cdk"; then
|
|||||||
AC_MSG_RESULT(cdk)
|
AC_MSG_RESULT(cdk)
|
||||||
|
|
||||||
if test "$CC" = "" -a "$CXX" = ""; then
|
if test "$CC" = "" -a "$CXX" = ""; then
|
||||||
CC=powerpc-tuxbox-linux-gnu-gcc CXX=powerpc-tuxbox-linux-gnu-g++
|
AC_MSG_ERROR([you need to specify variables CC or CXX in cdk])
|
||||||
fi
|
fi
|
||||||
if test "$CFLAGS" = "" -a "$CXXFLAGS" = ""; then
|
if test "$CFLAGS" = "" -o "$CXXFLAGS" = ""; then
|
||||||
CFLAGS="-Wall -Os -mcpu=823 -pipe $DEBUG_CFLAGS"
|
AC_MSG_ERROR([you need to specify variables CFLAGS and CXXFLAGS in cdk])
|
||||||
CXXFLAGS="-Wall -Os -mcpu=823 -pipe $DEBUG_CFLAGS"
|
|
||||||
fi
|
fi
|
||||||
if test "$prefix" = "NONE"; then
|
if test "$prefix" = "NONE"; then
|
||||||
AC_MSG_ERROR([invalid prefix, you need to specify one in cdk mode])
|
AC_MSG_ERROR([invalid prefix, you need to specify one in cdk mode])
|
||||||
@@ -58,10 +57,6 @@ elif test "$TARGET" = "cdk"; then
|
|||||||
AC_MSG_ERROR([invalid targetprefix, you need to specify one in cdk mode])
|
AC_MSG_ERROR([invalid targetprefix, you need to specify one in cdk mode])
|
||||||
TARGET_PREFIX=""
|
TARGET_PREFIX=""
|
||||||
fi
|
fi
|
||||||
if test "$host_alias" = ""; then
|
|
||||||
cross_compiling=yes
|
|
||||||
host_alias=powerpc-tuxbox-linux-gnu
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(none)
|
AC_MSG_RESULT(none)
|
||||||
AC_MSG_ERROR([invalid target $TARGET, choose on from native,cdk]);
|
AC_MSG_ERROR([invalid target $TARGET, choose on from native,cdk]);
|
||||||
@@ -326,9 +321,7 @@ AC_ARG_WITH(boxmodel,
|
|||||||
AC_MSG_ERROR([unsupported value $withval for --with-boxmodel])
|
AC_MSG_ERROR([unsupported value $withval for --with-boxmodel])
|
||||||
;;
|
;;
|
||||||
esac], [test "$BOXTYPE" = "coolstream" && BOXMODEL="hd1" || true]
|
esac], [test "$BOXTYPE" = "coolstream" && BOXMODEL="hd1" || true]
|
||||||
[if test "$BOXTYPE" = "dreambox" -o "$BOXTYPE" = "ipbox" && test -z "$BOXMODEL"; then
|
)
|
||||||
AC_MSG_ERROR([Dreambox/IPBox needs --with-boxmodel])
|
|
||||||
fi])
|
|
||||||
|
|
||||||
AC_SUBST(BOXTYPE)
|
AC_SUBST(BOXTYPE)
|
||||||
AC_SUBST(BOXMODEL)
|
AC_SUBST(BOXMODEL)
|
||||||
@@ -360,7 +353,7 @@ fi
|
|||||||
if test "$BOXMODEL" = "hd1"; then
|
if test "$BOXMODEL" = "hd1"; then
|
||||||
AC_DEFINE(BOXMODEL_CS_HD1, 1, [coolstream hd1/neo/neo2/zee])
|
AC_DEFINE(BOXMODEL_CS_HD1, 1, [coolstream hd1/neo/neo2/zee])
|
||||||
elif test "$BOXMODEL" = "hd2"; then
|
elif test "$BOXMODEL" = "hd2"; then
|
||||||
AC_DEFINE(BOXMODEL_CS_HD2, 1, [coolstream tank/trinity/trinity v2/trinity duo/zee<EFBFBD>/link])
|
AC_DEFINE(BOXMODEL_CS_HD2, 1, [coolstream tank/trinity/trinity v2/trinity duo/zee2/link])
|
||||||
elif test "$BOXMODEL" = "raspi"; then
|
elif test "$BOXMODEL" = "raspi"; then
|
||||||
AC_DEFINE(BOXMODEL_RASPI, 1, [Raspberry pi])
|
AC_DEFINE(BOXMODEL_RASPI, 1, [Raspberry pi])
|
||||||
fi
|
fi
|
||||||
@@ -387,4 +380,3 @@ AC_DEFUN([AC_PROG_EGREP],
|
|||||||
EGREP=$ac_cv_prog_egrep
|
EGREP=$ac_cv_prog_egrep
|
||||||
AC_SUBST([EGREP])
|
AC_SUBST([EGREP])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user