hc
2024-08-12 0517ab8c70e05fc5877c0c6dae1a5f42a16dcf88
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/sh
 
#
# Minimal pg_config implementation as replacement for the native pg_config application
#
 
prefix=/usr
 
case "$1" in
  --includedir)
   echo "$prefix/include"
   ;;
  --pkgincludedir)
   echo "$prefix/include/postgresql"
   ;;
  --includedir-server)
   echo "$prefix/include/postgresql/server"
   ;;
  --libdir)
   echo "$prefix/lib"
   ;;
  --version)
   echo "PostgreSQL @POSTGRESQL_VERSION@"
   ;;
  --configure)
   echo "@POSTGRESQL_CONF_OPTIONS@"
   ;;
  --pgxs)
   echo "$prefix/lib/postgresql/pgxs/src/makefiles/pgxs.mk"
   ;;
  --cflags)
   echo "@TARGET_CFLAGS@"
   ;;
  --cflags_sl)
   # defined at src/template/linux
   echo "-fPIC"
   ;;
  --cc)
   echo "@TARGET_CC@"
   ;;
  --pkglibdir)
   echo "/usr/lib/postgresql"
   ;;
  --bindir)
   echo "/usr/bin"
   ;;
  --sharedir)
   echo "/usr/share/postgresql"
   ;;
  --localedir)
   echo "/usr/share/locale"
   ;;
  --docdir)
   echo "/usr/share/doc/postgresql"
   ;;
  --mandir)
   echo "/usr/share/man"
   ;;
  *)
   echo "Usage: $0 {OPTION}"
   echo
   echo "Options:"
   echo
   echo "    --includedir        show location of C header files of the client interfaces"
   echo "    --pkgincludedir        show location of other C header files"
   echo "    --includedir-server    show location of C header files for the server"
   echo "    --libdir        show location of object code libraries"
   echo "    --version        show the PostgreSQL version"
   echo "    --configure        show options given to configure script"
   echo "    --pgxs            show location of extension makefile"
   echo "    --cflags        show CFLAGS value used when PostgreSQL was built"
   echo "    --cc            show CC value used when PostgreSQL was built"
   echo "    --pkglibdir        show location of dynamically loadable modules"
   echo "    --bindir        show location of user executables"
   echo "    --sharedir        show location of architecture-independent support files"
   echo "    --localedir        show location of locale support files"
   echo "    --docdir        show location of documentation files"
   echo "    --mandir        show location of manual pages"
esac