File: configure.in

package info (click to toggle)
nload 0.4.0-1.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 360 kB
  • ctags: 104
  • sloc: sh: 2,643; cpp: 975; makefile: 60; ansic: 4
file content (56 lines) | stat: -rw-r--r-- 1,129 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
dnl Helder Correia <helder.correia@netcabo.pt>

dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/dev.cpp)
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE(nload, 0.4.0)
AM_CONFIG_HEADER(config.h)

dnl Checks for programs.
AC_PROG_CXX
AC_PROG_CC

dnl Checks for libraries.
AC_CHECK_LIB(ncurses, initscr)

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(limits.h sys/time.h)

dnl Only use -Wall if we have gcc.
if test "x$GCC" = "xyes" ; then
        CFLAGS="$CFLAGS -Wall"
        CXXFLAGS="$CXXFLAGS -Wall"
fi

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
AC_HEADER_TIME

dnl Checks for library functions.
AC_CHECK_FUNCS(gettimeofday)

dnl System dependant jobs
dnl AC_MSG_CHECKING(for operating system type)
case $target in
    *linux*)
         AC_DEFINE(HAVE_LINUX, 1)
         ;;
    *bsd*)
        AC_DEFINE(HAVE_BSD, 1)
        ;;
    *solaris*)
        AC_CHECK_LIB(rt, main)
        AC_CHECK_LIB(kstat, kstat_open)
        AC_DEFINE(HAVE_SOLARIS, 1)
        ;;
esac

AC_OUTPUT([
Makefile
docs/Makefile
docs/nload.1
nload.spec
src/Makefile
])