From c5ccada4203519cfe7535581e49e1fc84fd48cdf Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Sun, 4 Jan 2009 04:38:32 +0000 Subject: [PATCH] if $prefix = "NONE" then set $prefix to $ac_default_prefix. I didn't realise at the time $prefix isn't populated unless --prefix is provided. This broke paths for any situation where --prefix wasn't provided. On Linux wx can figure out the install prefix automatically at the moment we use SetInstallPrefix in w to set the prefix which was being set to 'NONE' if --prefix wasn't used. (broken locale on linux reported by tomman) Originally committed to SVN as r2619. --- configure.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.in b/configure.in index 802ae470e..eae143f30 100644 --- a/configure.in +++ b/configure.in @@ -86,6 +86,10 @@ AC_C_BIGENDIAN( aegisubdatadir="$datadir/aegisub" AC_SUBST(aegisubdatadir) +if test "$prefix" = "NONE"; then + prefix="$ac_default_prefix" +fi + # Install prefix used by wxStandardPaths::SetInstallPrefix. AC_DEFINE_UNQUOTED([INSTALL_PREFIX], ["$prefix"], [Default install prefix, or --prefix.])