aboutsummaryrefslogtreecommitdiff
path: root/sdf.pl
diff options
context:
space:
mode:
Diffstat (limited to 'sdf.pl')
-rw-r--r--sdf.pl33
1 files changed, 33 insertions, 0 deletions
diff --git a/sdf.pl b/sdf.pl
new file mode 100644
index 0000000..2cef366
--- /dev/null
+++ b/sdf.pl
@@ -0,0 +1,33 @@
+#! /usr/bin/perl -w
+#/*@@
+# @file sdf.pl
+# @date Sat 12 June 2004
+# @author Thomas Radke
+# @desc
+# Finds an 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 "SDF requires an external SDF installation. Please specify " .
+ "SDF_DIR to point to this installation or remove thorn SDF " .
+ "from your ThornList !\n";
+ print "END ERROR\n";
+ exit (-1);
+}
+
+print <<EOF;
+BEGIN MAKE_DEFINITION
+HAVE_SDF = 1
+END MAKE_DEFINITION
+INCLUDE_DIRECTORY $bbhutil_dir/include
+LIBRARY bbhutil sv
+LIBRARY_DIRECTORY $bbhutil_dir/lib
+EOF
+
+exit (0);