Compile ntp without ssl

ntpopenssl

I need to deploy ntp to a very space-critical pxe-imaging-system. (Yes, each KB matters.) Footprint needs to be as small as possible, so I want to compile ntp without linking openssl. According to the manual this is should be possible:

If available, the OpenSSL library from http://www.openssl.org is used
to support public key cryptography. The library must be built and
installed prior to building NTP. The procedures for doing that are
included in the OpenSSL documentation. The library is found during the
normal NTP configure phase and the interface routines compiled
automatically. Only the libcrypto.a library file and openssl header
files are needed. If the library is not available or disabled, this
step is not required.

I already tried out

./configure --without-openssl

however, this didn't help. This is my ldd output:

ldd ntpd/ntpd
        linux-gate.so.1 =>  (0xb7706000)
        libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb76d5000)
        libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 (0xb7582000)
        librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb7578000)
        libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb741d000)
        /lib/ld-linux.so.2 (0xb7707000)
        libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7419000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7404000)
        libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb73eb000)

The system I am compiling on is 32-bit debian lenny using openssl 0.9.8g-15+lenny16.

What is the correct configure option to compile ntp without openssl?

Best Answer

Works for me:

[me@risby ntp-4.2.6p5]$ ./configure --without-openssl && make

[me@risby ntp-4.2.6p5]$ ldd ntpd/ntpd
    linux-vdso.so.1 =>  (0x00007fffd516c000)
    libm.so.6 => /lib64/libm.so.6 (0x0000003838a00000)
    librt.so.1 => /lib64/librt.so.1 (0x0000003838600000)
    libc.so.6 => /lib64/libc.so.6 (0x0000003837a00000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003837e00000)
    /lib64/ld-linux-x86-64.so.2 (0x0000003837600000)

Can you show us it not working for you? (Don't forget to do a make distclean first.)

Edit: yes, I do have it installed:

[me@risby ntp-4.2.6p5]$ rpm -qa|grep openssl
openssl-1.0.0k-1.fc17.x86_64
openssl-devel-1.0.0k-1.fc17.x86_64

You have told us nothing about your distro (nor even OS, though we know it's Linux from your ldd output). Maybe this is a good time to get a bit more specific?