Revision 20ff075b
b/configure | ||
---|---|---|
720 | 720 |
;; |
721 | 721 |
--enable-vhost-net) vhost_net="yes" |
722 | 722 |
;; |
723 |
--disable-opengl) opengl="no" |
|
724 |
;; |
|
725 |
--enable-opengl) opengl="yes" |
|
726 |
;; |
|
723 | 727 |
--*dir) |
724 | 728 |
;; |
725 | 729 |
--disable-rbd) rbd="no" |
... | ... | |
1944 | 1948 |
fi |
1945 | 1949 |
fi |
1946 | 1950 |
|
1951 |
########################################## |
|
1952 |
# opengl probe, used by milkymist-tmu2 |
|
1953 |
if test "$opengl" != "no" ; then |
|
1954 |
opengl_libs="-lGL" |
|
1955 |
cat > $TMPC << EOF |
|
1956 |
#include <X11/Xlib.h> |
|
1957 |
#include <GL/gl.h> |
|
1958 |
#include <GL/glx.h> |
|
1959 |
int main(void) { GL_VERSION; return 0; } |
|
1960 |
EOF |
|
1961 |
if compile_prog "" "-lGL" ; then |
|
1962 |
opengl=yes |
|
1963 |
libs_softmmu="$opengl_libs $libs_softmmu" |
|
1964 |
else |
|
1965 |
if test "$opengl" = "yes" ; then |
|
1966 |
feature_not_found "opengl" |
|
1967 |
fi |
|
1968 |
opengl=no |
|
1969 |
fi |
|
1970 |
fi |
|
1971 |
|
|
1947 | 1972 |
# |
1948 | 1973 |
# Check for xxxat() functions when we are building linux-user |
1949 | 1974 |
# emulator. This is done because older glibc versions don't |
... | ... | |
2582 | 2607 |
echo "rbd support $rbd" |
2583 | 2608 |
echo "xfsctl support $xfs" |
2584 | 2609 |
echo "nss used $smartcard_nss" |
2610 |
echo "OpenGL support $opengl" |
|
2585 | 2611 |
|
2586 | 2612 |
if test $sdl_too_old = "yes"; then |
2587 | 2613 |
echo "-> Your SDL version is too old - please upgrade to have SDL support" |
... | ... | |
2872 | 2898 |
echo "CONFIG_SMARTCARD_NSS=y" >> $config_host_mak |
2873 | 2899 |
fi |
2874 | 2900 |
|
2901 |
if test "$opengl" = "yes" ; then |
|
2902 |
echo "CONFIG_OPENGL=y" >> $config_host_mak |
|
2903 |
fi |
|
2904 |
|
|
2875 | 2905 |
# XXX: suppress that |
2876 | 2906 |
if [ "$bsd" = "yes" ] ; then |
2877 | 2907 |
echo "CONFIG_BSD=y" >> $config_host_mak |
Also available in: Unified diff