From dc20e8c4fd0fba22607c1910308258efc53f8d87 Mon Sep 17 00:00:00 2001 From: Michiel van Baak Date: Tue, 7 Oct 2008 18:53:34 +0000 Subject: Make sure the configs on OpenBSD are in /etc/asterisk by default (closes issue #13641) Reported by: jtodd git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@147306 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- configure.ac | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ac0588f8e..a4ff93cb3 100644 --- a/configure.ac +++ b/configure.ac @@ -27,12 +27,24 @@ AC_GNU_SOURCE AC_USE_SYSTEM_EXTENSIONS # note- does not work on FreeBSD case "${host_os}" in - freebsd*|openbsd*) + freebsd*) ac_default_prefix=/usr/local CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ;; - + openbsd*) + ac_default_prefix=/usr/local + if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then + if test ${sysconfdir} = '${prefix}/etc'; then + sysconfdir=/etc + fi + if test ${mandir} = '${prefix}/man'; then + mandir=/usr/share/man + fi + fi + CPPFLAGS=-I/usr/local/include + LDFLAGS=-L/usr/local/lib + ;; *) ac_default_prefix=/usr if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then -- cgit v1.2.3