File: Config.pm

package info (click to toggle)
libsdl-perl 2.548-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,972 kB
  • sloc: perl: 13,985; ansic: 583; makefile: 35
file content (16 lines) | stat: -rw-r--r-- 299 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package SDL::Config;

use strict;
use warnings;
use SDL::ConfigData;

our $VERSION = 2.548;

sub has {
	my ( $class, $define ) = @_;
	my $sdl_config = SDL::ConfigData->config('SDL_cfg');
	my $n = scalar grep { $$sdl_config{$_}{'libs'}{$define} } keys %$sdl_config;
	return ( $n > 0 ) ? 1 : 0;
}

1;