aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-04-16 12:53:35 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-04-16 12:53:35 +0300
commit7c3d14eb1d103061939fdcad66bf2b27d78bc5b5 (patch)
tree215af173270e7d93496e9a9e14aeaaeeebea0be4 /configure.ac
parent4afe3d81ba9bdf9443fbdaa43bef47fc20b1eb4b (diff)
downloadegawk-7c3d14eb1d103061939fdcad66bf2b27d78bc5b5.tar.gz
egawk-7c3d14eb1d103061939fdcad66bf2b27d78bc5b5.tar.bz2
egawk-7c3d14eb1d103061939fdcad66bf2b27d78bc5b5.zip
Rename intdiv to intdiv0, require it to be configured in.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 338973b2..e2226ad9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,6 +67,17 @@ AC_ARG_ENABLE([severe-portability-problems],
AC_DEFINE(I_DONT_KNOW_WHAT_IM_DOING, 1, [enable severe portability problems])
fi
)
+AC_ARG_ENABLE([builtin-intdiv0],
+ [AS_HELP_STRING([--enable-builtin-intdiv0],[Enable built-in intdiv0 function])],
+ if test "$enableval" = yes
+ then
+ AC_DEFINE(SUPPLY_INTDIV, 1, [enable built-in intdiv0 function])
+ sed '/^@set PATCHLEVEL/a\
+@set INTDIV' < "$srcdir"/doc/gawktexi.in > foo
+ cp foo "$srcdir"/doc/gawktexi.in
+ rm foo
+ fi
+)
AC_CANONICAL_HOST
AC_USE_SYSTEM_EXTENSIONS