diff options
author | Colin Patrick McCabe <cmccabe@alumni.cmu.edu> | 2010-11-05 11:34:11 -0700 |
---|---|---|
committer | Colin Patrick McCabe <cmccabe@alumni.cmu.edu> | 2010-11-05 11:34:11 -0700 |
commit | f015c9894af1affd428ef511a95bde0908a09d99 (patch) | |
tree | 460350dff0ed5b598cdbb2e3ddda78de09e10daf /autogen.sh | |
parent | 62716aa7c9a264c7a575bbccde0d8a7002563210 (diff) | |
download | ceph-f015c9894af1affd428ef511a95bde0908a09d99.tar.gz |
autogen.sh: check for pkg-config
To avoid seeing confusing errors later in the configure process, in
autogen.sh, check to make sure the pkg-config program is installed.
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh index b24ef2f405b..3db6dea7bd3 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,6 +1,19 @@ #!/bin/sh + +check_for_pkg_config() { + which pkg-config >/dev/null && return + + echo + echo "Error: could not find pkg-config" + echo + echo "Please make sure you have pkg-config installed." + echo + exit 1 +} + rm -f config.cache aclocal #-I m4 +check_for_pkg_config libtoolize --force --copy autoconf autoheader |