Ah, I see you're running into the same problem I did a while back.
(I'm the Debian glide maintainer.)

What we do is actually pretty close to that, I use debconf for the
interface though with a little work it could easily be split out.

Basicly at install time I use lspci to find the cards in the system, if
there is one voodoo card in the system then it just sets it up, it
prompts the user if you have more then one card, or no cards.

It is also setup with debconf so that it is rather easy to change the
selection.

The code in question is mostly perl, feel free to use it and if you have
any questions please let me know.

Zephaniah E. Hull.

On Fri, May 04, 2001 at 07:43:59AM -0400, Mike A. Harris wrote:
> I'd like opinions on what would be the best way of determining at
> runtime what glide library to use?  The current problem is that
> there are 2 Glide libraries for Glide3 - one for Voodoo 3, and
> another for Voodoo 5.  This is inconvenient to say the least.
> 
> Currently, we symlink libglide3.so.3.10.0 to
> glide3/libglide3-v3.so or glide3/libglide3-v5.so
> 
> Unfortunately it is currently done manually, so if a user has a
> Voodoo 5, it explodes out of the box since the symlink points to
> the v3 lib by default.
> 
> Why there can't just be ONE Glide3 library is a whole other
> discussion... ;o)  My current thinking is to create a new
> frontend library containing only an _init(), _fini() that scans
> the pci devices looking for a voodoo 3/5 card, and dlopen()'s the
> appropriate library.
> 
> Any pre-existing code out there to solve this problem?  I don't
> have any 3dfx cards to test with at all, so any help getting a
> solution happening would be great.
> 
> Thoughts/comments/suggestions, etc.?
> 
> 
> TIA
> 
> 
> 
> 
> ----------------------------------------------------------------------
> Mike A. Harris                  Shipping/mailing address:
> OS Systems Engineer             190 Pittsburgh Ave., Sault Ste. Marie,
> Red Hat Inc.                    Ontario, Canada, P6C 5B3
> http://www.redhat.com           Phone: (705)949-2136
> ----------------------------------------------------------------------
> Latest XFree86 beta RPMS: ftp://people.redhat.com/mharris/xfree86
> 
> 
> _______________________________________________
> Dri-devel mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dri-devel
> 

-- 
 PGP EA5198D1-Zephaniah E. Hull <[EMAIL PROTECTED]>-GPG E65A7801
    Keys available at http://whitestar.soark.net/~warp/public_keys.
           CCs of replies from mailing lists are encouraged.

time.. 
          <G>
<knghtbrd> ahh, okie.

PGP signature

Reply via email to