[PATCH] aclocal.m4: Enable configure to detect the presence of terminfo database on OpenBSD
Pavel Tsekov
ptsekov at gmx.net
Wed Jan 29 17:39:48 UTC 2003
Hello,
Here is another simple patch to improve configure's behaviour on OpenBSD.
[..]
terminfo(5) on OpenBSD says:
/usr/share/terminfo.db file containing terminal descrip-
tions on OpenBSD
[..]
It appears that on OpenBSD 3.2 (i386) the rigth file to look
for is /usr/share/misc/terminfo.db .
Thanks!
-------------- next part --------------
--- aclocal.m4 2003-01-29 18:33:51.000000000 +0100
+++ aclocal.m4.OpenBSD.patch2 2003-01-29 18:33:43.000000000 +0100
@@ -792,6 +792,19 @@ AC_DEFUN([MC_WITH_MCSLANG], [
use_terminfo=yes
fi
done
+ # terminfo(5) on OpenBSD say:
+ # /usr/share/terminfo.db file containing terminal descrip-
+ # tions on OpenBSD
+ #
+ # It appears that on OpenBSD 3.2 (i386) the rigth file to look
+ # for is /usr/share/misc/terminfo.db .
+ #
+ for tifile in "/usr/share/terminfo.db" \
+ "/usr/share/misc/terminfo.db" ; do
+ if test -f "$tifile" ; then
+ use_terminfo=yes
+ fi
+ done
fi
# If there is no terminfo, use termcap
More information about the mc-devel
mailing list