#! /usr/bin/perl

##  Turn off setgid
$) = $(;

##  Set defaults
$cvsroot = $ENV{'CVSROOT'};

$module = shift @ARGV || die "No module!?";
exit(0) if $module ne "$cvsroot/conf";

$found_dotin = 0;
$found_conf = 0;
foreach $f ( @ARGV ) {
    $found_dotin++ if $f eq 'configure.in';
    $found_conf++ if $f eq 'configure';
}
if ( $found_dotin && ! $found_conf ) {
    print STDERR "Cannot change/commit configure.in and not configure\n";
    exit(1);
}
if ( ! $found_dotin && $found_conf ) {
    print STDERR "Warning -- shouldn't change/commit configure and not configure.in\n";
    exit(0);
}

exit(0);
