Amos wrote: >Maybe this would be the better one if it works:
> AC_CHECK_LIB(crypt, crypt, [CRYPTLIB=" -lcrypt "]) > AC_CHECK_LIB(md5, MD5Init, [CRYPTLIB+=" -lmd5 "]) This works fine. (still learning how to use these GNU auto-tools. I am a C/UNIX developer by profession but don't use GNU tools other than GCC occasionally. Thanks for the help and for your patience!) > If there were any other changes beyond the patch I sent and the > above could you send me a patch back and I'll queue it for any > future 26 releases. No changes other than your patch, copy/paste amendment to it, and the above configure.in addition. I noticed something though and I'm not certain of the desired behavior. If I use the --enable-ssl flag openssl is found and it appears to be enabled (looking at autoconf.h) Running ldd against the squid binary shows that it's linked against the openssl libs. The interesting thing is that I don't get any of those MD5 conflict messages like I thought I would. Without the --enable-ssl flag the Solaris MD5 header and library are used. If I provide the --with-openssl=, I can use an alternate OpenSSL installation ( SunStudio-built and aggressively optimized ) Is this the desired (new) behavior? Running configure --help says that --enable-ssl enables gatewaying support using OpenSSL so I'm assuming that it is. I'm just wanting to be sure that the OS's support is functioning correctly. What's the best way to thoroughly test this? >> I'm not quite as lucky with 3.0.RC1 yet. > Okay. That looks like another seperate problem than MD5. > For some reason you have "-Wl,-R -Wl,/usr/sfw/lib/amd64" > twice times at the end of the g++ parameters, that looks to be > the problem. Are you manually setting those flags or leaving > to the autotools? I was setting -L and -R flags in in the LDFLAGS env variable during configure since with GCC I often have problems with the runtime linker not being able to find libraries and trying to use 32 bit libraries when doing a 64 bit build if I don't set them. I have removed all -L and -R paths (and I do not set LD_LIBRARY_PATH on Solaris) yet I still end up with the duplicate linker arguments. I'm off to see if I can figure out how this is happening. Kind regards -- Randall D. DuCharme (Radio AD5GB) Powered by OpenSolaris! http://www.opensolaris.org _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web!
