diff -r d870bb08194a -r d7852bb72332 make/autoconf/help.m4 --- a/make/autoconf/help.m4 Tue Mar 05 08:24:58 2019 -0500 +++ b/make/autoconf/help.m4 Tue Mar 05 09:55:00 2019 +0100 @@ -1,5 +1,5 @@ # -# Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -25,7 +25,7 @@ AC_DEFUN_ONCE([HELP_SETUP_DEPENDENCY_HELP], [ - AC_CHECK_PROGS(PKGHANDLER, apt-get yum brew port pkgutil pkgadd) + AC_CHECK_PROGS(PKGHANDLER, zypper apt-get yum brew port pkgutil pkgadd) ]) AC_DEFUN([HELP_MSG_MISSING_DEPENDENCY], @@ -54,6 +54,8 @@ pkgutil_help $MISSING_DEPENDENCY ;; pkgadd) pkgadd_help $MISSING_DEPENDENCY ;; + zypper) + zypper_help $MISSING_DEPENDENCY ;; esac if test "x$PKGHANDLER_COMMAND" != x; then @@ -110,6 +112,25 @@ esac } +zypper_help() { + case $1 in + devkit) + PKGHANDLER_COMMAND="sudo zypper install gcc gcc-c++" ;; + alsa) + PKGHANDLER_COMMAND="sudo zypper install alsa-devel" ;; + cups) + PKGHANDLER_COMMAND="sudo zypper install cups-devel" ;; + fontconfig) + PKGHANDLER_COMMAND="sudo zypper install fontconfig-devel" ;; + freetype) + PKGHANDLER_COMMAND="sudo zypper install freetype-devel" ;; + x11) + PKGHANDLER_COMMAND="sudo zypper install libX11-devel libXext-devel libXrender-devel libXrandr-devel libXtst-devel libXt-devel libXi-devel" ;; + ccache) + PKGHANDLER_COMMAND="sudo zypper install ccache" ;; + esac +} + yum_help() { case $1 in devkit)