Search
lxdream.org :: lxdream/configure :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1210:79bbd30363f4
prev1200:3b2097efa97d
next1211:eecdeb37934a
author nkeynes
date Tue Feb 07 14:27:13 2012 +1000 (12 years ago)
permissions -rw-r--r--
last change Add wrangling for some of the core vs EXT/ARB versions of functions + macros
file annotate diff log raw
1.1 --- a/configure Wed Dec 21 17:13:08 2011 +1000
1.2 +++ b/configure Tue Feb 07 14:27:13 2012 +1000
1.3 @@ -11258,6 +11258,95 @@
1.4 fi
1.5
1.6
1.7 +{ echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
1.8 +echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
1.9 +if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
1.10 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.11 +else
1.12 + cat >conftest.$ac_ext <<_ACEOF
1.13 +/* confdefs.h. */
1.14 +_ACEOF
1.15 +cat confdefs.h >>conftest.$ac_ext
1.16 +cat >>conftest.$ac_ext <<_ACEOF
1.17 +/* end confdefs.h. */
1.18 +/* Define glGenFramebuffers to an innocuous variant, in case <limits.h> declares glGenFramebuffers.
1.19 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.20 +#define glGenFramebuffers innocuous_glGenFramebuffers
1.21 +
1.22 +/* System header to define __stub macros and hopefully few prototypes,
1.23 + which can conflict with char glGenFramebuffers (); below.
1.24 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.25 + <limits.h> exists even on freestanding compilers. */
1.26 +
1.27 +#ifdef __STDC__
1.28 +# include <limits.h>
1.29 +#else
1.30 +# include <assert.h>
1.31 +#endif
1.32 +
1.33 +#undef glGenFramebuffers
1.34 +
1.35 +/* Override any GCC internal prototype to avoid an error.
1.36 + Use char because int might match the return type of a GCC
1.37 + builtin and then its argument prototype would still apply. */
1.38 +#ifdef __cplusplus
1.39 +extern "C"
1.40 +#endif
1.41 +char glGenFramebuffers ();
1.42 +/* The GNU C library defines this for functions which it implements
1.43 + to always fail with ENOSYS. Some functions are actually named
1.44 + something starting with __ and the normal name is an alias. */
1.45 +#if defined __stub_glGenFramebuffers || defined __stub___glGenFramebuffers
1.46 +choke me
1.47 +#endif
1.48 +
1.49 +int
1.50 +main ()
1.51 +{
1.52 +return glGenFramebuffers ();
1.53 + ;
1.54 + return 0;
1.55 +}
1.56 +_ACEOF
1.57 +rm -f conftest.$ac_objext conftest$ac_exeext
1.58 +if { (ac_try="$ac_link"
1.59 +case "(($ac_try" in
1.60 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.61 + *) ac_try_echo=$ac_try;;
1.62 +esac
1.63 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.64 + (eval "$ac_link") 2>conftest.er1
1.65 + ac_status=$?
1.66 + grep -v '^ *+' conftest.er1 >conftest.err
1.67 + rm -f conftest.er1
1.68 + cat conftest.err >&5
1.69 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.70 + (exit $ac_status); } && {
1.71 + test -z "$ac_c_werror_flag" ||
1.72 + test ! -s conftest.err
1.73 + } && test -s conftest$ac_exeext &&
1.74 + $as_test_x conftest$ac_exeext; then
1.75 + ac_cv_func_glGenFramebuffers=yes
1.76 +else
1.77 + echo "$as_me: failed program was:" >&5
1.78 +sed 's/^/| /' conftest.$ac_ext >&5
1.79 +
1.80 + ac_cv_func_glGenFramebuffers=no
1.81 +fi
1.82 +
1.83 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.84 + conftest$ac_exeext conftest.$ac_ext
1.85 +fi
1.86 +{ echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffers" >&5
1.87 +echo "${ECHO_T}$ac_cv_func_glGenFramebuffers" >&6; }
1.88 +if test $ac_cv_func_glGenFramebuffers = yes; then
1.89 +
1.90 +cat >>confdefs.h <<\_ACEOF
1.91 +#define HAVE_OPENGL_FBO 1
1.92 +_ACEOF
1.93 +
1.94 +fi
1.95 +
1.96 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
1.97 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
1.98 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
1.99 @@ -11342,7 +11431,7 @@
1.100 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
1.101
1.102 cat >>confdefs.h <<\_ACEOF
1.103 -#define HAVE_OPENGL_FBO 1
1.104 +#define HAVE_OPENGL_FBO_EXT 1
1.105 _ACEOF
1.106
1.107 fi
.