]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Only override sysconfdir and mandir when prefix=/usr
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 30 Jul 2008 19:47:16 +0000 (19:47 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 30 Jul 2008 19:47:16 +0000 (19:47 +0000)
(closes issue #13093)
 Reported by: pabelanger

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@134536 65c4cc65-6c06-0410-ace0-fbb531ad65f3

configure
configure.ac

index cf9ba3c2fc853e238a6d24b4453e3494ab7537f8..7a0b7aa502d6be913800dbf2dad093e1b8cc9b05 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 132641 .
+# From configure.ac Revision: 132704 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61 for asterisk 1.4.
 #
@@ -3961,11 +3961,13 @@ case "${host_os}" in
      ;;
      *)
      ac_default_prefix=/usr
-     if test ${sysconfdir} = '${prefix}/etc'; then
-        sysconfdir=/etc
-     fi
-     if test ${mandir} = '${prefix}/man'; then
-        mandir=/usr/share/man
+     if test ${prefix} = '/usr'; then
+        if test ${sysconfdir} = '${prefix}/etc'; then
+           sysconfdir=/etc
+        fi
+        if test ${mandir} = '${prefix}/man'; then
+           mandir=/usr/share/man
+        fi
      fi
      ;;
 esac
index d7a1acd047f68074b7fdcc336bc226ad8acc979d..21719e34f8b22563b52ea4658764c6cd53474714 100644 (file)
@@ -28,11 +28,13 @@ case "${host_os}" in
      ;;
      *)
      ac_default_prefix=/usr
-     if test ${sysconfdir} = '${prefix}/etc'; then
-        sysconfdir=/etc
-     fi
-     if test ${mandir} = '${prefix}/man'; then
-        mandir=/usr/share/man
+     if test ${prefix} = '/usr'; then
+        if test ${sysconfdir} = '${prefix}/etc'; then
+           sysconfdir=/etc
+        fi
+        if test ${mandir} = '${prefix}/man'; then
+           mandir=/usr/share/man
+        fi
      fi
      ;;
 esac