Compiling mmc with -lkrb5 (with little moto elegy)

Stefano Corsi <[email protected]> Tue, 4 Feb 2003 10:04:12 +0000
Newsgroups gmane.comp.lang.moto.devel
Organization Moto Project
Message-ID <[email protected]>
Ok, if I put -lkrb5 in PGSQL.i and then recompile everything it works, this 
time.

I get these greetings but I suppose they are harmless:

### Hey, somebody already initialized the memory manager

### Hey, somebody already initialized the context

### Hey, somebody already initialized the memory manager

### Hey, somebody already initialized the context

My application is MUCH faster when compiled and loaded under apache. And it 
works at first try! Very cool! Where is all that 
alpha-beta-pre-alpha-pre-beta-01-prerc1-c1-todo-segfault behaviour I use to 
experience in lots of freshmeat applications? Where are bugs? Where are 
crashes and spurious messages?
I'm REALLY impressed. I have used lots of popular web languages (including 
coldfusion) and never never had so easy implementing a little application 
with database and everything.

I see this is the code in configure.in to check for library presence:

AC_CHECK_LIB(crypt,crypt,[MXLIBCRYPT="Library: -lcrypt"])
AC_CHECK_LIB(crypto,ERR_reason_error_string,[MXLIBCRYPTO="Library: -lcrypto"])
AC_CHECK_LIB(ssl,SSL_free,[MXLIBSSL="Library: -lssl"])

If I want to check for krb5, should I put a line like 

AC_CHECK_LIB(krb5,XXXXXXXXX,[MXLIBKRB5="Library: -lkrb5"])

where XXXXXXXXX is a "char XXXXXXXXX()" function? I see that configure checks 
for symbols passed as (char)... or is there a way to specify different return 
types and parameters for symbols checked by configure?

Stefano