]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Add test for expr. See Bug 264
authorTim Rice <tim@multitalents.net>
Fri, 23 May 2003 03:28:51 +0000 (03:28 +0000)
committerTim Rice <tim@multitalents.net>
Fri, 23 May 2003 03:28:51 +0000 (03:28 +0000)
configure

index 320cbebf4b0d914b084a5f0328a2c19e1f96adcb..78a7fdeacae529eb5975d2a1679364b2bc22d400 100755 (executable)
--- a/configure
+++ b/configure
@@ -488,6 +488,16 @@ Note "If configure does the wrong thing, check the file config.log for"
 Note "information that may help you understand what went wrong."
 Note ""
 
+# test for broken expr (Tru64 UNIX)
+x="00"
+match=`expr "$x" : "\([0-9]*\)"`
+if [ "$match" != "$x" ]; then
+       bitch "Your expr is broken. It strips leading zeroes"
+       bitch "This may cause problems with configure, faxsetup, & faxaddmodem"
+       bitch "Perhaps there is an environment variable you can set"
+       bitch "to get the desired behavior."
+fi
+
 #
 # Read site and local configuration parameters.
 #