Standard location to put extension info?

Hi,

I need to store some information such as the default log level, an
absolute path that’ll contains the repository location in the file
system for an extension written in C. This extension is a wrapper to
a library and I need to pass this information on to those library
functions. The “repository location” will change depending on where
the users have installed the library.

Is there a standard way of doing it without depending on the
configuration files/settings from a framework such as Ruby on Rails?
That way the extension will be usable regardless of the framework
being used. Any clues, pointers how am I to go about doing this will
greatly be appreciated.

Thanks in advance,

Bye,

-Chintana