From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=55270 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwizL-0006yA-Tc for qemu-devel@nongnu.org; Mon, 07 Mar 2011 17:33:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pwiz9-0003qQ-40 for qemu-devel@nongnu.org; Mon, 07 Mar 2011 17:33:14 -0500 Received: from mail.serverraum.org ([78.47.150.89]:47670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pwiz8-0003qB-SR for qemu-devel@nongnu.org; Mon, 07 Mar 2011 17:33:03 -0500 From: Michael Walle Date: Mon, 7 Mar 2011 23:32:39 +0100 Message-Id: <1299537165-16711-9-git-send-email-michael@walle.cc> In-Reply-To: <1299537165-16711-1-git-send-email-michael@walle.cc> References: <1299537165-16711-1-git-send-email-michael@walle.cc> Subject: [Qemu-devel] [PATCH 08/14] configure: add opengl detection List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Edgar E. Iglesias" , Michael Walle , Alexander Graf This patch introduce a new config option CONFIG_OPENGL. Signed-off-by: Michael Walle --- configure | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/configure b/configure index e75e1a2..fe8791d 100755 --- a/configure +++ b/configure @@ -130,6 +130,7 @@ linux_aio="" attr="" vhost_net="" xfs="" +opengl="" gprof="no" debug_tcg="no" @@ -713,6 +714,10 @@ for opt do ;; --enable-vhost-net) vhost_net="yes" ;; + --disable-opengl) opengl="no" + ;; + --enable-opengl) opengl="yes" + ;; --*dir) ;; --disable-rbd) rbd="no" @@ -872,6 +877,8 @@ echo " --disable-kvm disable KVM acceleration support" echo " --enable-kvm enable KVM acceleration support" echo " --disable-nptl disable usermode NPTL support" echo " --enable-nptl enable usermode NPTL support" +echo " --disable-opengl disable OpenGL support" +echo " --enable-opengl enable OpenGL support" echo " --enable-system enable all system emulation targets" echo " --disable-system disable all system emulation targets" echo " --enable-user enable supported user emulation targets" @@ -1923,6 +1930,27 @@ EOF fi fi +########################################## +# opengl probe, used by milkymist-tmu2 +if test "$opengl" != "no" ; then + opengl_libs="-lGL" + cat > $TMPC << EOF +#include +#include +#include +int main(void) { GL_VERSION; return 0; } +EOF + if compile_prog "" "-lGL" ; then + opengl=yes + libs_softmmu="$opengl_libs $libs_softmmu" + else + if test "$opengl" = "yes" ; then + feature_not_found "opengl" + fi + opengl=no + fi +fi + # # Check for xxxat() functions when we are building linux-user # emulator. This is done because older glibc versions don't @@ -2530,6 +2558,7 @@ echo "Trace output file $trace_file-" echo "spice support $spice" echo "rbd support $rbd" echo "xfsctl support $xfs" +echo "OpenGL support $opengl" if test $sdl_too_old = "yes"; then echo "-> Your SDL version is too old - please upgrade to have SDL support" @@ -2811,6 +2840,10 @@ if test "$spice" = "yes" ; then echo "CONFIG_SPICE=y" >> $config_host_mak fi +if test "$opengl" = "yes" ; then + echo "CONFIG_OPENGL=y" >> $config_host_mak +fi + # XXX: suppress that if [ "$bsd" = "yes" ] ; then echo "CONFIG_BSD=y" >> $config_host_mak -- 1.7.2.3