I've played around a bit with the autotool scripts, and may have a better approach for building on the RedHat family of distributions.
You are free to choose the best option. We only create working versions for all Unix. If you start using packages then there is no standard.
My impression is that there are other distributions and platforms that use pkg-config as well, so my patch should build correctly on those as well.
If pkg-config is not present, configure will use the 'openssl_prefix' variable as it already does.
Sorry but this is not really correct. Many people use old distributions with packaged OpenSSL 0.9.6 and manually compiled and installed OpenSSL 0.9.7 in /usr/local/ssl/. If you only test for the presence of an OpenSSL which was configured by pkg-config then you cannot build OpenCA because OpenCA requires OpenSSL 0.9.7. openssl-prefix must override pkg-config.
The patch tries to compile OpenCA with OpenSSL 0.9.6 if there is a packaged version of OpenSSL 0.9.6 and this is wrong. I can only apply your patch if it always enforces --with-openssl-prefix if it is set.
The fix also moves the logic for setting the positions of the OpenSSL libraries from a number of Makefile.am files into the corresponding configure.in files, and fixes a small problem with Makefile.devel where it did not call aclocal at the top level.
The moving of the openssl references makes the makefiles nicer. So it is ok. Why do you want to run aclocal before autoconf at toplevel?
Can you please try to build a new patch which always respects --with-openssl-prefix? If you do this then I don't have to extract the other changes from the patch and can simply apply the patch. Except of the openssl prefix I see no problems.
Michael -- ------------------------------------------------------------------- Michael Bell Email: [EMAIL PROTECTED] ZE Computer- und Medienservice Tel.: +49 (0)30-2093 2482 (Computing Centre) Fax: +49 (0)30-2093 2704 Humboldt-University of Berlin Unter den Linden 6 10099 Berlin Email (private): [EMAIL PROTECTED] Germany http://www.openca.org
------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ OpenCA-Devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/openca-devel