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
Robert Dubner
OpenLDAP
Commits
729fb83d
Commit
729fb83d
authored
Dec 14, 1998
by
Kurt Zeilenga
Browse files
Import pthread detection changes from devel.
parent
c032cb29
Changes
3
Hide whitespace changes
Inline
Side-by-side
configure
View file @
729fb83d
...
@@ -3195,66 +3195,6 @@ EOF
...
@@ -3195,66 +3195,6 @@ EOF
fi
fi
fi
fi
if
test
$ol_link_kerberos
=
yes
;
then
save_LIBS
=
$LIBS
$LIBS
=
"
$KRB_LIBS
$LIBS
"
for
ac_func
in
des_string_to_key
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:3205: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3210 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); 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
$ac_func
();
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_
$ac_func
) || defined (__stub___
$ac_func
)
choke me
#else
$ac_func
();
#endif
; return 0; }
EOF
if
{
(
eval echo
configure:3233:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=no"
fi
rm
-f
conftest
*
fi
if
eval
"test
\"
`
echo
'$ac_cv_func_'
$ac_func
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
ac_tr_func
=
HAVE_
`
echo
$ac_func
|
tr
'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
`
cat
>>
confdefs.h
<<
EOF
#define
$ac_tr_func
1
EOF
else
echo
"
$ac_t
""no"
1>&6
fi
done
LIBS
=
$save_LIBS
fi
ol_link_threads
=
no
ol_link_threads
=
no
if
test
$ol_with_threads
=
auto
-o
$ol_with_threads
=
yes
\
if
test
$ol_with_threads
=
auto
-o
$ol_with_threads
=
yes
\
...
@@ -3264,17 +3204,17 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
...
@@ -3264,17 +3204,17 @@ if test $ol_with_threads = auto -o $ol_with_threads = yes \
do
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:32
6
8: checking for
$ac_hdr
"
>
&5
echo
"configure:32
0
8: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 32
7
3 "configure"
#line 32
1
3 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include <
$ac_hdr
>
#include <
$ac_hdr
>
EOF
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:32
7
8:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:32
1
8:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out
`
ac_err
=
`
grep
-v
'^ *+'
conftest.out
`
if
test
-z
"
$ac_err
"
;
then
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
...
@@ -3303,13 +3243,13 @@ done
...
@@ -3303,13 +3243,13 @@ done
if
test
$ac_cv_header_pthread_h
=
yes
;
then
if
test
$ac_cv_header_pthread_h
=
yes
;
then
echo
$ac_n
"checking POSIX thread version""...
$ac_c
"
1>&6
echo
$ac_n
"checking POSIX thread version""...
$ac_c
"
1>&6
echo
"configure:3
30
7: checking POSIX thread version"
>
&5
echo
"configure:3
24
7: checking POSIX thread version"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ol_cv_pthread_version
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ol_cv_pthread_version
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
31
3 "configure"
#line 3
25
3 "configure"
#include "confdefs.h"
#include "confdefs.h"
# include <pthread.h>
# include <pthread.h>
...
@@ -3331,7 +3271,7 @@ rm -f conftest*
...
@@ -3331,7 +3271,7 @@ rm -f conftest*
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
33
5 "configure"
#line 3
27
5 "configure"
#include "confdefs.h"
#include "confdefs.h"
# include <pthread.h>
# include <pthread.h>
...
@@ -3384,7 +3324,7 @@ EOF
...
@@ -3384,7 +3324,7 @@ EOF
echo
$ac_n
"checking for LinuxThreads""...
$ac_c
"
1>&6
echo
$ac_n
"checking for LinuxThreads""...
$ac_c
"
1>&6
echo
"configure:33
8
8: checking for LinuxThreads"
>
&5
echo
"configure:33
2
8: checking for LinuxThreads"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ol_cv_linux_threads
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ol_cv_linux_threads
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
...
@@ -3410,12 +3350,12 @@ EOF
...
@@ -3410,12 +3350,12 @@ EOF
echo
$ac_n
"checking for pthread_create""...
$ac_c
"
1>&6
echo
$ac_n
"checking for pthread_create""...
$ac_c
"
1>&6
echo
"configure:3
41
4: checking for pthread_create"
>
&5
echo
"configure:3
35
4: checking for pthread_create"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_pthread_create
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_pthread_create
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
41
9 "configure"
#line 3
35
9 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char pthread_create(); below. */
which can conflict with char pthread_create(); below. */
...
@@ -3438,7 +3378,7 @@ pthread_create();
...
@@ -3438,7 +3378,7 @@ pthread_create();
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:3
44
2:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
38
2:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_func_pthread_create=yes"
eval
"ac_cv_func_pthread_create=yes"
else
else
...
@@ -3460,7 +3400,7 @@ fi
...
@@ -3460,7 +3400,7 @@ fi
if
test
$ol_link_threads
=
no
;
then
if
test
$ol_link_threads
=
no
;
then
echo
$ac_n
"checking for pthread_create with -pthread""...
$ac_c
"
1>&6
echo
$ac_n
"checking for pthread_create with -pthread""...
$ac_c
"
1>&6
echo
"configure:34
6
4: checking for pthread_create with -pthread"
>
&5
echo
"configure:34
0
4: checking for pthread_create with -pthread"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ol_cv_pthread_flag
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ol_cv_pthread_flag
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
...
@@ -3468,7 +3408,7 @@ else
...
@@ -3468,7 +3408,7 @@ else
save_LIBS
=
"
$LIBS
"
save_LIBS
=
"
$LIBS
"
LIBS
=
"-pthread
$LIBS
"
LIBS
=
"-pthread
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 34
7
2 "configure"
#line 34
1
2 "configure"
#include "confdefs.h"
#include "confdefs.h"
char pthread();
char pthread();
int main() {
int main() {
...
@@ -3477,7 +3417,7 @@ int main() {
...
@@ -3477,7 +3417,7 @@ int main() {
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:34
8
1:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:34
2
1:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
ol_cv_pthread_flag
=
yes
ol_cv_pthread_flag
=
yes
else
else
...
@@ -3501,7 +3441,7 @@ echo "$ac_t""$ol_cv_pthread_flag" 1>&6
...
@@ -3501,7 +3441,7 @@ echo "$ac_t""$ol_cv_pthread_flag" 1>&6
if
test
$ol_link_threads
=
no
;
then
if
test
$ol_link_threads
=
no
;
then
echo
$ac_n
"checking for pthread_create with -pthreads""...
$ac_c
"
1>&6
echo
$ac_n
"checking for pthread_create with -pthreads""...
$ac_c
"
1>&6
echo
"configure:3
50
5: checking for pthread_create with -pthreads"
>
&5
echo
"configure:3
44
5: checking for pthread_create with -pthreads"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ol_cv_pthreads_flag
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ol_cv_pthreads_flag
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
...
@@ -3509,7 +3449,7 @@ else
...
@@ -3509,7 +3449,7 @@ else
save_LIBS
=
"
$LIBS
"
save_LIBS
=
"
$LIBS
"
LIBS
=
"-pthreads
$LIBS
"
LIBS
=
"-pthreads
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 35
1
3 "configure"
#line 3
4
53 "configure"
#include "confdefs.h"
#include "confdefs.h"
char pthread();
char pthread();
int main() {
int main() {
...
@@ -3518,7 +3458,7 @@ int main() {
...
@@ -3518,7 +3458,7 @@ int main() {
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:3
52
2:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
46
2:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
ol_cv_pthreads_flag
=
yes
ol_cv_pthreads_flag
=
yes
else
else
...
@@ -3542,7 +3482,7 @@ echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
...
@@ -3542,7 +3482,7 @@ echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
if
test
$ol_link_threads
=
no
;
then
if
test
$ol_link_threads
=
no
;
then
echo
$ac_n
"checking for pthread_create with -thread""...
$ac_c
"
1>&6
echo
$ac_n
"checking for pthread_create with -thread""...
$ac_c
"
1>&6
echo
"configure:3
5
46: checking for pthread_create with -thread"
>
&5
echo
"configure:34
8
6: checking for pthread_create with -thread"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ol_cv_thread_flag
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ol_cv_thread_flag
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
...
@@ -3550,7 +3490,7 @@ else
...
@@ -3550,7 +3490,7 @@ else
save_LIBS
=
"
$LIBS
"
save_LIBS
=
"
$LIBS
"
LIBS
=
"-thread
$LIBS
"
LIBS
=
"-thread
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
55
4 "configure"
#line 3
49
4 "configure"
#include "confdefs.h"
#include "confdefs.h"
char pthread();
char pthread();
int main() {
int main() {
...
@@ -3559,7 +3499,7 @@ int main() {
...
@@ -3559,7 +3499,7 @@ int main() {
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:35
6
3:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:35
0
3:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
ol_cv_thread_flag
=
yes
ol_cv_thread_flag
=
yes
else
else
...
@@ -3584,7 +3524,7 @@ echo "$ac_t""$ol_cv_thread_flag" 1>&6
...
@@ -3584,7 +3524,7 @@ echo "$ac_t""$ol_cv_thread_flag" 1>&6
if
test
$ol_link_threads
=
no
;
then
if
test
$ol_link_threads
=
no
;
then
save_LIBS
=
"
$LIBS
"
save_LIBS
=
"
$LIBS
"
echo
$ac_n
"checking for pthread_join in -lpthread""...
$ac_c
"
1>&6
echo
$ac_n
"checking for pthread_join in -lpthread""...
$ac_c
"
1>&6
echo
"configure:35
8
8: checking for pthread_join in -lpthread"
>
&5
echo
"configure:35
2
8: checking for pthread_join in -lpthread"
>
&5
ac_lib_var
=
`
echo
pthread
'_'
pthread_join |
sed
'y%./+-%__p_%'
`
ac_lib_var
=
`
echo
pthread
'_'
pthread_join |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
@@ -3592,7 +3532,7 @@ else
...
@@ -3592,7 +3532,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lpthread -lexc
$LIBS
"
LIBS
=
"-lpthread -lexc
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 35
9
6 "configure"
#line 35
3
6 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
...
@@ -3603,7 +3543,7 @@ int main() {
...
@@ -3603,7 +3543,7 @@ int main() {
pthread_join()
pthread_join()
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:3
60
7:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
54
7:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
else
...
@@ -3635,7 +3575,7 @@ fi
...
@@ -3635,7 +3575,7 @@ fi
if
test
$ol_link_threads
=
no
;
then
if
test
$ol_link_threads
=
no
;
then
save_LIBS
=
"
$LIBS
"
save_LIBS
=
"
$LIBS
"
echo
$ac_n
"checking for pthread_join in -lpthreads""...
$ac_c
"
1>&6
echo
$ac_n
"checking for pthread_join in -lpthreads""...
$ac_c
"
1>&6
echo
"configure:3
63
9: checking for pthread_join in -lpthreads"
>
&5
echo
"configure:3
57
9: checking for pthread_join in -lpthreads"
>
&5
ac_lib_var
=
`
echo
pthreads
'_'
pthread_join |
sed
'y%./+-%__p_%'
`
ac_lib_var
=
`
echo
pthreads
'_'
pthread_join |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
@@ -3643,7 +3583,7 @@ else
...
@@ -3643,7 +3583,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lpthreads -lmach -lexc -lc_r
$LIBS
"
LIBS
=
"-lpthreads -lmach -lexc -lc_r
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
64
7 "configure"
#line 3
58
7 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
...
@@ -3654,7 +3594,7 @@ int main() {
...
@@ -3654,7 +3594,7 @@ int main() {
pthread_join()
pthread_join()
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:3
6
58:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:35
9
8:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
else
...
@@ -3686,7 +3626,7 @@ fi
...
@@ -3686,7 +3626,7 @@ fi
if
test
$ol_link_threads
=
no
;
then
if
test
$ol_link_threads
=
no
;
then
save_LIBS
=
"
$LIBS
"
save_LIBS
=
"
$LIBS
"
echo
$ac_n
"checking for pthread_create in -lpthread""...
$ac_c
"
1>&6
echo
$ac_n
"checking for pthread_create in -lpthread""...
$ac_c
"
1>&6
echo
"configure:36
9
0: checking for pthread_create in -lpthread"
>
&5
echo
"configure:36
3
0: checking for pthread_create in -lpthread"
>
&5
ac_lib_var
=
`
echo
pthread
'_'
pthread_create |
sed
'y%./+-%__p_%'
`
ac_lib_var
=
`
echo
pthread
'_'
pthread_create |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
@@ -3694,7 +3634,7 @@ else
...
@@ -3694,7 +3634,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lpthread
$LIBS
"
LIBS
=
"-lpthread
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 36
9
8 "configure"
#line 36
3
8 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
...
@@ -3705,7 +3645,7 @@ int main() {
...
@@ -3705,7 +3645,7 @@ int main() {
pthread_create()
pthread_create()
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:3
70
9:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
64
9:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
else
...
@@ -3733,7 +3673,7 @@ fi
...
@@ -3733,7 +3673,7 @@ fi
if
test
$ol_link_threads
=
no
;
then
if
test
$ol_link_threads
=
no
;
then
save_LIBS
=
"
$LIBS
"
save_LIBS
=
"
$LIBS
"
echo
$ac_n
"checking for pthread_create in -lc_r""...
$ac_c
"
1>&6
echo
$ac_n
"checking for pthread_create in -lc_r""...
$ac_c
"
1>&6
echo
"configure:37
3
7: checking for pthread_create in -lc_r"
>
&5
echo
"configure:3
6
77: checking for pthread_create in -lc_r"
>
&5
ac_lib_var
=
`
echo
c_r
'_'
pthread_create |
sed
'y%./+-%__p_%'
`
ac_lib_var
=
`
echo
c_r
'_'
pthread_create |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
@@ -3741,7 +3681,7 @@ else
...
@@ -3741,7 +3681,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lc_r
$LIBS
"
LIBS
=
"-lc_r
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
74
5 "configure"
#line 3
68
5 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
...
@@ -3752,7 +3692,7 @@ int main() {
...
@@ -3752,7 +3692,7 @@ int main() {
pthread_create()
pthread_create()
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:3
75
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:3
69
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
else
...
@@ -3777,6 +3717,53 @@ fi
...
@@ -3777,6 +3717,53 @@ fi
LIBS
=
"
$save_LIBS
"
LIBS
=
"
$save_LIBS
"
fi
fi
if
test
$ol_link_threads
=
no
;
then
save_LIBS
=
"
$LIBS
"
echo
$ac_n
"checking for pthread_create in -lpthreads""...
$ac_c
"
1>&6
echo
"configure:3724: checking for pthread_create in -lpthreads"
>
&5
ac_lib_var
=
`
echo
pthreads
'_'
pthread_create |
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
=
"-lpthreads
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
#line 3732 "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 pthread_create();
int main() {
pthread_create()
; return 0; }
EOF
if
{
(
eval echo
configure:3743:
\"
$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
ol_link_threads
=
posix
LTHREAD_LIBS
=
"
$LTHREAD_LIBS
-lpthreads"
else
echo
"
$ac_t
""no"
1>&6
fi
LIBS
=
"
$save_LIBS
"
fi
if
test
$ol_link_threads
!=
no
;
then
if
test
$ol_link_threads
!=
no
;
then
cat
>>
confdefs.h
<<
\
EOF
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_PTHREADS 1
#define HAVE_PTHREADS 1
...
@@ -3790,12 +3777,12 @@ EOF
...
@@ -3790,12 +3777,12 @@ EOF
for
ac_func
in
sched_yield pthread_yield
for
ac_func
in
sched_yield pthread_yield
do
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:37
94
: checking for
$ac_func
"
>
&5
echo
"configure:37
81
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 37
99
"configure"
#line 37
86
"configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
which can conflict with char
$ac_func
(); below. */
...
@@ -3818,7 +3805,7 @@ $ac_func();
...
@@ -3818,7 +3805,7 @@ $ac_func();
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:38
22
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:38
09
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
eval
"ac_cv_func_
$ac_func
=yes"
else
else
...
@@ -3846,7 +3833,7 @@ done
...
@@ -3846,7 +3833,7 @@ done
if
test
$ac_cv_func_sched_yield
=
no
-a
\
if
test
$ac_cv_func_sched_yield
=
no
-a
\
$ac_cv_func_pthread_yield
=
no
;
then
$ac_cv_func_pthread_yield
=
no
;
then
echo
$ac_n
"checking for sched_yield in -lrt""...
$ac_c
"
1>&6
echo
$ac_n
"checking for sched_yield in -lrt""...
$ac_c
"
1>&6
echo
"configure:38
50
: checking for sched_yield in -lrt"
>
&5
echo
"configure:38
37
: checking for sched_yield in -lrt"
>
&5
ac_lib_var
=
`
echo
rt
'_'
sched_yield |
sed
'y%./+-%__p_%'
`
ac_lib_var
=
`
echo
rt
'_'
sched_yield |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
@@ -3854,7 +3841,7 @@ else
...
@@ -3854,7 +3841,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lrt
$LIBS
"
LIBS
=
"-lrt
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 385
8
"configure"
#line 38
4
5 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
...
@@ -3865,7 +3852,7 @@ int main() {
...
@@ -3865,7 +3852,7 @@ int main() {
sched_yield()
sched_yield()
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:386
9
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:38
5
6:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
else
...
@@ -3895,7 +3882,7 @@ fi
...
@@ -3895,7 +3882,7 @@ fi
if
test
$ac_cv_func_sched_yield
=
no
-a
\
if
test
$ac_cv_func_sched_yield
=
no
-a
\
$ac_cv_func_pthread_yield
=
no
;
then
$ac_cv_func_pthread_yield
=
no
;
then
echo
$ac_n
"checking for sched_yield in -lposix4""...
$ac_c
"
1>&6
echo
$ac_n
"checking for sched_yield in -lposix4""...
$ac_c
"
1>&6
echo
"configure:38
99
: checking for sched_yield in -lposix4"
>
&5
echo
"configure:38
86
: checking for sched_yield in -lposix4"
>
&5
ac_lib_var
=
`
echo
posix4
'_'
sched_yield |
sed
'y%./+-%__p_%'
`
ac_lib_var
=
`
echo
posix4
'_'
sched_yield |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
@@ -3903,7 +3890,7 @@ else
...
@@ -3903,7 +3890,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lposix4
$LIBS
"
LIBS
=
"-lposix4
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
907
"configure"
#line 3
894
"configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
...
@@ -3914,7 +3901,7 @@ int main() {
...
@@ -3914,7 +3901,7 @@ int main() {
sched_yield()
sched_yield()
; return 0; }
; return 0; }
EOF