From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 9F02F6DE0C97 for ; Fri, 25 Nov 2016 10:50:06 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.117 X-Spam-Level: X-Spam-Status: No, score=0.117 tagged_above=-999 required=5 tests=[AWL=0.127, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XhvI6kr-qSFT for ; Fri, 25 Nov 2016 10:50:06 -0800 (PST) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id E64686DE0E45 for ; Fri, 25 Nov 2016 10:50:05 -0800 (PST) Received: by guru.guru-group.fi (Postfix, from userid 501) id F0B41100266; Fri, 25 Nov 2016 20:50:50 +0200 (EET) From: Tomi Ollila To: notmuch@notmuchmail.org Cc: tomi.ollila@iki.fi Subject: [PATCH 2/2] fix (rest of the) out of tree build Date: Fri, 25 Nov 2016 20:50:48 +0200 Message-Id: <1480099848-17636-2-git-send-email-too@guru.guru-group.fi> X-Mailer: git-send-email 2.8.2 In-Reply-To: <1480099848-17636-1-git-send-email-too@guru.guru-group.fi> References: <1480099848-17636-1-git-send-email-too@guru.guru-group.fi> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2016 18:50:06 -0000 From: Tomi Ollila With working tests (on various Linux systems). --- V3 of id:1479146030-17083-1-git-send-email-tomi.ollila@iki.fi configure | 6 ++++-- test/test-lib-common.sh | 7 +++++++ test/test-lib.sh | 4 ++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 22767c5..03dddce 100755 --- a/configure +++ b/configure @@ -348,8 +348,8 @@ int main(void) { return 0; } EOF -if ${CC} ${CFLAGS} _libversion.c -o _libversion > /dev/null 2>&1 && \ - ./_libversion > _libversion.sh && . ./_libversion.sh +if ${CC} ${CFLAGS} -I"$srcdir" _libversion.c -o _libversion > /dev/null 2>&1 \ + && ./_libversion > _libversion.sh && . ./_libversion.sh then printf "OK.\n" else @@ -1165,6 +1165,8 @@ cat > sh.config < OUTPUT } @@ -1217,7 +1217,7 @@ test_C () { exec_file="test${test_count}" test_file="${exec_file}.c" cat > ${test_file} - ${TEST_CC} ${TEST_CFLAGS} -I${TEST_DIRECTORY} -I${TEST_DIRECTORY}/../lib -o ${exec_file} ${test_file} -L${TEST_DIRECTORY}/../lib/ -lnotmuch -ltalloc + ${TEST_CC} ${TEST_CFLAGS} -I${TEST_DIRECTORY} -I${SOURCE_DIRECTORY}/lib -o ${exec_file} ${test_file} -L${TEST_DIRECTORY}/../lib/ -lnotmuch -ltalloc echo "== stdout ==" > OUTPUT.stdout echo "== stderr ==" > OUTPUT.stderr ./${exec_file} "$@" 1>>OUTPUT.stdout 2>>OUTPUT.stderr -- 2.10.0