1 #! /bin/sh |
1 #! /bin/sh |
2 # Common stub for a few missing GNU programs while installing. |
2 # Common stub for a few missing GNU programs while installing. |
3 # Copyright (C) 1996, 1997 Free Software Foundation, Inc. |
3 # Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc. |
4 # Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996. |
4 # Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996. |
5 |
5 |
6 # This program is free software; you can redistribute it and/or modify |
6 # This program is free software; you can redistribute it and/or modify |
7 # it under the terms of the GNU General Public License as published by |
7 # it under the terms of the GNU General Public License as published by |
8 # the Free Software Foundation; either version 2, or (at your option) |
8 # the Free Software Foundation; either version 2, or (at your option) |
19 # 02111-1307, USA. |
19 # 02111-1307, USA. |
20 |
20 |
21 if test $# -eq 0; then |
21 if test $# -eq 0; then |
22 echo 1>&2 "Try \`$0 --help' for more information" |
22 echo 1>&2 "Try \`$0 --help' for more information" |
23 exit 1 |
23 exit 1 |
|
24 fi |
|
25 |
|
26 # In the cases where this matters, `missing' is being run in the |
|
27 # srcdir already. |
|
28 if test -f configure.in; then |
|
29 configure_ac=configure.ac |
|
30 else |
|
31 configure_ac=configure.in |
24 fi |
32 fi |
25 |
33 |
26 case "$1" in |
34 case "$1" in |
27 |
35 |
28 -h|--h|--he|--hel|--help) |
36 -h|--h|--he|--hel|--help) |
56 echo 1>&2 "$0: Unknown \`$1' option" |
64 echo 1>&2 "$0: Unknown \`$1' option" |
57 echo 1>&2 "Try \`$0 --help' for more information" |
65 echo 1>&2 "Try \`$0 --help' for more information" |
58 exit 1 |
66 exit 1 |
59 ;; |
67 ;; |
60 |
68 |
61 aclocal) |
69 aclocal*) |
62 echo 1>&2 "\ |
70 echo 1>&2 "\ |
63 WARNING: \`$1' is missing on your system. You should only need it if |
71 WARNING: \`$1' is missing on your system. You should only need it if |
64 you modified \`acinclude.m4' or \`configure.in'. You might want |
72 you modified \`acinclude.m4' or \`$configure_ac'. You might want |
65 to install the \`Automake' and \`Perl' packages. Grab them from |
73 to install the \`Automake' and \`Perl' packages. Grab them from |
66 any GNU archive site." |
74 any GNU archive site." |
67 touch aclocal.m4 |
75 touch aclocal.m4 |
68 ;; |
76 ;; |
69 |
77 |
70 autoconf) |
78 autoconf) |
71 echo 1>&2 "\ |
79 echo 1>&2 "\ |
72 WARNING: \`$1' is missing on your system. You should only need it if |
80 WARNING: \`$1' is missing on your system. You should only need it if |
73 you modified \`configure.in'. You might want to install the |
81 you modified \`$configure_ac'. You might want to install the |
74 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU |
82 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU |
75 archive site." |
83 archive site." |
76 touch configure |
84 touch configure |
77 ;; |
85 ;; |
78 |
86 |
79 autoheader) |
87 autoheader) |
80 echo 1>&2 "\ |
88 echo 1>&2 "\ |
81 WARNING: \`$1' is missing on your system. You should only need it if |
89 WARNING: \`$1' is missing on your system. You should only need it if |
82 you modified \`acconfig.h' or \`configure.in'. You might want |
90 you modified \`acconfig.h' or \`$configure_ac'. You might want |
83 to install the \`Autoconf' and \`GNU m4' packages. Grab them |
91 to install the \`Autoconf' and \`GNU m4' packages. Grab them |
84 from any GNU archive site." |
92 from any GNU archive site." |
85 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in` |
93 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' $configure_ac` |
86 test -z "$files" && files="config.h" |
94 test -z "$files" && files="config.h" |
87 touch_files= |
95 touch_files= |
88 for f in $files; do |
96 for f in $files; do |
89 case "$f" in |
97 case "$f" in |
90 *:*) touch_files="$touch_files "`echo "$f" | |
98 *:*) touch_files="$touch_files "`echo "$f" | |
93 esac |
101 esac |
94 done |
102 done |
95 touch $touch_files |
103 touch $touch_files |
96 ;; |
104 ;; |
97 |
105 |
98 automake) |
106 automake*) |
99 echo 1>&2 "\ |
107 echo 1>&2 "\ |
100 WARNING: \`$1' is missing on your system. You should only need it if |
108 WARNING: \`$1' is missing on your system. You should only need it if |
101 you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'. |
109 you modified \`Makefile.am', \`acinclude.m4' or \`$configure_ac'. |
102 You might want to install the \`Automake' and \`Perl' packages. |
110 You might want to install the \`Automake' and \`Perl' packages. |
103 Grab them from any GNU archive site." |
111 Grab them from any GNU archive site." |
104 find . -type f -name Makefile.am -print | |
112 find . -type f -name Makefile.am -print | |
105 sed 's/\.am$/.in/' | |
113 sed 's/\.am$/.in/' | |
106 while read f; do touch "$f"; done |
114 while read f; do touch "$f"; done |