aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-06-15 20:35:44 +0000
committerMåns Rullgård <mans@mansr.com>2007-06-15 20:35:44 +0000
commit3f5b56e58b17e664bd2b72bd4ed3c88ca183502c (patch)
tree4e05530c9d184cd9f1fbcb04a441d463581f91a4
parent48a14b9174838a991a3791442600b5d55c94d999 (diff)
downloadffmpeg-3f5b56e58b17e664bd2b72bd4ed3c88ca183502c.tar.gz
replace TARGET_* with HAVE_* simplifying lists in configure script
Originally committed as revision 9324 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure64
-rw-r--r--libavcodec/Makefile14
2 files changed, 36 insertions, 42 deletions
diff --git a/configure b/configure
index 8772d0eb55..8556a00d82 100755
--- a/configure
+++ b/configure
@@ -618,12 +618,37 @@ THREADS_LIST='
w32threads
'
-HAVE_LIST="
- $THREADS_LIST
+ARCH_LIST='
+ alpha
+ armv4l
+ bfin
+ ia64
+ m68k
+ mips
+ parisc
+ powerpc
+ s390
+ sh4
+ sparc
+ sparc64
+ x86
+ x86_32
+ x86_64
+'
+
+ARCH_EXT_LIST='
altivec
- altivec_h
armv5te
armv6
+ iwmmxt
+ mmi
+ mmx
+'
+
+HAVE_LIST="
+ $ARCH_EXT_LIST
+ $THREADS_LIST
+ altivec_h
arpa_inet_h
byteswap_h
cmov
@@ -643,7 +668,6 @@ HAVE_LIST="
freetype2
imlib2
inet_aton
- iwmmxt
localtime_r
lrintf
machine_ioctl_bt848_h
@@ -651,8 +675,6 @@ HAVE_LIST="
malloc_h
memalign
mlib
- mmi
- mmx
os2
sdl
sdl_video_size
@@ -663,36 +685,9 @@ HAVE_LIST="
threads
"
-ARCH_LIST='
- alpha
- armv4l
- bfin
- ia64
- m68k
- mips
- parisc
- powerpc
- s390
- sh4
- sparc
- sparc64
- x86
- x86_32
- x86_64
-'
-
-TARGET_LIST='
- altivec
- armv5te
- armv6
- iwmmxt
- mmi
- mmx
-'
-
CMDLINE_SELECT="
+ $ARCH_EXT_LIST
$CONFIG_LIST
- $TARGET_LIST
$THREADS_LIST
debug
extra_warnings
@@ -2037,7 +2032,6 @@ echo "EXTRALIBS=$extralibs" >> config.mak
print_config_enable ARCH_ $TMPH config.mak $ARCH_LIST
print_config_enable HAVE_ $TMPH config.mak $HAVE_LIST
-print_config TARGET_ $TMPH config.mak $TARGET_LIST
print_config_enable CONFIG_ $TMPH config.mak $CONFIG_LIST \
$DECODER_LIST \
$ENCODER_LIST \
diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index d34083efc9..44e9e82f76 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -325,7 +325,7 @@ OBJS += imgresample.o
endif
# processor-specific code
-ifeq ($(TARGET_MMX),yes)
+ifeq ($(HAVE_MMX),yes)
OBJS += i386/fdct_mmx.o \
i386/cputest.o \
i386/dsputil_mmx.o \
@@ -352,13 +352,13 @@ ASM_OBJS-$(ARCH_ARMV4L) += armv4l/jrevdct_arm.o \
OBJS-$(ARCH_ARMV4L) += armv4l/dsputil_arm.o \
armv4l/mpegvideo_arm.o \
-OBJS-$(TARGET_IWMMXT) += armv4l/dsputil_iwmmxt.o \
+OBJS-$(HAVE_IWMMXT) += armv4l/dsputil_iwmmxt.o \
armv4l/mpegvideo_iwmmxt.o \
-ASM_OBJS-$(TARGET_ARMV5TE) += armv4l/simple_idct_armv5te.o \
+ASM_OBJS-$(HAVE_ARMV5TE) += armv4l/simple_idct_armv5te.o \
armv4l/mpegvideo_armv5te.o \
-ASM_OBJS-$(TARGET_ARMV6) += armv4l/simple_idct_armv6.o \
+ASM_OBJS-$(HAVE_ARMV6) += armv4l/simple_idct_armv6.o \
OBJS-$(ARCH_SPARC) += sparc/dsputil_vis.o \
@@ -377,7 +377,7 @@ ASM_OBJS-$(ARCH_ALPHA) += alpha/dsputil_alpha_asm.o \
OBJS-$(ARCH_POWERPC) += ppc/dsputil_ppc.o \
ppc/mpegvideo_ppc.o \
-OBJS-$(TARGET_MMI) += ps2/dsputil_mmi.o \
+OBJS-$(HAVE_MMI) += ps2/dsputil_mmi.o \
ps2/idct_mmi.o \
ps2/mpegvideo_mmi.o \
@@ -385,7 +385,7 @@ OBJS-$(ARCH_SH4) += sh4/idct_sh4.o \
sh4/dsputil_sh4.o \
sh4/dsputil_align.o \
-OBJS-$(TARGET_ALTIVEC) += ppc/dsputil_altivec.o \
+OBJS-$(HAVE_ALTIVEC) += ppc/dsputil_altivec.o \
ppc/mpegvideo_altivec.o \
ppc/idct_altivec.o \
ppc/fft_altivec.o \
@@ -394,7 +394,7 @@ OBJS-$(TARGET_ALTIVEC) += ppc/dsputil_altivec.o \
ppc/float_altivec.o \
ppc/int_altivec.o \
-ifeq ($(TARGET_ALTIVEC),yes)
+ifeq ($(HAVE_ALTIVEC),yes)
OBJS-$(CONFIG_H264_DECODER) += ppc/h264_altivec.o
OBJS-$(CONFIG_SNOW_DECODER) += ppc/snow_altivec.o
OBJS-$(CONFIG_VC1_DECODER) += ppc/vc1dsp_altivec.o