X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=configure.ac;h=2bf6e6f64f3afe4748c0382b12ff634186086c8b;hp=f12e48d0c7ceec9ca6c31213f9ee29ed610deaf2;hb=refs%2Ftags%2Fv1.9.1;hpb=41d67cbe2da973eb5945f822c473c734bc595395 diff --git a/configure.ac b/configure.ac index f12e48d..2bf6e6f 100644 --- a/configure.ac +++ b/configure.ac @@ -135,6 +135,13 @@ AM_CONDITIONAL( [WITH_TWIN], [test "x$with_twin_x11" = "xyes" || test "x$with_twin_fbdev" = "xyes"]) +AS_IF( + [test "x$with_twin_x11" != "xyes" && \ + test "x$with_twin_fbdev" != "xyes" && \ + test "x$ax_cv_curses" != "xyes"], + [AC_MSG_WARN([ No user interface programs configured. Consider using --with-ncurses, --with-twin-x11 or --with-twin-fbdev'])] +) + AS_IF( [test "x$with_twin_x11" = "xyes" || test "x$with_twin_fbdev" = "xyes"], [PKG_CHECK_MODULES( @@ -296,16 +303,61 @@ AS_IF( ] ) +# platform choice AC_ARG_ENABLE( - [ps3], + [platform-all], [AS_HELP_STRING( - [--enable-ps3], - [build additional programs for the PS3 game console [default=no]] + [--enable-platform-all], + [build support for all platforms [default=no]] + )] +) +AS_IF( + [test "x$enable_platform_all" = "xyes"], + [enable_platform_arm64="yes"; enable_platform_powerpc="yes"; enable_platform_ps3="yes"] +) + +AC_ARG_ENABLE( + [platform-auto], + [AS_HELP_STRING( + [--enable-platform-auto], + [auto detect platform support to build [default=yes]] )], [], - [enable_ps3=no] + [enable_platform_auto="yes"] +) +AS_IF( + [test "x$enable_platform_auto" = "xyes"], + [AS_CASE([$host], + [aarch64-*-*], [enable_platform_arm64="yes"], + [powerpc*-*-*], [enable_platform_powerpc="yes"], + )] ) -AM_CONDITIONAL([ENABLE_PS3], [test "x$enable_ps3" = "xyes"]) + +AC_ARG_ENABLE( + [platform-arm64], + [AS_HELP_STRING( + [--enable-platform-arm64], + [build support for arm64 platforms [default=no]] + )] +) +AM_CONDITIONAL([PLATFORM_ARM64], [test "x$enable_platform_arm64" = "xyes"]) + +AC_ARG_ENABLE( + [platform-powerpc], + [AS_HELP_STRING( + [--enable-platform-powerpc], + [build support for powerpc platforms [default=no]] + )] +) +AM_CONDITIONAL([PLATFORM_POWERPC], [test "x$enable_platform_powerpc" = "xyes"]) + +AC_ARG_ENABLE( + [platform-ps3], + [AS_HELP_STRING( + [--enable-platform-ps3], + [build support for the PS3 game console [default=no]] + )]) +AM_CONDITIONAL([PLATFORM_PS3], [test "x$enable_platform_ps3" = "xyes"]) AC_ARG_ENABLE( [debug], @@ -315,7 +367,6 @@ AC_ARG_ENABLE( [], [enable_debug=check] ) -#AM_CONDITIONAL([ENABLE_DEBUG], [test "x$enable_debug" = "xyes"]) AC_ARG_ENABLE( [test-valgrind], @@ -353,6 +404,7 @@ DEFINE_HOST_PROG(PB_PLUGIN, pb-plugin, [/usr/sbin/pb-plugin]) DEFINE_HOST_PROG(PB_EXEC, pb-exec, [/usr/sbin/pb-exec]) DEFINE_HOST_PROG(SH, sh, [/bin/sh]) DEFINE_HOST_PROG(SCSI_RESCAN, scsi-rescan, [/usr/sbin/scsi-rescan]) +DEFINE_HOST_PROG(DMIDECODE, dmidecode, [/sbin/dmidecode]) AC_ARG_WITH( [tftp],