+#!/usr/bin/perl
#
# NAME
# interfuzz.pl -- C-INTERCAL optimiser fuzz-tester
use File::Spec;
use constant fuzzamount => 1000;
-use constant ickpath => '../build/ick';
-use constant idiompath => '../src/idiotism.oil';
+use constant ickpath => $ENV{ICK} || '../build/ick';
+use constant idiompath => $ENV{IDIOTISM} || '../src/idiotism.oil';
# Before getting to the main program, we need to read in idiom LHSes.
print STDERR "Loading idioms...\n";
/* AIS: split ICKDATADIR from ICKLIBDIR */
#ifndef ICKINCLUDEDIR
-#define ICKINCLUDEDIR "/usr/local/include"
+# define ICKINCLUDEDIR "/usr/local/include"
#endif
#ifndef ICKSYSDIR
-#define ICKSYSDIR "/usr/local/share"
+# ifdef ICKDATADIR
+# define ICKSYSDIR ICKDATADIR
+# else
+# define ICKSYSDIR "/usr/local/share"
+# endif
#endif
#ifndef ICKCSKELDIR
-#define ICKCSKELDIR "/usr/local/share"
+# ifdef ICKDATADIR
+# define ICKCSKELDIR ICKDATADIR
+# else
+# define ICKCSKELDIR "/usr/local/share"
+# endif
#endif
#ifndef ICKLIBDIR
-#define ICKLIBDIR "/usr/local/lib"
+# define ICKLIBDIR "/usr/local/lib"
#endif
#ifndef ICKBINDIR
-#define ICKBINDIR "/usr/local/bin"
+# define ICKBINDIR "/usr/local/bin"
#endif
#ifndef CC
-#define CC "gcc"
+# define CC "gcc"
#endif
#define ARGSTRING "abcdefghlmoptuvwxyCEFHOPUYX@"
if (!(ick_sysdir = getenv("ICKSYSDIR")))
ick_sysdir = ICKSYSDIR;
if (!(ick_cskeldir = getenv("ICKCSKELDIR")))
- ick_sysdir = ICKCSKELDIR;
+ ick_cskeldir = ICKCSKELDIR;
/*
AIS: nothing actually uses this at the moment,
commenting it out for future use