summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-17 14:40:28 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-17 14:40:28 +0000
commitcbf7c76141d6a8acfa3226ae756bb6ac9e9dc78e (patch)
tree63dc1bbade7d7a6d566eb585b739c61617ab6da5 /configure
parent54d735ad40551c65097fc14a04f450620d23bad0 (diff)
downloadmandoc-cbf7c76141d6a8acfa3226ae756bb6ac9e9dc78e.tar.gz
Make the directory explicit where source files are located.
This is simple and seems to help the NetBSD build infrastructure. From Christos Zoulas <christos at NetBSD>.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index 61b6ba82..001f0da8 100755
--- a/configure
+++ b/configure
@@ -33,6 +33,8 @@ echo "config.log: writing..."
# Initialize all variables here,
# such that nothing can leak in from the environment.
+SOURCEDIR=`dirname "$0"`
+
MANPATH_DEFAULT="/usr/share/man:/usr/X11R6/man:/usr/local/man"
OSNAME=
UTF8_LOCALE=
@@ -155,7 +157,8 @@ ${1}${3}: testing...
${COMP} -o test-${1} test-${1}.c ${3}
__HEREDOC__
- if ${COMP} -o "test-${1}" "test-${1}.c" ${3} 1>&3 2>&3; then
+ if ${COMP} -o "test-${1}" "${SOURCEDIR}/test-${1}.c" ${3} 1>&3 2>&3
+ then
echo "${1}${3}: ${CC} succeeded" 1>&3
else
echo "${1}${3}: ${CC} failed with $?" 1>&3