OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
4.0 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../linux24-psionw/12-conf-hacks.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  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
  15. # version.
  16. # --- T2-COPYRIGHT-NOTE-END ---
  17. --- ./scripts/Configure.orig 2003-01-13 23:24:50.000000000 +0100
  18. +++ ./scripts/Configure 2003-01-13 23:24:54.000000000 +0100
  19. @@ -49,6 +49,8 @@
  20. # 24 January 1999, Michael Elizabeth Chastain, <mec@shout.net>
  21. # - Improve the exit message (Jeff Ronne).
  22. +# 20-06-1999: Added ALL_MODS_HACK and NEVER_ASK_HACK - Clifford
  23. +# 01-05-2001: Improved ALL_MODS_HACK - Rene
  24. #
  25. # Make sure we're really running bash.
  26. #
  27. @@ -184,6 +186,7 @@
  28. ;;
  29. esac
  30. while :; do
  31. + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
  32. readln "$1 ($2) [$defprompt] " "$def" "$old"
  33. case "$ans" in
  34. [yY] | [yY]es ) define_bool "$2" "y"
  35. @@ -216,6 +219,10 @@
  36. ;;
  37. esac
  38. while :; do
  39. + if [ ".$ALL_MODS_HACK" = .1 -a ".$def" != .y ] ; then
  40. + old=m ; def=m
  41. + fi
  42. + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
  43. readln "$1 ($2) [$defprompt] " "$def" "$old"
  44. case "$ans" in
  45. [yY] | [yY]es ) define_tristate "$2" "y"
  46. @@ -271,6 +278,10 @@
  47. ;;
  48. esac
  49. while :; do
  50. + if [ ".$ALL_MODS_HACK" = .1 ] ; then
  51. + old=m ; def=m
  52. + fi
  53. + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
  54. readln "$ques ($var) [$defprompt] " "$def" "$old"
  55. case "$ans" in
  56. [nN] | [nN]o ) define_tristate "$var" "n"
  57. @@ -359,6 +370,8 @@
  58. max=10000000 # !!
  59. fi
  60. while :; do
  61. + [ -z "$def" -a ".$NEVER_ASK_HACK" = .1 ] && def="0"
  62. + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
  63. readln "$1 ($2) [$def] " "$def" "$old"
  64. if expr \( \( $ans + 0 \) \>= $min \) \& \( $ans \<= $max \) >/dev/null 2>&1 ; then
  65. define_int "$2" "$ans"
  66. @@ -390,6 +403,8 @@
  67. def=${old:-$3}
  68. def=${def#*[x,X]}
  69. while :; do
  70. + [ -z "$def" -a ".$NEVER_ASK_HACK" = .1 ] && def="0"
  71. + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
  72. readln "$1 ($2) [$def] " "$def" "$old"
  73. ans=${ans#*[x,X]}
  74. if expr "$ans" : '[0-9a-fA-F][0-9a-fA-F]*$' > /dev/null; then
  75. @@ -420,6 +435,8 @@
  76. function string () {
  77. old=$(eval echo "\${$2}")
  78. def=${old:-$3}
  79. + [ -z "$def" -a ".$NEVER_ASK_HACK" = .1 ] && def="-"
  80. + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
  81. while :; do
  82. if [ "$old" = "?" ]; then
  83. readln "$1 ($2) [$def] " "$def" ""
  84. @@ -474,6 +491,7 @@
  85. val=""
  86. while [ -z "$val" ]; do
  87. ambg=n
  88. + [ -z "$old" -a ".$NEVER_ASK_HACK" = .1 ] && old="$def"
  89. readln "$question ($names) [$def] " "$def" "$old"
  90. ans=$(echo $ans | tr a-z A-Z)
  91. set -- $choices
  92. @@ -534,11 +552,19 @@
  93. echo "#define AUTOCONF_INCLUDED" >> $CONFIG_H
  94. DEFAULT=""
  95. -if [ "$1" = "-d" ] ; then
  96. +ALL_MODS_HACK="0"
  97. +NEVER_ASK_HACK="0"
  98. +
  99. +if [ "$1" = "-d" -o "$1" = "-D" -o "$1" = "-m" -o "$1" = "-M" ] ; then
  100. + [ "$1" = "-D" -o "$1" = "-M" ] && NEVER_ASK_HACK="1"
  101. + [ "$1" = "-m" -o "$1" = "-M" ] && ALL_MODS_HACK="1"
  102. DEFAULT="-d"
  103. shift
  104. fi
  105. +[ $NEVER_ASK_HACK = 1 ] && echo "Debug: NEVER_ASK_HACK active."
  106. +[ $ALL_MODS_HACK = 1 ] && echo "Debug: ALL_MODS_HACK active."
  107. +
  108. CONFIG_IN=./config.in
  109. if [ "$1" != "" ] ; then
  110. CONFIG_IN=$1
  111. --- ./Makefile.orig 2003-01-13 23:24:57.000000000 +0100
  112. +++ ./Makefile 2003-01-13 23:25:56.000000000 +0100
  113. @@ -301,6 +301,9 @@
  114. oldconfig: symlinks
  115. $(CONFIG_SHELL) scripts/Configure -d arch/$(ARCH)/config.in
  116. +no2modconfig: symlinks
  117. + $(CONFIG_SHELL) scripts/Configure -m arch/$(ARCH)/config.in
  118. +
  119. xconfig: symlinks
  120. $(MAKE) -C scripts kconfig.tk
  121. wish -f scripts/kconfig.tk