summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2012-09-17 11:32:14 -0700
committerMatt Turner <mattst88@gmail.com>2012-09-17 11:32:14 -0700
commit030651b64854b84a01ebebad9af188e7644c541a (patch)
tree57a2640443e39159a40f1aa888331556e6693341
parent6713b96bc2134dda985f06d0b2c7f447296c4a70 (diff)
build: Put correct thing in glu.pc's Requires:glu-9.0.0
-rw-r--r--configure.ac3
-rw-r--r--glu.pc.in2
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 106bd6a..cbfd047 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,6 +63,7 @@ AC_ARG_ENABLE(osmesa,
dnl Get the pkg-config definitions for libGL/OSMesa. We include a fallback
dnl path for implementations that don't provide a .pc file
if test "x$OSMESA" = "xyes"; then
+ GLU_REQUIRES="osmesa"
PKG_CHECK_MODULES(OSMESA, [osmesa], [], [
AC_CHECK_LIB([OSMesa],
[glBegin],
@@ -70,6 +71,7 @@ if test "x$OSMESA" = "xyes"; then
AC_MSG_ERROR([OSMesa required]))
])
else
+ GLU_REQUIRES="gl"
PKG_CHECK_MODULES(GL, [gl], [], [
AC_CHECK_HEADER([GL/gl.h],
[],
@@ -80,6 +82,7 @@ else
AC_MSG_ERROR([GL required]))
])
fi
+AC_SUBST([GLU_REQUIRES])
dnl Set up C warning and visibility flags.
if test "x$GCC" = xyes; then
diff --git a/glu.pc.in b/glu.pc.in
index 1cff191..939740d 100644
--- a/glu.pc.in
+++ b/glu.pc.in
@@ -5,7 +5,7 @@ includedir=@includedir@
Name: glu
Description: Mesa OpenGL Utility library
-Requires: gl
+Requires: @GLU_REQUIRES@
Version: @VERSION@
Libs: -L${libdir} -lGLU
Libs.private: -lm