aboutsummaryrefslogtreecommitdiff
path: root/sdf.pl
blob: 2cef366346ffa5eb9be61f7b2da01955309adbb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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);