On Mon, Sep 30, 2002 at 01:14:56AM -0700, George wrote:
> This is my configure for OSXS 10.2 (Jaguar).
> 
> RANLIB="ranlib -c"
> CFLAGS="-traditional-cpp"
> CXXFLAGS="-traditional-cpp"
> export RANLIB
> export CFLAGS
> export CXXFLAGS
> CC=gcc2 ./configure \
> --with-mysql-libs=/usr/local/mysql/lib \
> --with-mysql-include=/usr/local/mysql/include \
> --prefix=/usr/local/lib/courier-imap \
> --with-waitfunc=wait3 \
> --enable-mimetypes \
> --with-authmysql \
> --without-ipv6

If this is really what you used, the correct flag is --with-mysql-includes,
with an 's' at the end. Some configure options allow partial flags, but I
don't think this is one of them. It probably just ignored that flag.


> As you can see my mysql includes are not located in the "usual" place,
> and this is where my configuration problem begins:
> 
> All the includes that are required by top level files are found and
> processed, but when authmysql.c references (on line 19) the file 
> "authmysql.h"
> which in turn is looking for mysql.h and errmsg.h from the mysql/inlcudes -
> it looses track of where the includes are and looks for them in a 
> default unix location. It happens in three different files.

It doesn't look in a default unix location, but in any subdirectory that
is in the include path. By default, this is usually /usr/include and 
/usr/local/include, but if you type the --with-mysql-includes flag
correctly, it should pick them up.


> authmysql.h     line 8  =   #include  <mysql.h>
> authmysql.h     line 9  =   #include  <errmsg.h>
> authmysqllib.c  line 13  =  #include  <mysql.h>
> 
> I ended up spelling out "</usr/local/mysql/include/mysql.h>" their path
> and now it is finishing the "make - make check" process without any
> error message. My question is if that is acceptable. I don't want to 
> discover some problems down the road. It ended up compiling without 
> error messages,

If it actually compiled with mysql support, it's fine--the compiler
doesn't really care how it gets the header.

m.




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to