Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Automake Difficulties
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey all.  I believe I'm posting this in the right place, but if not,
please let me know.

So here's my problem.  I've written a small shared library of
input/output routines that builds on top of the standard C library
because I'm not terribly fond of the default ones.  I've bundled this
into a GNU Automake package called libxio.

Rather than forcing people to download libxio with all my programs, I've
included it with them by extracting it into a libxio directory, adding
the line
AC_CONFIG_SUBDIRS(libxio)
to configure.in, and the line
SUBDIRS = libxio
to Makefile.am.

This works just fine except for the fact that when one of these programs
is uninstalled, it removes libxio, in effect breaking all the other
programs that use it.

Short of using static library, is there any way I can fix this problem?

- --
Regards,
Jonathan Lamothe

/*
* Oops. The kernel tried to access some bad page. We'll have to
* terminate things with extreme prejudice.
*/

die_if_kernel("Oops", regs, error_code);
-- From linux/arch/i386/mm/fault.c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

 iD8DBQFEuZhCNrv4JaRC3JsRAh+DAJ9TWjnappDM
/OmMxewn4AgbnzwmVwCfRGzt
L02o3qVE0wiYASY4MyKldY4=
=noKz
-----END PGP SIGNATURE-----

Report this thread to moderator Post Follow-up to this message
Old Post
Jonathan Lamothe
07-16-06 03:00 AM


Re: Automake Difficulties
Jonathan Lamothe wrote:
> This works just fine except for the fact that when one of these programs
> is uninstalled, it removes libxio, in effect breaking all the other
> programs that use it.
>
> Short of using static library, is there any way I can fix this problem?

Well, there's an automake target called 'install-exec-local' which you
could use to "manually" install the library; then the 'make uninstall'
command would know nothing about it and leave it alone.  But (1) it's
adding extra complexity, and (2) when users type 'make uninstall' they
expect it to be the complete inverse of 'make install', and not leave
stuff lying around.  The only gain is a slightly smaller executable.
I'd stick with the static library.

Glenn


Report this thread to moderator Post Follow-up to this message
Old Post
Glenn
07-16-06 12:59 PM


Re: Automake Difficulties
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Glenn wrote:
>
> Well, there's an automake target called 'install-exec-local' which you
> could use to "manually" install the library; then the 'make uninstall'
> command would know nothing about it and leave it alone.  But (1) it's
> adding extra complexity, and (2) when users type 'make uninstall' they
> expect it to be the complete inverse of 'make install', and not leave
> stuff lying around.  The only gain is a slightly smaller executable.
> I'd stick with the static library.
>
> Glenn
>

Thanks for the input.  I think that's the way I'll go.  It's not very
large library anyway.

- --
Regards,
Jonathan Lamothe

/*
* Oops. The kernel tried to access some bad page. We'll have to
* terminate things with extreme prejudice.
*/

die_if_kernel("Oops", regs, error_code);
-- From linux/arch/i386/mm/fault.c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

 iD8DBQFEuiAdNrv4JaRC3JsRAvT3AJ0SU4Ye8t3T
iVI7FPGpMaKkmERffgCggzKT
k+KNfFbKNfk4iiItHvTULd4=
=VZse
-----END PGP SIGNATURE-----

Report this thread to moderator Post Follow-up to this message
Old Post
Jonathan Lamothe
07-16-06 12:59 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Unix Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:26 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.