From: Yavor Doganov <yavor@gnu.org>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: Yavor Doganov <yavor@gnu.org>, 647@emacsbugs.donarmstrong.com
Subject: bug#647: 23.0.60; NSInteger changes in nsterm.h break the GNUstep build
Date: Mon, 04 Aug 2008 20:40:12 +0300 [thread overview]
Message-ID: <873alkbrwj.GNU's_Not_Unix!%yavor@gnu.org> (raw)
In-Reply-To: <87ljzclq8t.fsf@stupidchicken.com>
Chong Yidong wrote:
>
> Could you apply the following patch and see if it does the right
> thing?
No, it doesn't work; relevant part from config.log:
configure:14873: gcc -c -O2 -D_BSD_SOURCE conftest.c >&5
conftest.c:86:38: error: Foundation/NSObjCRuntime.h: No such file or directory
conftest.c: In function 'main':
conftest.c:90: error: 'NSInteger' undeclared (first use in this function)
conftest.c:90: error: (Each undeclared identifier is reported only once
conftest.c:90: error: for each function it appears in.)
conftest.c:90: error: expected ';' before 'i'
configure:14879: $? = 1
configure: failed program was:
(Please tell me if you need that relevantly long program)
Apparently it is not possible to check at this place in configure.in
where CPPFLAGS is already reset and do not include
-I/usr/include/GNUstep (and the current language is C).
Furthermore, is there a compelling reason to use the obsolete and
known to be broken macro AC_TRY_COMPILE? Emacs' configure.in already
requires Autoconf 2.61 (which is a fairly modern release), and there
should be zero impact on users since only developers regenerate the
build system (and `configure' is kept in CVS anyway for those that
build Emacs from CVS and do not have a recent Autoconf release).
The following (roughly equivalent to your change) works for me:
--- configure.in 04 авг 2008 20:21:35 +0300 1.552
+++ configure.in 04 авг 2008 20:21:53 +0300
@@ -1236,6 +1236,11 @@
LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
fi
AC_CHECK_HEADER(AppKit/AppKit.h, HAVE_NS=yes)
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <Foundation/NSObjCRuntime.h>],
+ [NSInteger i;])],
+ [AC_DEFINE([NS_HAVE_INTEGER], [1],
+ [Define to 1 if `NSInteger' is defined.])],
+ [])
fi
if test "${HAVE_NS}" = yes; then
window_system=nextstep
next prev parent reply other threads:[~2008-08-04 17:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-04 16:05 bug#647: 23.0.60; NSInteger changes in nsterm.h break the GNUstep build Chong Yidong
2008-08-04 17:40 ` Yavor Doganov [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-08-05 18:21 Yavor Doganov
2008-08-04 14:24 Yavor Doganov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='873alkbrwj.GNU'\''s_Not_Unix'\!'%yavor@gnu.org' \
--to=yavor@gnu.org \
--cc=647@emacsbugs.donarmstrong.com \
--cc=cyd@stupidchicken.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.