3 # VLC media player configuration script, borrowed from linux menuconfig
4 # Cyril Deguet <asmax@videolan.org>
6 #-----------------------------------------------------------------
7 # William Roadcap was the original author of Menuconfig.
8 # Michael Elizabeth Chastain (mec@shout.net) is the current maintainer.
10 # 070497 Bernhard Kaindl (bkaindl@netway.at) - get default values for
11 # new bool, tristate and dep_tristate parameters from the defconfig file.
12 # new configuration parameters are marked with '(NEW)' as in make config.
14 # 180697 Bernhard Kaindl (bkaindl@netway.at) - added the needed support
15 # for string options. They are handled like the int and hex options.
17 # 081297 Pavel Machek (pavel@atrey.karlin.mff.cuni.cz) - better error
20 # 131197 Michael Chastain (mec@shout.net) - output all lines for a
21 # choice list, not just the selected one. This makes the output
22 # the same as Configure output, which is important for smart config
25 # 101297 Michael Chastain (mec@shout.net) - remove sound driver cruft.
27 # 221297 Michael Chastain (mec@shout.net) - make define_bool actually
28 # define its arguments so that later tests on them work right.
30 # 160198 Michael Chastain (mec@shout.net) - fix bug with 'c' command
31 # (complement existing value) when used on virgin uninitialized variables.
33 # 090398 Axel Boldt (boldt@math.ucsb.edu) - allow for empty lines in help
36 # 12 Dec 1998, Michael Elizabeth Chastain (mec@shout.net)
37 # Remove a /tmp security hole in get_def (also makes it faster).
38 # Give uninitialized variables canonical values rather than null value.
39 # Change a lot of places to call set_x_info uniformly.
40 # Take out message about preparing version (old sound driver cruft).
42 # 13 Dec 1998, Riley H Williams <Riley@Williams.Name>
43 # When an error occurs, actually display the error message as well as
44 # our comments thereon.
46 # 31 Dec 1998, Michael Elizabeth Chastain (mec@shout.net)
47 # Fix mod_bool to honor $CONFIG_MODULES.
48 # Fix dep_tristate to call define_bool when dependency is "n".
50 # 02 January 1999, Michael Elizabeth Chastain (mec@shout.net)
51 # Blow away lxdialog.scrltmp on entry to activate_menu. This protects
52 # against people who use commands like ' ' to select menus.
54 # 24 January 1999, Michael Elizabeth Chastain, <mec@shout.net>
55 # - Improve the exit message (Jeff Ronne).
57 # 06 July 1999, Andrzej M. Krzysztofowicz, <ankry@mif.pg.gda.pl>
58 # - Support for multiple conditions in dep_tristate().
59 # - Implemented new functions: define_tristate(), define_int(), define_hex(),
60 # define_string(), dep_bool().
62 # 12 November 2001, Keith Owens <kaos@ocs.com.au>
63 # Escape double quotes on eval so the quotes are still there on the second
64 # evaluation, required to handle strings with special characters.
69 # Change this to TRUE if you prefer all kernel options listed
70 # in a single menu rather than the standard menu hierarchy.
75 # Make sure we're really running bash.
77 [ -z "$BASH" ] && { echo "Menuconfig requires bash" 1>&2; exit 1; }
80 # Cache function definitions, turn off posix compliance
86 # Given a configuration variable, set the global variable $x to its value,
87 # and the global variable $info to the string " (NEW)" if this is a new
90 # This function looks for: (1) the current value, or (2) the default value
91 # from the arch-dependent defconfig file, or (3) a default passed by the caller.
93 function set_x_info
() {
96 eval `sed -n -e 's/# \(.*\) is not set.*/\1=n/' -e "/^$1=/p" arch/$ARCH/defconfig`
99 eval INFO_
$1="' (NEW)'"
101 eval info
=\"\
$INFO_$1\"
105 # Load the functions used by the config.in files.
107 # I do this because these functions must be redefined depending
108 # on whether they are being called for interactive use or for
109 # saving a configuration to a file.
111 # Thank the heavens bash supports nesting function definitions.
116 # Additional comments
118 function comment
() {
119 comment_ctr
=$
[ comment_ctr
+ 1 ]
120 echo -ne "': $comment_ctr' '--- $1' " >>MCmenu
124 # Define a boolean to a specific value.
126 function define_bool
() {
130 function define_tristate
() {
134 function define_hex
() {
138 function define_int
() {
142 function define_string
() {
147 # Create a boolean (Yes/No) function for our current menu
148 # which calls our local bool function.
158 echo -ne "'$2' '[$flag] $1$info' " >>MCmenu
160 echo -e "function $2 () { l_bool '$2' \"\$1\" ;}\n" >>MCradiolists
164 # Create a tristate (Yes/No/Module) radiolist function
165 # which calls our local tristate function.
167 # Collapses to a boolean (Yes/No) if module support is disabled.
169 function tristate
() {
170 if [ "$CONFIG_MODULES" != "y" ]
182 echo -ne "'$2' '<$flag> $1$info' " >>MCmenu
185 function $2 () { l_tristate '$2' \"\$1\" ;}" >>MCradiolists
190 # Create a tristate radiolist function which is dependent on
191 # another vlc configuration option.
193 # Quote from the original configure script:
195 # If the option we depend upon is a module,
196 # then the only allowable options are M or N. If Y, then
197 # this is a normal tristate. This is used in cases where modules
198 # are nested, and one module requires the presence of something
199 # else in the kernel.
201 function dep_tristate
() {
206 while [ $# -gt 0 ]; do
207 if [ "$1" = y
]; then
209 elif [ "$1" = m
]; then
217 if [ "$dep" = y
]; then
218 tristate
"$ques" "$var"
219 elif [ "$dep" = m
]; then
220 mod_bool
"$ques" "$var"
222 define_tristate
"$var" n
227 # Same as above, but now only Y and N are allowed as dependency
228 # (i.e. third and next arguments).
230 function dep_bool
() {
235 while [ $# -gt 0 ]; do
236 if [ "$1" = y
]; then
243 if [ "$dep" = y
]; then
250 function dep_mbool
() {
255 while [ $# -gt 0 ]; do
256 if [ "$1" = y
-o "$1" = m
]; then
263 if [ "$dep" = y
]; then
271 # Add a menu item which will call our local int function.
276 echo -ne "'$2' '($x) $1$info' " >>MCmenu
278 echo -e "function $2 () { l_int '$1' '$2' '$3' '$x' ;}" >>MCradiolists
282 # Add a menu item which will call our local hex function.
288 echo -ne "'$2' '($x) $1$info' " >>MCmenu
290 echo -e "function $2 () { l_hex '$1' '$2' '$3' '$x' ;}" >>MCradiolists
294 # Add a menu item which will call our local string function.
299 echo -ne "'$2' ' $1: \"$x\"$info' " >>MCmenu
301 echo -e "function $2 () { l_string '$1' '$2' '$3' '$x' ;}" >>MCradiolists
305 # Add a menu item which will call our local One-of-Many choice list.
309 # Need to remember params cause they're gonna get reset.
317 # Find out if one of the choices is already set.
318 # If it's not then make it the default.
325 if eval [ \"_\$
$2\" = \"_y
\" ]
333 : ${current:=$default}
335 echo -ne "'$firstchoice' '($current) $title' " >>MCmenu
338 function $firstchoice () \
339 { l_choice '$title' \"$choices\" \"$current\" ;}" >>MCradiolists
342 } # END load_functions()
349 # Extract available help for an option from Configure.help
350 # and send it to standard output.
352 # Most of this function was borrowed from the original kernel
355 function extract_help
() {
356 if [ -f doc
/Configure.
help ]
358 #first escape regexp special characters in the argument:
359 var
=$
(echo "$1"|
sed 's/[][\/.^$*]/\\&/g')
360 #now pick out the right help text:
361 text
=$
(sed -n "/^$var[ ]*\$/,\${
368 /<file:\\([^>]*\\)>/s//\\1/g
370 }" doc
/Configure.
help)
374 echo "There is no help available for this option."
380 echo "There is no help available for this option."
386 # Activate a help dialog.
389 if extract_help
$1 >help.out
391 $DIALOG --backtitle "$backtitle" --title "$2"\
392 --textbox help.out
$ROWS $COLS
394 $DIALOG --backtitle "$backtitle" \
395 --textbox help.out
$ROWS $COLS
401 # Show the README file.
403 function show_readme
() {
404 $DIALOG --backtitle "$backtitle" \
405 --textbox scripts
/README.Menuconfig
$ROWS $COLS
409 # Begin building the dialog menu command and Initialize the
410 # Radiolist function file.
412 function menu_name
() {
413 echo -ne "$DIALOG --title '$1'\
414 --backtitle '$backtitle' \
415 --menu '$menu_instructions' \
416 $ROWS $COLS $((ROWS-10)) \
422 # Add a submenu option to the menu currently under construction.
424 function submenu
() {
425 echo -ne "'activate_menu $2' '$1 --->' " >>MCmenu
429 # Handle a boolean (Yes/No) option.
450 # Same as bool() except options are (Module/No)
452 function mod_bool
() {
453 if [ "$CONFIG_MODULES" != "y" ]; then
463 echo -ne "'$2' '<$flag> $1$info' " >>MCmenu
465 echo -e "function $2 () { l_mod_bool '$2' \"\$1\" ;}" >>MCradiolists
470 # Same as l_bool() except options are (Module/No)
472 function l_mod_bool
() {
477 ${DIALOG} --backtitle "$backtitle" \
479 This feature depends on another which has been configured as a module. \
480 As a result, this feature will be built as a module." 4 70
498 # Handle a tristate (Yes/No/Module) option.
500 function l_tristate
() {
523 # Create a dialog for entering an integer into a kernel option.
528 if $DIALOG --title "$1" \
529 --backtitle "$backtitle" \
530 --inputbox "$inputbox_instructions_int" \
531 10 75 "$4" 2>MCdialog.out
533 answer
="`cat MCdialog.out`"
534 answer
="${answer:-$3}"
536 # Semantics of + and ? in GNU expr changed, so
538 if expr "$answer" : '0$' '|' "$answer" : '[1-9][0-9]*$' '|' "$answer" : '-[1-9][0-9]*$' >/dev
/null
544 ${DIALOG} --backtitle "$backtitle" \
545 --infobox "You have made an invalid entry." 3 43
557 # Create a dialog for entering a hexadecimal into a kernel option.
562 if $DIALOG --title "$1" \
563 --backtitle "$backtitle" \
564 --inputbox "$inputbox_instructions_hex" \
565 10 75 "$4" 2>MCdialog.out
567 answer
="`cat MCdialog.out`"
568 answer
="${answer:-$3}"
569 answer
="${answer##*[x,X]}"
571 if expr "$answer" : '[0-9a-fA-F][0-9a-fA-F]*$' >/dev
/null
577 ${DIALOG} --backtitle "$backtitle" \
578 --infobox "You have made an invalid entry." 3 43
590 # Create a dialog for entering a string into a kernel option.
592 function l_string
() {
595 if $DIALOG --title "$1" \
596 --backtitle "$backtitle" \
597 --inputbox "$inputbox_instructions_string" \
598 10 75 "$4" 2>MCdialog.out
600 answer
="`cat MCdialog.out`"
601 answer
="${answer:-$3}"
604 # Someone may add a nice check for the entered
618 # Handle a one-of-many choice list.
620 function l_choice
() {
622 # Need to remember params cause they're gonna get reset.
630 # Scan current value of choices and set radiolist switches.
638 "$current"*) if [ -z "$chosen" ]; then
639 list
="$list $2 $1 ON "
642 list
="$list $2 $1 OFF "
644 *) list
="$list $2 $1 OFF " ;;
652 if $DIALOG --title "$title" \
653 --backtitle "$backtitle" \
654 --radiolist "$radiolist_instructions" \
655 15 70 6 $list 2>MCdialog.out
657 choice
=`cat MCdialog.out`
661 help "$firstchoice" "$title"
665 # Now set the boolean value of each option based on
666 # the selection made from the radiolist.
671 if [ "$2" = "$choice" ]
683 # Call awk, and watch for error codes, etc.
685 function callawk
() {
686 awk "$1" ||
{ echo "Awk died with error code $?. Giving up."; exit 1; }
690 # A faster awk based recursive parser. (I hope)
692 function parser1
() {
696 comment_is_option = 0
697 parser("'$CONFIG_IN'","MCmenu0")
700 function parser(ifile,menu) {
702 while (getline <ifile) {
703 if ($1 == "mainmenu_option") {
704 comment_is_option = "1"
706 else if ($1 == "comment" && comment_is_option == "1") {
707 comment_is_option= "0"
711 printf("submenu %s MCmenu%s\n", $0, menu_no) >>menu
713 newmenu = sprintf("MCmenu%d", menu_no);
714 printf( "function MCmenu%s () {\n"\
717 menu_no, $0) >newmenu
719 parser(ifile, newmenu)
721 else if ($0 ~ /^#|\$MAKE|mainmenu_name/) {
724 else if ($1 ~ "endmenu") {
728 else if ($1 == "source") {
739 # Secondary parser for single menu mode.
741 function parser2
() {
744 parser("'$CONFIG_IN'","MCmenu0")
747 function parser(ifile,menu) {
749 while (getline <ifile) {
750 if ($0 ~ /^#|$MAKE|mainmenu_name/) {
753 else if ($1 ~ /mainmenu_option|endmenu/) {
756 else if ($1 == "source") {
767 # Parse all the config.in files into mini scripts.
769 function parse_config_files
() {
772 echo "function MCmenu0 () {" >MCmenu0
773 echo 'default=$1' >>MCmenu0
774 echo "menu_name 'Main Menu'" >>MCmenu0
776 if [ "_$single_menu_mode" = "_TRUE" ]
783 echo "comment ''" >>MCmenu0
784 echo "g_alt_config" >>MCmenu0
785 echo "s_alt_config" >>MCmenu0
790 # These mini scripts must be sourced into the current
791 # environment in order for all of this to work. Leaving
792 # them on the disk as executables screws up the recursion
793 # in activate_menu(), among other things. Once they are
794 # sourced we can discard them.
805 # This is the menu tree's bootstrap.
807 # Executes the parsed menus on demand and creates a set of functions,
808 # one per configuration option. These functions will in turn execute
809 # dialog commands or recursively call other menus.
811 function activate_menu
() {
812 rm -f lxdialog.scrltmp
815 comment_ctr
=0 #So comment lines get unique tags
817 $1 "$default" 2> MCerror
#Create the lxdialog menu & functions
824 Menuconfig has encountered a possible error in one of the vlc's
825 configuration files and is unable to continue. Here is the error
829 sed 's/^/ Q> /' MCerror
832 Please report this to the maintainer <asmax@videolan.org>.
834 Please indicate the vlc version you are trying to configure and
835 which menu you were trying to enter when this error occurred.
843 . .
/MCradiolists
#Source the menu's functions
845 . .
/MCmenu
2>MCdialog.out
#Activate the lxdialog menu
848 read selection
<MCdialog.out
852 defaults
="$selection\x12$defaults" #pseudo stack
854 0) eval $selection ;;
855 3) eval $selection y
;;
856 4) eval $selection n
;;
857 5) eval $selection m
;;
858 6) eval $selection c
;;
860 default
="${defaults%%\x12*}" defaults
="${defaults#*\x12}"
863 default
="${selection%%\ *}"
866 *"-->"*|
*"alt_config"*)
869 eval help $selection ;;
880 There seems to be a problem with the lxdialog companion utility which is
881 built prior to running Menuconfig. Usually this is an indicator that you
882 have upgraded/downgraded your ncurses libraries and did not remove the
883 old ncurses header file(s) in /usr/include or /usr/include/ncurses.
885 It is VERY important that you have only one set of ncurses header files
886 and that those files are properly version matched to the ncurses libraries
887 installed on your machine.
889 You may also need to rebuild lxdialog. This can be done by moving to
890 the /usr/src/linux/scripts/lxdialog directory and issuing the
891 "make clean all" command.
893 If you have verified that your ncurses install is correct, you may email
894 the maintainer <asmax@videolan.org>.
905 # Create a menu item to load an alternate configuration file.
908 echo -n "get_alt_config 'Load an Alternate Configuration File' "\
913 # Get alternate config file name and load the
914 # configuration from it.
917 set -f ## Switch file expansion OFF
921 ALT_CONFIG
="${ALT_CONFIG:-$DEFAULTS}"
923 $DIALOG --backtitle "$backtitle" \
925 Enter the name of the configuration file you wish to load. \
926 Accept the name shown to restore the configuration you \
927 last retrieved. Leave blank to abort."\
928 11 55 "$ALT_CONFIG" 2>MCdialog.out
932 ALT_CONFIG
=`cat MCdialog.out`
934 [ "_" = "_$ALT_CONFIG" ] && break
936 if eval [ -r \"$ALT_CONFIG\" ]
938 eval load_config_file
\"$ALT_CONFIG\"
942 $DIALOG --backtitle "$backtitle" \
943 --infobox "File does not exist!" 3 38
949 For various reasons, one may wish to keep several different vlc
950 configurations available on a single machine.
952 If you have saved a previous configuration in a file other than the
953 vlc's default, entering the name of the file here will allow you
954 to modify that configuration.
956 If you are uncertain, then you have probably never used alternate
957 configuration files. You should therefor leave this blank to abort.
960 $DIALOG --backtitle "$backtitle"\
961 --title "Load Alternate Configuration"\
962 --textbox help.out
$ROWS $COLS
966 set +f
## Switch file expansion ON
967 rm -f help.out MCdialog.out
971 # Create a menu item to store an alternate config file.
974 echo -n "save_alt_config 'Save Configuration to an Alternate File' "\
979 # Get an alternate config file name and save the current
980 # configuration to it.
983 set -f ## Switch file expansion OFF
987 $DIALOG --backtitle "$backtitle" \
989 Enter a filename to which this configuration should be saved \
990 as an alternate. Leave blank to abort."\
991 10 55 "$ALT_CONFIG" 2>MCdialog.out
995 ALT_CONFIG
=`cat MCdialog.out`
997 [ "_" = "_$ALT_CONFIG" ] && break
999 if eval touch $ALT_CONFIG 2>/dev
/null
1001 eval save_configuration
$ALT_CONFIG
1002 load_functions
## RELOAD
1006 $DIALOG --backtitle "$backtitle" \
1007 --infobox "Can't create file! Probably a nonexistent directory." 3 60
1013 For various reasons, one may wish to keep different vlc
1014 configurations available on a single machine.
1016 Entering a file name here will allow you to later retrieve, modify
1017 and use the current configuration as an alternate to whatever
1018 configuration options you have selected at that time.
1020 If you are uncertain what all this means then you should probably
1023 $DIALOG --backtitle "$backtitle"\
1024 --title "Save Alternate Configuration"\
1025 --textbox help.out
$ROWS $COLS
1029 set +f
## Switch file expansion ON
1030 rm -f help.out MCdialog.out
1034 # Load config options from a file.
1035 # Converts all "# OPTION is not set" lines to "OPTION=n" lines
1037 function load_config_file
() {
1039 /# .* is not set.*/ { printf("%s=n\n", $2) }
1040 ! /# .* is not set.*/ { print }
1048 # Just what it says.
1050 save_configuration
() {
1052 echo -n "Saving your vlc configuration."
1055 # Now, let's redefine the configuration functions for final
1056 # output to the config files.
1058 # Nested function definitions, YIPEE!
1062 eval define_bool
\"$2\" \"$x\"
1065 function tristate
() {
1067 eval define_tristate
\"$2\" \"$x\"
1070 function dep_tristate
() {
1074 while [ $# -gt 0 ]; do
1075 if [ "$1" = y
]; then
1077 elif [ "$1" = m
-a "$x" != n
]; then
1083 define_tristate
"$var" "$x"
1086 function dep_bool
() {
1090 while [ $# -gt 0 ]; do
1091 if [ "$1" = y
]; then
1097 define_bool
"$var" "$x"
1100 function dep_mbool
() {
1104 while [ $# -gt 0 ]; do
1105 if [ "$1" = y
-o "$1" = m
]; then
1111 define_bool
"$var" "$x"
1115 set_x_info
"$2" "$3"
1116 echo "$2=$x" >>$CONFIG
1120 set_x_info
"$2" "$3"
1121 echo "$2=$x" >>$CONFIG
1124 function string
() {
1125 set_x_info
"$2" "$3"
1126 echo "$2=\"$x\"" >>$CONFIG
1129 function define_hex
() {
1131 echo "$1=$2" >>$CONFIG
1134 function define_int
() {
1136 echo "$1=$2" >>$CONFIG
1139 function define_string
() {
1141 echo "$1=\"$2\"" >>$CONFIG
1144 function define_bool
() {
1145 define_tristate
"$1" "$2"
1148 function define_tristate
() {
1153 echo "$1=y" >>$CONFIG
1157 if [ "$CONFIG_MODULES" = "y" ]
1159 echo "$1=m" >>$CONFIG
1161 echo "$1=y" >>$CONFIG
1166 echo "# $1 is not set" >>$CONFIG
1171 function choice
() {
1173 # Find the first choice that's already set to 'y'
1183 if eval [ \"_\$
$2\" = \"_y
\" ]
1192 # Use the default if none were set.
1194 : ${current:=$default}
1197 # Output all choices (to be compatible with other configs).
1203 "$current"*) if [ -z "$chosen" ]; then
1204 define_bool
"$2" "y"
1207 define_bool
"$2" "n"
1209 *) define_bool
"$2" "n" ;;
1215 function mainmenu_name
() {
1219 function mainmenu_option
() {
1220 comment_is_option
=TRUE
1223 function endmenu
() {
1227 function comment
() {
1228 if [ "$comment_is_option" ]
1233 echo "# $1" >>$CONFIG
1240 DEF_CONFIG
="${1:-.config}"
1245 echo "# Automatically generated by make menuconfig: don't edit" >>$CONFIG
1249 if .
$CONFIG_IN >>.menuconfig.log
2>&1
1251 if [ -f "$DEF_CONFIG" ]
1253 rm -f ${DEF_CONFIG}.old
1254 mv $DEF_CONFIG ${DEF_CONFIG}.old
1257 mv $CONFIG $DEF_CONFIG
1266 # Remove temporary files
1274 rm -f MCmenu
* MCradiolists MCdialog.out
help.out
1282 # Some distributions export these with incorrect values
1283 # which can really screw up some ncurses programs.
1286 ROWS
=${1:-24} COLS
=${2:-80}
1288 # Just in case the nasty rlogin bug returns.
1290 [ $ROWS = 0 ] && ROWS
=24
1291 [ $COLS = 0 ] && COLS
=80
1293 if [ $ROWS -lt 19 -o $COLS -lt 80 ]
1295 echo -e "\n\007Your display is too small to run Menuconfig!"
1296 echo "It must be at least 19 lines by 80 columns."
1300 ROWS
=$
((ROWS-4
)) COLS
=$
((COLS-5
))
1304 set_geometry
`stty size 2>/dev/null`
1306 menu_instructions
="\
1307 Arrow keys navigate the menu. \
1308 <Enter> selects submenus --->. \
1309 Highlighted letters are hotkeys. \
1310 Pressing <Y> includes, <N> excludes, <M> modularizes features. \
1311 Press <Esc><Esc> to exit, <?> for Help. \
1312 Legend: [*] built-in [ ] excluded <M> module < > module capable"
1314 radiolist_instructions
="\
1315 Use the arrow keys to navigate this window or \
1316 press the hotkey of the item you wish to select \
1317 followed by the <SPACE BAR>.
1318 Press <?> for additional information about this option."
1320 inputbox_instructions_int
="\
1321 Please enter a decimal value. \
1322 Fractions will not be accepted. \
1323 Use the <TAB> key to move from the input field to the buttons below it."
1325 inputbox_instructions_hex
="\
1326 Please enter a hexadecimal value. \
1327 Use the <TAB> key to move from the input field to the buttons below it."
1329 inputbox_instructions_string
="\
1330 Please enter a string value. \
1331 Use the <TAB> key to move from the input field to the buttons below it."
1333 DIALOG
="./lxdialog/lxdialog"
1335 backtitle
="VLC media player configuration"
1337 trap "cleanup ; exit 1" 1 2 15
1341 # Locate default files.
1343 CONFIG_IN
=.
/config.
in
1344 if [ "$1" != "" ] ; then
1349 if [ -f .config
]; then
1355 echo "Using defaults found in" $DEFAULTS
1356 load_config_file
$DEFAULTS
1358 echo "No defaults found"
1365 # Load the functions used by the config.in files.
1366 echo -n "Preparing scripts: functions"
1369 if [ ! -e $CONFIG_IN ]
1371 echo "Your main config.in file ($CONFIG_IN) does not exist"
1377 echo "Building lxdialog"
1384 echo "Your lxdialog utility does not exist"
1390 # Read config.in files and parse them into one shell function per menu.
1393 parse_config_files
$CONFIG_IN
1397 # Start the ball rolling from the top.
1399 activate_menu MCmenu0
1409 if $DIALOG --backtitle "$backtitle" \
1410 --yesno "Do you wish to save your new vlc configuration?" 5 60
1414 echo "*** End of VideoLAN client configuration. ***"
1415 echo "Run ./build-vlc to launch the build process"
1420 echo Your vlc configuration changes were NOT saved.
1424 # Remove log if empty.
1425 if [ ! -s .menuconfig.log
] ; then
1426 rm -f .menuconfig.log