$NetBSD: patch-aa,v 1.1 2013/01/23 02:17:06 noud4 Exp $

--- runConfigure.orig	2009-05-08 14:32:39 +0300
+++ runConfigure	2009-05-08 14:33:38 +0300
@@ -150,7 +150,7 @@ usage()
     echo "runConfigure: Helper script to run \"configure\" for one of the supported platforms"
     echo "Usage: runConfigure \"options\""
     echo "       where options may be any of the following:"
-    echo "       -p <platform> (accepts 'aix', 'linux', 'freebsd', 'netbsd', 'solaris',
+    echo "       -p <platform> (accepts 'aix', 'linux', 'freebsd', 'dragonfly', 'netbsd', 'solaris',
             'hp-10', 'hp-11', 'hp-11-ia64', 'irix', 'tru64', 'macosx', 'os390', 'os400', 'cygwin')"
     echo "       -c <C compiler name> (e.g. gcc, cc, xlc)"
     echo "       -x <C++ compiler name> (e.g. g++, CC, xlC)"
@@ -338,7 +338,7 @@ echo "Extra configure options: $configur
 #
 
 case $platform in
-   aix | linux | freebsd | netbsd | solaris | hp-11 | hp-11-ia64 | irix | tru64 | macosx | os390 | os400 | cygwin)
+   aix | linux | freebsd | dragonfly | netbsd | solaris | hp-11 | hp-11-ia64 | irix | tru64 | macosx | os390 | os400 | cygwin)
        # platform has been recognized
        ;;
    *)
@@ -379,7 +379,7 @@ fi
 
 #
 #  aix | linux | hp-11 | hp-11-ia64 | solaris |
-#  freebsd | netbsd | irix | openserver | unixware | os390 | os400 | ptx | tru64 | macosx
+#  freebsd | dragonfly | netbsd | irix | openserver | unixware | os390 | os400 | ptx | tru64 | macosx
 #
 if test $bitsToBuild = 64; then
     bitstobuildDefines=" -DXML_BITSTOBUILD_64 "
@@ -527,6 +527,8 @@ elif test $platform = "freebsd"; then
       threadingLibs="-lpthread"
       threadingDefines=""
     fi
+elif test $platform = "dragonfly"; then
+    threadingLibs="-lpthread"
 elif test $platform = "netbsd"; then
     threadingLibs="-pthread -lpthread"
 elif test $platform = "os400"; then
