Subject: Re: autoconf doesn't find getopt
To: Martti Kuparinen <martti.kuparinen@iki.fi>
From: Assar Westerlund <assar@netbsd.org>
List: tech-pkg
Date: 07/16/2001 16:01:36
Martti Kuparinen <martti.kuparinen@iki.fi> writes:
>     The  allow_severity  and deny_severity variables determine
>     how accepted and rejected requests  may  be  logged.  They
>     must  be  provided  by  the  caller and may be modified by
>     rules in the access control tables.
> 
> This means that configure.in must declare these two variables
> or the linking phase fails when libwrap is linked in. What is
> the correct method to include those two ints in the following
> AC_CHECK_FUNCS statements:
> 
>     dnl Checks for library functions.
>     AC_CHECK_FUNCS(getopt snprintf vsnprintf openpty _getpty daemon waitpid)

You would need to do your own AC_TRY_LINK test with the small fragemnt
definining the variables and linking against libwrap.

> And why don't I need anything special in FreeBSD, i.e. things work
> without patching anything?

They define allow_severity and deny_severity in libwrap.

> As a temporary fix I moved the libwrap test aftereverything else...

That should work.

/assar