local $mp2cfg ;
local $ccdebug ;

# 
# /*
#  * *********** WARNING **************
#  * This file generated by Embperl::WrapXS/2.0.0
#  * Any changes made here will be lost
#  * ***********************************
#  * 1. /opt/perlt5.8.7/lib/site_perl/5.8.7/ExtUtils/XSBuilder/WrapXS.pm:52
#  * 2. /opt/perlt5.8.7/lib/site_perl/5.8.7/ExtUtils/XSBuilder/WrapXS.pm:2068
#  * 3. xsbuilder/xs_generate.pl:6
#  */
# 


use ExtUtils::MakeMaker ();

local $MMARGS ;

if (-f '../../../mmargs.pl')
    {
    do '../../../mmargs.pl' ;
    die $@ if ($@) ;
    }

$MMARGS ||= {} ;


ExtUtils::MakeMaker::WriteMakefile(
    'NAME'    => 'Embperl::App::Config',
    'VERSION' => '0.01',
    'TYPEMAPS' => ['../../../typemap'],
'depend'  => {
          'Config.c' => ''
        }
,
    
    %$MMARGS,
);



sub MY::top_targets
	{
	my ($txt) = shift -> MM::top_targets (@_) ;
        $txt =~ s/config\s+pm_to_blib\s+subdirs\s+linkext/\$(O_FILES) subdirs/ ; 
	return $txt ;
	}


sub MY::cflags 
	{
	my $self = shift ;
        
        my $txt = $self -> MM::cflags (@_) ;

        if ($mp2cfg)
            { # with Apache 2, make sure we have the same defines as mod_perl
            $txt =~ s/-O\d//g if ($ccdebug =~ /-O\d/) ;
            $txt =~ /CCFLAGS\s*=(.*?)\n/s ;
	    my $flags = $mp2cfg->{MODPERL_CCOPTS} || $1 ;
            $txt =~ s/CCFLAGS\s*=(.*?)\n/CCFLAGS = $ccdebug $flags\n/s ;
            }
        else
            {
            $txt =~ s/-O\d//g if ($ccdebug =~ /-O\d/) ;
	    $txt =~ s/CCFLAGS\s*=/CCFLAGS = $ccdebug / ;
            }

        
        return $txt ;
	}

