Revu detection DBM (PR#594)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3955 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
79b37a5a06
commit
5bc7923071
|
@ -908,17 +908,46 @@ fi
|
|||
x11_include="not found"
|
||||
x11_link="not found"
|
||||
|
||||
for dir in $x11_include_dir \
|
||||
/usr/X11R6/include /usr/X11R5/include /usr/X11R4/include \
|
||||
/usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \
|
||||
/usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include \
|
||||
/usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 \
|
||||
/usr/X11/include /usr/include/X11 /usr/local/X11/include \
|
||||
/usr/local/include/X11 /usr/X386/include /usr/x386/include \
|
||||
/usr/XFree86/include/X11 /usr/include /usr/local/include \
|
||||
/usr/unsupported/include /usr/athena/include /usr/local/x11r5/include \
|
||||
/usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include \
|
||||
/opt/X11R6/include /opt/X11R5/include
|
||||
for dir in \
|
||||
$x11_include_dir \
|
||||
\
|
||||
/usr/X11R6/include \
|
||||
/usr/include/X11R6 \
|
||||
/usr/local/X11R6/include \
|
||||
/usr/local/include/X11R6 \
|
||||
/opt/X11R6/include \
|
||||
\
|
||||
/usr/X11/include \
|
||||
/usr/include/X11 \
|
||||
/usr/local/X11/include \
|
||||
/usr/local/include/X11 \
|
||||
/opt/X11/include \
|
||||
\
|
||||
/usr/X11R5/include \
|
||||
/usr/include/X11R5 \
|
||||
/usr/local/X11R5/include \
|
||||
/usr/local/include/X11R5 \
|
||||
/usr/local/x11r5/include \
|
||||
/opt/X11R5/include \
|
||||
\
|
||||
/usr/X11R4/include \
|
||||
/usr/include/X11R4 \
|
||||
/usr/local/X11R4/include \
|
||||
/usr/local/include/X11R4 \
|
||||
\
|
||||
/usr/X386/include \
|
||||
/usr/x386/include \
|
||||
/usr/XFree86/include/X11 \
|
||||
\
|
||||
/usr/include \
|
||||
/usr/local/include \
|
||||
/usr/unsupported/include \
|
||||
/usr/athena/include \
|
||||
/usr/lpp/Xamples/include \
|
||||
\
|
||||
/usr/openwin/include \
|
||||
/usr/openwin/share/include \
|
||||
; \
|
||||
do
|
||||
if test -f $dir/X11/X.h; then
|
||||
x11_include=$dir
|
||||
|
@ -926,17 +955,54 @@ do
|
|||
fi
|
||||
done
|
||||
|
||||
for dir in $x11_lib_dir \
|
||||
/usr/X11R6/lib /usr/X11R5/lib /usr/X11R4/lib \
|
||||
/usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 \
|
||||
/usr/local/X11R6/lib /usr/local/X11R5/lib /usr/local/X11R4/lib \
|
||||
/usr/local/lib/X11R6 /usr/local/lib/X11R5 /usr/local/lib/X11R4 \
|
||||
/usr/X11/lib /usr/lib/X11 /usr/local/X11/lib \
|
||||
/usr/local/lib/X11 /usr/X386/lib /usr/x386/lib \
|
||||
/usr/XFree86/lib/X11 /usr/lib /usr/local/lib \
|
||||
/usr/unsupported/lib /usr/athena/lib /usr/local/x11r5/lib \
|
||||
/usr/lpp/Xamples/lib /usr/openwin/lib /usr/openwin/share/lib \
|
||||
/opt/X11R6/lib /opt/X11R5/lib
|
||||
if test "$x11_include" = "not found"; then
|
||||
x11_try_lib_dir=''
|
||||
else
|
||||
x11_try_lib_dir=`echo $x11_include | sed -e 's|include|lib|'`
|
||||
fi
|
||||
|
||||
for dir in \
|
||||
$x11_lib_dir \
|
||||
$x11_try_lib_dir \
|
||||
\
|
||||
/usr/X11R6/lib \
|
||||
/usr/lib/X11R6 \
|
||||
/usr/local/X11R6/lib \
|
||||
/usr/local/lib/X11R6 \
|
||||
/opt/X11R6/lib \
|
||||
\
|
||||
/usr/X11/lib \
|
||||
/usr/lib/X11 \
|
||||
/usr/local/X11/lib \
|
||||
/usr/local/lib/X11 \
|
||||
/opt/X11/lib \
|
||||
\
|
||||
/usr/X11R5/lib \
|
||||
/usr/lib/X11R5 \
|
||||
/usr/local/X11R5/lib \
|
||||
/usr/local/lib/X11R5 \
|
||||
/usr/local/x11r5/lib \
|
||||
/opt/X11R5/lib \
|
||||
\
|
||||
/usr/X11R4/lib \
|
||||
/usr/lib/X11R4 \
|
||||
/usr/local/X11R4/lib \
|
||||
/usr/local/lib/X11R4 \
|
||||
\
|
||||
/usr/X386/lib \
|
||||
/usr/x386/lib \
|
||||
/usr/XFree86/lib/X11 \
|
||||
\
|
||||
/usr/lib \
|
||||
/usr/local/lib \
|
||||
/usr/unsupported/lib \
|
||||
/usr/athena/lib \
|
||||
/usr/lpp/Xamples/lib \
|
||||
/lib/usr/lib/X11 \
|
||||
\
|
||||
/usr/openwin/lib \
|
||||
/usr/openwin/share/lib \
|
||||
; \
|
||||
do
|
||||
if test -f $dir/libX11.a || \
|
||||
test -f $dir/libX11.so || \
|
||||
|
@ -973,7 +1039,7 @@ fi
|
|||
|
||||
dbm_include="not found"
|
||||
dbm_link="not found"
|
||||
for dir in /usr/include /usr/include/gdbm /usr/include/db1; do
|
||||
for dir in /usr/include /usr/include/db1 /usr/include/gdbm; do
|
||||
if test -f $dir/ndbm.h; then
|
||||
dbm_include=$dir
|
||||
if sh ./hasgot dbm_open; then
|
||||
|
@ -982,6 +1048,8 @@ for dir in /usr/include /usr/include/gdbm /usr/include/db1; do
|
|||
dbm_link="-lndbm"
|
||||
elif sh ./hasgot -ldb1 dbm_open; then
|
||||
dbm_link="-ldb1"
|
||||
elif sh ./hasgot -lgdbm dbm_open; then
|
||||
dbm_link="-lgdbm"
|
||||
else
|
||||
dbm_include="not found"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue