RPM Package Manager, CVS Repository http://rpm5.org/cvs/ ____________________________________________________________________________
Server: rpm5.org Name: Ralf S. Engelschall Root: /v/rpm/cvs Email: [EMAIL PROTECTED] Module: rpm Date: 25-Jun-2007 09:38:03 Branch: HEAD Handle: 2007062508380300 Modified files: rpm configure.ac Log: bundle cruel platform hacks together Summary: Revision Changes Path 2.124 +13 -15 rpm/configure.ac ____________________________________________________________________________ patch -p0 <<'@@ .' Index: rpm/configure.ac ============================================================================ $ cvs diff -u -r2.123 -r2.124 configure.ac --- rpm/configure.ac 25 Jun 2007 07:32:37 -0000 2.123 +++ rpm/configure.ac 25 Jun 2007 07:38:03 -0000 2.124 @@ -399,14 +399,25 @@ AC_CHECK_HEADERS(aio.h) AC_SEARCH_LIBS(aio_read, [c rt aio posix4]) -dnl # platform-hack for MiNT +dnl # FIXME: platform-hack: MiNT AC_CHECK_LIB(port, writev) -dnl # AmigaOS and IXEmul have a fork() dummy +dnl # FIXME: platform-hack: AmigaOS and IXEmul have a fork() dummy case "$target" in m68k-*-amigaos ) CFLAGS="$CFLAGS -Dfork=vfork" ;; esac +dnl # FIXME: platform-hack: SCO and SunOS 4.x +if echo "$build_os" | grep sco > /dev/null; then + AC_DEFINE(NEED_STRINGS_H, 1, [Define as one if we need to include <strings.h> (along with <string.h>)]) + AC_DEFINE(HAVE_STRUCT_MNTTAB, 1, [Define as 1 if you have "struct mnttab" (only sco?)]) +elif echo "$build_os" | grep sunos > /dev/null; then + CFLAGS="$CFLAGS -D__USE_FIXED_PROTOTYPES__" + AC_DEFINE(NEED_STRINGS_H, 1, [Define as one if we need to include <strings.h> (along with <string.h>)]) + AC_DEFINE(NEED_MYREALLOC, 1, [Define as 1 if we need myrealloc]) + AC_LIBOBJ(myrealloc) +fi + dnl # statfs portability fiddles. AC_MSG_CHECKING(for struct statfs) found_struct_statfs=no @@ -966,19 +977,6 @@ fi AC_SUBST(tmpdir) -if echo "$build_os" | grep sco > /dev/null; then - echo "hacking things up for sco" - AC_DEFINE(NEED_STRINGS_H, 1, [Define as one if we need to include <strings.h> (along with <string.h>)]) - AC_DEFINE(HAVE_STRUCT_MNTTAB, 1, - [Define as 1 if you have "struct mnttab" (only sco?)]) -elif echo "$build_os" | grep sunos > /dev/null; then - echo "hacking things up for sunos" - CFLAGS="$CFLAGS -D__USE_FIXED_PROTOTYPES__" - AC_DEFINE(NEED_STRINGS_H, 1, [Define as one if we need to include <strings.h> (along with <string.h>)]) - AC_DEFINE(NEED_MYREALLOC, 1, [Define as 1 if we need myrealloc]) - AC_LIBOBJ(myrealloc) -fi - # get rid of the 4-th tuple, if config.guess returned "linux-gnu" for build_os if echo "$build_os" | grep '.*-gnulibc1' > /dev/null ; then build_os=`echo "${build_os}" | sed 's/-gnulibc1$//'` @@ . ______________________________________________________________________ RPM Package Manager http://rpm5.org CVS Sources Repository rpm-cvs@rpm5.org