~ubuntu-branches/debian/jessie/mtr/jessie

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Robert Woodcock
  • Date: 2010-09-06 16:53:54 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100906165354-ywnqjfwf66f0shj0
Tags: 0.80-1
* New upstream version
* Add Homepage field to debian/control, closes: #314651
* Change Priority field to match that of the archive overrides,
  closes: #416567
* Lintian cleanups

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
AC_INIT(mtr.c)
2
 
AM_INIT_AUTOMAKE(mtr, 0.75)
 
2
AM_INIT_AUTOMAKE(mtr, 0.80)
3
3
 
4
4
 
5
5
AC_SUBST(GTK_OBJ)
16
16
AC_CHECK_SIZEOF(unsigned long, 4)
17
17
 
18
18
AC_CHECK_HEADERS(ncurses.h ncurses/curses.h curses.h cursesX.h sys/types.h fcntl.h)
19
 
AC_CHECK_HEADERS(sys/xti.h)
 
19
AC_CHECK_HEADERS(socket.h sys/socket.h sys/xti.h)
20
20
 
21
21
# Some doc I found somewhere. :-) -- REW
22
22
# - Macro: AC_CHECK_FUNC (FUNCTION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
49
49
WANTS_IPV6=$enableval, WANTS_IPV6=yes)
50
50
   
51
51
if test "x$WANTS_GTK" = "xyes"; then
52
 
        AM_PATH_GTK_2_0(2.4.0, CFLAGS="$CFLAGS $GTK_CFLAGS"
 
52
        AM_PATH_GTK_2_0(2.6.0, CFLAGS="$CFLAGS $GTK_CFLAGS"
53
53
                           LIBS="$LIBS $GTK_LIBS -lm",
54
54
                           AC_MSG_WARN(Building without GTK2 display support)
55
55
                   AC_DEFINE(NO_GTK, 1, [Define if you don't have the GTK+ libraries available.])
97
97
 
98
98
AC_CHECK_TYPE(socklen_t, AC_DEFINE([HAVE_SOCKLEN_T], [], [Define if your system has socklen_t]) , , [[
99
99
#include <netinet/in.h>
 
100
#ifdef HAVE_SOCKET_H
 
101
#include <socket.h>
 
102
#endif
 
103
#ifdef HAVE_SYS_SOCKET_H
 
104
#include <sys/socket.h>
 
105
#endif
100
106
]])
101
107
 
102
108
AC_CHECK_TYPE(struct in_addr, AC_DEFINE([HAVE_STRUCT_INADDR], [], [Define if you have struct in_addr]), , [[
108
114
ac_save_CFLAGS="$CFLAGS"
109
115
if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
110
116
  dnl gcc is the easiest C compiler
111
 
  warning_CFLAGS="-Wall -Wno-pointer-sign"
 
117
  warning_CFLAGS="-Wall"
 
118
  # Check if compiler supports -Wno-pointer-sign and add it if supports
 
119
  CFLAGS_saved="$CFLAGS"
 
120
  CFLAGS="$CFLAGS -Wno-pointer-sign"
 
121
  AC_COMPILE_IFELSE([ AC_LANG_SOURCE([[ int foo; ]])],
 
122
                  [ warning_CFLAGS="${warning_CFLAGS} -Wno-pointer-sign" ],)
 
123
  CFLAGS="$CFLAGS_saved"
112
124
else
113
125
  dnl Vendor supplied C compilers are a bit tricky
114
126
  case "$host_os" in