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
637
Issues
637
List
Boards
Labels
Service Desk
Milestones
Merge Requests
104
Merge Requests
104
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
ffea097e
Commit
ffea097e
authored
Feb 06, 1999
by
Michael Graff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't use -lxnet for now, it is one huge porting nightmare...
parent
491b48ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
97 deletions
+32
-97
configure
configure
+22
-84
configure.in
configure.in
+10
-13
No files found.
configure
View file @
ffea097e
#! /bin/sh
# From configure.in Revision: 1.1
4
# From configure.in Revision: 1.1
5
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.12
...
...
@@ -1290,57 +1290,8 @@ fi
fi
case
"
$host
"
in
mips-sgi-irix
*
)
;;
*
)
echo
$ac_n
"checking for socket in -lxnet""...
$ac_c
"
1>&6
echo
"configure:1299: checking for socket in -lxnet"
>
&5
ac_lib_var
=
`
echo
xnet
'_'
socket |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lxnet
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 1307 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char socket();
int main() {
socket()
; return 0; }
EOF
if
{
(
eval echo
configure:1318:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=no"
fi
rm
-f
conftest
*
LIBS
=
"
$ac_save_LIBS
"
fi
if
eval
"test
\"
`
echo
'$ac_cv_lib_'
$ac_lib_var
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
ac_tr_lib
=
HAVE_LIB
`
echo
xnet |
sed
-e
's/[^a-zA-Z0-9_]/_/g'
\
-e
'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'
`
cat
>>
confdefs.h
<<
EOF
#define
$ac_tr_lib
1
EOF
LIBS
=
"-lxnet
$LIBS
"
else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for socket in -lsocket""...
$ac_c
"
1>&6
echo
"configure:1
344
: checking for socket in -lsocket"
>
&5
echo
"configure:1
295
: checking for socket in -lsocket"
>
&5
ac_lib_var
=
`
echo
socket
'_'
socket |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -1348,7 +1299,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lsocket
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 13
52
"configure"
#line 13
03
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -1359,7 +1310,7 @@ int main() {
socket()
; return 0; }
EOF
if
{
(
eval echo
configure:13
63
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:13
14
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -1374,7 +1325,7 @@ LIBS="$ac_save_LIBS"
fi
if
eval
"test
\"
`
echo
'$ac_cv_lib_'
$ac_lib_var
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
ac_tr_lib
=
HAVE_LIB
`
echo
socket |
sed
-e
's/
^a-zA-Z0-9_
/_/g'
\
ac_tr_lib
=
HAVE_LIB
`
echo
socket |
sed
-e
's/
[^a-zA-Z0-9_]
/_/g'
\
-e
'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'
`
cat
>>
confdefs.h
<<
EOF
#define
$ac_tr_lib
1
...
...
@@ -1386,8 +1337,8 @@ else
echo
"
$ac_t
""no"
1>&6
fi
echo
$ac_n
"checking for inet_ntoa in -lnsl""...
$ac_c
"
1>&6
echo
"configure:13
91
: checking for inet_ntoa in -lnsl"
>
&5
echo
$ac_n
"checking for inet_ntoa in -lnsl""...
$ac_c
"
1>&6
echo
"configure:13
42
: checking for inet_ntoa in -lnsl"
>
&5
ac_lib_var
=
`
echo
nsl
'_'
inet_ntoa |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -1395,7 +1346,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lnsl
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 13
99
"configure"
#line 13
50
"configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
...
...
@@ -1406,7 +1357,7 @@ int main() {
inet_ntoa()
; return 0; }
EOF
if
{
(
eval echo
configure:1
410
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:1
361
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -1421,7 +1372,7 @@ LIBS="$ac_save_LIBS"
fi
if
eval
"test
\"
`
echo
'$ac_cv_lib_'
$ac_lib_var
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
ac_tr_lib
=
HAVE_LIB
`
echo
nsl |
sed
-e
's/
^a-zA-Z0-9_
/_/g'
\
ac_tr_lib
=
HAVE_LIB
`
echo
nsl |
sed
-e
's/
[^a-zA-Z0-9_]
/_/g'
\
-e
'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'
`
cat
>>
confdefs.h
<<
EOF
#define
$ac_tr_lib
1
...
...
@@ -1433,19 +1384,14 @@ else
echo
"
$ac_t
""no"
1>&6
fi
fi
;;
esac
echo
$ac_n
"checking for inet_ntop""...
$ac_c
"
1>&6
echo
"configure:1
444
: checking for inet_ntop"
>
&5
echo
"configure:1
390
: checking for inet_ntop"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_inet_ntop
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 1
449
"configure"
#line 1
395
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_ntop(); below. */
...
...
@@ -1468,7 +1414,7 @@ inet_ntop();
; return 0; }
EOF
if
{
(
eval echo
configure:14
72
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:14
18
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_inet_ntop=yes"
else
...
...
@@ -1495,12 +1441,12 @@ EOF
fi
echo
$ac_n
"checking for inet_pton""...
$ac_c
"
1>&6
echo
"configure:14
99
: checking for inet_pton"
>
&5
echo
"configure:14
45
: checking for inet_pton"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_inet_pton
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 1
504
"configure"
#line 1
450
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_pton(); below. */
...
...
@@ -1523,7 +1469,7 @@ inet_pton();
; return 0; }
EOF
if
{
(
eval echo
configure:1
527
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:1
473
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_inet_pton=yes"
else
...
...
@@ -1550,12 +1496,12 @@ EOF
fi
echo
$ac_n
"checking for inet_aton""...
$ac_c
"
1>&6
echo
"configure:15
54
: checking for inet_aton"
>
&5
echo
"configure:15
00
: checking for inet_aton"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_inet_aton
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 15
59
"configure"
#line 15
05
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char inet_aton(); below. */
...
...
@@ -1578,7 +1524,7 @@ inet_aton();
; return 0; }
EOF
if
{
(
eval echo
configure:15
82
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:15
28
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_inet_aton=yes"
else
...
...
@@ -1606,7 +1552,7 @@ fi
echo
$ac_n
"checking whether
${
MAKE
-make
}
sets
\$
{MAKE}""...
$ac_c
"
1>&6
echo
"configure:1
610
: checking whether
${
MAKE
-make
}
sets
\$
{MAKE}"
>
&5
echo
"configure:1
556
: checking whether
${
MAKE
-make
}
sets
\$
{MAKE}"
>
&5
set
dummy
${
MAKE
-make
}
;
ac_make
=
`
echo
"
$2
"
|
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_make_
${
ac_make
}
_set
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -1635,7 +1581,7 @@ fi
# Extract the first word of "ranlib", so it can be a program name with args.
set
dummy ranlib
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:1
639
: checking for
$ac_word
"
>
&5
echo
"configure:1
585
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_prog_RANLIB
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -1672,7 +1618,7 @@ fi
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo
$ac_n
"checking for a BSD compatible install""...
$ac_c
"
1>&6
echo
"configure:16
76
: checking for a BSD compatible install"
>
&5
echo
"configure:16
22
: checking for a BSD compatible install"
>
&5
if
test
-z
"
$INSTALL
"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_install
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -1750,25 +1696,17 @@ else
fi
case
"
$host
"
in
*
-dec-osf
*
)
STD_CDEFINES
=
"
$STD_CDEFINES
-DISC_SOCKADDR_LEN_T=size_t"
;;
*
-sun-solaris
*
)
cat
>>
confdefs.h
<<
\
EOF
#define NEED_AF_INET6 1
EOF
STD_CDEFINES
=
"
$STD_CDEFINES
-DISC_SOCKADDR_LEN_T=int"
;;
*
-hp-hpux
*
)
cat
>>
confdefs.h
<<
\
EOF
#define NEED_AF_INET6 1
EOF
STD_CDEFINES
=
"
$STD_CDEFINES
-DISC_SOCKADDR_LEN_T=int"
;;
*
)
STD_CDEFINES
=
"
$STD_CDEFINES
-DISC_SOCKADDR_LEN_T=int"
;;
esac
...
...
configure.in
View file @
ffea097e
AC_REVISION($Revision: 1.1
5
$)
AC_REVISION($Revision: 1.1
6
$)
AC_INIT(lib/dns/name.c)
AC_CONFIG_HEADER(config.h)
...
...
@@ -47,20 +47,17 @@ AC_CHECK_LIB(pthread, pthread_create,,
)
dnl
dnl
The wonderful thing about standards is there are so many to choose from..
.
dnl
-lxnet buys us one big porting headache... standards, gotta love 'em
.
dnl
dnl Under IRIX (6.5 at least) -lxnet buys us nothign but compiler warnings.
dnl AC_CHECK_LIB(xnet, socket, ,
dnl AC_CHECK_LIB(socket, socket)
dnl AC_CHECK_LIB(nsl, inet_ntoa)
dnl )
dnl
case "$host" in
mips-sgi-irix*)
;;
*)
AC_CHECK_LIB(xnet, socket, ,
AC_CHECK_LIB(socket, socket)
AC_CHECK_LIB(nsl, inet_ntoa)
)
;;
esac
dnl Use this for now, instead:
dnl
AC_CHECK_LIB(socket, socket)
AC_CHECK_LIB(nsl, inet_ntoa)
AC_CHECK_FUNC(inet_ntop, ,
[ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.o"
...
...
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