| echo "Checking for printf() long long format" |
| echo "int main() {" > autotest.c |
| echo "printf(\"%llu\", (unsigned long long) -1);" >> autotest.c |
| echo "return 0; }" >> autotest.c |
| eval "${CC} -o autotest autotest.c > /dev/null 2>&1" |
| if [ -x ./autotest -a "`./autotest`" = $NGX_MAX_LONG_LONG ]; then |
| echo " + \"%ll\" is not appropriate" |
| if [ $NGX_LONG_LONG_FMT = NO ]; then |
| echo "int main() {" > autotest.c |
| echo "printf(\"%qu\", (unsigned long long) -1);" >> autotest.c |
| echo "return 0; }" >> autotest.c |
| eval "${CC} -o autotest autotest.c > /dev/null 2>&1" |
| if [ -x ./autotest -a "`./autotest`" = $NGX_MAX_LONG_LONG ]; then |
| echo " + \"%q\" is not appropriate" |
| if [ $NGX_LONG_LONG_FMT = NO ]; then |
| echo "printf() long long format not found" |