~ubuntu-branches/ubuntu/jaunty/nas/jaunty

« back to all changes in this revision

Viewing changes to config/configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Steve McIntyre
  • Date: 2004-06-23 01:15:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040623011502-30uqd1dyu47iv2dp
Tags: 1.6d-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Process this file with autoconf to produce a configure script.
 
2
dnl $Id: configure.ac,v 1.1 2004/06/20 23:27:08 jon Exp $
 
3
dnl
 
4
 
 
5
AC_INIT([nas],[1.6c],[jon@radscan.com])
 
6
AC_CONFIG_HEADER(config.h)
 
7
dnl AM_INIT_AUTOMAKE
 
8
AC_PROG_LIBTOOL
 
9
AC_PROG_YACC
 
10
AC_PROG_LEX
 
11
dnl AC_PATH_X
 
12
dnl AC_PATH_XTRA
 
13
 
 
14
AC_PREFIX_DEFAULT(/opt)
 
15
 
 
16
dnl checks the system
 
17
dnl AC_CANONICAL_TARGET([])
 
18
dnl Checks for programs.
 
19
dnl get the system type and set accordingly.  first init some defaults.
 
20
 
 
21
 
 
22
AC_PROG_CC
 
23
 
 
24
dnl Checks for libraries.
 
25
dnl Replace `main' with a function in -lm:
 
26
 
 
27
dnl AC_CHECK_LIB(m, main)
 
28
 
 
29
dnl check for libcrypt
 
30
olibs="$LIBS"
 
31
AC_CHECK_LIB(crypt, crypt, LIBS="$olibs -lcrypt")
 
32
 
 
33
dnl check for libgen
 
34
olibs="$LIBS"
 
35
AC_CHECK_LIB(gen, crypt, LIBS="$olibs -lgen")
 
36
 
 
37
dnl check for libz
 
38
olibs="$LIBS"
 
39
AC_CHECK_LIB(z, gzread)
 
40
 
 
41
dnl Checks for header files.
 
42
AC_HEADER_STDC
 
43
AC_CHECK_HEADERS(fcntl.h limits.h sys/ioctl.h sys/times.h termio.h unistd.h)
 
44
AC_CHECK_HEADERS(sys/time.h sys/select.h stropts.h poll.h values.h)
 
45
AC_CHECK_HEADERS(time.h string.h strings.h termios.h zlib.h)
 
46
AC_CHECK_HEADERS(stdint.h stdlib.h limits.h malloc.h)
 
47
AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h)
 
48
 
 
49
dnl Checks for typedefs, structures, and compiler characteristics.
 
50
AC_C_CONST
 
51
AC_TYPE_SIZE_T
 
52
AC_HEADER_TIME
 
53
AC_STRUCT_TM
 
54
 
 
55
dnl Checks for library functions.
 
56
AC_TYPE_SIGNAL
 
57
AC_FUNC_VPRINTF
 
58
AC_CHECK_FUNCS(select strstr fileno setpgrp daemon)
 
59
AC_CHECK_FUNCS(getmsg poll setitimer strerror)
 
60
 
 
61
AC_FUNC_SETPGRP
 
62
AC_FUNC_SNPRINTF
 
63
 
 
64
dnl check for sys_errlist decl
 
65
 
 
66
AC_MSG_CHECKING(for sys_errlist declaration)
 
67
AC_RUN_IFELSE([AC_LANG_SOURCE([[
 
68
#include <sys/types.h>
 
69
#include <stdio.h>
 
70
 
 
71
#include <errno.h>
 
72
main()
 
73
{
 
74
  char *s = sys_errlist[0];
 
75
  exit(0);
 
76
}
 
77
]])],[AC_MSG_RESULT(yes)
 
78
  AC_DEFINE(SYS_ERRLIST_DECLARED, 1, [sys_errlist declared])],[AC_MSG_RESULT(no)],[:])
 
79
 
 
80
AC_OUTPUT
 
81
 
 
82
 
 
83