1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../linux24-psionw/12-conf-hacks.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
10 # This patch file is dual-licensed. It is available under the license the
11 # patched project is licensed under, as long as it is an OpenSource license
12 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
13 # of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
16 # --- T2-COPYRIGHT-NOTE-END ---
18 --- ./scripts/Configure.orig 2003-01-13 23:24:50.000000000 +0100
19 +++ ./scripts/Configure 2003-01-13 23:24:54.000000000 +0100
21 # 24 January 1999, Michael Elizabeth Chastain, <mec@shout.net>
22 # - Improve the exit message (Jeff Ronne).
24 +# 20-06-1999: Added ALL_MODS_HACK and NEVER_ASK_HACK - Clifford
25 +# 01-05-2001: Improved ALL_MODS_HACK - Rene
27 # Make sure we're really running bash.
33 + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
34 readln "$1 ($2) [$defprompt] " "$def" "$old"
36 [yY] | [yY]es ) define_bool "$2" "y"
41 + if [ ".$ALL_MODS_HACK" = .1 -a ".$def" != .y ] ; then
44 + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
45 readln "$1 ($2) [$defprompt] " "$def" "$old"
47 [yY] | [yY]es ) define_tristate "$2" "y"
52 + if [ ".$ALL_MODS_HACK" = .1 ] ; then
55 + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
56 readln "$ques ($var) [$defprompt] " "$def" "$old"
58 [nN] | [nN]o ) define_tristate "$var" "n"
63 + [ -z "$def" -a ".$NEVER_ASK_HACK" = .1 ] && def="0"
64 + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
65 readln "$1 ($2) [$def] " "$def" "$old"
66 if expr \( \( $ans + 0 \) \>= $min \) \& \( $ans \<= $max \) >/dev/null 2>&1 ; then
67 define_int "$2" "$ans"
72 + [ -z "$def" -a ".$NEVER_ASK_HACK" = .1 ] && def="0"
73 + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
74 readln "$1 ($2) [$def] " "$def" "$old"
76 if expr "$ans" : '[0-9a-fA-F][0-9a-fA-F]*$' > /dev/null; then
79 old=$(eval echo "\${$2}")
81 + [ -z "$def" -a ".$NEVER_ASK_HACK" = .1 ] && def="-"
82 + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
84 if [ "$old" = "?" ]; then
85 readln "$1 ($2) [$def] " "$def" ""
88 while [ -z "$val" ]; do
90 + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
91 readln "$question ($names) [$def] " "$def" "$old"
92 ans=$(echo $ans | tr a-z A-Z)
95 echo "#define AUTOCONF_INCLUDED" >> $CONFIG_H
98 -if [ "$1" = "-d" ] ; then
102 +if [ "$1" = "-d" -o "$1" = "-D" -o "$1" = "-m" -o "$1" = "-M" ] ; then
103 + [ "$1" = "-D" -o "$1" = "-M" ] && NEVER_ASK_HACK="1"
104 + [ "$1" = "-m" -o "$1" = "-M" ] && ALL_MODS_HACK="1"
109 +[ $NEVER_ASK_HACK = 1 ] && echo "Debug: NEVER_ASK_HACK active."
110 +[ $ALL_MODS_HACK = 1 ] && echo "Debug: ALL_MODS_HACK active."
112 CONFIG_IN=./config.in
113 if [ "$1" != "" ] ; then
115 --- ./Makefile.orig 2003-01-13 23:24:57.000000000 +0100
116 +++ ./Makefile 2003-01-13 23:25:56.000000000 +0100
119 $(CONFIG_SHELL) scripts/Configure -d arch/$(ARCH)/config.in
121 +no2modconfig: symlinks
122 + $(CONFIG_SHELL) scripts/Configure -m arch/$(ARCH)/config.in
125 $(MAKE) -C scripts kconfig.tk
126 wish -f scripts/kconfig.tk