On Tue, Mar 7, 2017 at 12:41 PM, Brian Paul <bri...@vmware.com> wrote: > On 03/06/2017 12:06 PM, Matt Turner wrote: >> >> --- >> configure.ac | 6 ++---- >> 1 file changed, 2 insertions(+), 4 deletions(-) >> >> diff --git a/configure.ac b/configure.ac >> index 37f6b60..d44a229 100644 >> --- a/configure.ac >> +++ b/configure.ac >> @@ -2018,10 +2018,8 @@ if test "x$enable_opencl" = xyes; then >> PKG_CONFIG_PATH environment variable. >> By default libclc.pc is installed to >> /usr/local/share/pkgconfig/]) >> else >> - LIBCLC_INCLUDEDIR=`$PKG_CONFIG --variable=includedir libclc` >> - LIBCLC_LIBEXECDIR=`$PKG_CONFIG --variable=libexecdir libclc` >> - AC_SUBST([LIBCLC_INCLUDEDIR]) >> - AC_SUBST([LIBCLC_LIBEXECDIR]) >> + PKG_CHECK_VAR([LIBCLC_INCLUDEDIR], [libclc], [includedir]) >> + PKG_CHECK_VAR([LIBCLC_LIBEXECDIR], [libclc], [libexecdir]) >> fi >> >> gallium_st="$gallium_st clover" >> > > Hi Matt, > > I'm getting a configure error after this change: > > $ ./autogen.sh CFLAGS="-g -O0" CXXFLAGS="-g -O0" --enable-debug > --enable-glx=gallium-xlib --disable-driglx-direct --disable-dri > --enable-osmesa --with-gallium-drivers=swrast,svga --disable-xvmc > --disable-gbm --disable-egl > autoreconf: Entering directory `.' > autoreconf: configure.ac: not using Gettext > autoreconf: running: aclocal --force -I m4 > autoreconf: configure.ac: tracing > autoreconf: running: libtoolize --copy --force > libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `bin'. > libtoolize: copying file `bin/ltmain.sh' > libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. > libtoolize: copying file `m4/libtool.m4' > libtoolize: copying file `m4/ltoptions.m4' > libtoolize: copying file `m4/ltsugar.m4' > libtoolize: copying file `m4/ltversion.m4' > libtoolize: copying file `m4/lt~obsolete.m4' > autoreconf: running: /usr/bin/autoconf --force > configure.ac:2021: error: possibly undefined macro: PKG_CHECK_VAR > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation. > autoreconf: /usr/bin/autoconf failed with exit status: 1 > > > Any ideas? > > -Brian
What version of pkg-config do you have? PKG_CHECK_VAR was added in version 0.28, which was released 2013-01-24. Perhaps naïvely, I assumed without checking that >4 years was sufficiently old. [1] indicates that Ubuntu 14.04LTS might only have 0.26? That seems unfortunate since it postdates pkg-config-0.28 by more than a year. If that is indeed the problem, I guess the first question is whether it's possible to easily update pkg-config to 0.28? Sorry for this. [1] http://packages.ubuntu.com/search?keywords=pkg-config _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev