3 AC_MSG_CHECKING(for supported operating system)
29 AC_MSG_ERROR(this operating system is not yet supported by strace)
34 # Autoheader trick. Heh, heh.
36 @@@syms="$syms LINUX SUNOS4 SVR4 FREEBSD"@@@
39 AC_MSG_CHECKING(for supported architecture)
72 AC_MSG_ERROR(this architecture is not yet supported by strace)
77 # Autoheader trick. Heh, heh.
79 @@@syms="$syms I386 IA64 M68K SPARC MIPS ALPHA ARM POWERPC S390 HPPA"@@@
83 if [ -d "$srcdir/$opsys/$arch" ]; then
87 OPSYS=`echo $opsys | tr '[a-z]' '[A-Z]'`
88 ARCH=`echo $arch | tr '[a-z]' '[A-Z]'`
91 CFLAGS="-D_GNU_SOURCE $CFLAGS"
92 AC_CONFIG_HEADER(config.h)
94 AC_DEFINE_UNQUOTED($OPSYS)
97 AC_DEFINE(UNIXWARE, 2)
100 AC_DEFINE(UNIXWARE, 7)
104 AC_DEFINE_UNQUOTED($ARCH)
107 AC_PROG_HOSTCC($host_alias $host)
111 AC_STRUCT_MSG_CONTROL
113 if test "x$OPSYS" = "xSUNOS4" && test "x$ARCH" = "xSPARC"
115 AC_MSG_CHECKING(for valid machine include directory)
116 if test -d "$includedir/sun4"
119 ln -s $includedir/sun4 machine
121 AC_DEFINE(SUNOS4_KERNEL_ARCH_KLUDGE)
127 if test "x$OPSYS" = "xSUNOS4"
131 # SunOS 4.x header files don't declare int functions.
132 WARNFLAGS="$WARNFLAGS -Wno-implicit"
136 AC_PROG_GCC_TRADITIONAL
155 AC_LITTLE_ENDIAN_LONG_LONG
156 AC_OFF_T_IS_LONG_LONG
157 AC_RLIM_T_IS_LONG_LONG
163 if test x$OPSYS != xLINUX; then
164 AC_CHECK_LIB(nsl, main)
166 AC_CHECK_FUNCS(sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl putpmsg prctl sendmsg inet_ntop if_indextoname)
167 AC_CHECK_HEADERS(sys/reg.h sys/filio.h sys/acl.h sys/asynch.h sys/door.h stropts.h sys/conf.h sys/stream.h sys/tihdr.h sys/tiuser.h sys/sysconfig.h asm/sigcontext.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h linux/ptrace.h asm/reg.h linux/icmp.h linux/in6.h sys/uio.h sys/aio.h linux/netlink.h linux/if_packet.h poll.h sys/poll.h sys/vfs.h netinet/tcp.h netinet/udp.h asm/sysmips.h linux/utsname.h sys/nscsys.h)
171 if test ! -d $osarch; then
174 AC_OUTPUT(Makefile $osarch/Makefile)