1 --- xine-lib-0.9.9/configure.in~ Thu May 2 20:35:53 2002
2 +++ xine-lib-0.9.9/configure.in Thu May 2 20:35:53 2002
7 -case "$host_or_hostalias" in
9 - CFLAGS="$CFLAGS -pipe -fomit-frame-pointer -malign-functions=4 -malign-loops=4 -malign-jumps=4 -malign-functions=4 $m_wm $m_psb -fexpensive-optimizations $f_si $f_nsa -ffast-math -funroll-loops -finline-functions"
10 - DEBUG_CFLAGS="$X_CFLAGS $DEBUG_CFLAGS"
12 - AC_DEFINE([ARCH_X86],,[x86 architecture])
13 - AC_DEFINE(FPM_INTEL)
21 - i?86-*-linux* | i386-*-solaris* | i?86-* | k?-* | athlon-*)
23 - if test "$GCC" = yes; then
24 - dnl Check for gcc cpu optimization support
25 - AC_TRY_CFLAGS("-mcpu=i386",
27 - AC_TRY_CFLAGS("-march=i386",
29 - [ AC_MSG_RESULT(** no cpu optimization supports **)
32 - dnl special check for k7 cpu CC support
33 - AC_TRY_CFLAGS("$sarchopt=athlon", k7cpu="athlon", k7cpu="i686")
35 - dnl add x86 specific gcc CFLAGS
36 - CFLAGS="$CFLAGS -O3 -pipe -fomit-frame-pointer -malign-functions=4 -malign-loops=4 -malign-jumps=4 -malign-functions=4 $m_wm $m_psb -fexpensive-optimizations $f_si $f_nsa -ffast-math -funroll-loops -funroll-all-loops -finline-functions"
38 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O3"
40 - if test x"$sarchopt" != "xno"; then
44 - case "$host_alias" in
45 - i386-*) # *BSD return this even on a P III #-))
50 - archopt_val=pentium ;;
52 - archopt_val=pentiumpro
53 - if test x"$check_athlon" = "xyes"; then
54 - if test -f /proc/cpuinfo; then
55 - modelname=`cat /proc/cpuinfo | grep "model\ name\ :" | sed -e 's/ //g' | cut -d':' -f2`
56 - case "$modelname" in
57 - *Athlon* | *Duron* | *K7*)
58 - archopt_val="$k7cpu" ;;
68 - archopt_val=athlon ;;
71 - if test x"$archopt_val" != x; then
72 - CFLAGS="$CFLAGS $sarchopt=$archopt_val"
73 - DEBUG_CFLAGS="$DEBUG_CFLAGS $sarchopt=$archopt_val"
78 - dnl enable x86 specific parts of the code
80 - dnl all of this stuff needs gcc/gas; it uses gnu c compiler extensions
81 - dnl like the extended asm() or __attribute(__cdecl__), or other direct
82 - dnl mmx/sse/3dnow assembler instructions.
84 - AC_DEFINE([ARCH_X86],,[x86 architecture])
85 - AC_DEFINE(FPM_INTEL)
89 - dnl add x86 specific cc CFLAGS
91 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O"
92 - AC_DEFINE(FPM_64BIT)
100 - CFLAGS="$CFLAGS -O3 -mcpu=ev56 -mieee"
101 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O3 -mcpu=ev56 -mieee"
102 - AC_DEFINE(FPM_64BIT)
106 - CFLAGS="$CFLAGS -O3 -mieee"
107 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O3 -mieee"
108 - AC_DEFINE(FPM_64BIT)
111 - ppc-*-linux* | powerpc-*)
112 - CFLAGS="$CFLAGS -O3 -pipe -fomit-frame-pointer $m_wm $m_psb -fexpensive-optimizations $f_si $f_nsa -ffast-math -funroll-loops -funroll-all-loops -finline-functions"
113 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O3"
115 - AC_DEFINE(ARCH_PPC)
117 - if test x$enable_altivec = xyes; then
118 - AC_DEFINE(ENABLE_ALTIVEC)
119 - CFLAGS="$CFLAGS -Wa,-m7400"
124 - case $host_alias in
125 - sparc-*) cpu_cflags="-mcpu=supersparc -mtune=supersparc" ;;
126 - sparc64-*) cpu_cflags="-mcpu=supersparc -mtune=ultrasparc" ;;
128 - CFLAGS="$CFLAGS -O3 $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions"
129 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions"
131 - AC_DEFINE(FPM_SPARC)
135 - if test "$GCC" = yes; then
137 - sun4c) cpu_cflags="-mcpu=v7 -mtune=supersparc" ;;
138 - sun4m) cpu_cflags="-mcpu=v8 -mtune=supersparc" ;;
139 - sun4u) cpu_cflags="-mcpu=supersparc -mtune=ultrasparc" ;;
142 - cc_optimize_cflags="-O3 $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions"
143 - cc_debug_cflags="-O $cpu_cflags -funroll-loops -funroll-all-loops -finline-functions"
144 - AC_DEFINE(FPM_SPARC) dnl uses gnu c asm extensions
146 - cc_optimize_cflags="-O"
147 - cc_debug_cflags="-O"
148 - AC_DEFINE(FPM_64BIT) dnl use portable version with non-gcc
150 - CFLAGS="$CFLAGS $cc_optimize_cflags"
151 - DEBUG_CFLAGS="$DEBUG_CFLAGS $cc_debug_cflags"
155 - CFLAGS="$CFLAGS -O3"
156 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O"
157 - AC_DEFINE(FPM_MIPS)
161 - CFLAGS="$CFLAGS -O2"
162 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O"
163 - AC_DEFINE(FPM_DEFAULT)
167 - CFLAGS="$CFLAGS -O3"
168 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O3"
169 - AC_DEFINE(FPM_64BIT)
173 - CFLAGS="$CFLAGS -O3"
174 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O3"
175 - AC_DEFINE(FPM_DEFAULT)
180 - echo "****************************** WARNING ******************************"
182 - echo "Host type '$host' ($host_alias) is currently not supported by xine"
184 - echo "Assuming that -O3 makes the compiler produce useful code."
186 - echo "You might experience problems with this, so please report your"
187 - echo "architecture and, if possible, known good optimization flags for"
188 - echo "your compiler to <xine-devel@lists.sf.net>"\!
190 - echo "*********************************************************************"
191 - echo "
\a(sleeping one minute so you can read this...)"
194 - CFLAGS="$CFLAGS -O3"
195 - DEBUG_CFLAGS="$DEBUG_CFLAGS -O"
196 - AC_DEFINE(FPM_DEFAULT)
201 CFLAGS="$CFLAGS $ALSA_CFLAGS $ESD_CFLAGS $ARTS_CFLAGS $IRIXAL_CFLAGS"
202 DEBUG_CFLAGS="$DEBUG_CFLAGS $ALSA_CFLAGS $ESD_CFLAGS $ARTS_CFLAGS $IRIXAL_CFLAGS"