sub sdl_con_found
{
`sdl-config --libs`;
- return 0 if ($? >> 8);
- return 1;
+ return 1 unless ($? >> 8) and return 0;
+
}
#This should check if the folder actually has the SDL files
if(sdl_con_found)
{
local $_ = `sdl-config --libs`;
- return chomp($_);
+ chomp($_);
+ return $_;
}
elsif( check_sdl_dir() )
{
if(sdl_con_found)
{
local $_ = `sdl-config --cflags`;
- return chomp($_);
+ chomp($_);
+ return $_;
}
elsif ( check_sdl_dir() )
{