diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-10-08 00:56:27 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-10-08 00:56:27 +0000 |
commit | 65c39b856de34c8ad48c773dc5780874eb75c7a3 (patch) | |
tree | c849b76a1d526c3310b059416e7120410c1a2cdd /gtk-recordmydesktop | |
parent | cd1305f097adddcf34f61532ee82fbef98eeb9e2 (diff) |
case NONE for prefix expansion
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@94 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'gtk-recordmydesktop')
-rw-r--r-- | gtk-recordmydesktop/configure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gtk-recordmydesktop/configure.ac b/gtk-recordmydesktop/configure.ac index 6882640..5f08496 100644 --- a/gtk-recordmydesktop/configure.ac +++ b/gtk-recordmydesktop/configure.ac @@ -6,7 +6,27 @@ AM_INIT_AUTOMAKE(gtk-recordMyDesktop, 0.2.1-r1) AS_AC_EXPAND(LIBDIR, $libdir) AC_MSG_NOTICE(Storing library files in $LIBDIR) AC_SUBST(PYGTK_REQ, 2.4) + +#The following test is needed for the expansion bellow +if test "x$prefix" == "xNONE"; then + export prefix="/usr/local/" +else + echo "prefix set to $prefix" +fi + +#this expansion is needed because in some cases the datadir expansion will +#not give an absolute path but one based on the $prefix env variable. +#This value gets directly in the rmdConfig.py file which will later fail +#if it has a value of ${prefix}/something. So it needs to know which was the prefix during +#installation. And that's why the above test is needed. In case no prefix is given +#we still have to insert the default to avoid a path of NONE/something. and NONE can't be +#replaced within the script since it is also a valid name for a directory. +#also,this behavior doesn't affect already existing dist tarballs and probably has to do with +#the environment that the autotools were used, to produce the tarballs +#(both cases were noticed with v1.7 of autowhatever, but on different environments) +#did you really read this? If you are a packager, you must be a very responsible one!Congrats! AS_AC_EXPAND(PREFIX,$prefix) + AS_AC_EXPAND(DATADIR, "$datadir") AC_MSG_NOTICE(Storing data files in $DATADIR) |