Hello everyone,
I am puzzled my a problem which arises when using the autobuild tools
on Linux. I try to compile a simple program which uses signal.h
(sigemptyset(3), sigaction(2)). On Mac OS X I encounter no
difficulties (autoconf 2.59, automake 1.6.3, Mac OS 10.4.2), but when
I try this on a Linux system (fedora and gentoo, automake 1.6.3,
1.9.6, 1.9.2, autoconf 2.59) gcc reports errors which are related to
definitions in the signal.h header. When I try to compile by hand,
everything works fine. Could someone help me out on this? If you need
the full source I can send it.
Thanks for your answers,
Kind regards,
Anton Bossenbroek
My config.in:
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT([OSN-assignment-3], [1.1], [EMAIL PROTECTED], [OSN-
assignment-3])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/fishbones.c])
AM_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([ctype.h err.h errno.h string.h sysexits.h sys/
types.h uninstd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T
AC_TYPE_SIGNAL
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_SETVBUF_REVERSED
AC_SYS_RESTARTABLE_SYSCALLS
AC_CONFIG_FILES([Makefile
src/Makefile
test/Makefile
doc/Makefile])
AC_OUTPUT
Makefile.am in src dir:
fishbonessrc = fishbones.c fishbones.h
gupsrc = gup.h gup.c
cflags = -pedantic -std=c99
noinst_PROGRAMS = fishproc fishexec gup
fishproc_SOURCES = $(fishbonessrc)
fishproc_CFLAGS = $(cflags) -DPROC
fishexec_SOURCES = $(fishbonessrc)
fishexec_CFLAGS = $(cflags) -DEXEC
gup_SOURCES = $(gupsrc)
gup_CLFAGS = $(cflags)
INCLUDES = [EMAIL PROTECTED]@/src