diff options
author | 1998-02-18 15:16:48 +0000 | |
---|---|---|
committer | 1998-02-18 15:16:48 +0000 | |
commit | a55444b1f0d12b1e13d74ea71993b2f42da3035f (patch) | |
tree | 4754c4f14330c7b700f4b1dda84e259d2aa01b8d /usr.bin/cpp/cpp.sh | |
parent | add an option for kerberos slave servers. (diff) | |
download | wireguard-openbsd-a55444b1f0d12b1e13d74ea71993b2f42da3035f.tar.xz wireguard-openbsd-a55444b1f0d12b1e13d74ea71993b2f42da3035f.zip |
Deal much better with installation problems
Diffstat (limited to 'usr.bin/cpp/cpp.sh')
-rw-r--r-- | usr.bin/cpp/cpp.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/cpp/cpp.sh b/usr.bin/cpp/cpp.sh index c00958801c8..e762de91a5d 100644 --- a/usr.bin/cpp/cpp.sh +++ b/usr.bin/cpp/cpp.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: cpp.sh,v 1.2 1996/06/26 05:32:24 deraadt Exp $ +# $OpenBSD: cpp.sh,v 1.3 1998/02/18 15:16:48 niklas Exp $ # # Copyright (c) 1990 The Regents of the University of California. @@ -52,7 +52,11 @@ FOUNDFILES=no CPP=/usr/libexec/cpp if [ ! -x $CPP ]; then - CPP=`cc -print-libgcc-file-name | sed -e 's/libgcc\.a/cpp/'`; + CPP=`cc -print-search-dirs | sed -ne '/^install: /s/install: \(.*\)/\1cpp/p'`; + if [ ! -x $CPP ]; then + echo "$0: installation problem: $CPP not found/executable" >&2 + exit 1 + fi fi while [ $# -gt 0 ] |