[MPlayer-dev-eng] ./configure suggestion

Pierre Lombard p_l at gmx.fr
Thu Oct 23 23:41:34 CEST 2003


* Gabucino <gabucino at mplayerhq.hu> [2003-10-23 17:40]:
> Running ./configure --disable-gcc-checking on systems which for example
> have gcc installed as "cc" will FAIL, because - as the effect of the option -
> configure will skip the compiler binary search part, and just force "gcc",
> which, in turn, doesn't exist.
> 
> Someone (pl?) would like to fix this, or should I?

Feel free to test and apply the attached patch.

Maybe the --disable-gcc-checking should be renamed --disable-cc-checking
too ?

-- 
Best regards,
  Pierre Lombard
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.793
diff -u -r1.793 configure
--- configure	23 Oct 2003 18:58:46 -0000	1.793
+++ configure	23 Oct 2003 21:28:46 -0000
@@ -325,7 +325,7 @@
 # 1st pass checking for vital options
 _install=install
 _ranlib=ranlib
-_cc=gcc
+_cc=cc
 test "$CC" && _cc="$CC"
 _as=auto
 _runtime_cpudetection=no
@@ -485,7 +485,7 @@
 
 # Checking CC version...
 if test "$_skip_cc_check" != yes ; then
- for _cc in "$_cc" gcc-3.1 gcc3 gcc-3.0 cc ; do
+ for _cc in "$_cc" gcc gcc-3.3 gcc-3.2 gcc-3.1 gcc3 gcc-3.0 cc ; do
   echocheck "$_cc version"
   cc_name=`( $_cc -v ) 2>&1 | tail -1 | cut -d ' ' -f 1`
   cc_version=`( $_cc -dumpversion ) 2>&1`


More information about the MPlayer-dev-eng mailing list