annotate src/fftw-3.3.8/missing @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents bd3cc4d1df30
children
rev   line source
cannam@167 1 #! /bin/sh
cannam@167 2 # Common wrapper for a few potentially missing GNU programs.
cannam@167 3
cannam@167 4 scriptversion=2013-10-28.13; # UTC
cannam@167 5
cannam@167 6 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
cannam@167 7 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
cannam@167 8
cannam@167 9 # This program is free software; you can redistribute it and/or modify
cannam@167 10 # it under the terms of the GNU General Public License as published by
cannam@167 11 # the Free Software Foundation; either version 2, or (at your option)
cannam@167 12 # any later version.
cannam@167 13
cannam@167 14 # This program is distributed in the hope that it will be useful,
cannam@167 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@167 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@167 17 # GNU General Public License for more details.
cannam@167 18
cannam@167 19 # You should have received a copy of the GNU General Public License
cannam@167 20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
cannam@167 21
cannam@167 22 # As a special exception to the GNU General Public License, if you
cannam@167 23 # distribute this file as part of a program that contains a
cannam@167 24 # configuration script generated by Autoconf, you may include it under
cannam@167 25 # the same distribution terms that you use for the rest of that program.
cannam@167 26
cannam@167 27 if test $# -eq 0; then
cannam@167 28 echo 1>&2 "Try '$0 --help' for more information"
cannam@167 29 exit 1
cannam@167 30 fi
cannam@167 31
cannam@167 32 case $1 in
cannam@167 33
cannam@167 34 --is-lightweight)
cannam@167 35 # Used by our autoconf macros to check whether the available missing
cannam@167 36 # script is modern enough.
cannam@167 37 exit 0
cannam@167 38 ;;
cannam@167 39
cannam@167 40 --run)
cannam@167 41 # Back-compat with the calling convention used by older automake.
cannam@167 42 shift
cannam@167 43 ;;
cannam@167 44
cannam@167 45 -h|--h|--he|--hel|--help)
cannam@167 46 echo "\
cannam@167 47 $0 [OPTION]... PROGRAM [ARGUMENT]...
cannam@167 48
cannam@167 49 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
cannam@167 50 to PROGRAM being missing or too old.
cannam@167 51
cannam@167 52 Options:
cannam@167 53 -h, --help display this help and exit
cannam@167 54 -v, --version output version information and exit
cannam@167 55
cannam@167 56 Supported PROGRAM values:
cannam@167 57 aclocal autoconf autoheader autom4te automake makeinfo
cannam@167 58 bison yacc flex lex help2man
cannam@167 59
cannam@167 60 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
cannam@167 61 'g' are ignored when checking the name.
cannam@167 62
cannam@167 63 Send bug reports to <bug-automake@gnu.org>."
cannam@167 64 exit $?
cannam@167 65 ;;
cannam@167 66
cannam@167 67 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
cannam@167 68 echo "missing $scriptversion (GNU Automake)"
cannam@167 69 exit $?
cannam@167 70 ;;
cannam@167 71
cannam@167 72 -*)
cannam@167 73 echo 1>&2 "$0: unknown '$1' option"
cannam@167 74 echo 1>&2 "Try '$0 --help' for more information"
cannam@167 75 exit 1
cannam@167 76 ;;
cannam@167 77
cannam@167 78 esac
cannam@167 79
cannam@167 80 # Run the given program, remember its exit status.
cannam@167 81 "$@"; st=$?
cannam@167 82
cannam@167 83 # If it succeeded, we are done.
cannam@167 84 test $st -eq 0 && exit 0
cannam@167 85
cannam@167 86 # Also exit now if we it failed (or wasn't found), and '--version' was
cannam@167 87 # passed; such an option is passed most likely to detect whether the
cannam@167 88 # program is present and works.
cannam@167 89 case $2 in --version|--help) exit $st;; esac
cannam@167 90
cannam@167 91 # Exit code 63 means version mismatch. This often happens when the user
cannam@167 92 # tries to use an ancient version of a tool on a file that requires a
cannam@167 93 # minimum version.
cannam@167 94 if test $st -eq 63; then
cannam@167 95 msg="probably too old"
cannam@167 96 elif test $st -eq 127; then
cannam@167 97 # Program was missing.
cannam@167 98 msg="missing on your system"
cannam@167 99 else
cannam@167 100 # Program was found and executed, but failed. Give up.
cannam@167 101 exit $st
cannam@167 102 fi
cannam@167 103
cannam@167 104 perl_URL=http://www.perl.org/
cannam@167 105 flex_URL=http://flex.sourceforge.net/
cannam@167 106 gnu_software_URL=http://www.gnu.org/software
cannam@167 107
cannam@167 108 program_details ()
cannam@167 109 {
cannam@167 110 case $1 in
cannam@167 111 aclocal|automake)
cannam@167 112 echo "The '$1' program is part of the GNU Automake package:"
cannam@167 113 echo "<$gnu_software_URL/automake>"
cannam@167 114 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
cannam@167 115 echo "<$gnu_software_URL/autoconf>"
cannam@167 116 echo "<$gnu_software_URL/m4/>"
cannam@167 117 echo "<$perl_URL>"
cannam@167 118 ;;
cannam@167 119 autoconf|autom4te|autoheader)
cannam@167 120 echo "The '$1' program is part of the GNU Autoconf package:"
cannam@167 121 echo "<$gnu_software_URL/autoconf/>"
cannam@167 122 echo "It also requires GNU m4 and Perl in order to run:"
cannam@167 123 echo "<$gnu_software_URL/m4/>"
cannam@167 124 echo "<$perl_URL>"
cannam@167 125 ;;
cannam@167 126 esac
cannam@167 127 }
cannam@167 128
cannam@167 129 give_advice ()
cannam@167 130 {
cannam@167 131 # Normalize program name to check for.
cannam@167 132 normalized_program=`echo "$1" | sed '
cannam@167 133 s/^gnu-//; t
cannam@167 134 s/^gnu//; t
cannam@167 135 s/^g//; t'`
cannam@167 136
cannam@167 137 printf '%s\n' "'$1' is $msg."
cannam@167 138
cannam@167 139 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
cannam@167 140 case $normalized_program in
cannam@167 141 autoconf*)
cannam@167 142 echo "You should only need it if you modified 'configure.ac',"
cannam@167 143 echo "or m4 files included by it."
cannam@167 144 program_details 'autoconf'
cannam@167 145 ;;
cannam@167 146 autoheader*)
cannam@167 147 echo "You should only need it if you modified 'acconfig.h' or"
cannam@167 148 echo "$configure_deps."
cannam@167 149 program_details 'autoheader'
cannam@167 150 ;;
cannam@167 151 automake*)
cannam@167 152 echo "You should only need it if you modified 'Makefile.am' or"
cannam@167 153 echo "$configure_deps."
cannam@167 154 program_details 'automake'
cannam@167 155 ;;
cannam@167 156 aclocal*)
cannam@167 157 echo "You should only need it if you modified 'acinclude.m4' or"
cannam@167 158 echo "$configure_deps."
cannam@167 159 program_details 'aclocal'
cannam@167 160 ;;
cannam@167 161 autom4te*)
cannam@167 162 echo "You might have modified some maintainer files that require"
cannam@167 163 echo "the 'autom4te' program to be rebuilt."
cannam@167 164 program_details 'autom4te'
cannam@167 165 ;;
cannam@167 166 bison*|yacc*)
cannam@167 167 echo "You should only need it if you modified a '.y' file."
cannam@167 168 echo "You may want to install the GNU Bison package:"
cannam@167 169 echo "<$gnu_software_URL/bison/>"
cannam@167 170 ;;
cannam@167 171 lex*|flex*)
cannam@167 172 echo "You should only need it if you modified a '.l' file."
cannam@167 173 echo "You may want to install the Fast Lexical Analyzer package:"
cannam@167 174 echo "<$flex_URL>"
cannam@167 175 ;;
cannam@167 176 help2man*)
cannam@167 177 echo "You should only need it if you modified a dependency" \
cannam@167 178 "of a man page."
cannam@167 179 echo "You may want to install the GNU Help2man package:"
cannam@167 180 echo "<$gnu_software_URL/help2man/>"
cannam@167 181 ;;
cannam@167 182 makeinfo*)
cannam@167 183 echo "You should only need it if you modified a '.texi' file, or"
cannam@167 184 echo "any other file indirectly affecting the aspect of the manual."
cannam@167 185 echo "You might want to install the Texinfo package:"
cannam@167 186 echo "<$gnu_software_URL/texinfo/>"
cannam@167 187 echo "The spurious makeinfo call might also be the consequence of"
cannam@167 188 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
cannam@167 189 echo "want to install GNU make:"
cannam@167 190 echo "<$gnu_software_URL/make/>"
cannam@167 191 ;;
cannam@167 192 *)
cannam@167 193 echo "You might have modified some files without having the proper"
cannam@167 194 echo "tools for further handling them. Check the 'README' file, it"
cannam@167 195 echo "often tells you about the needed prerequisites for installing"
cannam@167 196 echo "this package. You may also peek at any GNU archive site, in"
cannam@167 197 echo "case some other package contains this missing '$1' program."
cannam@167 198 ;;
cannam@167 199 esac
cannam@167 200 }
cannam@167 201
cannam@167 202 give_advice "$1" | sed -e '1s/^/WARNING: /' \
cannam@167 203 -e '2,$s/^/ /' >&2
cannam@167 204
cannam@167 205 # Propagate the correct exit status (expected to be 127 for a program
cannam@167 206 # not found, 63 for a program that failed due to version mismatch).
cannam@167 207 exit $st
cannam@167 208
cannam@167 209 # Local variables:
cannam@167 210 # eval: (add-hook 'write-file-hooks 'time-stamp)
cannam@167 211 # time-stamp-start: "scriptversion="
cannam@167 212 # time-stamp-format: "%:y-%02m-%02d.%02H"
cannam@167 213 # time-stamp-time-zone: "UTC"
cannam@167 214 # time-stamp-end: "; # UTC"
cannam@167 215 # End: