diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 022c22a..e25b6a8 100644 --- a/configure.ac +++ b/configure.ac @@ -71,6 +71,7 @@ conf_dir([systemdunitsdir], ['${prefix}/lib/systemd/system']) conf_dir([systemduserunitsdir], ['${prefix}/etc/systemd/system']) conf_dir([systemdlegacyscriptsdir], ['${libexecdir}/initscripts/legacy-actions']) conf_dir([initscriptsdir], ['${sysconfdir}/rc.d/init.d']) +conf_dir([rawpkgdatadir], ['${datadir}/postgresql-setup']) INSTANTIATE_CONV="\$(AM_V_GEN)rm -rf \$@; \$(MKDIR_P) \$(@D)" INSTANTIATE="\$(INSTANTIATE_CONV) && \$(SED_CALL) \$< > \$@ && chmod -w \$@" @@ -133,7 +134,12 @@ if test -z "$POSTGRES_HOMEDIR" -a "$pgsetup_cv_os_family" = redhat; then fi if test -z "$PGDATADIR" -a "$pgsetup_cv_os_family" = redhat; then - PGDATADIR="\${prefix}/var/lib/pgsql/data" + if test x"$prefix" = x/usr + then + PGDATADIR=/var/lib/pgsql/data + else + PGDATADIR="\${prefix}/var/lib/pgsql/data" + fi fi pgdocdir="\${datarootdir}/doc/\${pkgname}" |