File: configure

package info (click to toggle)
r-cran-qpdf 1.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 184 kB
  • sloc: cpp: 90; sh: 21; makefile: 2
file content (13 lines) | stat: -rwxr-xr-x 383 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
if [ -z "$EXTERNAL_QPDF" ]; then
  echo "Using bundled qpdf (recommended)"
  exit 0
fi

# For distro's that prefer external libqpdf (>= 8.1.0)
PKGCONFIG_CFLAGS=`pkg-config --cflags --silence-errors libqpdf`
PKGCONFIG_LIBS=`pkg-config --libs libqpdf`

# Overwrite Makevars
echo "PKG_CPPFLAGS=$PKGCONFIG_CFLAGS" > src/Makevars
echo "PKG_LIBS=$PKGCONFIG_LIBS" >> src/Makevars