summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authordane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-06-03 18:12:00 +0000
committerdane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-06-03 18:12:00 +0000
commitb7ab4eea6ddaec765583079559e38e3eec028bfa (patch)
tree9301e6c317ff288092bd756ad96209d812f3d00c /configure
parent3e9e166cd46b30bce1ff567c00d43dc2af38b8b1 (diff)
BUILD : 1.7.3 (163) BUGS : 67 NOTES : Reversed pthread library detection order on ./configure script.
git-svn-id: svn://svn.anope.org/anope/trunk@163 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@112 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 6 insertions, 5 deletions
diff --git a/configure b/configure
index e0d7afd6b..9b5e7dfc2 100755
--- a/configure
+++ b/configure
@@ -861,14 +861,14 @@ else
fi
if [ "$THREAD" = "USE_THREADS" ] ; then
- if run $CC $CC_FLAGS -D_REENTRANT tmp/test.c -pthread -o tmp/test ; then
- CC_FLAGS="$CC_FLAGS -D_REENTRANT"
- CC_LIBS="$CC_LIBS -pthread"
- echo2 "-pthread "
- elif run $CC $CC_FLAGS -D_REENTRANT tmp/test.c -lpthread -o tmp/test ; then
+ if run $CC $CC_FLAGS -D_REENTRANT tmp/test.c -lpthread -o tmp/test ; then
CC_FLAGS="$CC_FLAGS -D_REENTRANT"
CC_LIBS="$CC_LIBS -lpthread"
echo2 "-lpthread "
+ elif run $CC $CC_FLAGS -D_REENTRANT tmp/test.c -pthread -o tmp/test ; then
+ CC_FLAGS="$CC_FLAGS -D_REENTRANT"
+ CC_LIBS="$CC_LIBS -pthread"
+ echo2 "-pthread "
else
THREAD=""
echo ""
@@ -1848,6 +1848,7 @@ echo "done."
# Delete the temporary directory we created.
rm -rf tmp
+rm -f a.out
###########################################################################