On 22/07/2011, at 12:06 PM, Doug Currie wrote:

> On OSX 10.6.8...
> 
> I've installed a few macports programs; this creates /opt, and puts 
> /opt/local/bin:/opt/local/sbin on the front of my PATH environment variable.
> 
> I'd like to build fossil with the system's /usr includes and libraries, and 
> this is how the Makefile works. Is there a way to force this choice with 
> autosetup's ./configure?
> 
> Using the Makefile, files are compiled (with no warnings or errors) with, 
> e.g.,
> 
> gcc -g -Os -Wall -DFOSSIL_ENABLE_SSL   -I. -I./src -o ./bld/add.o -c 
> ./bld/add_.c
> 
> whereas using the configure generated GNUMakefile
> 
> cc -I/opt/local/include    -g -O2 -DHAVE_AUTOCONFIG_H  -I. -I./src -o 
> ./bld/add.o -c ./bld/add_.c
> 
> Note the extraneous -I/opt/local/include
> 
> Similarly with the configure generated GNUMakefile I also get a LIB option 
> 
> -L/opt/local/lib
> 
> 
> I found that if I removed /opt/local/bin:/opt/local/sbin from my PATH then 
> fossil was built as I expected. This seems like an awkward workaround.

Sure. Try:

./configure --with-openssl=/usr

The problem happens because pkg-config is used to find openssl if nothing is 
specified.
Personally I would be happy to drop this, but perhaps the use of pkg-config is 
important
on some systems.

Cheers,
Steve

--
µWeb: Embedded Web Framework - http://uweb.workware.net.au/
WorkWare Systems Pty Ltd
W: www.workware.net.au      P: +61 434 921 300
E: [email protected]   F: +61 7 3391 6002





_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to