"source version" doesn't work with the /bin/sh in OpenBSD. :-/ There

seems no choice but to hardwire the version number in xcurses-config.in.
This commit is contained in:
William McBrine
2006-03-11 03:15:12 +00:00
parent 62a2927f73
commit 9f54744e4e
3 changed files with 6 additions and 9 deletions

2
configure vendored
View File

@@ -3012,8 +3012,6 @@ s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@VER@%$VER%g
s%@VERDOT@%$VERDOT%g
s%@CC@%$CC%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g

View File

@@ -2,10 +2,6 @@ dnl Process this file with autoconf to produce a configure script.
AC_INIT(curspriv.h)
AC_PREFIX_DEFAULT(/usr)
source version
AC_SUBST(VER)
AC_SUBST(VERDOT)
AC_SUBST(prefix)
dnl ---------------------- check for C compiler -----------------

View File

@@ -3,8 +3,11 @@
# The idea to this kind of setup info script was stolen from numerous
# other packages, such as neon, libxml and gnome.
#
# $Id: xcurses-config.in,v 1.5 2006/02/17 03:25:33 wmcbrine Exp $
# $Id: xcurses-config.in,v 1.6 2006/03/11 03:15:12 wmcbrine Exp $
#
verdot=2.8
prefix=@prefix@
exec_prefix=@exec_prefix@
includedir=@includedir@/xcurses
@@ -23,7 +26,7 @@ usage()
echo " --prefix PDCurses install prefix"
echo " [$prefix]"
echo " --version output version information"
echo " [@VERDOT@]"
echo " [$verdot]"
exit $1
}
@@ -46,7 +49,7 @@ while test $# -gt 0; do
;;
--version)
echo @VERDOT@
echo $verdot
exit 0
;;