Re: configure and mySQL Database

Javier Fernandez-Sanguino <[email protected]>
Newsgroups gmane.comp.security.nessus.devel
Organization Germinus
Message-ID <[email protected]>
William Heinbockel wrote:
> Does anyone here have any experience with making configure scripts?
> I think Renaud uses autoconf, but I have no clue on how to append
> to his stuff to have it check for the mysql.h library.
	I do have experience with autoconf scripts. Let me give it a try.

> 
> If the library is there, we might need to check to see if it is
> thread-safe.  When the qualifications are met, then nessusd
> needs compiled with USE_MYSQL (or similar).
> 
> I have no idea on how to go about doing this.
> If someone could explain to me how to do it, it would be greatly
> appreciated.

IMHO we should not be making something too mysql-dependant. The use of 
the database should be something to be selected the same way some 
experimental features are. Thus a --enable-database should plug-in the 
code for mysql/postgresql/whatever..

The DB code should be generic enough so that users can select whatever 
database they want and using #ifdefs include the proper code. We need a 
generic open_database function which would call whatever database the 
user has configured.


	Javi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.