summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2000-05-16 16:38:05 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2000-05-16 16:38:05 +0000
commit6d57cf7461c473e6255c821d61d27c51883b258d (patch)
tree4f23070dbaede9ce2dec497c21bc0bc97f9cd8b0 /configure
parent7def4b472a95ef041e801f9030e75bcc9a4f9acd (diff)
Threads natifs pour OpenBSD. Chercher ndbm.h dans /usr/include/db1
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3165 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure b/configure
index 9696b19a0..fa6011463 100755
--- a/configure
+++ b/configure
@@ -748,8 +748,12 @@ if test "$posix_threads" = "yes"; then
*-*-freebsd*)
pthread_link="-ccopt -pthread"
bytecccompopts="$bytecccompopts -D_THREAD_SAFE"
- nativecccompopts="$nativecccompopts -D_THREAD_SAFE"
- ;;
+ nativecccompopts="$nativecccompopts -D_THREAD_SAFE";;
+ *-*-openbsd*)
+ pthread_link="-ccopt -pthread"
+ bytecccompopts="$bytecccompopts -pthread"
+ asppflags="$asppflags -pthread"
+ nativecccompopts="$nativecccompopts -pthread";;
*)
pthread_link="-cclib -lpthread";;
esac
@@ -833,7 +837,7 @@ fi
# See if we can compile the dbm library
dbm_include="not found"
-for dir in /usr/include /usr/include/gdbm; do
+for dir in /usr/include /usr/include/gdbm /usr/include/db1; do
if test -f $dir/ndbm.h; then
dbm_include=$dir
break