acinclude/configure: unify usage of AS_HELP_STRING(); minor format changes

Origin commit data
------------------
Branch: ni/coolstream
Commit: f4b775b7b9
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-12-07 (Thu, 07 Dec 2017)

Origin message was:
------------------
- acinclude/configure: unify usage of AS_HELP_STRING(); minor format changes

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-12-07 13:08:51 +01:00
parent 69810726ee
commit d03566ee68
2 changed files with 81 additions and 79 deletions

View File

@@ -5,16 +5,19 @@ AM_MAINTAINER_MODE
AC_GNU_SOURCE
AC_ARG_WITH(target,
[ --with-target=TARGET target for compilation [[native,cdk]]],
[TARGET="$withval"],[TARGET="native"])
AS_HELP_STRING([--with-target=TARGET], [target for compilation [[native,cdk]]]),
[TARGET="$withval"],
[TARGET="native"])
AC_ARG_WITH(targetprefix,
[ --with-targetprefix=PATH prefix relative to target root (only applicable in cdk mode)],
[TARGET_PREFIX="$withval"],[TARGET_PREFIX=""])
AS_HELP_STRING([--with-targetprefix=PATH], [prefix relative to target root (only applicable in cdk mode)]),
[TARGET_PREFIX="$withval"],
[TARGET_PREFIX=""])
AC_ARG_WITH(debug,
[ --without-debug disable debugging code],
[DEBUG="$withval"],[DEBUG="yes"])
AS_HELP_STRING([--without-debug], [disable debugging code]),
[DEBUG="$withval"],
[DEBUG="yes"])
if test "$DEBUG" = "yes"; then
DEBUG_CFLAGS="-g3 -ggdb"
@@ -22,15 +25,16 @@ if test "$DEBUG" = "yes"; then
fi
AC_ARG_WITH(libcoolstream-static-dir,
[ --with-libcoolstream-static-dir=PATH path for static libcoolstream],
[LIBCOOLSTREAM_STATIC_DIR="$withval"],[LIBCOOLSTREAM_STATIC_DIR=""])
AS_HELP_STRING([--with-libcoolstream-static-dir=PATH], [path for static libcoolstream]),
[LIBCOOLSTREAM_STATIC_DIR="$withval"],
[LIBCOOLSTREAM_STATIC_DIR=""])
AC_ARG_ENABLE(libcoolstream-static,
AS_HELP_STRING(--enable-libcoolstream-static,[libcoolstream static linked for testing]))
AS_HELP_STRING([--enable-libcoolstream-static], [libcoolstream static linked for testing]))
AM_CONDITIONAL(ENABLE_LIBCOOLSTREAM_STATIC, test "$enable_libcoolstream_static" = "yes")
AC_ARG_ENABLE(reschange,
AS_HELP_STRING(--enable-reschange,enable change the osd resolution (default for hd2)))
AS_HELP_STRING([--enable-reschange], [enable change the osd resolution (default for hd2 and hd51)]))
AM_CONDITIONAL(ENABLE_RESCHANGE,test "$enable_reschange" = "yes")
if test "$enable_reschange" = "yes"; then
@@ -155,7 +159,7 @@ TUXBOX_APPS_DIRECTORY_ONE(fontdir_var,FONTDIR_VAR,localstatedir,/var,/tuxbox/fon
[--with-fontdir_var=PATH ],[where to find the fonts in /var])
TUXBOX_APPS_DIRECTORY_ONE(gamesdir,GAMESDIR,localstatedir,/var,/tuxbox/games,
[--with-gamesdir=PATH ],[where games data is stored])
[--with-gamesdir=PATH ],[where to find the games])
TUXBOX_APPS_DIRECTORY_ONE(libdir,LIBDIR,libdir,/lib,/tuxbox,
[--with-libdir=PATH ],[where to find the internal libs])
@@ -312,14 +316,15 @@ _TUXBOX_APPS_LIB_PKGCONFIG($1,$2)
AC_DEFUN([TUXBOX_BOXTYPE],[
AC_ARG_WITH(boxtype,
[ --with-boxtype valid values: tripledragon,coolstream,spark,azbox,generic,armbox],
AS_HELP_STRING([--with-boxtype], [valid values: tripledragon, coolstream, spark, azbox, generic, armbox]),
[case "${withval}" in
tripledragon|coolstream|spark|azbox|generic|armbox)
BOXTYPE="$withval"
;;
*)
AC_MSG_ERROR([bad value $withval for --with-boxtype]) ;;
esac], [BOXTYPE="coolstream"])
esac],
[BOXTYPE="coolstream"])
AC_ARG_WITH(boxmodel,
[ --with-boxmodel valid for coolstream: hd1, hd2
@@ -362,8 +367,8 @@ AC_ARG_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])
AC_SUBST(BOXTYPE)
AC_SUBST(BOXMODEL)

View File

