PolarDB-for-PostgreSQL
54 строки · 1.3 Кб
1#! /bin/sh
2
3# config/missing
4
5# This is *not* the GNU `missing' script, although it is similar in
6# concept. You can call it from the makefiles to get consistent
7# behavior when certain utility programs are missing.
8
9case $1 in
10flex|bison)
11# `missing flex|bison <input> <output>'
12input=$2
13output=$3
14if test -f "$output"; then
15echo "\
16***
17WARNING: \`$1' is missing on your system. You should only need it
18if you changed the file \`$input'; these changes will not take effect.
19You can get $1 from a GNU mirror site.
20***" >&2
21echo "touch $output"
22touch "$output"
23exit 0
24else # ! test -f $output
25echo "\
26***
27ERROR: \`$1' is missing on your system. It is needed to create the
28file \`$output'. You can either get $1 from a GNU mirror site
29or download an official distribution of PostgreSQL, which contains
30pre-packaged $1 output.
31***" >&2
32exit 1
33fi
34;;
35
36perl)
37# `missing perl'
38echo "\
39***
40ERROR: Perl is missing on your system. It is needed unless you are building
41from an unmodified official distribution of PostgreSQL.
42***" >&2
43exit 1
44;;
45
46*)
47# `missing something-or-other'
48echo "\
49***
50ERROR: \`$1' is missing on your system.
51***" >&2
52exit 1
53;;
54esac
55