Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 374085
Collapse All | Expand All

(-)/tmp/tcptrace-6.6.7/configure.in (-10 / +13 lines)
Lines 3-10 Link Here
3
3
4
AC_CANONICAL_SYSTEM
4
AC_CANONICAL_SYSTEM
5
5
6
AC_LBL_C_INIT(V_CCOPT, V_INCLS)
7
8
dnl Checks for programs.
6
dnl Checks for programs.
9
AC_PROG_CC
7
AC_PROG_CC
10
AC_PROG_MAKE_SET
8
AC_PROG_MAKE_SET
Lines 43-55 Link Here
43
dnl check for the IPv6 routines inet_pton
41
dnl check for the IPv6 routines inet_pton
44
AC_CHECK_FUNCS(inet_pton)
42
AC_CHECK_FUNCS(inet_pton)
45
43
46
AC_MSG_CHECKING(how to print unsigned long long)
47
AC_SUBST(FS_ULL)
48
dnl AC_TRY_RUN is a test program that performs a run-time test to find out
44
dnl AC_TRY_RUN is a test program that performs a run-time test to find out
49
dnl the correct syntax to print unsigned long long ints in printf stmts.
45
dnl the correct syntax to print unsigned long long ints in printf stmts.
50
dnl If strcmp returns 0, we are on an enironment that uses %llu, otherwise
46
dnl If strcmp returns 0, we are on an enironment that uses %llu, otherwise
51
dnl we are on a MacOSX environment that uses %qu
47
dnl we are on a MacOSX environment that uses %qu
52
AC_TRY_RUN([
48
AC_CACHE_CHECK([how to print unsigned long long], ac_cv_unsigned_long_long_printf_format,
49
  [AC_TRY_RUN([
53
#include <stdio.h>
50
#include <stdio.h>
54
51
55
#define NIX "%llu"
52
#define NIX "%llu"
Lines 63-73 Link Here
63
     exit (0);
60
     exit (0);
64
  else
61
  else
65
     exit (1);
62
     exit (1);
66
}],
63
}
67
AC_DEFINE(USE_LLU)
64
    ],
68
AC_MSG_RESULT(%llu), 
65
    ac_cv_unsigned_long_long_printf_format=%llu,
69
AC_MSG_RESULT(%qu),
66
    ac_cv_unsigned_long_long_printf_format=%qu,
70
AC_MSG_ERROR(can not run test program while cross compiling))
67
    [AS_ECHO_N(["cross-comiling, assuming "])]
68
    ac_cv_unsigned_long_long_printf_format=%llu
69
  )]
70
)
71
AS_IF([test $ac_cv_unsigned_long_long_printf_format = %llu],
72
  AC_DEFINE(USE_LLU)
73
)
71
74
72
dnl Grab standard includes under weird Linux versions
75
dnl Grab standard includes under weird Linux versions
73
dnl case "$target_os" in
76
dnl case "$target_os" in

Return to bug 374085