kumquat-buildroot/package/postgresql/pg_config
Maxim Kochetkov 787ad0b35d package/postgresql: add configure and includedir-server output to pg_config
Some external packages call pg_config to determine the installed
PostgreSQL server includedir and configure options. Add this output to
Buildroots own pg_config, so these packages correctly compile.

Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-10-08 22:16:17 +02:00

29 lines
526 B
Bash

#!/bin/sh
#
# Minimal pg_config implementation as replacement for the native pg_config application
# Only implements --includedir and --libdir
#
prefix=/usr
case "$1" in
--includedir)
echo "$prefix/include"
;;
--includedir-server)
echo "$prefix/include/postgresql/server"
;;
--libdir)
echo "$prefix/lib"
;;
--version)
echo "PostgreSQL @POSTGRESQL_VERSION@"
;;
--configure)
echo "@POSTGRESQL_CONF_OPTIONS@"
;;
*)
echo "Usage: $0 {--includedir|--includedir-server|--libdir|--version|--configure}"
esac