Pick up from Ethereal's "configure.in" the test to check whether we're
[obnox/wireshark/wip.git] / wiretap / configure.in
1 # $Id: configure.in,v 1.5 1998/11/21 03:26:54 guy Exp $
2 dnl Process this file with autoconf to produce a configure script.
3 AC_INIT(wtap.c)
4 AM_INIT_AUTOMAKE(libwtap.a, 0.0.0)
5 AM_CONFIG_HEADER(config.h)
6
7 dnl Checks for programs.
8 AC_PROG_CC
9 AC_PROG_RANLIB
10
11 # If we're running gcc, add '-Wall' to CFLAGS.
12 AC_MSG_CHECKING(to see if we can add '-Wall' to CFLAGS)
13 if test x$GCC != x ; then
14   CFLAGS="-Wall $CFLAGS"
15   AC_MSG_RESULT(yes)
16 else
17   AC_MSG_RESULT(no)
18 fi
19
20 # GTK checks (copied from ethereal)
21 AM_PATH_GTK(1.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS",
22                    AC_MSG_ERROR(GTK+ distribution not found.))
23
24 dnl Checks for header files
25 AC_HEADER_STDC
26 AC_CHECK_HEADERS(unistd.h)
27
28 AC_OUTPUT(Makefile)