File: check_config

package info (click to toggle)
openldap2 2.1.30-8
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 13,320 kB
  • ctags: 9,329
  • sloc: ansic: 127,414; sh: 18,958; cpp: 3,897; sql: 1,490; makefile: 1,221; perl: 843
file content (17 lines) | stat: -rw-r--r-- 357 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /usr/bin/perl -w

$| = 1;

print "Reading configuration... ";
open CONF, "<debian/build/config.status" or 
	die "Can't open debian/build/config.status: $!";
@CONF = <CONF>;
close CONF;
print "done\n";

print "Checking if sasl2 was found... ";
if (not grep /SASL_LIBS.*-lsasl2/, @CONF) {
	print "no\n";
	die "SASL2 support not enabled";
}
print "okay\n";