WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
21738
[Gtk] use AC_DEFINE for defines and cleanup configure.ac and gnumakefile.ams
https://bugs.webkit.org/show_bug.cgi?id=21738
Summary
[Gtk] use AC_DEFINE for defines and cleanup configure.ac and gnumakefile.ams
Jan Alonzo
Reported
2008-10-18 21:34:55 PDT
1. Move defines out of the makefiles and into configure.ac. This should be fine now that DRT (at least in Gtk) includes the proper config.h already. 2. Also make configure output quieter by not announcing if we're checking for something: options enabled should already be in the configure result anyway, and besides I don't think anyone reads those things. And it speeds up configure a bit. 3. Plus since most options are enabled by default, switch the option string to use --disable instead. I also removed the "default=yes/no" in help string as --disable already suggests that *this* option is already enabled by default.
Attachments
move defines in AC_DEFINE, cleanup option strings, make configure quieter
(30.28 KB, patch)
2008-10-18 21:36 PDT
,
Jan Alonzo
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jan Alonzo
Comment 1
2008-10-18 21:36:58 PDT
Created
attachment 24499
[details]
move defines in AC_DEFINE, cleanup option strings, make configure quieter Patch to address the points I raised in the bug description
Jan Alonzo
Comment 2
2008-10-25 00:06:55 PDT
Just a note on this. 18:02 < alp> janm: found some sources that still don't use config.h: DerivedSources/webkitmarshal.cpp, gtk2drawing.c, DerivedSources/UserAgentStyleSheetsData.cpp We need to check for these first before landing the patch if ever.
Holger Freyther
Comment 3
2008-10-29 04:33:45 PDT
Comment on
attachment 24499
[details]
move defines in AC_DEFINE, cleanup option strings, make configure quieter
> +if test "$enable_svg_filters" = "yes"; then > + AC_DEFINE([ENABLE_SVG_FILTERS],[0],[Define to enable SVG filters]) > +fi
Why define it to 0? Besides that. I can see how making things more silent can be useful but what happens in the error situation? E.g. it is not said it is searching for jpeg, I don't have it installed, I just get the failure message without actually seeing what was searched for? If that is the case we should do it like many of other autotools consumers.
Jan Alonzo
Comment 4
2008-10-29 04:38:20 PDT
(In reply to
comment #3
)
> (From update of
attachment 24499
[details]
[edit]) > > > +if test "$enable_svg_filters" = "yes"; then > > + AC_DEFINE([ENABLE_SVG_FILTERS],[0],[Define to enable SVG filters]) > > +fi > > Why define it to 0?
Yup it's wrong. Definitely not the way to turn off svg filters by default.
> > Besides that. I can see how making things more silent can be useful but what > happens in the error situation? E.g. it is not said it is searching for jpeg, I > don't have it installed, I just get the failure message without actually seeing > what was searched for? If that is the case we should do it like many of other > autotools consumers.
Yup. I'm planning to update this patch with just the AC_DEFINES stuff and leave out the rest later.
>
Gustavo Noronha (kov)
Comment 5
2009-03-05 18:13:45 PST
Ping?
Martin Robinson
Comment 6
2012-06-20 09:38:14 PDT
Closing this one as it's probably way out of date.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug