Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
343e2df7
Commit
343e2df7
authored
Dec 07, 2001
by
Kurt Zeilenga
Browse files
autoconf for hyc
parent
0552b1c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure
View file @
343e2df7
Changes suppressed. Click to show.
#! /bin/sh
# $OpenLDAP$
# from OpenLDAP: pkg/ldap/configure.in,v 1.3
79
2001/12/0
4 17:21:43 kurt
Exp
# from OpenLDAP: pkg/ldap/configure.in,v 1.3
81
2001/12/0
7 03:03:25 hyc
Exp
# Copyright 1998-2001 The OpenLDAP Foundation. All Rights Reserved.
#
...
...
@@ -4988,21 +4988,22 @@ for ac_hdr in \
termios.h
\
unistd.h
\
winsock.h
\
winsock2.h
\
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:499
6
: checking for
$ac_hdr
"
>
&5
echo
"configure:499
7
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"\$
{ac_cv_header_
$ac_safe
+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 500
1
"configure"
#line 500
2
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:500
6
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:500
7
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -5032,12 +5033,12 @@ done
echo
$ac_n
"checking for dlopen""...
$ac_c
"
1>&6
echo
"configure:503
6
: checking for dlopen"
>
&5
echo
"configure:503
7
: checking for dlopen"
>
&5
if
eval
"test
\"\$
{ac_cv_func_dlopen+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 504
1
"configure"
#line 504
2
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char dlopen(); below. */
...
...
@@ -5061,7 +5062,7 @@ f = dlopen;
; return 0; }
EOF
if
{
(
eval echo
configure:506
5
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:506
6
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_dlopen=yes"
else
...
...
@@ -5079,7 +5080,7 @@ if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for dlopen in -ldl""...
$ac_c
"
1>&6
echo
"configure:508
3
: checking for dlopen in -ldl"
>
&5
echo
"configure:508
4
: checking for dlopen in -ldl"
>
&5
ac_lib_var
=
`
echo
dl
'_'
dlopen |
sed
'y%./+-:%__p__%'
`
if
eval
"test
\"\$
{ac_cv_lib_
$ac_lib_var
+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -5087,7 +5088,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-ldl
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 509
1
"configure"
#line 509
2
"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
...
...
@@ -5098,7 +5099,7 @@ int main() {
dlopen()
; return 0; }
EOF
if
{
(
eval echo
configure:510
2
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:510
3
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -5129,7 +5130,7 @@ fi
echo
$ac_n
"checking for sigset in -lV3""...
$ac_c
"
1>&6
echo
"configure:513
3
: checking for sigset in -lV3"
>
&5
echo
"configure:513
4
: checking for sigset in -lV3"
>
&5
ac_lib_var
=
`
echo
V3
'_'
sigset |
sed
'y%./+-:%__p__%'
`
if
eval
"test
\"\$
{ac_cv_lib_
$ac_lib_var
+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -5137,7 +5138,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lV3
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 514
1
"configure"
#line 514
2
"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
...
...
@@ -5148,7 +5149,7 @@ int main() {
sigset()
; return 0; }
EOF
if
{
(
eval echo
configure:515
2
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:515
3
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -5176,40 +5177,41 @@ else
fi
if
test
$ac_cv_header_winsock_h
=
yes
;
then
echo
$ac_n
"checking for winsock""...
$ac_c
"
1>&6
echo
$ac_n
"checking for winsock""...
$ac_c
"
1>&6
echo
"configure:5182: checking for winsock"
>
&5
if
eval
"test
\"\$
{ol_cv_winsock+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
save_LIBS
=
"
$LIBS
"
for
curlib
in
ws2_32 wsock32
;
do
LIBS
=
"
$LIBS
-l
$curlib
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 5187 "configure"
#include "confdefs.h"
#include <winsock.h>
char socket@12();
char select@20();
char closesocket@4();
char gethostname@8();
int main() {
socket
(0,0,0
);
select
(0,NULL,NULL,NULL,NULL
);
closesocket(
0
);
gethostname
(NULL,0
);
socket
@12(
);
select
@20(
);
closesocket
@4
();
gethostname
@8(
);
; return 0; }
EOF
if
{
(
eval echo
configure:5
199
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
204
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
ol_cv
_winsock
=
yes
have
_winsock
=
yes
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
ol_cv
_winsock
=
no
have
_winsock
=
no
fi
rm
-f
conftest
*
fi
echo
"
$ac_t
""
$ol_cv_winsock
"
1>&6
if
test
$
ol_cv
_winsock
=
yes
;
then
if
test
$
have
_winsock
=
yes
;
then
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_WINSOCK 1
EOF
...
...
@@ -5218,17 +5220,27 @@ EOF
ac_cv_func_select
=
yes
ac_cv_func_closesocket
=
yes
ac_cv_func_gethostname
=
yes
if
test
$curlib
=
ws2_32
;
then
have_winsock
=
winsock2
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_WINSOCK2 1
EOF
fi
break
fi
fi
LIBS
=
"
$save_LIBS
"
done
echo
"
$ac_t
""
$have_winsock
"
1>&6
echo
$ac_n
"checking for socket""...
$ac_c
"
1>&6
echo
"configure:52
27
: checking for socket"
>
&5
echo
"configure:52
39
: checking for socket"
>
&5
if
eval
"test
\"\$
{ac_cv_func_socket+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 52
32
"configure"
#line 52
44
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char socket(); below. */
...
...
@@ -5252,7 +5264,7 @@ f = socket;
; return 0; }
EOF
if
{
(
eval echo
configure:52
5
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:526
8
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_socket=yes"
else
...
...
@@ -5271,7 +5283,7 @@ else
echo
"
$ac_t
""no"
1>&6
echo
$ac_n
"checking for main in -lsocket""...
$ac_c
"
1>&6
echo
"configure:527
5
: checking for main in -lsocket"
>
&5
echo
"configure:52
8
7: checking for main in -lsocket"
>
&5
ac_lib_var
=
`
echo
socket
'_'
main |
sed
'y%./+-:%__p__%'
`
if
eval
"test
\"\$
{ac_cv_lib_
$ac_lib_var
+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -5279,14 +5291,14 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lsocket
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 52
83
"configure"
#line 52
95
"configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
if
{
(
eval echo
configure:5
290
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
302
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -5314,7 +5326,7 @@ else
fi
echo
$ac_n
"checking for main in -lnet""...
$ac_c
"
1>&6
echo
"configure:53
18
: checking for main in -lnet"
>
&5
echo
"configure:53
30
: checking for main in -lnet"
>
&5
ac_lib_var
=
`
echo
net
'_'
main |
sed
'y%./+-:%__p__%'
`
if
eval
"test
\"\$
{ac_cv_lib_
$ac_lib_var
+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -5322,14 +5334,14 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lnet
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 53
26
"configure"
#line 53
38
"configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
if
{
(
eval echo
configure:53
33
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:53
45
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -5357,7 +5369,7 @@ else
fi
echo
$ac_n
"checking for main in -lnsl_s""...
$ac_c
"
1>&6
echo
"configure:53
61
: checking for main in -lnsl_s"
>
&5
echo
"configure:53
73
: checking for main in -lnsl_s"
>
&5
ac_lib_var
=
`
echo
nsl_s
'_'
main |
sed
'y%./+-:%__p__%'
`
if
eval
"test
\"\$
{ac_cv_lib_
$ac_lib_var
+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -5365,14 +5377,14 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lnsl_s
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 53
69
"configure"
#line 53
81
"configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
if
{
(
eval echo
configure:53
76
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:53
88
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -5400,7 +5412,7 @@ else
fi
echo
$ac_n
"checking for main in -lnsl""...
$ac_c
"
1>&6
echo
"configure:54
04
: checking for main in -lnsl"
>
&5
echo
"configure:54
16
: checking for main in -lnsl"
>
&5
ac_lib_var
=
`
echo
nsl
'_'
main |
sed
'y%./+-:%__p__%'
`
if
eval
"test
\"\$
{ac_cv_lib_
$ac_lib_var
+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -5408,14 +5420,14 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lnsl
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 54
1
2 "configure"
#line 542
4
"configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
if
{
(
eval echo
configure:541
9
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:54
3
1:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -5443,7 +5455,7 @@ else
fi
echo
$ac_n
"checking for socket in -linet""...
$ac_c
"
1>&6
echo
"configure:54
47
: checking for socket in -linet"
>
&5
echo
"configure:54
59
: checking for socket in -linet"
>
&5
ac_lib_var
=
`
echo
inet
'_'
socket |
sed
'y%./+-:%__p__%'
`
if
eval
"test
\"\$
{ac_cv_lib_
$ac_lib_var
+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -5451,7 +5463,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-linet
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 54
55
"configure"
#line 54
67
"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
...
...
@@ -5462,7 +5474,7 @@ int main() {
socket()
; return 0; }
EOF
if
{
(
eval echo
configure:54
66
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:54
78
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -5490,7 +5502,7 @@ else
fi
echo
$ac_n
"checking for main in -lgen""...
$ac_c
"
1>&6
echo
"configure:5
494
: checking for main in -lgen"
>
&5
echo
"configure:5
506
: checking for main in -lgen"
>
&5
ac_lib_var
=
`
echo
gen
'_'
main |
sed
'y%./+-:%__p__%'
`
if
eval
"test
\"\$
{ac_cv_lib_
$ac_lib_var
+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -5498,14 +5510,14 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lgen
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 55
02
"configure"
#line 55
14
"configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
if
{
(
eval echo
configure:55
09
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:55
21
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -5537,12 +5549,12 @@ fi
echo
$ac_n
"checking for select""...
$ac_c
"
1>&6
echo
"configure:55
41
: checking for select"
>
&5
echo
"configure:55
53
: checking for select"
>
&5
if
eval
"test
\"\$
{ac_cv_func_select+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 55
46
"configure"
#line 55
58
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char select(); below. */
...
...
@@ -5566,7 +5578,7 @@ f = select;
; return 0; }
EOF
if
{
(
eval echo
configure:55
70
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:55
82
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_select=yes"
else
...
...
@@ -5589,7 +5601,7 @@ fi
if
test
"
${
ac_cv_header_winsock_h
}
"
!=
yes
;
then
echo
$ac_n
"checking types of arguments for select()""...
$ac_c
"
1>&6
echo
"configure:5
593
: checking types of arguments for select()"
>
&5
echo
"configure:5
605
: checking types of arguments for select()"
>
&5
if
eval
"test
\"\$
{ac_cv_func_select_arg234+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -5603,7 +5615,7 @@ else
for
ac_cv_func_select_arg1
in
'int'
'size_t'
'unsigned long'
'unsigned'
;
do
for
ac_cv_func_select_arg5
in
'struct timeval *'
'const struct timeval *'
;
do
cat
>
conftest.
$ac_ext
<<
EOF
#line 56
07
"configure"
#line 56
19
"configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
...
...
@@ -5622,7 +5634,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:56
26
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:56
38
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_not_found
=
no
;
break
3
else
...
...
@@ -5667,17 +5679,17 @@ for ac_hdr in regex.h
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:56
71
: checking for
$ac_hdr
"
>
&5
echo
"configure:56
83
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"\$
{ac_cv_header_
$ac_safe
+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 56
76
"configure"
#line 56
88
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:56
81
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:56
93
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -5706,60 +5718,72 @@ done
if
test
"
$ac_cv_header_regex_h
"
!=
yes
;
then
{
echo
"configure: error: POSIX regex.h required."
1>&2
;
exit
1
;
}
fi
echo
$ac_n
"checking for regfree""...
$ac_c
"
1>&6
echo
"configure:5711: checking for regfree"
>
&5
if
eval
"test
\"\$
{ac_cv_func_regfree+set}
\"
= set"
;
then
echo
$ac_n
"checking for library containing regfree""...
$ac_c
"
1>&6
echo
"configure:5724: checking for library containing regfree"
>
&5
if
eval
"test
\"\$
{ac_cv_search_regfree+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 5716 "configure"
ac_func_search_save_LIBS
=
"
$LIBS
"
ac_cv_search_regfree
=
"no"
cat
>
conftest.
$ac_ext
<<
EOF
#line 5731 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char regfree(); below. */
#include <assert.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 regfree();
char (*f)();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_regfree) || defined (__stub___regfree)
choke me
#else
f = regfree;
#endif
regfree()
; return 0; }
EOF
if
{
(
eval echo
configure:574
0
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:574
2
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_regfree=yes
"
ac_cv_search_regfree
=
"none required
"
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
fi
rm
-f
conftest
*
test
"
$ac_cv_search_regfree
"
=
"no"
&&
for
ac_lib
in
regex gnuregex
;
do
LIBS
=
"-l
$ac_lib
$ac_func_search_save_LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 5753 "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 regfree();
int main() {
regfree()
; return 0; }
EOF
if
{
(
eval echo
configure:5764:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_regfree=no"
ac_cv_search_regfree
=
"-l
$ac_lib
"
break
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
fi
rm
-f
conftest
*
done
LIBS
=
"
$ac_func_search_save_LIBS
"
fi
if
eval
"test
\"
`
echo
'$ac_cv_func_'
regfree
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
echo
"
$ac_t
""
$ac_cv_search_regfree
"
1>&6
if
test
"
$ac_cv_search_regfree
"
!=
"no"
;
then
test
"
$ac_cv_search_regfree
"
=
"none required"
||
LIBS
=
"
$ac_cv_search_regfree
$LIBS
"
:
else
echo
"
$ac_t
""no"
1>&6
{
echo
"configure: error: POSIX regex required."
1>&2
;
exit
1
;
}
else
:
{
echo
"configure: error: POSIX regex required."
1>&2
;
exit
1
;
}
fi
echo
$ac_n
"checking for compatible POSIX regex""...
$ac_c
"
1>&6
echo
"configure:57
63
: checking for compatible POSIX regex"
>
&5
echo
"configure:57
87
: checking for compatible POSIX regex"
>
&5
if
eval
"test
\"\$
{ol_cv_c_posix_regex+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -5768,7 +5792,7 @@ else
ol_cv_c_posix_regex
=
cross
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 57
72
"configure"
#line 57
96
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -5794,7 +5818,7 @@ main()
return rc;
}
EOF
if
{
(
eval echo
configure:5
798
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:5
822
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
ol_cv_c_posix_regex
=
yes
else
...
...
@@ -5816,12 +5840,12 @@ fi
ol_link_dnssrv
=
no
echo
$ac_n
"checking for res_query""...
$ac_c
"
1>&6
echo
"configure:58
20
: checking for res_query"
>
&5
echo
"configure:58
44
: checking for res_query"
>
&5
if
eval
"test
\"\$
{ac_cv_func_res_query+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 58
25
"configure"
#line 58
49
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char res_query(); below. */
...
...
@@ -5845,7 +5869,7 @@ f = res_query;
; return 0; }
EOF
if
{
(
eval echo
configure:58
49
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:58
73
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_res_query=yes"
else
...
...
@@ -5866,12 +5890,12 @@ fi
if
test
$ac_cv_func_res_query
=
no
;
then
echo
$ac_n
"checking for __res_query""...
$ac_c
"
1>&6
echo
"configure:58
70
: checking for __res_query"
>
&5
echo
"configure:58
94
: checking for __res_query"
>
&5
if
eval
"test
\"\$
{ac_cv_func___res_query+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 58
75
"configure"
#line 58
99
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char __res_query(); below. */
...
...
@@ -5895,7 +5919,7 @@ f = __res_query;
; return 0; }
EOF
if
{
(
eval echo
configure:5
899
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:5
923
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_func___res_query=yes"
else
...
...
@@ -5919,7 +5943,7 @@ fi
if
test
$ac_cv_func_res_query
=
no
;
then
echo
$ac_n
"checking for res_query in -lbind""...
$ac_c
"
1>&6
echo
"configure:59
23
: checking for res_query in -lbind"
>
&5
echo
"configure:59
47
: checking for res_query in -lbind"
>
&5
ac_lib_var
=
`
echo bind
'_'
res_query |
sed
'y%./+-:%__p__%'
`
if
eval
"test
\"\$
{ac_cv_lib_
$ac_lib_var
+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -5927,7 +5951,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lbind
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 59
31
"configure"
#line 59
55
"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
...
...
@@ -5938,7 +5962,7 @@ int main() {
res_query()
; return 0; }
EOF
if
{
(
eval echo
configure:59
42
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:59
66
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
...
...
@@ -5970,7 +5994,7 @@ fi
if
test
$ac_cv_func_res_query
=
no
;
then
echo
$ac_n
"checking for __res_query in -lbind""...
$ac_c
"
1>&6
echo
"configure:59
74
: checking for __res_query in -lbind"
>
&5
echo
"configure:59
98
: checking for __res_query in -lbind"
>
&5
ac_lib_var
=
`
echo bind
'_'
__res_query |
sed
'y%./+-:%__p__%'
`
if
eval
"test
\"\$
{ac_cv_lib_
$ac_lib_var
+set}
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
...
@@ -5978,7 +6002,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lbind
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line
5982
"configure"
#line
6006
"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
...
...
@@ -5989,7 +6013,7 @@ int main() {