Lines Matching +full:gcc +full:- +full:arm +full:- +full:linux +full:- +full:gnueabi
24 AC_INIT([lame],[3.100],[lame-dev@lists.sf.net])
67 if test "${CC}" != "gcc"; then
69 [ CC=gcc ./configure]
70 [Abort this configure run and add "CC=gcc" or you will]
78 if test "x${GCC}" = "xyes"; then
80 COMPILER_TYPE="`${CC} --version | head -1 | sed -e '1,$s/version.*//g'`"
82 *gcc*)
83 AC_MSG_RESULT(gcc)
100 AC_MSG_CHECKING(version of GCC)
101 GCC_version="`${CC} --version | sed -n '1s/^[[^ ]]* (.*) //;s/ .*$//;1p'`"
103 [[0-9]]*[[0-9]]*)
107 # probably not gcc...
108 …AC_MSG_RESULT(unknown compiler version pattern, playing safe and disabling gcc optimisations... ${…
116 CLANG_version="`${CC} --version | sed -n 's/.*clang version //;s/ .*$//;1p'`"
139 linux/soundcard.h)
172 if test $ac_cv_sizeof_short -eq 0 \
173 -o $ac_cv_sizeof_unsigned_short -eq 0 \
174 -o $ac_cv_sizeof_int -eq 0 \
175 -o $ac_cv_sizeof_unsigned_int -eq 0 \
176 -o $ac_cv_sizeof_long -eq 0 \
177 -o $ac_cv_sizeof_unsigned_long -eq 0 \
178 -o $ac_cv_sizeof_long_long -eq 0 \
179 -o $ac_cv_sizeof_unsigned_long_long -eq 0 \
180 -o $ac_cv_sizeof_float -eq 0 \
181 -o $ac_cv_sizeof_double -eq 0; then
236 AC_MSG_ERROR([CHECK_TYPE_uint32_t - please report to lame-dev@lists.sourceforge.net])
259 AC_MSG_ERROR([CHECK_TYPE_int32_t - please report to lame-dev@lists.sourceforge.net])
284 AC_MSG_ERROR([CHECK_TYPE_uint64_t - please report to lame-dev@lists.sourceforge.net])
307 AC_MSG_ERROR([CHECK_TYPE_int64_t - please report to lame-dev@lists.sourceforge.net])
358 [* - I did not have a change to determine *]
360 [* - short *]
361 [* - unsigned short *]
362 [* - int *]
363 [* - unsigned int *]
364 [* - long *]
365 [* - unsigned long *]
366 [* - float *]
367 [* - double *]
368 [* - long double *]
370 [* - You have to provide appropriate defines for them in config.h, e.g. *]
394 LIBS="$LIBS -lsocket"])
400 LIBS="$LIBS -lnsl"
410 INCLUDES="-I\$(top_srcdir)/include -I\$(srcdir)"
414 MAKEDEP="-M"
415 RM_F="rm -f"
418 [ --enable-nasm Allow the use of nasm if available],
422 [ --enable-ieeehack Enable Takhiros IEEE754 hack (speed improvement for old CPUs)],
445 AC_CHECK_LIB(m, cos, USE_LIBM="-lm")
447 AC_CHECK_LIB(ffm, cos, USE_LIBM="-lffm -lm")
450 [ --disable-cpml Do not use Compaq's fast Math Library],
453 AC_CHECK_LIB(cpml, cos, USE_LIBM="-lcpml")
464 [ --enable-efence Use ElectricFence for malloc debugging],
469 AC_CHECK_LIB(efence, EF_Print, HAVE_EFENCE="-lefence")
470 if test "x${HAVE_EFENCE}" != "x-lefence"; then
490 [ --with-fileio=lame Use lame's internal file io routines [default]]
502 if test "${HAVE_SNDFILE}" = "yes" -o "x${SNDFILE_LIBS}" != "x" \
503 -o "x${SNDFILE_CFLAGS}" != "x"; then
507 if test -n "${SNDFILE_LIBS}" ; then
510 FRONTEND_LDADD="-lsndfile ${FRONTEND_LDADD}"
512 if test -n "${SNDFILE_CFLAGS}" ; then
534 AC_ARG_ENABLE(analyzer-hooks,
535 [ --disable-analyzer-hooks Exclude analyzer hooks],
545 AC_MSG_ERROR(bad value �${CONFIG_ANALYZER}� for analyzer-hooks option)
556 [ --disable-decoder Exclude mpg123 decoder (internal or external)],
559 …[ --disable-libmpg123 Disable use of external libmpg123 decoder (normally favoured over in…
593 [ --disable-frontend Do not build the lame executable [default=build]],
607 [ --enable-mp3x Build GTK frame analyzer [default=no]],
630 [ --enable-mp3rtp Build mp3rtp [default=no]],
644 AC_ARG_ENABLE(dynamic-frontends,
645 [ --enable-dynamic-frontends Link frontends against shared libraries [default=no]],
646 FRONTEND_LDFLAGS="${FRONTEND_LDFLAGS}", FRONTEND_LDFLAGS="${FRONTEND_LDFLAGS} -static")
648 *-static*)
662 *86-*-linux*)
693 AC_MSG_WARN([* built programs; this is a compile-time bug. *])
711 FRONTEND_LDADD="-l${HAVE_TERMCAP} ${FRONTEND_LDADD}"
796 NASM_FORMAT="-f win32 -DWIN32"
799 NASM_FORMAT="-f macho"
801 *os2-emx*)
802 NASM_FORMAT="-f aout -DAOUT"
806 NASM_FORMAT="-f elf"
814 # "--enable-expopt=full").
818 [ --enable-expopt=full,norm Whether to enable experimental optimizations]
822 if test "x$HAVE_GCC" = "xyes" -o "x$HAVE_CLANG" = "xyes"; then
823 # gcc defaults. OS specific options go in versious sections below
824 # from the gcc man pages: "there is no reason to use -pedantic"
826 CFLAGS="-Wall -pipe ${CFLAGS}"
828 # some vendor ld's don't like '-pipe'
829 CFLAGS="-Wall ${CFLAGS}"
832 # GCC version specific generic options
836 # for buggy version of gcc shipped with RH7.1, back of on some
838 OPTIMIZATION="-O -fomit-frame-pointer -ffast-math \
839 -funroll-loops"
840 OPTIMIZATION_FULL="-fmove-all-movables -freduce-all-givs \
841 -fsched-interblock -fbranch-count-reg -fforce-addr \
842 -fforce-mem"
845 # -funroll-loops seems to produce buggy code with gcc 3.0.3
846 OPTIMIZATION="-O -fomit-frame-pointer -ffast-math"
847 OPTIMIZATION_FULL="-fmove-all-movables -freduce-all-givs \
848 -fbranch-count-reg -fforce-addr -fforce-mem"
851 # -fomit-frame-pointer seems to be buggy on cygwin
857 OMIT_FRAME_POINTER=-fomit-frame-pointer
861 OPTIMIZATION="-O3 ${OMIT_FRAME_POINTER} -ffast-math"
862 OPTIMIZATION_FULL="-fmove-all-movables -freduce-all-givs \
863 -fbranch-count-reg -fforce-addr -fforce-mem"
865 [[456789]].*|1[[0-9]].*)
866 OPTIMIZATION="-O3 -fomit-frame-pointer -ffast-math"
867 OPTIMIZATION_FULL="-fbranch-count-reg -fforce-addr"
871 OPTIMIZATION="-O3 ${OMIT_FRAME_POINTER} -ffast-math \
872 -funroll-loops"
873 OPTIMIZATION_FULL="-fbranch-count-reg -fforce-addr"
877 # GCC version independend generic options
878 OPTIMIZATION_NORM="-fschedule-insns2"
888 [[3456789]].*|1[[0-9]].*)
891 if test -x /usr/bin/isalist; then
895 -mcpu=ultrasparc \
896 -mtune=ultrasparc"
903 [[3456789]].*|1[[0-9]].*)
905 -maccumulate-outgoing-args"
930 # "new" GCC, use some "new" CPU specific optimizations
931 # use -mtune instead of -m486 or -mcpu= etc, since they are
932 # deprecated by GCC <rbrito>
935 OPTIMIZATION="${OPTIMIZATION} -mcpu=i486 \
936 -mfancy-math-387"
939 OPTIMIZATION="${OPTIMIZATION} -mcpu=pentium \
940 -march=pentium -mfancy-math-387"
943 OPTIMIZATION="${OPTIMIZATION} -mcpu=pentiumpro \
944 -march=pentiumpro -mfancy-math-387 \
945 -malign-double"
948 OPTIMIZATION="${OPTIMIZATION} -mfancy-math-387"
951 OPTIMIZATION="${OPTIMIZATION} -mfp-regs"
953 # add "-mcpu=21164a -Wa,-m21164a" to optimize
957 OPTIMIZATION="${OPTIMIZATION} -fdelayed-branch"
961 [[456789]].*|1[[0-9]].*)
964 OPTIMIZATION="${OPTIMIZATION} -march=i486"
967 OPTIMIZATION="${OPTIMIZATION} -march=i586 \
968 -mtune=native"
971 OPTIMIZATION="${OPTIMIZATION} -march=i686 \
972 -mtune=native"
975 OPTIMIZATION="${OPTIMIZATION} -march=native \
976 -mtune=native"
978 arm*-gnueabi)
979 if [ -z "$(echo ${GCC_version} | awk '/4\.0/')" ]; then
980 # Work round buggy softfloat optimization in ARM EABI compilers
981 # -gnueabi in only gcc-4.1 onwards
982 OPTIMIZATION="${OPTIMIZATION} -fno-finite-math-only"
991 …ARN(LAME doesn't know about your version (${GCC_version}) of gcc, please report it to lame-dev@lis…
1004 3.[[89]]*|[[45]].*|1[[0-9]].*)
1005 OPTIMIZATION="-Ofast"
1008 OPTIMIZATION="-O3"
1015 OPTIMIZATION="${OPTIMIZATION} -march=i486"
1018 OPTIMIZATION="${OPTIMIZATION} -march=i586 \
1019 -mtune=native"
1022 OPTIMIZATION="${OPTIMIZATION} -march=i686 \
1023 -mtune=native"
1026 OPTIMIZATION="${OPTIMIZATION} -march=native \
1027 -mtune=native"
1047 [ --enable-debug=alot,norm Enable debugging (disables optimizations)]
1051 if test "x$GCC" = "xyes"; then
1052 DEBUG_NORM_OPT="-O -g -Wall"
1053 DEBUG_ANOYING="-Wbad-function-cast -Wcast-align \
1054 -Wcast-qual -Wchar-subscripts -Wconversion \
1055 -Wmissing-prototypes -Wnested-externs -Wpointer-arith \
1056 -Wredundant-decls -Wshadow -Wstrict-prototypes \
1057 -Wwrite-strings -Winline \
1058 -Wformat -Wswitch -Waggregate-return -Wmissing-noreturn \
1059 -Wimplicit-int -fno-builtin"
1066 dnl instead of a core dump. This is a quick and user-unfriendly fix.
1096 # LINUX on Digital/Compaq Alpha CPUs
1099 alpha*-*-linux*)
1104 if test "`which ccc 2>/dev/null | grep -c ccc`" != "0" ; then
1109 #### set 'OPTIMIZATION = -arch host -tune host'
1111 #### 'OPTIMIZATION += -migrate -fast -inline speed -unroll 0'
1113 #### 'OPTIMIZATION += -w0'
1116 OPTIMIZATION="-arch host -tune host"
1117 OPTIMIZATION="-migrate -fast -inline speed -unroll 0 $OPTIMIZATION"
1118 OPTIMIZATION="-w0 $OPTIMIZATION"
1125 #OPTIMIZATION="-g3 $OPTIMIZATION"
1128 #### define __DECALPHA__ (i was getting re-declaration warnings
1133 fi # gcc or ccc?
1140 sparc-*-sunos4*)
1142 OPTIMIZATION="-O -xCC"
1143 MAKEDEP="-xM"
1144 # for gcc, use instead:
1145 # CC="gcc"
1146 # OPTIMIZATION="-O"
1147 # MAKEDEP="-M"
1155 *-sgi-irix*)
1157 OPTIMIZATION="-O3 -woff all"
1164 alpha*-dec-osf*)
1166 OPTIMIZATION="-fast -O3 -std -g3 -non_shared"
1171 # todo: include the following tests in the case-list
1173 ARCH=`uname -m`
1180 MAKEDEP="-make"
1187 MAKEDEP="-make"
1188 CFLAGS="$CFLAGS -fno-common"
1196 # tools I used: make 3.76.1, uname 1.12, sed 2.05, PD-ksh 5.2.13
1201 #CC=gcc # should already be handled by configure
1212 # INCLUDES="-IC:/XFree86/include/gtk12 -IC:/XFree86/include/glib12 \
1213 # -IC:/XFree86/include $INCLUDES"
1214 # FRONTEND_LDFLAGS="-LC:/XFree86/lib -lgtk12 -lgdk12 -lgmodule -lglib12 \
1215 # -lXext -lX11 -lshm -lbsd -lsocket -lm $FRONTEND_LDFLAGS"
1216 # FRONTEND_CFLAGS="-Zmtd -Zsysv-signals -Zbin-files $FRONTEND_CFLAGS"
1226 CC="gcc -noixemul"
1227 OPTIMIZATION="$OPTIMIZATION -m68020-60 -m68881"
1228 MAKEDEP="-MM"
1230 CC="ppc-amigaos-gcc -warpup"
1231 OPTIMIZATION="$OPTIMIZATION -mmultiple -mcpu=603e"
1232 AR="ppc-amigaos-ar"
1233 RANLIB="ppc-amigaos-ranlib"
1236 CC="ppc-amigaos-gcc"
1237 OPTIMIZATION="$OPTIMIZATION -mmultiple -mcpu=603e"
1238 AR="ppc-amigaos-ar"
1239 RANLIB="ppc-amigaos-ranlib"