]> git.lyx.org Git - lyx.git/blob - src/main.C
do not reconfigure when not needed
[lyx.git] / src / main.C
1 /**
2  * \file main.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Lars Gullik Bjønnes
7  * \author Jean Marc Lasgouttes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #include <config.h>
13
14 #include "debug.h"
15 #include "lyx_main.h"
16 #include "gettext.h"
17
18 #include "support/os.h"
19
20 #include <boost/filesystem/path.hpp>
21
22 #ifdef HAVE_IOS
23 #include <ios>
24 #endif
25
26
27 namespace os = lyx::support::os;
28 namespace fs = boost::filesystem;
29
30 int main(int argc, char * argv[])
31 {
32 #ifdef HAVE_IOS
33         std::ios_base::sync_with_stdio(false);
34 #endif
35         fs::path::default_name_check(fs::no_check);
36
37         // To avoid ordering of global object problems with some
38         // stdlibs we do the initialization here, but still as
39         // early as possible.
40         lyxerr.rdbuf(std::cerr.rdbuf());
41
42         os::init(argc, argv);
43
44         // initialize for internationalized version *EK*
45         locale_init();
46
47         LyX::exec(argc, argv);
48         return 0;
49 }