annotate fft/fftw/fftw-3.3.4/missing @ 40:223f770b5341 kissfft-double tip

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