|
17 | 17 | *
|
18 | 18 | * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
19 | 19 | *
|
20 |
| - * $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.2 2004/08/01 14:01:36 momjian Exp $ |
| 20 | + * $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.3 2004/08/02 12:34:14 momjian Exp $ |
21 | 21 | *
|
22 | 22 | *-------------------------------------------------------------------------
|
23 | 23 | */
|
|
43 | 43 | printf(_(" --includedir-server show location of C header files for the server\n"));
|
44 | 44 | printf(_(" --libdir show location of object code libraries\n"));
|
45 | 45 | printf(_(" --pkglibdir show location of dynamically loadable modules\n"));
|
| 46 | + printf(_(" --pgxs show location of extension makefile\n")); |
46 | 47 | printf(_(" --configure show options given to 'configure' script when\n"));
|
47 | 48 | printf(_(" PostgreSQL was built\n"));
|
48 | 49 | printf(_(" --version show the PostgreSQL version, then exit\n"));
|
@@ -81,6 +82,7 @@ main (int argc, char ** argv)
|
81 | 82 | strcmp(argv[i],"--includedir-server") == 0 ||
|
82 | 83 | strcmp(argv[i],"--libdir") == 0 ||
|
83 | 84 | strcmp(argv[i],"--pkglibdir") == 0 ||
|
| 85 | + strcmp(argv[i],"--pgxs") == 0 || |
84 | 86 | strcmp(argv[i],"--configure") == 0)
|
85 | 87 | {
|
86 | 88 | /* come back to these later */
|
@@ -136,6 +138,11 @@ main (int argc, char ** argv)
|
136 | 138 | get_lib_path(mypath,otherpath);
|
137 | 139 | else if (strcmp(argv[i],"--pkglibdir") == 0)
|
138 | 140 | get_pkglib_path(mypath,otherpath);
|
| 141 | + else if (strcmp(argv[i],"--pgxs") == 0) |
| 142 | + { |
| 143 | + get_pkglib_path(mypath,otherpath); |
| 144 | + strncat(otherpath, "/pgxs", MAXPGPATH-1); |
| 145 | + } |
139 | 146 |
|
140 | 147 | printf("%s\n",otherpath);
|
141 | 148 | }
|
|
0 commit comments