Re: Configure should check perl version



James Henstridge writes:
>It is the same as the way you only need automake, autoconf, gettext, etc
>if you get stuff out of CVS.
>
>If you don't like that, stick to the tarballs :)

There are tests for automake, autoconf and libtool in autogen.sh for people
who get stuff out of CVS.

Here's a patch.  Some kind person can commit it.

	-Michael Robinson

Index: gtk+/autogen.sh
===================================================================
RCS file: /cvs/gnome/gtk+/autogen.sh,v
retrieving revision 1.11
diff -c -r1.11 autogen.sh
*** autogen.sh	1998/11/25 17:13:14	1.11
--- autogen.sh	1998/12/10 15:17:34
***************
*** 36,41 ****
--- 36,53 ----
  	DIE=1
  }
  
+ (perl -version 2> /dev/null | grep 'version 5.' > /dev/null 2>&1 ) || {
+ 	echo "'perl' is not version 5; testing 'perl5'."
+ 	(perl5 -version 2> /dev/null | grep 'version 5.' > /dev/null 2>&1 ) || {
+ 		echo "You must have perl version 5 installed to compile $PROJECT."
+ 		echo "(available at ftp://ftp.perl.org/pub/CPAN/src/stable.tar.gz)"
+ 		DIE=1
+ 	}
+ 	if test "$DIE" -ne 1; then
+ 		PERL="perl5"; export PERL
+ 	fi
+ }
+ 
  if test "$DIE" -eq 1; then
  	exit 1
  fi



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]