use strict;
use warnings;
+use vars qw($Cpreprocessor);
#
# configurehelp perl module is generated by configure script
#
-use configurehelp qw(
- $Cpreprocessor
- );
+my $rc = eval {
+ require configurehelp;
+ configurehelp->import(qw(
+ $Cpreprocessor
+ ));
+ 1;
+};
+# Set default values if configure has not generated a configurehelp.pm file.
+# This is the case with cmake.
+if (!$rc) {
+ $Cpreprocessor = 'cpp';
+}
# we may get the dir root pointed out
my $root=$ARGV[0] || ".";