aboutsummaryrefslogtreecommitdiffstats
path: root/krootwarning/admin/missing
diff options
context:
space:
mode:
authorLaurent Montel <lmontel@mandriva.org>2002-05-28 07:51:41 +0000
committerLaurent Montel <lmontel@mandriva.org>2002-05-28 07:51:41 +0000
commit30ece5837b50f59a9d2ae1cb55838a8c7dea0cab (patch)
tree0bfcd457e0654a759c47395f30767521d1d22c88 /krootwarning/admin/missing
parentde5acf37c29eead41fc02a65e961271fe8369f16 (diff)
downloadcommon-data-30ece5837b50f59a9d2ae1cb55838a8c7dea0cab.tar
common-data-30ece5837b50f59a9d2ae1cb55838a8c7dea0cab.tar.gz
common-data-30ece5837b50f59a9d2ae1cb55838a8c7dea0cab.tar.bz2
common-data-30ece5837b50f59a9d2ae1cb55838a8c7dea0cab.tar.xz
common-data-30ece5837b50f59a9d2ae1cb55838a8c7dea0cab.zip
Fix compile with qt3
Diffstat (limited to 'krootwarning/admin/missing')
-rwxr-xr-xkrootwarning/admin/missing28
1 files changed, 23 insertions, 5 deletions
diff --git a/krootwarning/admin/missing b/krootwarning/admin/missing
index 5f9da90..0a7fb5a 100755
--- a/krootwarning/admin/missing
+++ b/krootwarning/admin/missing
@@ -18,6 +18,11 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
if test $# -eq 0; then
echo 1>&2 "Try \`$0 --help' for more information"
exit 1
@@ -25,6 +30,14 @@ fi
run=:
+# In the cases where this matters, `missing' is being run in the
+# srcdir already.
+if test -f configure.ac; then
+ configure_ac=configure.ac
+else
+ configure_ac=configure.in
+fi
+
case "$1" in
--run)
# Try to run requested program, and just exit if it succeeds.
@@ -77,7 +90,7 @@ Supported PROGRAM values:
aclocal)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
- you modified \`acinclude.m4' or \`configure.in'. You might want
+ you modified \`acinclude.m4' or \`${configure_ac}'. You might want
to install the \`Automake' and \`Perl' packages. Grab them from
any GNU archive site."
touch aclocal.m4
@@ -86,7 +99,7 @@ WARNING: \`$1' is missing on your system. You should only need it if
autoconf)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
- you modified \`configure.in'. You might want to install the
+ you modified \`${configure_ac}'. You might want to install the
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
archive site."
touch configure
@@ -95,10 +108,10 @@ WARNING: \`$1' is missing on your system. You should only need it if
autoheader)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
- you modified \`acconfig.h' or \`configure.in'. You might want
+ you modified \`acconfig.h' or \`${configure_ac}'. You might want
to install the \`Autoconf' and \`GNU m4' packages. Grab them
from any GNU archive site."
- files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in`
+ files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
test -z "$files" && files="config.h"
touch_files=
for f in $files; do
@@ -114,7 +127,7 @@ WARNING: \`$1' is missing on your system. You should only need it if
automake)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
- you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
+ you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
You might want to install the \`Automake' and \`Perl' packages.
Grab them from any GNU archive site."
find . -type f -name Makefile.am -print |
@@ -196,6 +209,11 @@ WARNING: \`$1' is missing on your system. You should only need it if
;;
makeinfo)
+ if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
+ # We have makeinfo, but it failed.
+ exit 1
+ fi
+
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a \`.texi' or \`.texinfo' file, or any other file