Subject: autoconf doesn't find getopt
To: None <tech-pkg@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: tech-pkg
Date: 07/16/2001 11:00:35
Hi!

I'm updating the stunnel package (3.15 + buildlink fixes) but
for some reason autoconf doesn't find these functions:

    ROOT dhcp39:/usr/pkgsrc/security/stunnel> make configure
    ===> Validating dependencies for stunnel-3.15
    => Checksum OK for stunnel-3.15.tar.gz.
    ===> Extracting for stunnel-3.15
    ===> Required installed package pth>=1.3.2: pth-1.4.0 found
    ===> Required installed package autoconf-2.13: autoconf-2.13 found
    ===> Patching for stunnel-3.15
    ===> Applying NetBSD patches for stunnel-3.15
    ===> Configuring for stunnel-3.15
    Linking openssl files into /usr/pkgsrc/security/stunnel/work/.buildlink.
    Linking pth files into /usr/pkgsrc/security/stunnel/work/.buildlink.
    Creating wrapper script /usr/pkgsrc/security/stunnel/work/.buildlink/bin/pth-config.
    Creating wrapper script /usr/pkgsrc/security/stunnel/work/.buildlink/bin/pthread-config.
    cd /usr/pkgsrc/security/stunnel/work/stunnel-3.15 && /usr/pkg/bin/autoconf
    configure.in:104: warning: Cannot check for file existence when cross compiling
    configure.in:178: warning: Cannot check for file existence when cross compiling
    configure.in:179: warning: Cannot check for file existence when cross compiling
    configure.in:198: warning: AC_TRY_RUN called without default to allow cross compiling
    configure.in:199: warning: AC_TRY_RUN called without default to allow cross compiling
    configure.in:200: warning: AC_TRY_RUN called without default to allow cross compiling
    configure.in:201: warning: AC_TRY_RUN called without default to allow cross compiling
    configure.in:202: warning: AC_TRY_RUN called without default to allow cross compiling
    creating cache ./config.cache
    checking host system type... i386--netbsd
    checking for gcc... cc
    checking whether the C compiler (cc -I/usr/pkgsrc/security/stunnel/work/.buildlink/include -O2 -L/usr/pkgsrc/security/stunnel/work/.buildlink/lib  -Wl,-R/usr/pkg/lib -Wl,-R/usr/pkg/lib) works... yes
    checking whether the C compiler (cc -I/usr/pkgsrc/security/stunnel/work/.buildlink/include -O2 -L/usr/pkgsrc/security/stunnel/work/.buildlink/lib  -Wl,-R/usr/pkg/lib -Wl,-R/usr/pkg/lib) is a cross-compiler... no
    checking whether we are using GNU C... yes
    checking whether cc accepts -g... yes
    ...
    checking for getopt... no
    checking for snprintf... no
    checking for vsnprintf... no

It's a Monday morning and I'm still in the zombie mode so I
can't see what's the problem (but maybe you can). Any ideas?
I'm running 1.5W from last week.

Martti

---
Martti Kuparinen <martti.kuparinen@iki.fi>
http://www.iki.fi/~kuparine/