X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=configure;h=84c9aa32240d0b801f881a792f3c14aabde9f21b;hb=39e3c25f1c8500f6a50b2a9284eaf553da392c27;hp=68d36b8d7232d053831b08744d0dc2ae5e5fbe26;hpb=2aa16354be81743de06885ce8fbf6f80f24dfef2;p=swftools.git diff --git a/configure b/configure index 68d36b8..84c9aa3 100755 --- a/configure +++ b/configure @@ -10828,6 +10828,12 @@ if test "x${HAVE_FONTCONFIG}" = "x1"; then echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6 +if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then + #move freetype library to the end of libraries, otherwise fontconfig + #won't compile. + LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'` +fi + cat > conftest.c << EOF #include @@ -11502,9 +11508,11 @@ echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C int main(int argn, char*argv) { - return Py_Main(argn, argv); + int ret; + ret = Py_Main(argn, argv); + int x; // check also for gcc 2.95.x incompatibilities + return ret; } -bli bla blo EOF ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}' if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then @@ -11624,7 +11632,8 @@ fi # ------------------------------------------------------------------ -FILES="./release Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}" +if test -f "release.in"; then release_in="./release"; fi +FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile}" ac_config_files="$ac_config_files ${FILES}"