]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix configure system loading cache file too late.
authorPeter Powell <petpow@saberuk.com>
Wed, 24 Oct 2012 16:18:54 +0000 (17:18 +0100)
committerattilamolnar <attilamolnar@hush.com>
Fri, 26 Oct 2012 13:23:58 +0000 (15:23 +0200)
configure

index 2db2b98d0da730fe7ede17aabfb1e9794c6adfe1..f2b5d0698f0f236b76c11752e4e062e75dc0caff 100755 (executable)
--- a/configure
+++ b/configure
@@ -145,6 +145,7 @@ chomp(our $topdir = getcwd());
 our $this = resolve_directory($topdir);                                                # PWD, Regardless.
 our @modlist = ();                                                                     # Declare for Module List..
 our %config = ();                                                                      # Initiate Configuration Hash..
+our $cache_loaded = getcache();
 $config{ME} = resolve_directory($topdir);                              # Present Working Directory
 
 $config{BASE_DIR} = $config{ME}."/run";
@@ -344,7 +345,7 @@ sub test_compile {
 
 print "Running non-interactive configure...\n" unless $interactive;
 print "Checking for cache from previous configure... ";
-print ((!getcache()) ? "not found\n" : "found\n");
+print ($cache_loaded ? "found\n" : "not found\n");
 $config{SYSTEM} = lc $^O;
 print "Checking operating system version... $config{SYSTEM}\n";