configure.ac (11e97782) configure.ac (5b85db3e)
1dnl * *************************************************************
2dnl *
3dnl * Licensed to the Apache Software Foundation (ASF) under one
4dnl * or more contributor license agreements. See the NOTICE file
5dnl * distributed with this work for additional information
6dnl * regarding copyright ownership. The ASF licenses this file
7dnl * to you under the Apache License, Version 2.0 (the
8dnl * "License"); you may not use this file except in compliance

--- 7206 unchanged lines hidden (view full) ---

7215 if $PERL -e 'use Archive::Zip;
7216 my $file = "$ENV{'OOO_JUNIT_JAR'}";
7217 my $zip = Archive::Zip->new( $file );
7218 my $mf = $zip->contents ( "META-INF/MANIFEST.MF" );
7219 if ( $mf =~ m/Implementation-Version: 4.12*/ ) {
7220 exit 0;
7221 } elsif ( $mf =~ m/Implementation-Version: 4.11*/ ) {
7222 exit 0;
1dnl * *************************************************************
2dnl *
3dnl * Licensed to the Apache Software Foundation (ASF) under one
4dnl * or more contributor license agreements. See the NOTICE file
5dnl * distributed with this work for additional information
6dnl * regarding copyright ownership. The ASF licenses this file
7dnl * to you under the Apache License, Version 2.0 (the
8dnl * "License"); you may not use this file except in compliance

--- 7206 unchanged lines hidden (view full) ---

7215 if $PERL -e 'use Archive::Zip;
7216 my $file = "$ENV{'OOO_JUNIT_JAR'}";
7217 my $zip = Archive::Zip->new( $file );
7218 my $mf = $zip->contents ( "META-INF/MANIFEST.MF" );
7219 if ( $mf =~ m/Implementation-Version: 4.12*/ ) {
7220 exit 0;
7221 } elsif ( $mf =~ m/Implementation-Version: 4.11*/ ) {
7222 exit 0;
7223 } elsif ( $mf =~ m/Bundle-Version: 4.12*/ ) {
7224 exit 0;
7225 } elsif ( $mf =~ m/Bundle-Version: 4.11*/ ) {
7226 exit 0;
7223 } else {
7224 exit 1;
7225 }'; then
7226 AC_MSG_RESULT([yes, but Hamcrest Core is mandatory with this JUnit version (>= 4.11)])
7227 JUNIT_NEEDS_HAMCREST=yes
7228 elif $PERL -e 'use Archive::Zip;
7229 my $file = "$ENV{'OOO_JUNIT_JAR'}";
7230 my $zip = Archive::Zip->new( $file );
7231 my $mf = $zip->contents ( "META-INF/MANIFEST.MF" );
7232 if ( $mf =~ m/Implementation-Version: 4.*/ ) {
7233 exit 0;
7227 } else {
7228 exit 1;
7229 }'; then
7230 AC_MSG_RESULT([yes, but Hamcrest Core is mandatory with this JUnit version (>= 4.11)])
7231 JUNIT_NEEDS_HAMCREST=yes
7232 elif $PERL -e 'use Archive::Zip;
7233 my $file = "$ENV{'OOO_JUNIT_JAR'}";
7234 my $zip = Archive::Zip->new( $file );
7235 my $mf = $zip->contents ( "META-INF/MANIFEST.MF" );
7236 if ( $mf =~ m/Implementation-Version: 4.*/ ) {
7237 exit 0;
7238 } elsif ( $mf =~ m/Bundle-Version: 4.*/ ) {
7234 } else {
7235 exit 1;
7236 }'; then
7237 AC_MSG_RESULT([yes])
7238 else
7239 AC_MSG_ERROR([no, your JUnit version is too old, you need JUnit 4.x])
7240 fi
7241fi

--- 267 unchanged lines hidden ---
7239 } else {
7240 exit 1;
7241 }'; then
7242 AC_MSG_RESULT([yes])
7243 else
7244 AC_MSG_ERROR([no, your JUnit version is too old, you need JUnit 4.x])
7245 fi
7246fi

--- 267 unchanged lines hidden ---