blob: 1b8431394b29e00f2a9fc78252497345b6168ccd [file] [log] [blame]
Dmitry V. Levin38a34c92015-12-17 17:56:48 +00001# Configure template for strace.
2#
3# Copyright (c) 1999-2001 Wichert Akkerman <wichert@deephackmode.org>
4# Copyright (c) 2002-2009 Roland McGrath <roland@redhat.com>
Dmitry V. Levin2165a352016-01-12 00:02:56 +00005# Copyright (c) 2006-2016 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin38a34c92015-12-17 17:56:48 +00006# Copyright (c) 2008-2015 Mike Frysinger <vapier@gentoo.org>
7# Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com>
8# All rights reserved.
9#
10# Redistribution and use in source and binary forms, with or without
11# modification, are permitted provided that the following conditions
12# are met:
13# 1. Redistributions of source code must retain the above copyright
14# notice, this list of conditions and the following disclaimer.
15# 2. Redistributions in binary form must reproduce the above copyright
16# notice, this list of conditions and the following disclaimer in the
17# documentation and/or other materials provided with the distribution.
18# 3. The name of the author may not be used to endorse or promote products
19# derived from this software without specific prior written permission.
20#
21# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
Roland McGrath6d2b3492002-12-30 00:51:30 +000032AC_PREREQ(2.57)
Dmitry V. Levindce75932013-04-30 23:52:12 +000033AC_INIT([strace],
34 m4_esyscmd([./git-version-gen .tarball-version]),
35 [strace-devel@lists.sourceforge.net])
Roland McGrath6d2b3492002-12-30 00:51:30 +000036AC_CONFIG_SRCDIR([strace.c])
Roland McGrathffda2d32009-10-11 16:25:29 -070037AC_CONFIG_AUX_DIR([.])
Mike Frysingerbb3a0f72013-04-30 22:41:11 -040038AC_CONFIG_HEADERS([config.h])
Dmitry V. Levincf3ecbd2015-08-26 22:50:58 +000039AM_INIT_AUTOMAKE([foreign nostdinc dist-xz no-dist-gzip silent-rules parallel-tests])
Roland McGrath6d2b3492002-12-30 00:51:30 +000040AM_MAINTAINER_MODE
41AC_CANONICAL_HOST
42
Dmitry V. Levine2b3df22016-06-07 18:04:53 +000043CHANGELOGTIME="$(LC_TIME=C date '+%a %b %d %Y')"
44AC_SUBST(CHANGELOGTIME)
45
H.J. Lu35be5812012-04-16 13:00:01 +020046AC_PROG_CC
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +000047AC_PROG_CPP
Mike Frysinger58c7fe92015-02-26 22:22:36 -050048AX_PROG_CC_FOR_BUILD
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +000049AC_PROG_INSTALL
Elvira Khabirova09294222015-08-04 01:47:02 +030050AC_PROG_RANLIB
H.J. Lu35be5812012-04-16 13:00:01 +020051
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +000052AC_USE_SYSTEM_EXTENSIONS
Gabriel Laskarcba67102016-02-01 18:15:39 +010053AX_CODE_COVERAGE
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +000054
Roland McGrath6d2b3492002-12-30 00:51:30 +000055AC_MSG_CHECKING([for supported architecture])
Dmitry V. Levin1e04e572015-12-08 00:13:38 +000056arch_m32=
57arch_mx32=
Roland McGrath6d2b3492002-12-30 00:51:30 +000058case "$host_cpu" in
Dmitry V. Levin87ea1f42008-11-10 22:21:41 +000059bfin)
60 arch=bfin
61 AC_DEFINE([BFIN], 1, [Define for the Blackfin architecture.])
62 ;;
Roland McGrath6d2b3492002-12-30 00:51:30 +000063i[[3456]]86|pentium)
64 arch=i386
65 AC_DEFINE([I386], 1, [Define for the i386 architecture.])
66 ;;
67ia64)
68 arch=ia64
69 AC_DEFINE([IA64], 1, [Define for the IA64 architecture.])
70 ;;
71m68k)
72 arch=m68k
73 AC_DEFINE([M68K], 1, [Define for the m68k architecture.])
74 ;;
Roland McGrath6d1a65c2004-07-12 07:44:08 +000075sparc64*)
76 arch=sparc64
Dmitry V. Levin1e04e572015-12-08 00:13:38 +000077 arch_m32=sparc
Roland McGrath6d1a65c2004-07-12 07:44:08 +000078 AC_DEFINE([SPARC64], 1, [Define for the SPARC64 architecture.])
79 ;;
Roland McGrath6d2b3492002-12-30 00:51:30 +000080sparc*)
81 arch=sparc
82 AC_DEFINE([SPARC], 1, [Define for the SPARC architecture.])
83 ;;
James Hogan5f999a82013-02-22 14:44:10 +000084metag*)
85 arch=metag
86 AC_DEFINE([METAG], 1, [Define for the Meta architecture.])
87 ;;
Roland McGrath6d2b3492002-12-30 00:51:30 +000088mips*)
89 arch=mips
90 AC_DEFINE([MIPS], 1, [Define for the MIPS architecture.])
91 ;;
92alpha*)
93 arch=alpha
94 AC_DEFINE([ALPHA], 1, [Define for the Alpha architecture.])
95 ;;
Roland McGratheb285352003-01-14 09:59:00 +000096powerpc*)
Roland McGrath6d2b3492002-12-30 00:51:30 +000097 AC_DEFINE([POWERPC], 1, [Define for the PowerPC architecture.])
Anton Blanchard9afc2ee2013-07-11 12:03:57 +100098 AC_TRY_COMPILE(
99[#ifndef __LP64__
100# error 32 bit
Dmitry V. Levinaf3ab5b2015-01-21 17:04:31 +0000101#endif], [], arch=powerpc64, arch=powerpc)
102 if test "$arch" = "powerpc64"; then
Dmitry V. Levin1e04e572015-12-08 00:13:38 +0000103 arch_m32=powerpc
Andreas Schwabd69fa492010-07-12 21:39:57 +0200104 AC_DEFINE([POWERPC64], 1, [Define for the PowerPC64 architecture.])
105 fi
Roland McGrath6d2b3492002-12-30 00:51:30 +0000106 ;;
107arm*)
108 arch=arm
109 AC_DEFINE([ARM], 1, [Define for the ARM architecture.])
110 ;;
Steve McIntyred8d3bd32012-10-24 17:58:16 +0100111aarch64*)
112 arch=aarch64
Dmitry V. Levin1e04e572015-12-08 00:13:38 +0000113 arch_m32=arm
Steve McIntyred8d3bd32012-10-24 17:58:16 +0100114 AC_DEFINE([AARCH64], 1, [Define for the AArch64 architecture.])
115 ;;
Denys Vlasenko5ae2b7c2009-02-27 20:32:52 +0000116avr32*)
117 arch=avr32
118 AC_DEFINE([AVR32], 1, [Define for the AVR32 architecture.])
119 ;;
Vineet Gupta7daacbb2013-08-16 12:47:06 +0530120arc*)
121 arch=arc
122 AC_DEFINE([ARC], 1, [Define for the ARC architecture.])
123 ;;
Roland McGrath6d2b3492002-12-30 00:51:30 +0000124s390)
125 arch=s390
126 AC_DEFINE([S390], 1, [Define for the S390 architecture.])
127 ;;
128s390x)
129 arch=s390x
130 AC_DEFINE([S390X], 1, [Define for the S390x architecture.])
131 ;;
132hppa*|parisc*)
133 arch=hppa
134 AC_DEFINE([HPPA], 1, [Define for the HPPA architecture.])
135 ;;
Roland McGrath67828ca2007-11-01 21:32:49 +0000136sh64*)
Roland McGrathf5a47772003-06-26 22:40:42 +0000137 arch=sh64
138 AC_DEFINE([SH64], 1, [Define for the SH64 architecture.])
Roland McGrathe1e584b2003-06-02 19:18:58 +0000139 ;;
Roland McGrath67828ca2007-11-01 21:32:49 +0000140sh*)
141 arch=sh
142 AC_DEFINE([SH], 1, [Define for the SH architecture.])
143 ;;
Roland McGrath6d2b3492002-12-30 00:51:30 +0000144x86?64*)
Dmitry V. Levin1e04e572015-12-08 00:13:38 +0000145 arch_m32=i386
H.J. Lu35be5812012-04-16 13:00:01 +0200146 AC_TRY_COMPILE(
147[#ifndef __ILP32__
148# error not x32
149#endif], [], arch=x32, arch=x86_64)
150 if test "$arch" = "x86_64"; then
Dmitry V. Levin1e04e572015-12-08 00:13:38 +0000151 arch_mx32=x32
H.J. Lu35be5812012-04-16 13:00:01 +0200152 AC_DEFINE([X86_64], 1, [Define for the 64bit AMD x86-64 architecture.])
153 else
154 AC_DEFINE([X32], 1, [Define for the 32bit AMD x86-64 architecture.])
155 fi
Roland McGrath6d2b3492002-12-30 00:51:30 +0000156 ;;
Denys Vlasenkoea0e6e82009-02-25 17:08:40 +0000157cris|crisv10)
158 arch=crisv10
159 AC_DEFINE([CRISV10], 1, [Define for the CRISv10 architecture.])
160 ;;
161crisv32)
162 arch=crisv32
163 AC_DEFINE([CRISV32], 1, [Define for the CRISv32 architecture.])
164 ;;
Chris Metcalfc8c66982009-12-28 10:00:15 -0500165tile*)
166 arch=tile
167 AC_DEFINE([TILE], 1, [Define for the Tile architecture])
168 ;;
Edgar E. Iglesias939caba2010-07-06 14:21:07 +0200169microblaze*)
170 arch=microblaze
171 AC_DEFINE([MICROBLAZE], 1, [Define for the MicroBlaze architecture.])
172 ;;
Ezequiel Garciabd8dd772015-04-18 17:33:27 -0300173nios2*)
174 arch=nios2
175 AC_DEFINE([NIOS2], 1, [Define for the Nios-II architecture.])
176 ;;
177
Christian Svensson492f81f2013-02-14 13:26:27 +0100178or1k*)
179 arch=or1k
180 AC_DEFINE([OR1K], 1, [Define for the OpenRISC 1000 architecture.])
181 ;;
182
Chris Zankel8f636ed2013-03-25 10:22:07 -0700183xtensa*)
184 arch=xtensa
185 AC_DEFINE([XTENSA], 1, [Define for the Xtensa architecture])
186 ;;
187
Roland McGrath6d2b3492002-12-30 00:51:30 +0000188*)
189 AC_MSG_RESULT([NO!])
190 AC_MSG_ERROR([architecture $host_cpu is not supported by strace])
191 ;;
192esac
193AC_MSG_RESULT($arch)
194
Dmitry V. Levin1e04e572015-12-08 00:13:38 +0000195test -n "$arch_m32" ||
196 arch_m32=$arch
197test -n "$arch_mx32" ||
198 arch_mx32=$arch
Roland McGrath6d2b3492002-12-30 00:51:30 +0000199AC_SUBST(arch)
Dmitry V. Levin1e04e572015-12-08 00:13:38 +0000200AC_SUBST(arch_m32)
201AC_SUBST(arch_mx32)
Roland McGrath6d2b3492002-12-30 00:51:30 +0000202
Dmitry V. Levin047365e2015-02-15 01:08:48 +0000203if test "$arch" = mips; then
Dmitry V. Levin6684b682015-08-18 22:53:22 +0000204 AC_CACHE_CHECK([for _MIPS_SIM], [st_cv__MIPS_SIM],
205 [AC_COMPUTE_INT([st_cv__MIPS_SIM], [_MIPS_SIM],
206 [#include <sgidefs.h>],
207 [AC_MSG_ERROR([_MIPS_SIM cannot be determined])])])
208
209 AC_CACHE_CHECK([for MIPS ABI], [st_cv_mips_abi],
Dmitry V. Levin047365e2015-02-15 01:08:48 +0000210 [AC_COMPILE_IFELSE(
211 [AC_LANG_PROGRAM([[#include <sgidefs.h>]],
212 [[int i[_MIPS_SIM == _MIPS_SIM_ABI32 ? 1 : - 1];]])],
Dmitry V. Levin6684b682015-08-18 22:53:22 +0000213 [st_cv_mips_abi=o32],
Dmitry V. Levin047365e2015-02-15 01:08:48 +0000214 [AC_COMPILE_IFELSE(
215 [AC_LANG_PROGRAM([[#include <sgidefs.h>]],
216 [[int i[_MIPS_SIM == _MIPS_SIM_NABI32 ? 1 : - 1];]])],
Dmitry V. Levin6684b682015-08-18 22:53:22 +0000217 [st_cv_mips_abi=n32],
Dmitry V. Levin047365e2015-02-15 01:08:48 +0000218 [AC_COMPILE_IFELSE(
219 [AC_LANG_PROGRAM([[#include <sgidefs.h>]],
220 [[int i[_MIPS_SIM == _MIPS_SIM_ABI64 ? 1 : - 1];]])],
Dmitry V. Levin6684b682015-08-18 22:53:22 +0000221 [st_cv_mips_abi=n64],
222 [st_cv_mips_abi=unknown])])])])
223
224 case "$st_cv_mips_abi" in
Dmitry V. Levin047365e2015-02-15 01:08:48 +0000225 o32) AC_DEFINE([LINUX_MIPSO32], [1], [Define for _MIPS_SIM_ABI32.]);;
226 n32) AC_DEFINE([LINUX_MIPSN32], [1], [Define for _MIPS_SIM_NABI32.]);;
227 n64) AC_DEFINE([LINUX_MIPSN64], [1], [Define for _MIPS_SIM_ABI64.]);;
228 *) AC_MSG_ERROR([Unsupported _MIPS_SIM]);;
229 esac
230fi
231
Dmitry V. Levin0160e162014-03-18 23:37:43 +0000232AC_ARG_ENABLE([arm-oabi],
233 [AS_HELP_STRING([--enable-arm-oabi],
234 [enable OABI support on ARM EABI])],
235 [], [enable_arm_oabi=no])
236case "$enable_arm_oabi" in
237 yes) enable_arm_oabi=1 ;;
238 no) enable_arm_oabi=0 ;;
239 *) AC_MSG_ERROR([bad value $enable_arm_oabi for arm-oabi option]) ;;
240esac
241AC_DEFINE_UNQUOTED([ENABLE_ARM_OABI], [$enable_arm_oabi],
242 [Define to 1 if you want OABI support on ARM EABI.])
243
Dmitry V. Levin918e49b2010-09-09 17:41:15 +0000244gl_WARN_ADD([-Wall])
Dmitry V. Levin1ed5d802010-09-09 17:42:28 +0000245gl_WARN_ADD([-Wwrite-strings])
Dmitry V. Levin3ed5d022014-09-10 13:46:04 +0000246gl_WARN_ADD([-Wsign-compare])
Dmitry V. Levind376c922012-05-15 00:50:26 +0000247AC_ARG_ENABLE([gcc-Werror],
248 [AS_HELP_STRING([--enable-gcc-Werror], [turn on gcc's -Werror option])],
249 [case $enableval in
250 yes) gl_WARN_ADD([-Werror]) ;;
251 no) ;;
252 *) AC_MSG_ERROR([bad value $enableval for gcc-Werror option]) ;;
253 esac]
254)
Dmitry V. Levin918e49b2010-09-09 17:41:15 +0000255AC_SUBST([WARN_CFLAGS])
Roland McGrath6d2b3492002-12-30 00:51:30 +0000256
Mike Frysinger6d12afd2010-09-12 03:39:55 -0400257AC_C_BIGENDIAN
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000258AC_C_CONST
Dmitry V. Levin2165a352016-01-12 00:02:56 +0000259AC_C_TYPEOF
Roland McGrath6d2b3492002-12-30 00:51:30 +0000260
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000261AC_TYPE_GETGROUPS
262AC_TYPE_MODE_T
Roland McGrath6d2b3492002-12-30 00:51:30 +0000263AC_TYPE_SIGNAL
264AC_TYPE_UID_T
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000265
266AC_HEADER_DIRENT
Roland McGrath6d2b3492002-12-30 00:51:30 +0000267AC_HEADER_MAJOR
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000268AC_HEADER_STAT
269AC_HEADER_STDBOOL
270AC_HEADER_STDC
Roland McGrath6d2b3492002-12-30 00:51:30 +0000271
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000272AC_CHECK_FUNCS(m4_normalize([
Dmitry V. Levin1ea64732015-01-10 00:08:58 +0000273 fanotify_mark
Dmitry V. Levind3541302014-02-26 00:01:00 +0000274 fopen64
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000275 fork
Dmitry V. Levind3541302014-02-26 00:01:00 +0000276 fputs_unlocked
Dmitry V. Levinb0e61152015-12-02 01:02:39 +0000277 fstatat
278 ftruncate
279 futimens
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000280 if_indextoname
281 inet_ntop
Dmitry V. Levin7bee4622015-06-08 14:19:46 +0000282 inet_pton
Dmitry V. Levin78ed3f32015-03-23 00:04:27 +0000283 pipe2
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000284 prctl
Mike Frysinger97ca0272014-08-11 02:52:08 -0400285 preadv
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000286 process_vm_readv
Mike Frysinger97ca0272014-08-11 02:52:08 -0400287 pwritev
Dmitry V. Levineb4649a2016-01-12 04:37:06 +0000288 recvmmsg
Masatake YAMATO993198d2014-11-07 01:23:27 +0900289 sendmmsg
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000290 sigaction
Dmitry V. Levin30ac0622015-08-03 09:47:25 +0000291 signalfd
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000292 stpcpy
293 strerror
294 strsignal
Dmitry V. Levin5b2d2572016-04-06 00:02:08 +0000295 sync_file_range
Dmitry V. Levin78e48eb2015-07-15 15:34:59 +0000296 utimensat
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000297]))
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000298
299AC_CHECK_TYPES([sig_atomic_t, struct sigcontext],,, [#include <signal.h>])
300
301AC_CHECK_TYPES([struct mmsghdr],,, [#include <sys/socket.h>])
302
303AC_CHECK_TYPES([__kernel_long_t, __kernel_ulong_t],,,
304[#include <asm/posix_types.h>])
305
306AC_CHECK_TYPES([struct stat64, struct __old_kernel_stat],,,
307[#include <sys/types.h>
308#include <asm/stat.h>])
309
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000310AC_CHECK_TYPES(m4_normalize([
311 struct pt_all_user_regs,
312 struct ia64_fpreg,
313 struct ptrace_peeksiginfo_args
314]),,, [#include <sys/ptrace.h>])
315
316AC_CHECK_TYPES(m4_normalize([
317 struct flock,
318 struct flock64,
319 struct __kernel_flock,
320 struct __kernel_flock64
321]),,,
322[#include <sys/types.h>
323#include <linux/fcntl.h>])
324
325AC_CHECK_MEMBERS(m4_normalize([
326 struct stat.st_atim.tv_nsec,
327 struct stat.st_blksize,
328 struct stat.st_blocks,
329 struct stat.st_ctim.tv_nsec,
330 struct stat.st_flags,
331 struct stat.st_fstype,
332 struct stat.st_gen,
333 struct stat.st_mtim.tv_nsec,
334 struct stat.st_rdev
335]))
336
337AC_CHECK_MEMBERS([struct msghdr.msg_control],,, [#include <sys/socket.h>])
338
339AC_CHECK_MEMBERS([struct timex.tai],,, [#include <sys/timex.h>])
340
341AC_CHECK_MEMBERS([struct utsname.domainname],,, [#include <sys/utsname.h>])
342
343AC_CHECK_MEMBERS([struct sockaddr_in6.sin6_scope_id],,,
344[#include <sys/types.h>
345#include <sys/socket.h>
346#include <netinet/in.h>])
347
348AC_CHECK_MEMBERS(m4_normalize([
349 struct stat.st_atime_nsec,
350 struct stat.st_ctime_nsec,
351 struct stat.st_mtime_nsec
352]),,, [#include <sys/types.h>
353#include <asm/stat.h>])
354
355AC_CHECK_MEMBERS(m4_normalize([
356 siginfo_t.si_syscall,
357 siginfo_t.si_timerid,
358 siginfo_t.si_overrun
359]),,, [#include <signal.h>])
360
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000361AC_CHECK_HEADERS(m4_normalize([
362 asm/cachectl.h
363 asm/sysmips.h
Lubomir Rintelc400a1c2014-10-03 11:40:28 +0200364 bluetooth/bluetooth.h
Dmitry V. Levinc41808b2013-03-18 00:52:29 +0000365 elf.h
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000366 inttypes.h
Bart Van Assche67d0a8e2015-02-06 13:37:03 +0100367 linux/bsg.h
Dmitry V. Levin52572b62014-12-11 19:21:54 +0000368 linux/falloc.h
Dmitry V. Levinc5253072016-05-24 00:19:17 +0000369 linux/fiemap.h
Dmitry V. Levin2af69032015-02-04 23:50:50 +0000370 linux/filter.h
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000371 linux/hiddev.h
Mike Frysinger54646b82015-08-19 13:29:27 -0400372 linux/ip_vs.h
Mike Frysingerba10a422015-10-31 00:47:53 -0400373 linux/ipc.h
Dmitry V. Levindf7aa2b2015-01-19 17:02:16 +0000374 linux/mmtimer.h
Mike Frysingerba10a422015-10-31 00:47:53 -0400375 linux/msg.h
Ben Noordhuis88eafd82013-02-04 00:04:57 +0100376 linux/perf_event.h
Dmitry V. Levin2af69032015-02-04 23:50:50 +0000377 linux/seccomp.h
Dmitry V. Levin1e880732015-02-14 01:51:03 +0000378 linux/securebits.h
Mike Frysingerba10a422015-10-31 00:47:53 -0400379 linux/sem.h
380 linux/shm.h
Dr. David Alan Gilbert5d1216a2016-05-10 11:49:02 +0100381 linux/userfaultfd.h
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000382 linux/utsname.h
383 mqueue.h
384 netinet/sctp.h
Dmitry V. Levinfdb896e2014-02-25 23:04:55 +0000385 scsi/sg.h
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000386 stropts.h
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000387 sys/conf.h
Dmitry V. Levinc8cba992015-08-01 21:08:13 +0000388 sys/eventfd.h
Dmitry V. Levin1ea64732015-01-10 00:08:58 +0000389 sys/fanotify.h
Mike Frysingerba10a422015-10-31 00:47:53 -0400390 sys/ipc.h
391 sys/msg.h
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000392 sys/reg.h
Mike Frysingerba10a422015-10-31 00:47:53 -0400393 sys/sem.h
394 sys/shm.h
Dmitry V. Levin30ac0622015-08-03 09:47:25 +0000395 sys/signalfd.h
Masatake YAMATOf5480672014-11-22 19:03:33 +0900396 sys/xattr.h
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000397]))
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000398
399AC_CHECK_HEADERS([asm/sigcontext.h],,, [#include <signal.h>])
400
401AC_CHECK_HEADERS([netinet/tcp.h netinet/udp.h],,, [#include <netinet/in.h>])
402
Mike Frysingerba10a422015-10-31 00:47:53 -0400403AC_CHECK_HEADERS([linux/mqueue.h],,, [#include <linux/types.h>])
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000404
405AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h],,,
406[#include <stddef.h>
Andreas Schwab360986b2010-03-08 16:07:52 +0100407#include <sys/socket.h>
408#include <asm/types.h>])
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000409
Mike Frysinger54646b82015-08-19 13:29:27 -0400410AC_CHECK_HEADERS(m4_normalize([
411 linux/netfilter_arp/arp_tables.h
412 linux/netfilter_bridge/ebtables.h
413 linux/netfilter_ipv4/ip_tables.h
414 linux/netfilter_ipv6/ip6_tables.h
Dmitry V. Levin1ef7aa62016-01-12 21:27:36 +0000415]),,, [#include <netinet/in.h>
Mike Frysinger54646b82015-08-19 13:29:27 -0400416#include <net/if.h>])
Roland McGrath6d2b3492002-12-30 00:51:30 +0000417
Dmitry V. Levin19dadf92015-02-22 02:50:33 +0300418AC_CHECK_HEADERS([linux/input.h], [
419 AC_CHECK_MEMBERS([struct input_absinfo.resolution],,, [#include <linux/input.h>])
420])
421
Dmitry V. Levin4e3ded32015-07-29 16:27:16 +0000422AC_CHECK_HEADERS([linux/bpf.h], [
423 AC_CACHE_CHECK([whether union bpf_attr.log_buf initialization works],
424 [st_cv_have_union_bpf_attr_log_buf],
425 [AC_COMPILE_IFELSE(
426 [AC_LANG_PROGRAM([[#include <linux/bpf.h>]],
427 [[union bpf_attr a = { .log_buf = 0 };]])],
428 [st_cv_have_union_bpf_attr_log_buf=yes],
429 [st_cv_have_union_bpf_attr_log_buf=no])])
430 if test $st_cv_have_union_bpf_attr_log_buf = yes; then
431 AC_DEFINE(HAVE_UNION_BPF_ATTR_LOG_BUF, [1],
432 [Define to 1 if union bpf_attr.log_buf initialization works])
433 fi
434])
435
Dmitry V. Levin67c2f672016-04-26 00:21:26 +0000436AC_CHECK_TYPES([struct statfs], [
437 AC_CHECK_MEMBERS([struct statfs.f_frsize],,, [#include <linux/types.h>
438#include <asm/statfs.h>])
439 AC_CHECK_MEMBERS([struct statfs.f_flags],,, [#include <linux/types.h>
440#include <asm/statfs.h>])
441 AC_CHECK_MEMBERS([struct statfs.f_fsid.val],,, [#include <linux/types.h>
442#include <asm/statfs.h>])
443 AC_CHECK_MEMBERS([struct statfs.f_fsid.__val],,, [#include <linux/types.h>
444#include <asm/statfs.h>])
445],, [#include <linux/types.h>
446#include <asm/statfs.h>])
447
448AC_CHECK_TYPES([struct statfs64], [
449 AC_CHECK_MEMBERS([struct statfs64.f_frsize],,, [#include <linux/types.h>
450#include <asm/statfs.h>])
451 AC_CHECK_MEMBERS([struct statfs64.f_flags],,, [#include <linux/types.h>
452#include <asm/statfs.h>])
453 AC_CHECK_MEMBERS([struct statfs64.f_fsid.val],,, [#include <linux/types.h>
454#include <asm/statfs.h>])
455 AC_CHECK_MEMBERS([struct statfs64.f_fsid.__val],,, [#include <linux/types.h>
456#include <asm/statfs.h>])
457],, [#include <linux/types.h>
458#include <asm/statfs.h>])
459
Dmitry V. Levin799b22a2016-05-26 12:55:41 +0000460AC_CHECK_TYPES([struct blk_user_trace_setup],,, [#include <linux/blktrace_api.h>])
461
Jeff Mahoney8cc69622016-05-18 18:09:39 -0400462AC_CHECK_HEADERS([linux/btrfs.h], [
463 AC_CHECK_MEMBERS(m4_normalize([
464 struct btrfs_ioctl_feature_flags.compat_flags,
465 struct btrfs_ioctl_fs_info_args.nodesize,
466 struct btrfs_ioctl_defrag_range_args.start
467 struct btrfs_ioctl_search_args_v2.buf_size
468 ]),,, [ #include <stdio.h>
469#include <linux/btrfs.h>])
470 AC_CHECK_DECLS(m4_normalize([BTRFS_COMPRESS_NONE, BTRFS_COMPRESS_ZLIB,
471 BTRFS_COMPRESS_LZO]),,,[ #include <stdio.h>
472#include <linux/btrfs.h>])])
473
Roland McGrath6d2b3492002-12-30 00:51:30 +0000474AC_CHECK_DECLS([sys_errlist])
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000475AC_CHECK_DECLS(m4_normalize([
Dmitry V. Levin6974bd42013-11-12 21:20:50 +0000476 PTRACE_PEEKUSER,
Dmitry V. Levinfadf3792015-02-13 00:26:38 +0000477 PTRACE_POKEUSER
Dmitry V. Levind8879f42012-03-25 15:12:16 +0000478]),,, [#include <sys/ptrace.h>])
Roland McGrath6d2b3492002-12-30 00:51:30 +0000479
Dmitry V. Levincf050db2012-05-02 10:21:49 +0000480AC_CHECK_DECLS(m4_normalize([
Dmitry V. Levind8ad1dd2014-04-26 15:22:08 +0000481 P_PID,
482 P_PPID,
483 P_PGID,
484 P_SID,
485 P_CID,
486 P_UID,
487 P_GID,
488 P_ALL,
489 P_LWPID
490]),,, [#include <sys/wait.h>])
491
492AC_CHECK_DECLS(m4_normalize([
Dmitry V. Levinbaf60d92014-04-26 14:12:33 +0000493 LO_FLAGS_READ_ONLY,
Dmitry V. Levincf050db2012-05-02 10:21:49 +0000494 LO_FLAGS_AUTOCLEAR,
495 LO_FLAGS_PARTSCAN
496]),,, [#include <linux/loop.h>])
497
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000498AC_CHECK_DECLS(m4_normalize([
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000499 CTL_PROC,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000500 CTL_ARLAN,
501 CTL_S390DBF,
502 CTL_SUNRPC,
503 CTL_PM,
504 CTL_FRV,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000505 KERN_PRINTK_RATELIMIT,
506 KERN_PRINTK_RATELIMIT_BURST,
507 KERN_PTY,
508 KERN_NGROUPS_MAX,
509 KERN_SPARC_SCONS_PWROFF,
510 KERN_HZ_TIMER,
511 KERN_UNKNOWN_NMI_PANIC,
512 KERN_BOOTLOADER_TYPE,
513 KERN_RANDOMIZE,
514 KERN_SETUID_DUMPABLE,
515 KERN_SPIN_RETRY,
516 KERN_ACPI_VIDEO_FLAGS,
517 KERN_IA64_UNALIGNED,
518 KERN_COMPAT_LOG,
519 KERN_MAX_LOCK_DEPTH,
520 KERN_NMI_WATCHDOG,
521 KERN_PANIC_ON_NMI,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000522 NET_LLC,
523 NET_NETFILTER,
524 NET_DCCP,
525 NET_IRDA,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000526 NET_CORE_DESTROY_DELAY,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000527 NET_CORE_BUDGET,
528 NET_CORE_AEVENT_ETIME,
529 NET_CORE_AEVENT_RSEQTH,
530 NET_CORE_WARNINGS,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000531 NET_IPV4_IGMP_MAX_MSF,
532 NET_TCP_NO_METRICS_SAVE,
533 NET_TCP_DEFAULT_WIN_SCALE,
534 NET_TCP_MODERATE_RCVBUF,
535 NET_TCP_TSO_WIN_DIVISOR,
536 NET_TCP_BIC_BETA,
537 NET_IPV4_ICMP_ERRORS_USE_INBOUND_IFADDR,
538 NET_TCP_CONG_CONTROL,
539 NET_TCP_ABC,
540 NET_IPV4_IPFRAG_MAX_DIST,
541 NET_TCP_MTU_PROBING,
542 NET_TCP_BASE_MSS,
543 NET_IPV4_TCP_WORKAROUND_SIGNED_WINDOWS,
544 NET_TCP_DMA_COPYBREAK,
545 NET_TCP_SLOW_START_AFTER_IDLE,
546 NET_CIPSOV4_CACHE_ENABLE,
547 NET_CIPSOV4_CACHE_BUCKET_SIZE,
548 NET_CIPSOV4_RBM_OPTFMT,
549 NET_CIPSOV4_RBM_STRICTVALID,
550 NET_TCP_AVAIL_CONG_CONTROL,
551 NET_TCP_ALLOWED_CONG_CONTROL,
552 NET_TCP_MAX_SSTHRESH,
553 NET_TCP_FRTO_RESPONSE,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000554 NET_IPV4_ROUTE_GC_MIN_INTERVAL_MS,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000555 NET_IPV4_CONF_FORCE_IGMP_VERSION,
556 NET_IPV4_CONF_ARP_ANNOUNCE,
557 NET_IPV4_CONF_ARP_IGNORE,
558 NET_IPV4_CONF_PROMOTE_SECONDARIES,
559 NET_IPV4_CONF_ARP_ACCEPT,
560 NET_IPV4_CONF_ARP_NOTIFY,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000561 NET_IPV6_MLD_MAX_MSF,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000562 NET_IPV6_ROUTE_GC_MIN_INTERVAL_MS,
Dmitry V. Levin6dbbe072014-04-26 13:54:12 +0000563 VM_MAX_MAP_COUNT,
564 VM_LAPTOP_MODE,
565 VM_BLOCK_DUMP,
566 VM_HUGETLB_GROUP,
567 VM_VFS_CACHE_PRESSURE,
568 VM_LEGACY_VA_LAYOUT,
569 VM_SWAP_TOKEN_TIMEOUT
570]),,,
571[#include <sys/types.h>
572#include <linux/sysctl.h>])
573
Philippe De Muyter0cc96142014-11-03 21:27:40 +0100574AC_CHECK_DECLS(m4_normalize([
575 V4L2_FIELD_ANY,
576 V4L2_FIELD_NONE,
577 V4L2_FIELD_TOP,
578 V4L2_FIELD_BOTTOM,
579 V4L2_FIELD_INTERLACED,
580 V4L2_FIELD_SEQ_TB,
581 V4L2_FIELD_SEQ_BT,
582 V4L2_FIELD_ALTERNATE,
583 V4L2_FIELD_INTERLACED_TB,
584 V4L2_FIELD_INTERLACED_BT,
585 V4L2_BUF_TYPE_VIDEO_CAPTURE,
586 V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE,
587 V4L2_BUF_TYPE_VIDEO_OUTPUT,
588 V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,
589 V4L2_BUF_TYPE_VIDEO_OVERLAY,
590 V4L2_BUF_TYPE_VBI_CAPTURE,
591 V4L2_BUF_TYPE_VBI_OUTPUT,
592 V4L2_BUF_TYPE_SLICED_VBI_CAPTURE,
593 V4L2_BUF_TYPE_SLICED_VBI_OUTPUT,
594 V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY,
595 V4L2_TUNER_RADIO,
596 V4L2_TUNER_ANALOG_TV,
597 V4L2_TUNER_DIGITAL_TV,
598 V4L2_MEMORY_MMAP,
599 V4L2_MEMORY_USERPTR,
600 V4L2_MEMORY_OVERLAY,
601 V4L2_MEMORY_DMABUF,
602 V4L2_COLORSPACE_SMPTE170M,
603 V4L2_COLORSPACE_SMPTE240M,
604 V4L2_COLORSPACE_REC709,
605 V4L2_COLORSPACE_BT878,
606 V4L2_COLORSPACE_470_SYSTEM_M,
607 V4L2_COLORSPACE_470_SYSTEM_BG,
608 V4L2_COLORSPACE_JPEG,
609 V4L2_COLORSPACE_SRGB,
610 V4L2_PRIORITY_UNSET,
611 V4L2_PRIORITY_BACKGROUND,
612 V4L2_PRIORITY_INTERACTIVE,
613 V4L2_PRIORITY_RECORD,
614 V4L2_FRMSIZE_TYPE_DISCRETE,
615 V4L2_FRMSIZE_TYPE_CONTINUOUS,
616 V4L2_FRMSIZE_TYPE_STEPWISE,
617 V4L2_FRMIVAL_TYPE_DISCRETE,
618 V4L2_FRMIVAL_TYPE_CONTINUOUS,
619 V4L2_FRMIVAL_TYPE_STEPWISE,
620 V4L2_CTRL_TYPE_INTEGER,
621 V4L2_CTRL_TYPE_BOOLEAN,
622 V4L2_CTRL_TYPE_MENU,
623 V4L2_CTRL_TYPE_BUTTON,
624 V4L2_CTRL_TYPE_INTEGER64,
625 V4L2_CTRL_TYPE_CTRL_CLASS,
626 V4L2_CTRL_TYPE_STRING,
627 V4L2_CTRL_TYPE_BITMASK,
628 V4L2_CTRL_TYPE_INTEGER_MENU
Dmitry V. Levina8443f82016-05-14 00:36:27 +0000629]),,, [#include <sys/time.h>
630#include <linux/ioctl.h>
631#include <linux/types.h>
632#include <linux/videodev2.h>])
Philippe De Muyter0cc96142014-11-03 21:27:40 +0100633
Dmitry V. Levin25caa312011-08-16 21:36:16 +0000634AC_CACHE_CHECK([for BLKGETSIZE64], [ac_cv_have_blkgetsize64],
635 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
636#include <stdlib.h>
637#include <linux/fs.h>], [return !BLKGETSIZE64;])],
638 [ac_cv_have_blkgetsize64=yes], [ac_cv_have_blkgetsize64=no])]
639 if test $ac_cv_have_blkgetsize64 = yes; then
640 AC_DEFINE([HAVE_BLKGETSIZE64], [1], [Define to 1 if you have BLKGETSIZE64.])
641 fi)
642
Dmitry V. Levin63e4f862012-03-15 20:42:46 +0000643AC_CHECK_SIZEOF([long])
Dmitry V. Levin7a498be2013-05-04 19:51:57 +0000644AC_CHECK_SIZEOF([long long])
Dmitry V. Levin54cabef2014-03-03 23:09:47 +0000645AC_CHECK_SIZEOF([off_t],,[#include <sys/types.h>])
Dmitry V. Levin8c20d892015-05-21 16:19:40 +0000646AC_CHECK_SIZEOF([struct i64_i32],,[struct i64_i32 {long long i64; int i32;};])
Dmitry V. Levin63e4f862012-03-15 20:42:46 +0000647
Dmitry V. Levin59f63d32015-03-05 05:03:41 +0000648AC_CACHE_CHECK([for SIGRTMIN], [st_cv_SIGRTMIN],
649 [[st_cv_SIGRTMIN="$(echo SIGRTMIN |
650 $CPP $CPPFLAGS -P -imacros asm/signal.h - |
651 grep '^[0-9]')"
652 test -n "$st_cv_SIGRTMIN" || st_cv_SIGRTMIN=no]])
653if test "x$st_cv_SIGRTMIN" != xno; then
654 AC_DEFINE_UNQUOTED([ASM_SIGRTMIN], [$st_cv_SIGRTMIN],
655 [SIGRTMIN defined in <asm/signal.h>])
656fi
657AC_CACHE_CHECK([for SA_RESTORER], [st_cv_SA_RESTORER],
658 [st_cv_SA_RESTORER="$(echo SA_RESTORER |
Dmitry V. Levinab3953b2014-02-08 00:15:52 +0000659 $CPP $CPPFLAGS -P -imacros asm/signal.h - |
660 grep ^0x)"
Dmitry V. Levin59f63d32015-03-05 05:03:41 +0000661 test -n "$st_cv_SA_RESTORER" || st_cv_SA_RESTORER=no])
662if test "x$st_cv_SA_RESTORER" != xno; then
663 AC_DEFINE_UNQUOTED([ASM_SA_RESTORER], [$st_cv_SA_RESTORER],
Dmitry V. Levinab3953b2014-02-08 00:15:52 +0000664 [SA_RESTORER defined in <asm/signal.h>])
665fi
666
Dmitry V. Levin38593e92014-02-26 16:51:28 +0000667AC_CACHE_CHECK([for __builtin_popcount], [st_cv_have___builtin_popcount],
668 [AC_LINK_IFELSE([AC_LANG_PROGRAM([], [__builtin_popcount(0)])],
669 [st_cv_have___builtin_popcount=yes],
670 [st_cv_have___builtin_popcount=no])])
671if test "x$st_cv_have___builtin_popcount" = xyes; then
672 AC_DEFINE([HAVE___BUILTIN_POPCOUNT], [1],
673 [Define to 1 if the system provides __builtin_popcount function])
674fi
675
Dmitry V. Levin856b7592015-02-27 05:01:25 +0000676AC_CHECK_LIB([dl], [dladdr], [dl_LIBS='-ldl'], [dl_LIBS=])
Dmitry V. Levin977550d2015-02-27 04:09:56 +0000677if test "x$ac_cv_lib_dl_dladdr" = xyes; then
678 AC_DEFINE([HAVE_DLADDR], [1], [Define to 1 if the system provides dladdr])
Dmitry V. Levin977550d2015-02-27 04:09:56 +0000679fi
680AC_SUBST(dl_LIBS)
681
Roland McGrath6d2b3492002-12-30 00:51:30 +0000682AC_PATH_PROG([PERL], [perl])
683
Luca Clementi327064b2013-07-23 00:11:35 -0700684dnl stack trace with libunwind
685libunwind_CPPFLAGS=
686libunwind_LDFLAGS=
687libunwind_LIBS=
688AC_ARG_WITH([libunwind],
689 [AS_HELP_STRING([--with-libunwind],
690 [use libunwind to implement stack tracing support])],
691 [case "${withval}" in
692 yes|no|check) ;;
693 *) with_libunwind=yes
694 libunwind_CPPFLAGS="-I${withval}/include"
695 libunwind_LDFLAGS="-L${withval}/lib" ;;
696 esac],
697 [with_libunwind=check]
698)
699
700use_libunwind=no
701AS_IF([test "x$with_libunwind" != xno],
702 [saved_CPPFLAGS="$CPPFLAGS"
703 CPPFLAGS="$CPPFLAGS $libunwind_CPPFLAGS"
704
705 AC_CHECK_HEADERS([libunwind-ptrace.h],
706 [saved_LDFLAGS="$LDFLAGS"
707 LDFLAGS="$LDFLAGS $libunwind_LDFLAGS"
708
709 AC_CHECK_LIB([unwind], [backtrace],
710 [libunwind_LIBS="-lunwind $libunwind_LIBS"
711
712 AC_MSG_CHECKING([for unw_create_addr_space in libunwind-generic])
713 saved_LIBS="$LIBS"
714 LIBS="-lunwind-generic $libunwind_LIBS $LIBS"
715
716 AC_LINK_IFELSE(
717 [AC_LANG_PROGRAM([[#include <libunwind-ptrace.h>]],
718 [[return !unw_create_addr_space(0, 0)]])
719 ],
720 [AC_MSG_RESULT([yes])
721 libunwind_LIBS="-lunwind-generic $libunwind_LIBS"
722
723 AC_CHECK_LIB([unwind-ptrace], [_UPT_create],
724 [libunwind_LIBS="-lunwind-ptrace $libunwind_LIBS"
725 use_libunwind=yes
726 ],
727 [if test "x$with_libunwind" != xcheck; then
728 AC_MSG_FAILURE([failed to find _UPT_create in libunwind-ptrace])
729 fi
730 ],
731 [$libunwind_LIBS]
732 )
733 ],
734 [AC_MSG_RESULT([no])
735 if test "x$with_libunwind" != xcheck; then
736 AC_MSG_FAILURE([failed to find unw_create_addr_space in libunwind-generic])
737 fi
738 ]
739 )
740
741 LIBS="$saved_LIBS"
742 ],
743 [if test "x$with_libunwind" != xcheck; then
744 AC_MSG_FAILURE([failed to find libunwind])
745 fi
746 ],
747 [$libunwind_LIBS]
748 )
749
750 LDFLAGS="$saved_LDFLAGS"
751 ],
752 [if test "x$with_libunwind" != xcheck; then
753 AC_MSG_FAILURE([failed to find libunwind-ptrace.h])
754 fi
755 ]
756 )
757
758 CPPFLAGS="$saved_CPPFLAGS"
759 ]
760)
761
762dnl enable libunwind
763AC_MSG_CHECKING([whether to enable stack tracing support using libunwind])
764if test "x$use_libunwind" = xyes; then
765 AC_DEFINE([USE_LIBUNWIND], 1, [Compile stack tracing functionality])
766 AC_SUBST(libunwind_LIBS)
767 AC_SUBST(libunwind_LDFLAGS)
768 AC_SUBST(libunwind_CPPFLAGS)
769fi
770AM_CONDITIONAL([USE_LIBUNWIND], [test "x$use_libunwind" = xyes])
771AC_MSG_RESULT([$use_libunwind])
772
Dmitry V. Levind59287d2015-01-13 04:57:27 +0000773if test "$arch" = mips && test "$no_create" != yes; then
774 mkdir -p linux/mips
775 if $srcdir/linux/mips/genstub.sh linux/mips; then
776 AC_MSG_RESULT([Generated MIPS syscallent stubs])
777 else
778 AC_MSG_FAILURE([Failed to generate syscallent stubs])
779 fi
780fi
781
Dmitry V. Levinf8b49132015-07-23 11:19:47 +0000782st_MPERS([m32], [aarch64|powerpc64|sparc64|tile|x32|x86_64])
783st_MPERS([mx32], [x86_64])
Dmitry V. Levin679c47c2015-01-23 22:45:02 +0000784
Dmitry V. Levine2b3df22016-06-07 18:04:53 +0000785AC_CONFIG_FILES([Makefile
786 tests/Makefile
787 tests-m32/Makefile
788 tests-mx32/Makefile
789 strace.spec])
Roland McGrath6d2b3492002-12-30 00:51:30 +0000790AC_OUTPUT