9 our @ISA = qw(Exporter);
10 our @EXPORT_OK = qw(sdl_con_found sdl_libs sdl_c_flags);
12 my $arch = SDL::Build->get_arch( $^O );
17 #checks to see if sdl-config is availabe
21 return 0 if($^O eq 'MSWin32');
24 return 1 unless ($? >> 8) and return 0;
28 #This should check if the folder actually has the SDL files
31 return 0 unless $ENV{SDL_INST_DIR} and return $ENV{SDL_INST_DIR};
38 local $_ = `sdl-config --libs`;
42 elsif( check_sdl_dir() )
44 return $arch->alt_link_flags( check_sdl_dir() ) ;
49 croak 'SDL not installed';
58 local $_ = `sdl-config --cflags`;
62 elsif ( check_sdl_dir() )
64 return $arch->alt_compile_flags( check_sdl_dir() );
69 croak 'SDL not installed';