aboutsummaryrefslogtreecommitdiff
path: root/ConfigureWithSDF.pl
diff options
context:
space:
mode:
Diffstat (limited to 'ConfigureWithSDF.pl')
-rw-r--r--ConfigureWithSDF.pl30
1 files changed, 30 insertions, 0 deletions
diff --git a/ConfigureWithSDF.pl b/ConfigureWithSDF.pl
new file mode 100644
index 0000000..0c65c5d
--- /dev/null
+++ b/ConfigureWithSDF.pl
@@ -0,0 +1,30 @@
+#! /usr/bin/perl -w
+#/*@@
+# @file ConfigureWithSDF.pl
+# @date Sat 12 Jube 2004
+# @author Thomas Radke
+# @desc
+# Configures IOSDF with external SDF installation
+# @enddesc
+# @version $Header$
+#@@*/
+
+# SDF_DIR must be given be the user
+my $bbhutil_dir = $ENV{'SDF_DIR'};
+if (! $bbhutil_dir)
+{
+ print "BEGIN ERROR\n";
+ print "IOSDF requires an external SDF installation. Please specify " .
+ "SDF_DIR to point to this installation or remove thorn IOSDF " .
+ "from your ThornList !\n";
+ print "END ERROR\n";
+ exit (-1);
+}
+
+print <<EOF;
+INCLUDE_DIRECTORY $bbhutil_dir/include
+LIBRARY bbhutil sv
+LIBRARY_DIRECTORY $bbhutil_dir/lib
+EOF
+
+exit (0);