Commit 1707fd0a authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

Fix configure-time computation of VCSN_DATA_PATH.

* configure.ac (VCSN_DATA_PATH): Fix underquoted code in $prefix
computation.  This was causing the wrong value of VCSN_DATA_PATH
to be defined on my test installation on FreeBSD.
parent bd8e261d
2009-09-04 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix configure-time computation of VCSN_DATA_PATH.
* configure.ac (VCSN_DATA_PATH): Fix underquoted code in $prefix
computation. This was causing the wrong value of VCSN_DATA_PATH
to be defined on my test installation on FreeBSD.
2009-07-08 Alex Hamelin <hamelin@lrde.epita.fr>
 
Release 1.3.1.
* doc/README.txt: Add information about CBS, Remove
information about VaucanSWIG.
* doc/NEWS.txt: Update for 1.3.1.
......
......@@ -111,16 +111,17 @@ VCSN_TAF_KIT
## Package header configuration.
##
# Tell what's the default pkgdata dir.
# Compute the default pkgdata dir.
# $datadir is defined as '${prefix}/share/' with ${prefix} unexpansed,
# so that users can change ${prefix} at make-time if they want. The
# GNU Standards require this, but we won't support this use case as we
# need the value encoded into pconf.hh. We have to expand $prefix here.
old_prefix=$prefix
case $prefix in
[\\/]* | ?:[\\/]* ) ;;
[[\\/]]* | ?:[[\\/]]* ) ;;
*) prefix=$ac_default_prefix ;;
esac
# This expansion by hand is a PITA, but we don't have much choice,
# Autoconf provides no standard means to do that, since RMS wants to
# support make-time changes of $prefix. We do not support this silly
# idea.
VCSN_DATA_PATH=$(eval echo $(eval echo "$datadir/vaucanson/"))
AC_DEFINE_UNQUOTED([VCSN_DATA_PATH], ["$VCSN_DATA_PATH"],
[Directory where Vaucaunson data is installed.])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment