diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2018-03-22 18:39:52 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2018-03-22 18:39:52 +0200 |
commit | 047fa8844122d13e2898972c9e0a2332ddddc2f5 (patch) | |
tree | cbd95dcaa714ecdaa8bc66c39a15dee876587d91 /configure | |
parent | 4fa6f57bf897e7f69dbb606115d4e17a88e90532 (diff) | |
parent | 20a79b31c9897f825323eedee4c0eb01922d53da (diff) | |
download | egawk-047fa8844122d13e2898972c9e0a2332ddddc2f5.tar.gz egawk-047fa8844122d13e2898972c9e0a2332ddddc2f5.tar.bz2 egawk-047fa8844122d13e2898972c9e0a2332ddddc2f5.zip |
Merge branch 'gawk-4.2-stable'
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 42 |
1 files changed, 42 insertions, 0 deletions
@@ -10180,6 +10180,48 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_f_format" >&5 $as_echo "$has_f_format" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf %a format" >&5 +$as_echo_n "checking for printf %a format... " >&6; } +if test "$cross_compiling" = yes; then : + has_a_format=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +#include <stdio.h> + +int main() +{ + char buf[100]; + + sprintf(buf, "%a", 8.0); + + if (strncmp(buf, "0x", 2) == 0) + return 0; + else + return 1; +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + has_a_format=yes +else + has_a_format=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +if test "$has_a_format" = yes +then + +$as_echo "#define PRINTF_HAS_A_FORMAT 1" >>confdefs.h + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_a_format" >&5 +$as_echo "$has_a_format" >&6; } + gawk_have_sockets=no # Check for system-dependent location of socket libraries |