mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
acinclude/configure: some more minor format changes
Signed-off-by: Thilo Graf <dbt@novatux.de>
Origin commit data
------------------
Commit: c091bd6fc9
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-12-09 (Sat, 09 Dec 2017)
Origin message was:
------------------
- acinclude/configure: some more minor format changes
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -90,7 +90,8 @@ check_path() {
|
||||
])
|
||||
|
||||
dnl expand nested ${foo}/bar
|
||||
AC_DEFUN([TUXBOX_EXPAND_VARIABLE], [__$1="$2"
|
||||
AC_DEFUN([TUXBOX_EXPAND_VARIABLE], [
|
||||
__$1="$2"
|
||||
for __CNT in false false false false true; do dnl max 5 levels of indirection
|
||||
$1=`eval echo "$__$1"`
|
||||
echo ${$1} | grep -q '\$' || break # 'grep -q' is POSIX, exit if no $ in variable
|
||||
@@ -314,7 +315,8 @@ AC_ARG_WITH(boxtype,
|
||||
BOXTYPE="$withval"
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([bad value $withval for --with-boxtype]) ;;
|
||||
AC_MSG_ERROR([bad value $withval for --with-boxtype])
|
||||
;;
|
||||
esac],
|
||||
[BOXTYPE="coolstream"])
|
||||
|
||||
|
29
configure.ac
29
configure.ac
@@ -81,7 +81,7 @@ if test -z "$OGG_CFLAGS" ; then
|
||||
TUXBOX_APPS_LIB_PKGCONFIG(OGG,ogg)
|
||||
fi
|
||||
|
||||
fi
|
||||
fi # test "$enable_ffmpegdec"
|
||||
|
||||
TUXBOX_APPS_LIB_PKGCONFIG(SWRESAMPLE,libswresample)
|
||||
|
||||
@@ -96,12 +96,10 @@ TUXBOX_APPS_LIB_PKGCONFIG(CURL,libcurl)
|
||||
|
||||
## For the check you must use the corresponding libtool number as version number,
|
||||
## see freetype source code docs/VERSIONS.TXT
|
||||
PKG_CHECK_MODULES([FREETYPE], [freetype2 >= 16.2.10],
|
||||
[echo "freetype2 >= 2.5.0 found"], [
|
||||
## If freetype is not found:
|
||||
## Activate this line if you want to search with freetype-config instead
|
||||
[echo "freetype2 >= 2.5.0 not found, use alternative search method with freetype-config"]
|
||||
## Activate this line if you want to abort
|
||||
PKG_CHECK_MODULES([FREETYPE], [freetype2 >= 16.2.10], [
|
||||
echo "freetype2 >= 2.5.0 found"
|
||||
], [
|
||||
echo "freetype2 >= 2.5.0 not found, use alternative search method with freetype-config"
|
||||
#AC_MSG_ERROR([freetype2 >= 2.5.0 not found])
|
||||
])
|
||||
|
||||
@@ -121,9 +119,10 @@ if test -z "$FREETYPE_LIBS" -a -z "$FREETYPE_CFLAGS"; then
|
||||
#if FREETYPE_MAJOR < 2 || (FREETYPE_MAJOR == 2 && FREETYPE_MINOR < 5)
|
||||
#error Freetype version too low.
|
||||
#endif
|
||||
],
|
||||
[AC_MSG_RESULT(yes)],
|
||||
[AC_MSG_ERROR([Need FreeType library version 2.5.0 or higher])
|
||||
], [
|
||||
AC_MSG_RESULT(yes)
|
||||
], [
|
||||
AC_MSG_ERROR([Need FreeType library version 2.5.0 or higher])
|
||||
])
|
||||
fi
|
||||
|
||||
@@ -206,9 +205,13 @@ AC_ARG_ENABLE(lua,
|
||||
|
||||
if test "$enable_lua" = "yes"; then
|
||||
AC_DEFINE(ENABLE_LUA, 1, [include Lua support])
|
||||
PKG_CHECK_MODULES([LUA], [lua >= 5.2], echo "lua >= 5.2 found", [
|
||||
PKG_CHECK_MODULES([LUA], [lua5.2 >= 5.2], echo "lua5.2 found", [
|
||||
echo "=> lualib not found, assuming static lua in linker path..."
|
||||
PKG_CHECK_MODULES([LUA], [lua >= 5.2], [
|
||||
echo "lua >= 5.2 found"
|
||||
], [
|
||||
PKG_CHECK_MODULES([LUA], [lua5.2 >= 5.2], [
|
||||
echo "lua5.2 found"
|
||||
], [
|
||||
echo "lualib not found, assuming static lua in linker path..."
|
||||
LUA_LIBS="-llua -ldl"
|
||||
AC_DEFINE(STATIC_LUAPOSIX, 1, [Define to 1 for static lua build.])
|
||||
])
|
||||
|
Reference in New Issue
Block a user