use the AC_PREFIX_DEFAULT macro to set the default prefix instead of setting
authorRussell Bryant <russell@russellbryant.com>
Thu, 22 Jun 2006 10:30:51 +0000 (10:30 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 22 Jun 2006 10:30:51 +0000 (10:30 +0000)
the variable directly, so that the configure --help information shows the
correct default prefix

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

configure
configure.ac

index 541ee3b..dc7f605 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 33953 .
+# From configure.ac Revision: 33995 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59e.
 #
@@ -566,6 +566,8 @@ PACKAGE_BUGREPORT=
 
 ac_unique_file="asterisk"
 ac_unique_file="asterisk.c"
+ac_default_prefix=/usr/local
+ac_default_prefix=/usr
 # Factoring default headers for most tests.
 ac_includes_default="\
 #include <stdio.h>
@@ -2023,10 +2025,10 @@ ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
 
 case "${host}" in
      *freebsd*)
-     ac_default_prefix=/usr/local
+
      ;;
      *)
-     ac_default_prefix=/usr
+
      if test ${sysconfdir} = '${prefix}/etc'; then
         sysconfdir=/etc
      fi
index 2381357..db5d50f 100644 (file)
@@ -24,10 +24,10 @@ AC_REVISION($Revision$)
 
 case "${host}" in
      *freebsd*)
-     ac_default_prefix=/usr/local
+     AC_PREFIX_DEFAULT(/usr/local)
      ;;
      *)
-     ac_default_prefix=/usr
+     AC_PREFIX_DEFAULT(/usr)
      if test ${sysconfdir} = '${prefix}/etc'; then
         sysconfdir=/etc
      fi