[w3m-dev 03819] support cd build && ../configure

* Makefile.in: add VPATH
		add MV
		use $(top_srcdir), $<, $@
* acinclude.m4 (AC_W3M_VERSION): use $srcdir
* configure.in (AC_W3M_VERSION): move
* mktable.c (main): basename
From: Fumitoshi UKAI  <ukai@debian.or.jp>
This commit is contained in:
Fumitoshi UKAI
2003-03-12 18:27:03 +00:00
parent f87fd4e2b7
commit 33ddf9cdfc
7 changed files with 212 additions and 175 deletions

4
aclocal.m4 vendored
View File

@@ -17,8 +17,8 @@ dnl w3m autoconf macros
# ----------------------------------------------------------------
AC_DEFUN([AC_W3M_VERSION],
[AC_SUBST(CURRENT_VERSION)
cvsver=`$AWK '\$[1] ~ /Id:/ { print \$[3]}' ChangeLog`
sed -e 's/define CURRENT_VERSION "\(.*\)+cvs/define CURRENT_VERSION "\1+cvs-'$cvsver'/' version.c.in > version.c
cvsver=`$AWK '\$[1] ~ /Id:/ { print \$[3]}' $srcdir/ChangeLog`
sed -e 's/define CURRENT_VERSION "\(.*\)+cvs/define CURRENT_VERSION "\1+cvs-'$cvsver'/' $srcdir/version.c.in > version.c
CURRENT_VERSION=`sed -n 's/.*define CURRENT_VERSION *"w3m\/\(.*\)".*$/\1/p' version.c`])
#
# ----------------------------------------------------------------