--- configure.orig 2015-10-12 21:35:07.000000000 -0700 +++ configure 2015-10-18 12:19:26.000000000 -0700 @@ -4264,7 +4264,7 @@ local incdir_raw incdir_mod cflags local libdir_raw libdir_mod libs - if [ -n "$PKG_CONFIG" ] && $PKG_CONFIG --exists $pkg_name 2>/dev/null; then + if [ -n "$PKG_CONFIG" ] && [ "$qmake_postfix" != "OPENGL" ] && $PKG_CONFIG --exists $pkg_name 2>/dev/null; then incdir_raw=`$PKG_CONFIG --cflags-only-I $pkg_name 2>/dev/null` cflags=`$PKG_CONFIG --cflags-only-other $pkg_name 2>/dev/null` libdir_raw=`$PKG_CONFIG --libs-only-L $pkg_name 2>/dev/null`