require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_xfs_deb_h)) {
    eval 'sub _xfs_deb_h () {1;}' unless defined(&_xfs_deb_h);
    require 'xfs/xfs_debug.ph';
    eval 'sub HAVE_XDEBDEV () {1;}' unless defined(&HAVE_XDEBDEV);
    eval 'sub HAVE_XDEBMSG () {1;}' unless defined(&HAVE_XDEBMSG);
    eval 'sub HAVE_XDEBDNLC () {1;}' unless defined(&HAVE_XDEBDNLC);
    eval 'sub HAVE_XDEBNODE () {1;}' unless defined(&HAVE_XDEBNODE);
    eval 'sub HAVE_XDEBVNOPS () {1;}' unless defined(&HAVE_XDEBVNOPS);
    eval 'sub HAVE_XDEBVFOPS () {1;}' unless defined(&HAVE_XDEBVFOPS);
    eval 'sub HAVE_XDEBLKM () {1;}' unless defined(&HAVE_XDEBLKM);
    eval 'sub HAVE_XDEBSYS () {1;}' unless defined(&HAVE_XDEBSYS);
    eval 'sub HAVE_XDEBMEM () {1;}' unless defined(&HAVE_XDEBMEM);
    eval 'sub HAVE_XDEBSYS () {1;}' unless defined(&HAVE_XDEBSYS);
    if(defined(&NNPFS_DEBUG)) {
	eval 'sub NNPFSDEB {
	    my($mask, $args) = @_;
    	    eval q( &do {  &if ($mask &xfsdeb)  &printf $args; }  &while (0));
	}' unless defined(&NNPFSDEB);
    } else {
	eval 'sub NNPFSDEB {
	    my($mask, $args) = @_;
    	    eval q( &do { ; }  &while (0));
	}' unless defined(&NNPFSDEB);
    }
}
1;