@@ -36,7 +36,7 @@ else
fi
AC_ARG_ENABLE(ffmpegdec,
AS_HELP_STRING(--enable-ffmpegdec,include ffmpeg decoder support),
AS_HELP_STRING([--enable-ffmpegdec], [include ffmpeg decoder support]),
,[enable_ffmpegdec=no])
AM_CONDITIONAL(ENABLE_FFMPEGDEC,test "$enable_ffmpegdec" = "yes")
@@ -46,13 +46,13 @@ fi
if test x"$enable_ffmpegdec" != xyes; then
AC_ARG_WITH([tremor], [AS_HELP_STRING([--with-tremor],
[use libvorbisidec instead of libogg/libvorbis])],
AC_ARG_WITH(tremor,
AS_HELP_STRING([--with-tremor], [use libvorbisidec instead of libogg/libvorbis]),
[TREMOR="$withval"],
[TREMOR=no])
AC_ARG_WITH([tremor-static], [AS_HELP_STRING([--with-tremor-static],
[use statically linked libvorbisidec instead of libogg/libvorbis])],
AC_ARG_WITH(tremor-static,
AS_HELP_STRING([--with-tremor-static], [use statically linked libvorbisidec instead of libogg/libvorbis]),
[TREMOR_STATIC="$withval"],
[TREMOR_STATIC=no])
@@ -165,29 +165,29 @@ TUXBOX_APPS_LIB_PKGCONFIG(SIGC,sigc++-2.0)
#TUXBOX_APPS_LIB_PKGCONFIG(TUXTXT,tuxbox-tuxtxt)
AC_ARG_ENABLE(keyboard-no-rc,
[ --enable-keyboard-no-rc enable keyboard control, disable rc control],
[AC_DEFINE(KEYBOARD_INSTEAD_OF_REMOTE_CONTROL,1,[enable keyboard control, disable rc control])])
AS_HELP_STRING([--enable-keyboard-no-rc], [enable keyboard control, disable rc control]),
AC_DEFINE(KEYBOARD_INSTEAD_OF_REMOTE_CONTROL, 1, [enable keyboard control, disable rc control]))
AC_ARG_ENABLE(mdev,
[ --enable-mdev disable broken neutrino mount hack, use with mdev],
[AC_DEFINE(ASSUME_MDEV,1,[disable broken neutrino mount hack, use with mdev])])
AS_HELP_STRING([--enable-mdev], [disable broken neutrino mount hack, use with mdev]),
AC_DEFINE(ASSUME_MDEV, 1, [disable broken neutrino mount hack, use with mdev]))
AC_ARG_ENABLE(freesatepg,
[ --enable-freesatepg enable Freesat EPG code (experimental)],
[AC_DEFINE(ENABLE_FREESATEPG,1,[enable Freesat EPG code])])
AS_HELP_STRING([--enable-freesatepg], [enable Freesat EPG code (experimental)]),
AC_DEFINE(ENABLE_FREESATEPG, 1, [enable Freesat EPG code]))
AC_ARG_ENABLE(viasatepg,
[ --enable-viasatepg enable ViaSat EPG code (experimental)],
[AC_DEFINE(ENABLE_VIASATEPG,1,[enable ViaSat EPG code])])
AS_HELP_STRING([--enable-viasatepg], [enable ViaSat EPG code (experimental)]),
AC_DEFINE(ENABLE_VIASATEPG, 1, [enable ViaSat EPG code]))
AC_ARG_ENABLE(fastscan,
[ --enable-fastscan enable Fastscan code)],
[AC_DEFINE(ENABLE_FASTSCAN,1,[enable fastscan code])])
AS_HELP_STRING([--enable-fastscan], [enable fastscan code]),
AC_DEFINE(ENABLE_FASTSCAN, 1, [enable fastscan code]))
AM_CONDITIONAL(ENABLE_FASTSCAN, test "$enable_fastscan" = "yes")
AC_ARG_ENABLE(giflib,
AS_HELP_STRING(--enable-giflib,use giflib instead of libungif),
AS_HELP_STRING([--enable-giflib], [use giflib instead of libungif]),
,[enable_giflib=no])
AM_CONDITIONAL(ENABLE_GIFLIB, test "$enable_giflib" = "yes")
@@ -195,9 +195,8 @@ if test "$enable_giflib" = "yes"; then
AC_DEFINE(ENABLE_GIFLIB, 1, [use giflib instead of libungif])
fi
### USE_PUGIXML
AC_ARG_ENABLE(pugixml,
AS_HELP_STRING(--enable-pugixml,use pugixml instead of xmltree),
AS_HELP_STRING([--enable-pugixml], [use pugixml instead of xmltree]),
,[enable_pugixml=no])
AM_CONDITIONAL(USE_PUGIXML, test "$enable_pugixml" = "yes")
@@ -205,10 +204,8 @@ if test "$enable_pugixml" = "yes"; then
AC_DEFINE(USE_PUGIXML, 1, [use pugixml instead of xmltree])
fi
# FLAC - Free Lossless Audio Codec
AC_ARG_ENABLE(flac,
AS_HELP_STRING(--enable-flac,include FLAC support),
AS_HELP_STRING([--enable-flac], [include FLAC support]),
,[enable_flac=no])
AM_CONDITIONAL(ENABLE_FLAC, test "$enable_flac" = "yes")
@@ -216,18 +213,17 @@ if test "$enable_flac" = "yes"; then
AC_DEFINE(ENABLE_FLAC, 1, [include FLAC support])
fi
# UPNP - upnp browser (borken right now)
AC_ARG_ENABLE(upnp,
AS_HELP_STRING(--disable-upnp,disable UPNP support),
AS_HELP_STRING([--disable-upnp], [disable UPNP support]),
,[enable_upnp=yes])
AM_CONDITIONAL(ENABLE_UPNP, test "$enable_upnp" = "yes")
if test "$enable_upnp" = "yes"; then
AC_DEFINE(ENABLE_UPNP,1,[include UPNP support - currently broken])
AC_DEFINE(ENABLE_UPNP, 1, [include UPNP support])
fi
AC_ARG_ENABLE(extupdate,
AS_HELP_STRING(--enable-extupdate,include extended update routine),
AS_HELP_STRING([--enable-extupdate], [include extended update routine]),
,[enable_extupdate=no])
AM_CONDITIONAL(ENABLE_EXTUPDATE, test "$enable_extupdate" = "yes")
@@ -236,11 +232,14 @@ if test "$enable_extupdate" = "yes"; then
fi
AC_ARG_WITH(stb-hal-includes,
[ --with-stb-hal-includes=PATH path for libstb-hal includes [[NONE]]],
[STB_HAL_INC="$withval"],[STB_HAL_INC=""])
AS_HELP_STRING([--with-stb-hal-includes=PATH], [path for libstb-hal includes [[NONE]]]),
[STB_HAL_INC="$withval"],
[STB_HAL_INC=""])
AC_ARG_WITH(stb-hal-build,
[ --with-stb-hal-build=PATH path where libstb-hal is built [[NONE]]],
[STB_HAL_LIB="-L$withval"],[STB_HAL_LIB=""])
AS_HELP_STRING([--with-stb-hal-build=PATH], [path where libstb-hal is built [[NONE]]]),
[STB_HAL_LIB="-L$withval"],
[STB_HAL_LIB=""])
AM_CONDITIONAL(USE_STB_HAL, test "$BOXTYPE" != "coolstream")
if test "$BOXTYPE" != coolstream; then
@@ -251,9 +250,8 @@ if test "$BOXTYPE" != coolstream; then
HWLIB_CFLAGS="-I$STB_HAL_INC"
fi
# Lua - embeddable scripting language
AC_ARG_ENABLE(lua,
AS_HELP_STRING(--disable-lua,disable Lua support),
AS_HELP_STRING([--disable-lua], [disable Lua support]),
,[enable_lua=yes])
AM_CONDITIONAL(ENABLE_LUA, test "$enable_lua" = "yes")
@@ -271,25 +269,24 @@ AC_DEFINE(LUA_COMPAT_5_2,1,[does not really belong in config.h, but is needed fo
fi
AC_ARG_ENABLE(cleanup,
[ --enable-cleanup enable cleanup on exit],
[AC_DEFINE(EXIT_CLEANUP,1,[enable cleanup on exit])])
AS_HELP_STRING([--enable-cleanup], [enable cleanup on exit]),
AC_DEFINE(EXIT_CLEANUP, 1, [enable cleanup on exit]))
AC_ARG_ENABLE(pip,
[ --enable-pip enable picture in picture support],
[AC_DEFINE(ENABLE_PIP,1,[enable picture in picture support])])
AS_HELP_STRING([--enable-pip], [enable picture in picture support]),
AC_DEFINE(ENABLE_PIP, 1, [enable picture in picture support]))
AC_ARG_ENABLE(testing,
AS_HELP_STRING(--enable-testing,include devel code parts for neutrino tests))
AS_HELP_STRING([--enable-testing], [include dev code parts for neutrino tests]))
AM_CONDITIONAL(ENABLE_TESTING, test "$enable_testing" = "yes")
if test "$enable_testing" = "yes"; then
AC_DEFINE(ENABLE_TESTING,1,[include devel code parts for neutrino tests - not recommended for general users!])
AC_DEFINE(ENABLE_TESTING, 1, [include dev code parts for neutrino tests - not recommended for general users!])
fi
AC_ARG_ENABLE([fribidi],
AS_HELP_STRING([--enable-fribidi], [enable fribidi support])
)
AC_ARG_ENABLE(fribidi,
AS_HELP_STRING([--enable-fribidi], [enable fribidi support]))
AM_CONDITIONAL(ENABLE_FRIBIDI, test "$enable_fribidi" = "yes")
AS_IF([test "$enable_fribidi" = "yes"],
AC_DEFINE(ENABLE_FRIBIDI, 1, [enable fribidi support])