X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=configure;h=d115790d56296b6d99f9d732b525f226cf6c04fa;hb=cec0694a7f219bd3590e6a04beba34ca45539540;hp=6195562fb3f63120bca09c5c4db5ecbf441b2baf;hpb=0b190cc8fbca0f970eadd8c0f1d5792c41f71cf6;p=glaze diff --git a/configure b/configure index 6195562..d115790 100755 --- a/configure +++ b/configure @@ -3,6 +3,11 @@ PROJECT=glaze PROJECT_BLURB="a shiny way to wrap OpenGL" +MAJOR=0 +MINOR=0 +RELEASE=0 +VERSION=${MAJOR}.${MINOR}.${RELEASE} + srcdir=$(dirname "$0") # For a non-srcdir configure invocation (such as ../configure), create @@ -240,22 +245,43 @@ CFLAGS = ${CFLAGS} LDFLAGS = ${LDFLAGS} # Flags to enable warnings when using the C compiler -WARN_CFLAGS=${WARN_CFLAGS} +WARN_CFLAGS = ${WARN_CFLAGS} # The prefix to which ${PROJECT} should be installed PREFIX = ${PREFIX} # The directory to which executables should be installed -BINDIR = ${BINDIR:=\$(PREFIX)/bin} +BINDIR = ${BINDIR:-\$(PREFIX)/bin} # The directory to which libraries should be installed -LIBDIR = ${LIBDIR:=\$(PREFIX)/lib} +LIBDIR = ${LIBDIR:-\$(PREFIX)/lib} # The directory to which headers should be installed -INCLUDEDIR = ${INCLUDEDIR:=\$(PREFIX)/include} +INCLUDEDIR = ${INCLUDEDIR:-\$(PREFIX)/include} # Whether compiler can create 32 or 64-bit binaries COMPILER_SUPPORTS_32 = ${have_m32} COMPILER_SUPPORTS_64 = ${have_m64} +# Version information for glaze library +MAJOR = ${MAJOR} +MINOR = ${MINOR} +RELEASE = ${RELEASE} +VERSION = ${VERSION} + +EOF + +# construct the glaze.pc file +cat > glaze.pc <