Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
632
Issues
632
List
Boards
Labels
Service Desk
Milestones
Merge Requests
105
Merge Requests
105
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
ea31416b
Commit
ea31416b
authored
May 12, 1999
by
Andreas Gustafsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AC_PREREQ; support both mit-pthreads and ptl2 on NetBSD; sa_len fixes
parent
33618285
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
226 additions
and
80 deletions
+226
-80
config.h.in
config.h.in
+3
-0
configure
configure
+147
-73
configure.in
configure.in
+76
-7
No files found.
config.h.in
View file @
ea31416b
...
...
@@ -30,6 +30,9 @@
/* define if your struct sockaddr has a sa_len member */
#undef HAVE_SA_LEN
/* define on DEC OSF to enable 4.4BSD style sa_len support */
#undef _SOCKADDR_LEN
/* Define if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
...
...
configure
View file @
ea31416b
This diff is collapsed.
Click to expand it.
configure.in
View file @
ea31416b
...
...
@@ -13,7 +13,9 @@ dnl PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
dnl ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
dnl SOFTWARE.
AC_REVISION($Revision: 1.22 $)
AC_REVISION($Revision: 1.23 $)
AC_PREREQ(2.12)
AC_INIT(lib/dns/name.c)
AC_CONFIG_HEADER(config.h)
...
...
@@ -56,6 +58,70 @@ if test "X$CC" = "X" ; then
esac
fi
dnl
dnl NetBSD has two alternative pthreads implementations. Make the
dnl user choose one by saying --with-mit-pthreads or --with-ptl2
dnl if necessary.
dnl
case "$host" in
*-netbsd*)
CC="gcc"
AC_MSG_CHECKING(which thread library to use)
AC_ARG_WITH(mit-pthreads,
[ --with-mit-pthreads use the mit-pthreads thread library],
use_mit_pthreads="$withval", use_mit_pthreads="no")
AC_ARG_WITH(ptl2,
[ --with-ptl2 use the ptl2 thread library],
use_ptl2="$withval", use_ptl2="no")
dnl If user did not choose a thread library explicitly,
dnl try to choose one automatically. This will work when
dnl exactly one library is installed.
case "$use_mit_pthreads+$use_ptl2" in
no+no)
if test -d /usr/pkg/pthreads
then
use_mit_pthreads="yes"
fi
if test -d /usr/pkg/PTL
then
use_ptl2="yes"
fi
;;
esac
case "$use_mit_pthreads+$use_ptl2" in
yes+no)
AC_MSG_RESULT(mit-pthreads)
pkg="/usr/pkg/pthreads"
lib1="-L$pkg/lib -Wl,-R$pkg/lib"
lib2="-lpthread -lm -lgcc -lpthread"
LIBS="$lib1 $lib2 $LIBS"
STD_CINCLUDES="-I$pkg/include"
;;
no+yes)
AC_MSG_RESULT(PTL2)
pkg="/usr/pkg/PTL"
LIBS="-L/usr/pkg/lib -lPTL $LIBS"
STD_CINCLUDES="-nostdinc -idirafter $pkg/include"
;;
*)
AC_MSG_ERROR([no thread library.
Please choose a thread library using one of
configure --with-mit-pthreads
configure --with-ptl2
])
;;
esac
;;
esac
AC_PROG_CC
AC_HEADER_STDC
...
...
@@ -112,11 +178,6 @@ if test "X$GCC" = "Xyes"; then
*-sun-solaris*)
LIBS="$LIBS -lthread"
;;
*-netbsd*)
CC="gcc"
LIBS="-L/usr/pkg/lib -lPTL $LIBS"
STD_CINCLUDES="-nostdinc -idirafter /usr/pkg/PTL/include"
;;
esac
else
case "$host" in
...
...
@@ -142,10 +203,18 @@ case "$host" in
*-hp-hpux*)
AC_DEFINE(NEED_AF_INET6)
;;
*-dec-osf*)
dnl 4.4BSD sa_len support is not turned on
dnl by default, see netintro(7)
AC_DEFINE(_SOCKADDR_LEN)
;;
esac
dnl Look for a 4.4BSD-style sa_len member in struct sockaddr.
dnl Be careful not to be fooled by the IRIX "sa_len2" member.
AC_MSG_CHECKING(for sa_len in struct sockaddr)
AC_EGREP_HEADER(
sa_len
, sys/socket.h,
AC_EGREP_HEADER(
[sa_len[^a-z0-9_]]
, sys/socket.h,
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_SA_LEN)],
[AC_MSG_RESULT(no)])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment