Software / code / prosody
Comparison
configure @ 9417:f5a471303e6a
configure: Remove unused function
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 01 Oct 2018 15:27:43 +0100 |
| parent | 8448:f516a52f19e8 |
| child | 9418:44a2609d1535 |
comparison
equal
deleted
inserted
replaced
| 9416:15cd0d9cde7c | 9417:f5a471303e6a |
|---|---|
| 105 echo "configure failed." | 105 echo "configure failed." |
| 106 echo | 106 echo |
| 107 exit 1 | 107 exit 1 |
| 108 } | 108 } |
| 109 | 109 |
| 110 find_helper() { | |
| 111 explanation="$1" | |
| 112 shift | |
| 113 tried="$*" | |
| 114 while [ -n "$1" ] | |
| 115 do | |
| 116 found=`find_program "$1"` | |
| 117 if [ -n "$found" ] | |
| 118 then | |
| 119 echo "$1 found at $found" | |
| 120 HELPER=$1 | |
| 121 return | |
| 122 fi | |
| 123 shift | |
| 124 done | |
| 125 echo "Could not find $explanation. Tried: $tried." | |
| 126 die "Make sure one of them is installed and available in your PATH." | |
| 127 } | |
| 128 | |
| 129 case `echo -n x` in | 110 case `echo -n x` in |
| 130 -n*) echo_n_flag='';; | 111 -n*) echo_n_flag='';; |
| 131 *) echo_n_flag='-n';; | 112 *) echo_n_flag='-n';; |
| 132 esac | 113 esac |
| 133 | 114 |