--- exports/gensymbol.orig	2012-11-27 08:24:53.000000000 +0900
+++ exports/gensymbol	2012-11-28 01:19:10.000000000 +0900
@@ -2666,11 +2666,7 @@
 		#LAPACKE_zlagsy_work,
 		);
 
-if ($ARGV[5] == 1) {
-	#NO_LAPACK=1
-	@underscore_objs = (@blasobjs, @misc_underscore_objs);
-} elsif (-d "../lapack-3.1.1" || -d "../lapack-3.4.0" || -d "../lapack-3.4.1" ||
-         -d "../lapack-3.4.2") {
+if (-d "../lapack-%%LAPACKVER%%") {
     @underscore_objs = (@blasobjs, @lapackobjs, @lapackobjs2, @misc_underscore_objs);
 } else {
     @underscore_objs = (@blasobjs, @lapackobjs, @misc_underscore_objs);
