diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2018-03-22 20:03:45 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2018-03-22 20:03:45 +0200 |
commit | 264ef6a7dad099f3fdb10c7cab88f1d4e6257c96 (patch) | |
tree | ea31ac104d7a903f9c86905abca5b65ceca5493b /configure | |
parent | 9e06eb5b97fb92f15344a909dfbf7455946564c5 (diff) | |
parent | 047fa8844122d13e2898972c9e0a2332ddddc2f5 (diff) | |
download | egawk-264ef6a7dad099f3fdb10c7cab88f1d4e6257c96.tar.gz egawk-264ef6a7dad099f3fdb10c7cab88f1d4e6257c96.tar.bz2 egawk-264ef6a7dad099f3fdb10c7cab88f1d4e6257c96.zip |
Merge branch 'master' into feature/fix-comments
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 |