blob: 10aa09d32716a12c24fed393eb9e223a7c583b89 (
plain)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
dnl Copyright 2001 Enhanced Software Technologies Inc.
dnl Written Jan. 2001 Eric Lee Green
dnl Process this file with autoconf to produce a configure script.
AC_INIT(mtx.c)
AC_CONFIG_HEADER(config.h)
dnl Check system.
AC_CANONICAL_SYSTEM
AC_PREFIX_DEFAULT(/usr/local)
case "$host_os" in
*linux*) AC_DEFINE(LINUX)
TARGET=linux
;;
*solaris*) AC_DEFINE(SOLARIS)
TARGET=solarissparc
;;
*sunos*) TARGET=solarissparc
;;
*freebsd*) TARGET=freebsd86
;;
*aix*) TARGET=aix
;;
*irix*) TARGET=sgi
;;
*hp*) TARGET=hpux
;;
*HP*) TARGET=hpux
;;
*sequent*) AC_DEFINE(SEQUENT)
;;
*MINGW*) TARGET=mingw
;;
*MinGW*) TARGET=mingw
;;
*mingw*) TARGET=mingw
;;
*) TARGET=$host_os
;;
esac
AC_SUBST(TARGET)
case "$host_cpu" in
# force us down to '386 if we're on some other machine.
*?86*) host_cpu='i386'
CPU=386
;;
*) CPU=$host_cpu;
;;
esac
AC_SUBST(CPU)
dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_CHECK_PROG(USE_OBJCOPY, objcopy, yes, no)
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(\
unistd.h \
stdlib.h \
errno.h \
fcntl.h \
stdarg.h \
string.h \
scsi/scsi.h \
scsi/scsi_ioctl.h \
scsi/sg.h \
sys/gscdds.h \
camlib.h \
cam/cam_ccb.h \
cam/scsi/scsi_message.h \
sys/fsid.h \
sys/fstyp.h \
sys/stat.h \
sys/types.h \
sys/mnttab.h \
sys/param.h \
sys/time.h \
sys/scsi/impl/uscsi.h \
sys/scsi.h \
sys/scsi_ctl.h \
sys/ioctl.h \
sys/mtio.h \
sys/param.h \
dslib.h \
du/defs.h \
ddk/ntddscsi.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
AC_TYPE_PID_T
AC_HEADER_TIME
AC_STRUCT_TM
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
AC_C_BIGENDIAN
dnl Checks for library functions.
dnl AC_FUNC_ALLOCA
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
dnl Check for files
AC_OUTPUT(Makefile)
|