- bool color = (isatty(1) == 1);
-
- stlplus::env_vector environment;
-
- std::string assets;
- assets.assign(YOINK_DATADIR);
- if (!stlplus::file_readable(assets))
- {
- assets += " ";
- if (color) assets += "\033[1;91m";
- assets += "(no access)";
- if (color) assets += "\033[0m";
- }
-
- std::string datadir = environment["YOINK_DATADIR"];
- if (!datadir.empty())
- {
- if (!stlplus::folder_readable(datadir))
- {
- datadir += " ";
- if (color) datadir += "\033[1;91m";
- datadir += "(no access)";
- if (color) datadir += "\033[0m";
- }
- }
-
- std::string rc_file = environment["YOINKRC"];
- if (!rc_file.empty())
- {
- if (!stlplus::file_readable(rc_file)) rc_file += " (no access)";
- }
-
- std::cout << " Executable: " << argv[0] << std::endl
-#ifdef YOINK_GITHEAD
- << " Commit: "YOINK_GITHEAD << std::endl
-#endif
- << " Version: " << PACKAGE_VERSION << std::endl
- << " Built: " << COMPILE_TIME << std::endl
- << " Compiler: " << COMPILER_STRING << std::endl
- << " Assets: " << assets << std::endl
- << "Build options: ";
-
-#if ENABLE_CLOCK_GETTIME
- print_option("clock_gettime", true);
-#else
- print_option("clock_gettime", false);
-#endif
-#if DEBUG
- print_option("debug", true);
-#else
- print_option("debug", false);
-#endif
-#if WITH_GTK
- print_option("gtk", true);
-#else
- print_option("gtk", false);
-#endif
-#if ENABLE_HOTLOADING
- print_option("hotload", true);