From: Jason Parker Date: Thu, 27 Jan 2011 16:57:46 +0000 (+0000) Subject: Fix default prefix=/usr regression on non-Linux systems. X-Git-Tag: 1.4.41-rc1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b416c55471ff572a1bb58198e98415c41911013;p=thirdparty%2Fasterisk.git Fix default prefix=/usr regression on non-Linux systems. This partially reverts a change made in branches/1.4/ r267759, which will cause issue #17013 to be reopened. This issue was pointed out by a user on #asterisk, who helpfully discovered that paths were being set incorrectly. To truly understand what was wrong, one should run: svn diff --force -c configure git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@304464 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/configure b/configure index 79ff65fea0..914e7bcafa 100755 --- a/configure +++ b/configure @@ -597,9 +597,6 @@ ac_includes_default="\ # include #endif" -ac_default_prefix=/usr/local -ac_default_prefix=/usr/local -ac_default_prefix=/usr ac_header_list= ac_subst_vars='LTLIBOBJS GTK2_LIB @@ -4394,12 +4391,12 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } case "${host_os}" in freebsd*) - + ac_default_prefix=/usr/local CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ;; darwin*) - + ac_default_prefix=/usr/local $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h @@ -4408,7 +4405,7 @@ $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h ;; *) - + ac_default_prefix=/usr if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then if test ${sysconfdir} = '${prefix}/etc'; then sysconfdir=/etc diff --git a/configure.ac b/configure.ac index fac7a880b5..9df5a46393 100644 --- a/configure.ac +++ b/configure.ac @@ -23,17 +23,17 @@ AC_USE_SYSTEM_EXTENSIONS # note- does not work on FreeBSD case "${host_os}" in freebsd*) - AC_PREFIX_DEFAULT([/usr/local]) + ac_default_prefix=/usr/local CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ;; darwin*) - AC_PREFIX_DEFAULT([/usr/local]) + ac_default_prefix=/usr/local AC_DEFINE([AST_POLL_COMPAT], 1, [Define to 1 if internal poll should be used.]) AC_DEFINE([_DARWIN_UNLIMITED_SELECT], 1, [Define to 1 if running on Darwin.]) ;; *) - AC_PREFIX_DEFAULT([/usr]) + ac_default_prefix=/usr if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then if test ${sysconfdir} = '${prefix}/etc'; then sysconfdir=/etc