annotate src/fftw-3.3.8/missing @ 84:08ae793730bd

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