From 3635906404d450b2b2019ef4f6e3fe7391653446 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 10 Mar 2014 10:59:31 +0100 Subject: [PATCH] Introduce helper var yazconf --- Makefile.PL | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index ce6062b..0024abe 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -5,9 +5,10 @@ use 5.008; use ExtUtils::MakeMaker; use strict; -my $yazver = `yaz-config --version`; -my $yazinc = `yaz-config --cflags threads`; -my $yazlibs = `yaz-config --libs threads`; +my $yazconf = "yaz-config"; +my $yazver = `$yazconf --version`; +my $yazinc = `$yazconf --cflags threads`; +my $yazlibs = `$yazconf --libs threads`; if (!$yazver || !$yazinc || !$yazlibs) { die qq[ ERROR: Unable to call script: yaz-config -- 1.7.10.4