Skip to content
Snippets Groups Projects
Commit 4eb1f497 authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

No use making the list longer with PostgresNative since it always

exists. Fixed the Java reporting in a less ad-hoc way.

Rev: lib/modules/Tools.pmod/Install.pmod:1.41
parent 5a3a5807
Branches
Tags
No related merge requests found
...@@ -48,19 +48,17 @@ array(string) features() ...@@ -48,19 +48,17 @@ array(string) features()
a += ({ "profiling" }); a += ({ "profiling" });
#endif #endif
#if constant (Java.machine) #if 0
a += ({"Java"}); // No use reporting stuff that always exists. This list is for
#if constant (Java.NATIVE_METHODS) // things that might not be compiled in due to configure options,
a += ({"Java.NATIVE_METHODS"}); // missing libs, etc. /mast
#endif
#endif
m += ({ "PostgresNative" }); m += ({ "PostgresNative" });
#endif
foreach(({ "Nettle", "Dbm", "DVB", "_Ffmpeg", "GL", "GLUT", "GTK", "Gdbm", foreach(({ "Nettle", "Dbm", "DVB", "_Ffmpeg", "GL", "GLUT", "GTK", "Gdbm",
"Gmp", "Gz", "_Image_FreeType", "_Image_GIF", "_Image_JPEG", "Gmp", "Gz", "_Image_FreeType", "_Image_GIF", "_Image_JPEG",
"_Image_TIFF", "_Image_TTF", "_Image_XFace", "Image.PNG", "_Image_TIFF", "_Image_TTF", "_Image_XFace", "Image.PNG",
"Mird", "Msql", "Mysql", "Odbc", "Oracle", "Java.machine", "Mird", "Msql", "Mysql", "Odbc", "Oracle",
"PDF.PDFlib", "Perl", "PDF.PDFlib", "Perl",
"Postgres", "SANE", "SDL", "Ssleay", "Yp", "sybase", "_WhiteFish", "Postgres", "SANE", "SDL", "Ssleay", "Yp", "sybase", "_WhiteFish",
"X", "Bz2", "COM", "Fuse", "GTK2", "Gettext", "HTTPAccept", "X", "Bz2", "COM", "Fuse", "GTK2", "Gettext", "HTTPAccept",
...@@ -75,12 +73,12 @@ array(string) features() ...@@ -75,12 +73,12 @@ array(string) features()
{ {
if(modname[0] == '_') if(modname[0] == '_')
modname = replace(modname[1..], "_", "."); modname = replace(modname[1..], "_", ".");
m += ({ modname }); m += ({ (["Java.machine":"Java"])[modname] || modname });
} }
}; };
} }
foreach (({"Regexp.PCRE.Widestring"}), string symbol) foreach (({"Regexp.PCRE.Widestring", "Java.NATIVE_METHODS"}), string symbol)
catch { catch {
if (!zero_type(all_constants()[symbol]) || if (!zero_type(all_constants()[symbol]) ||
!zero_type(master()->resolv(symbol))) !zero_type(master()->resolv(symbol)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment