=================================================================== RCS file: /cvs/mandoc/configure,v retrieving revision 1.43.2.9 retrieving revision 1.43.2.10 diff -u -p -r1.43.2.9 -r1.43.2.10 --- mandoc/configure 2017/02/16 16:21:04 1.43.2.9 +++ mandoc/configure 2017/02/17 14:50:13 1.43.2.10 @@ -1,6 +1,6 @@ #!/bin/sh # -# $Id: configure,v 1.43.2.9 2017/02/16 16:21:04 schwarze Exp $ +# $Id: configure,v 1.43.2.10 2017/02/17 14:50:13 schwarze Exp $ # # Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze # @@ -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= @@ -151,7 +153,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