diff -urp a/autoconf/configure.in b/autoconf/configure.in --- a/autoconf/configure.in +++ b/autoconf/configure.in @@ -314,6 +314,8 @@ FROM_AFTERSTEP_CONFIGURE=yes export FROM_AFTERSTEP_CONFIGURE _def_lib_conf_opts=" \ + --host=${host_alias} \ + --build=${build_alias} \ --prefix=${prefix} \ --exec-prefix=${exec_prefix} \ --bindir=${bindir} \ diff -urp a/configure b/configure --- a/configure +++ b/configure @@ -6254,6 +6254,8 @@ FROM_AFTERSTEP_CONFIGURE=yes export FROM_AFTERSTEP_CONFIGURE _def_lib_conf_opts=" \ + --host=${host_alias} \ + --build=${build_alias} \ --prefix=${prefix} \ --exec-prefix=${exec_prefix} \ --bindir=${bindir} \ diff -urp a/libAfterBase/configure b/libAfterBase/configure --- a/libAfterBase/configure +++ b/libAfterBase/configure @@ -5726,10 +5726,10 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use sign safe min/max macros" >&5 $as_echo_n "checking if we can use sign safe min/max macros... " >&6; } if test "$cross_compiling" = yes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run test program while cross compiling -See \`config.log' for more details" "$LINENO" 5; } + +$as_echo "#define USE_SAFE_MINMAX 1" >>confdefs.h + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ diff -urp a/libAfterBase/configure.in b/libAfterBase/configure.in --- a/libAfterBase/configure.in +++ b/libAfterBase/configure.in @@ -233,7 +233,8 @@ AC_TRY_RUN([#define MIN(x,y) \ ({ const typeof(x) _x = (x); const typeof(y) _y = (y); (void) (&_x == &_y); \ _x < _y ? _x : _y; }) int main(){return MIN(0,1);}], - [AC_DEFINE(USE_SAFE_MINMAX,1,will use type-safe min/max macros) AC_MSG_RESULT(yes)],AC_MSG_RESULT(no)) + [AC_DEFINE(USE_SAFE_MINMAX,1,will use type-safe min/max macros) AC_MSG_RESULT(yes)],AC_MSG_RESULT(no), + [AC_DEFINE(USE_SAFE_MINMAX,1,will use type-safe min/max macros) AC_MSG_RESULT(yes)]) dnl# Translate enable_* from "yes/no" to "1/0" (for configure.h) diff -urp a/libAfterImage/configure b/libAfterImage/configure --- a/libAfterImage/configure +++ b/libAfterImage/configure @@ -6523,10 +6523,7 @@ rm -f conftest* if test "x$have_ft2build" = "xno" ; then if test "x$have_freetype_freetype" = "xyes" ; then if test "$cross_compiling" = yes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run test program while cross compiling -See \`config.log' for more details" "$LINENO" 5; } + have_ttf=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6545,10 +6542,7 @@ fi elif test "x$have_freetype" = "xyes" ; then if test "$cross_compiling" = yes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run test program while cross compiling -See \`config.log' for more details" "$LINENO" 5; } + have_ttf=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6568,10 +6562,7 @@ fi fi; elif test "x$have_freetype_freetype" = "xyes" ; then if test "$cross_compiling" = yes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run test program while cross compiling -See \`config.log' for more details" "$LINENO" 5; } + have_ttf=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6591,10 +6582,7 @@ fi elif test "x$have_freetype" = "xyes" ; then if test "$cross_compiling" = yes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run test program while cross compiling -See \`config.log' for more details" "$LINENO" 5; } + have_ttf=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ diff -urp a/libAfterImage/configure.in b/libAfterImage/configure.in --- a/libAfterImage/configure.in +++ b/libAfterImage/configure.in @@ -592,22 +592,22 @@ else if test "x$have_freetype_freetype" = "xyes" ; then AC_TRY_RUN([#include int main(){FT_Face f; return 0;}], - [have_ttf=yes],AC_MSG_RESULT(no)) + [have_ttf=yes],AC_MSG_RESULT(no),[have_ttf=yes]) elif test "x$have_freetype" = "xyes" ; then AC_TRY_RUN([#include int main(){FT_Face f; return 0;}], - [have_ttf=yes],AC_MSG_RESULT(no)) + [have_ttf=yes],AC_MSG_RESULT(no),[have_ttf=yes]) fi; elif test "x$have_freetype_freetype" = "xyes" ; then AC_TRY_RUN([#include #include int main(){FT_Face f; return 0;}], - [have_ttf=yes],AC_MSG_RESULT(no)) + [have_ttf=yes],AC_MSG_RESULT(no),[have_ttf=yes]) elif test "x$have_freetype" = "xyes" ; then AC_TRY_RUN([#include #include int main(){FT_Face f; return 0;}], - [have_ttf=yes],AC_MSG_RESULT(no)) + [have_ttf=yes],AC_MSG_RESULT(no),[have_ttf=yes]) fi; if test "x$have_ttf" = "xyes" ; then AC_DEFINE(HAVE_FREETYPE,1,[Define if libFreeType is available])