Received: from [140.186.70.92] (port=44882 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2NfM-0006Ko-7o for qemu-devel@nongnu.org; Wed, 23 Mar 2011 09:00:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2NfK-0005sE-R6 for qemu-devel@nongnu.org; Wed, 23 Mar 2011 08:59:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2NfK-0005s8-CI for qemu-devel@nongnu.org; Wed, 23 Mar 2011 08:59:58 -0400 Date: Wed, 23 Mar 2011 14:59:18 +0200 From: Alon Levy Subject: Re: [Qemu-devel] [PATCH v22 06/11] libcacard: initial commit Message-ID: <20110323125918.GD11265@playa.tlv.redhat.com> References: <1300745246-4701-1-git-send-email-alevy@redhat.com> <1300745246-4701-7-git-send-email-alevy@redhat.com> <20110323125404.GC11265@playa.tlv.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20110323125404.GC11265@playa.tlv.redhat.com> Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi , qemu-devel@nongnu.org On Wed, Mar 23, 2011 at 02:54:04PM +0200, Alon Levy wrote: > On Tue, Mar 22, 2011 at 03:25:11PM +0000, Stefan Hajnoczi wrote: > > On Mon, Mar 21, 2011 at 10:07 PM, Alon Levy wrote: > > > +# check for libcacard for smartcard support > > > +if test "$smartcard" !=3D "no" ; then > > > + =A0 =A0smartcard=3D"yes" > > > + =A0 =A0smartcard_cflags=3D"" > > > + =A0 =A0# TODO - what's the minimal nss version we support? > > > + =A0 =A0if test "$smartcard_nss" !=3D "no"; then > > > + =A0 =A0 =A0 =A0if $pkg_config --atleast-version=3D3.12.8 nss >/de= v/null 2>&1 ; then > > > + =A0 =A0 =A0 =A0 =A0 =A0smartcard_nss=3D"yes" > > > + =A0 =A0 =A0 =A0 =A0 =A0smartcard_cflags=3D"-I\$(SRC_PATH)/libcaca= rd" > > > + =A0 =A0 =A0 =A0 =A0 =A0libcacard_libs=3D$($pkg_config --libs nss = 2>/dev/null) > > > + =A0 =A0 =A0 =A0 =A0 =A0libcacard_cflags=3D$($pkg_config --cflags = nss 2>/dev/null) > > > + =A0 =A0 =A0 =A0 =A0 =A0QEMU_CFLAGS=3D"$QEMU_CFLAGS $smartcard_cfl= ags $libcacard_cflags" > > > + =A0 =A0 =A0 =A0 =A0 =A0LIBS=3D"$libcacard_libs $LIBS" > > > + =A0 =A0 =A0 =A0else > > > + =A0 =A0 =A0 =A0 =A0 =A0if test "$smartcard_nss" =3D=3D "yes"; the= n > > > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0feature_not_found "nss" > > > + =A0 =A0 =A0 =A0 =A0 =A0fi > > > + =A0 =A0 =A0 =A0 =A0 =A0smartcard_nss=3D"no" > > > + =A0 =A0 =A0 =A0fi > > > + =A0 =A0fi > > > +fi > > > +if test "$smartcard" =3D=3D "no" ; then > > > + =A0 =A0smartcard_nss=3D"no" > > > +fi > >=20 > > '=3D=3D' is not portable, please use '=3D': > >=20 > > $ test x =3D=3D y > > test: 1: x: unexpected operator > >=20 > > I noticed that this patch introduces error messages here when I run .= /configure. > >=20 > > > +if [ $source_path !=3D `pwd` ]; then > > > + =A0 =A0# out of tree build > > > + =A0 =A0mkdir -p libcacard > > > + =A0 =A0rm -f libcacard/Makefile > > > + =A0 =A0ln -s $source_path/libcacard/Makefile libcacard/Makefile > > > +fi > >=20 > > $source_path should have double-quotes around it so this works even > > when the path has spaces. >=20 > it is unquoted in the lines above that patch. I'll fix it in the same p= atch > in v23. Actually, it's unquoted all over the place - solving this is a much bigge= r patch, I'm not going to force it inside this one. I can fix the two unquo= ted instances I've introduced, that leaves 10+ in configure that need fixing. >=20 > >=20 > > Stefan > >=20 >=20