comparison configure @ 1272:89e9625b3c7d

rework autodetection of assembler used by gcc, the correct assembler is detected now, in case the user has specified a certain version of the compiler with the "-cc=..." option.
author jkeil
date Wed, 04 Jul 2001 10:45:20 +0000
parents 8d4d00fe62a3
children 799fa3cb38e3
comparison
equal deleted inserted replaced
1271:2864e32cd267 1272:89e9625b3c7d
3 # 3 #
4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz 4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz
5 # pontscho@makacs.poliod.hu 5 # pontscho@makacs.poliod.hu
6 # 6 #
7 # Changes in reversed order: 7 # Changes in reversed order:
8 #
9 # 2001/07/04 by Juergen Keil
10 # - autodetect the assembler binary used by the GCC C compiler
8 # 11 #
9 # 2001/07/03 by Nick Kurshev 12 # 2001/07/03 by Nick Kurshev
10 # - added universal way of configuring SUBDIRS 13 # - added universal way of configuring SUBDIRS
11 # - moved configurable stuff of depended SUBDIRS to SUBDIRS 14 # - moved configurable stuff of depended SUBDIRS to SUBDIRS
12 # 15 #
17 # - added checking of kernel version 20 # - added checking of kernel version
18 # 21 #
19 # 2001/06/04 by Nick Kurshev 22 # 2001/06/04 by Nick Kurshev
20 # - added hard checking of gcc and soft of assembler 23 # - added hard checking of gcc and soft of assembler
21 # 24 #
22 # 2001/05/40 by LGB 25 # 2001/05/30 by LGB
23 # - added --prefix support 26 # - added --prefix support
27 #
28 # 2001/05/?? by Juergen Keil
29 # - autodetect OSS & Sun style audio
30 # - cpu feature detection for non-linux x86 systems
31 # - converted from bash to bourne shell script
24 # 32 #
25 # 2001/05/22 by Nick Kurshev 33 # 2001/05/22 by Nick Kurshev
26 # - added definition of CPU clone 34 # - added definition of CPU clone
27 # 35 #
28 # 2001/04/16 by LGB 36 # 2001/04/16 by LGB
205 MCONF='config.mak' 213 MCONF='config.mak'
206 214
207 # --- Check for C compiler: 215 # --- Check for C compiler:
208 216
209 _cc=gcc 217 _cc=gcc
210 _as=`gcc -print-prog-name=as` 218 _as=auto
211 if [ x"_$as" = x ]; then
212 _as=as
213 fi
214 _x11=auto 219 _x11=auto
215 220
216 _x11libdir= 221 _x11libdir=
217 if [ -d /usr/X11R6 ]; then 222 if [ -d /usr/X11R6 ]; then
218 _x11libdir=-L/usr/X11R6/lib 223 _x11libdir=-L/usr/X11R6/lib
306 fi 311 fi
307 else 312 else
308 echo "YOU'VE SELECTED '--disable-gcc-checking'. PLEASE DON'T SEND US ANY BUGREPORTS!" 313 echo "YOU'VE SELECTED '--disable-gcc-checking'. PLEASE DON'T SEND US ANY BUGREPORTS!"
309 fi 314 fi
310 # --- 315 # ---
316
317 # now that we know what compiler should be used for compilation, try to find
318 # out which assembler is used by the $_cc compiler
319 if [ "$_as" = auto ]; then
320 _as=`$_cc -print-prog-name=as`
321 if [ "_$as" = "" ]; then
322 _as=as
323 fi
324 fi
311 325
312 326
313 if [ -r /proc/cpuinfo ]; then 327 if [ -r /proc/cpuinfo ]; then
314 # linux with /proc mounted, extract cpu information from it 328 # linux with /proc mounted, extract cpu information from it
315 _cpuinfo="cat /proc/cpuinfo" 329 _cpuinfo="cat /proc/cpuinfo"