From kde-devel Sun Sep 25 19:05:27 2005 From: Thiago Macieira Date: Sun, 25 Sep 2005 19:05:27 +0000 To: kde-devel Subject: Re: adding check for libraries to a kdevelop configure.in Message-Id: <200509251605.27936.thiago () kde ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=112767514923475 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0726131401==" --===============0726131401== Content-Type: multipart/signed; boundary="nextPart1404991.3cBTtEY5b4"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1404991.3cBTtEY5b4 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Robert Hogan wrote: >I'm checking for a library by adding the following line to the > configure.in in my kdevelop project. is there a better/more robust way? > >AC_CHECK_LIB(appname, test_function, [LIBS=3D"$LIBS >-llibname";],AC_MSG_ERROR(Can't find appname's libraries. Please check > your installtion of appname.)) Yes, KDE_CHECK_LIB. Also don't forget to enclose the string in=20 AC_MSG_ERROR with [ ]. =2D-=20 Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 5. Swa he g=C3=A9anhwearf t=C3=B3 timbran, and hwonne he c=C3=B3m, l=C3=A1!= Unix cw=C3=A6=C3=B0 "Hello,=20 World". =C7=BCfre =C7=BDghwilc w=C3=A6s gl=C3=A6d and seo woruld w=C3=A6s f= r=C3=A9o. --nextPart1404991.3cBTtEY5b4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBDNvT3M/XwBW70U1gRAhiDAJ9mAj+Ido7YKL+sjD8WC8WAaD5z4wCgkqE1 Vy/aDxj2IJLKgL9E21a+x2Y= =xY5Y -----END PGP SIGNATURE----- --nextPart1404991.3cBTtEY5b4-- --===============0726131401== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline = >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib= e << --===============0726131401==--