"expr --bignum 1" now fails when expr is built without libgmp

* src/expr.c (main): When --bignum is requested, yet expr was built
without libgmp, exit nonzero (3) in addition to giving a diagnostic.
This commit is contained in:
Jim Meyering committed 2008-08-14 14:37:49 +02:00
1 parent 22999697b8
commit 081ebb2822
1 file changed
+2 -1
+2 -1
View File
@@ -292,7 +292,8 @@ main (int argc, char **argv)
#if HAVE_GMP
mode = MP_ALWAYS;
#else
error (0, 0, _("arbitrary-precision support is not available"));
error (EXPR_FAILURE, 0,
_("arbitrary-precision support is not available"));
#endif
break;