--- mpeg2dec-0.3.1/configure.in 2002-12-14 07:35:48.000000000 +0100 +++ mpeg2dec-0.3.1-hacked/configure.in 2003-04-25 11:57:01.000000000 +0200 @@ -87,6 +87,11 @@ AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);; esac fi +if test "$RPM_OPT_FLAGS" != ""; then + # overwrite the whole autodetection stuff for rpm builds, + # otherwise rpm --target="..." doesn't work. + CFLAGS="$RPM_OPT_FLAGS" +fi dnl Checks for libtool - this must be done after we set cflags AC_DISABLE_SHARED @@ -129,4 +134,5 @@ AC_C_ATTRIBUTE_ALIGNED +LIBMPEG2_CFLAGS="" AC_OUTPUT