[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sun compiler and /usr/local/include

From: Dave Hart
Subject: Re: Sun compiler and /usr/local/include
Date: Sat, 6 Mar 2010 09:07:03 +0000

On Sat, Mar 6, 2010 at 01:14 UTC, Harlan Stenn wrote:
> You could look at the in ntp-dev (or any recent
> ntp-stable), say:
> and find the hunk of code starting with:
>  AC_MSG_CHECKING([for openssl include directory])
> and decide for yourself if there is a better way to go...

I wouldn't recommend using that snippet as a model for two reasons:

1)  It tests for openssl/opensslconf.h but no NTP code includes that file.
2)  it tests for the existence of the header rather than its usability.

If I were to improve that snippet, I would use AC_COMPILE_IFELSE in
the loop to attempt to compile a trivial program that calls an openssl
function #including the same header file(s) as the real openssl client
code in NTP.  Looking at libntp/ssl_init.c, that would be something

            #include "openssl/err.h"
            #include "openssl/rand.h"
    [ break ],

Dave Hart

reply via email to

[Prev in Thread] Current Thread [Next in Thread]