1 |
|
#! /bin/sh |
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 Free Software Foundation, Inc. |
4 |
|
# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996. |
5 |
|
|
6 |
|
# This program is free software; you can redistribute it and/or modify |
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 |
32 |
+ |
fi |
33 |
+ |
|
34 |
|
case "$1" in |
35 |
|
|
36 |
|
-h|--h|--he|--hel|--help) |
69 |
|
aclocal) |
70 |
|
echo 1>&2 "\ |
71 |
|
WARNING: \`$1' is missing on your system. You should only need it if |
72 |
< |
you modified \`acinclude.m4' or \`configure.in'. You might want |
72 |
> |
you modified \`acinclude.m4' or \`$configure_ac'. You might want |
73 |
|
to install the \`Automake' and \`Perl' packages. Grab them from |
74 |
|
any GNU archive site." |
75 |
|
touch aclocal.m4 |
78 |
|
autoconf) |
79 |
|
echo 1>&2 "\ |
80 |
|
WARNING: \`$1' is missing on your system. You should only need it if |
81 |
< |
you modified \`configure.in'. You might want to install the |
81 |
> |
you modified \`$configure_ac'. You might want to install the |
82 |
|
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU |
83 |
|
archive site." |
84 |
|
touch configure |
87 |
|
autoheader) |
88 |
|
echo 1>&2 "\ |
89 |
|
WARNING: \`$1' is missing on your system. You should only need it if |
90 |
< |
you modified \`acconfig.h' or \`configure.in'. You might want |
90 |
> |
you modified \`acconfig.h' or \`$configure_ac'. You might want |
91 |
|
to install the \`Autoconf' and \`GNU m4' packages. Grab them |
92 |
|
from any GNU archive site." |
93 |
< |
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` |
94 |
|
test -z "$files" && files="config.h" |
95 |
|
touch_files= |
96 |
|
for f in $files; do |
106 |
|
automake) |
107 |
|
echo 1>&2 "\ |
108 |
|
WARNING: \`$1' is missing on your system. You should only need it if |
109 |
< |
you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'. |
109 |
> |
you modified \`Makefile.am', \`acinclude.m4' or \`$configure_ac'. |
110 |
|
You might want to install the \`Automake' and \`Perl' packages. |
111 |
|
Grab them from any GNU archive site." |
112 |
|
find . -type f -name Makefile.am -print | |