comparison configure @ 3001:605efb97f981

extended pthread to work under qnx
author alex
date Mon, 19 Nov 2001 14:11:57 +0000
parents 535930d5a8ac
children 660026738a8f
comparison
equal deleted inserted replaced
3000:8f7b8eba7600 3001:605efb97f981
1078 else 1078 else
1079 _def_dl='#undef HAVE_LIBDL' 1079 _def_dl='#undef HAVE_LIBDL'
1080 fi 1080 fi
1081 echores "$_dl" 1081 echores "$_dl"
1082 1082
1083
1084 echocheck "pthread" 1083 echocheck "pthread"
1085 cat > $TMPC << EOF 1084 cat > $TMPC << EOF
1085 #include <pthread.h>
1086 int main(void) { (void) pthread_create (0, 0, 0, 0); return 0; } 1086 int main(void) { (void) pthread_create (0, 0, 0, 0); return 0; }
1087 EOF 1087 EOF
1088 if cc_check -lpthread ; then 1088 if cc_check -lpthread ; then
1089 _ld_pthread='-lpthread' 1089 _ld_pthread='-lpthread'
1090 elif cc_check -pthread ; then 1090 elif cc_check -pthread ; then
1091 _ld_pthread='-pthread' 1091 _ld_pthread='-pthread'
1092 elif cc_check ; then # QNX
1093 _ld_pthread=''
1092 else 1094 else
1093 die "Lib pthread not found." 1095 die "Lib pthread not found."
1094 fi 1096 fi
1095 echores "using $_ld_pthread" 1097 echores "using $_ld_pthread"
1096 1098