From 64d9c842655f5fdacfca1411006b8eb8bb82e006 Mon Sep 17 00:00:00 2001 From: qwell Date: Tue, 27 Jul 2010 17:54:54 +0000 Subject: Add SHA1SUM to configure, since we require it for sounds/ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@279883 f38db490-d61c-443f-a65b-d21fe96a405b --- configure | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 103 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 9af5874ec..cf4adfde5 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac Revision: 279609 . +# From configure.ac Revision: 279657 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.65 for asterisk 1.6.2. # @@ -933,6 +933,8 @@ FIND FLEX BISON GNU_LD +ac_ct_SHA1SUM +SHA1SUM ac_ct_AR AR ac_ct_STRIP @@ -6833,6 +6835,106 @@ esac fi fi +if test -n "$ac_tool_prefix"; then + for ac_prog in sha1sum + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_SHA1SUM+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$SHA1SUM"; then + ac_cv_prog_SHA1SUM="$SHA1SUM" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_SHA1SUM="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +SHA1SUM=$ac_cv_prog_SHA1SUM +if test -n "$SHA1SUM"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHA1SUM" >&5 +$as_echo "$SHA1SUM" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$SHA1SUM" && break + done +fi +if test -z "$SHA1SUM"; then + ac_ct_SHA1SUM=$SHA1SUM + for ac_prog in sha1sum +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_SHA1SUM+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_SHA1SUM"; then + ac_cv_prog_ac_ct_SHA1SUM="$ac_ct_SHA1SUM" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_SHA1SUM="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_SHA1SUM=$ac_cv_prog_ac_ct_SHA1SUM +if test -n "$ac_ct_SHA1SUM"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SHA1SUM" >&5 +$as_echo "$ac_ct_SHA1SUM" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_SHA1SUM" && break +done + + if test "x$ac_ct_SHA1SUM" = x; then + SHA1SUM="$ac_aux_dir/build_tools/sha1sum-sh" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + SHA1SUM=$ac_ct_SHA1SUM + fi +fi + GNU_LD=0 if test "x$with_gnu_ld" = "xyes" ; then -- cgit v1.2.3