[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: netbsd build update
From: |
Jason Stover |
Subject: |
Re: netbsd build update |
Date: |
Sun, 25 Feb 2007 23:02:08 -0500 |
User-agent: |
Mutt/1.5.10i |
I'm checking this now. I have an old (pre-2.60) version of autoconf,
and make -f Smake is giving me trouble on this macro:
configure:42689: error: possibly undefined macro: AC_PROG_MKDIR_P
This is defined in gl/m4/gnulib-common.m4 and should overcome
the problem of having an old version of autoconf.
I'm upgrading my version of autoconf, but I thought I would mention
the problem with this macro.
-Jason
On Sat, Feb 24, 2007 at 09:22:57PM -0800, Ben Pfaff wrote:
> Jason Stover <address@hidden> writes:
>
> >> > Short answer: The alpha chip does not comply entirely with ieee 754.
> >> > The -mieee option to gcc fixes the problem. Maybe this option should be
> >> > added conditionally in Makefile.am (or wherever such things go).
>
> Somehow this (from months ago) slipped through the cracks.
> Here's a proposed patch to fix the problem. (I'm aware that
> there are other netbsd portability problems, too.)
>
> Work for you?
>
> Index: acinclude.m4
> ===================================================================
> RCS file: /cvsroot/pspp/pspp/acinclude.m4,v
> retrieving revision 1.10
> diff -u -p -r1.10 acinclude.m4
> --- acinclude.m4 16 Feb 2007 19:24:25 -0000 1.10
> +++ acinclude.m4 25 Feb 2007 05:21:26 -0000
> @@ -63,10 +63,10 @@ AC_DEFUN([PSPP_OFF_T],
> `--disable-largefile' or `CFLAGS=-ansi'.])])
> ])
>
> -dnl Check whether a warning flag is accepted.
> +dnl Check whether a C compiler option is accepted.
> dnl If so, add it to CFLAGS.
> -dnl Example: PSPP_ENABLE_WARNING(-Wdeclaration-after-statement)
> -AC_DEFUN([PSPP_ENABLE_WARNING],
> +dnl Example: PSPP_ENABLE_OPTION(-Wdeclaration-after-statement)
> +AC_DEFUN([PSPP_ENABLE_OPTION],
> [
> m4_define([pspp_cv_name], [pspp_cv_[]m4_translit([$1], [-], [_])])dnl
> AC_CACHE_CHECK([whether $CC accepts $1], [pspp_cv_name],
> Index: configure.ac
> ===================================================================
> RCS file: /cvsroot/pspp/pspp/configure.ac,v
> retrieving revision 1.54
> diff -u -p -r1.54 configure.ac
> --- configure.ac 16 Feb 2007 19:24:25 -0000 1.54
> +++ configure.ac 25 Feb 2007 05:21:26 -0000
> @@ -14,7 +14,8 @@ AM_PROG_CC_C_O
> AC_LIBTOOL_DLOPEN
> AC_PROG_LIBTOOL
>
> -PSPP_ENABLE_WARNING(-Wdeclaration-after-statement)
> +PSPP_ENABLE_OPTION(-Wdeclaration-after-statement)
> +PSPP_ENABLE_OPTION(-mieee)
>
> AM_CONDITIONAL(cc_is_gcc, test x"$GCC" = x"yes" )
>
>
> --
> A bicycle is one of the world's beautiful machines, beautiful machines
> are art, and art is civilisation, good living, and balm to the soul.
> --Elisa Francesca Roselli