Index: openexr-1.4.0/configure.ac =================================================================== --- openexr-1.4.0.orig/configure.ac +++ openexr-1.4.0/configure.ac @@ -45,7 +45,12 @@ AM_PATH_FLTK(have_fltk=yes, have_fltk=no dnl dnl check for Cg dnl -if test "${have_fltk}" = yes; then +AC_ARG_ENABLE(nvidia, + AC_HELP_STRING([--enable-nvidia], + [enable nvidia cg support [[default=check]]]), + [want_nvidia="${enableval}"], [want_nvidia=yes]) + +if test "${have_fltk}" = yes -a "${want_nvidia}" != "no"; then AM_PATH_CG(have_cg=yes, have_cg=no) if test "${have_cg}" = yes; then AC_DEFINE(HAVE_FRAGMENT_SHADERS)