]> git.lyx.org Git - features.git/commitdiff
Remove cruft from config.h
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 10 Aug 2007 09:04:41 +0000 (09:04 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 10 Aug 2007 09:04:41 +0000 (09:04 +0000)
* src/support/tempname.cpp: move code about HAVE_MKSTEMP here (only user)

* src/pch.h:
* src/Buffer.cpp:
* configure.ac: remove all traces of utime.h and HAVE_UTIME

* config/lyxinclude.m4: remove WITH_WARNING define (which be rendered useless in
a future commit from christian)

* development/scons/SConstruct: try to update.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19395 a592a061-630c-0410-9148-cb99ea01b6c8

config/lyxinclude.m4
configure.ac
development/scons/SConstruct
src/Buffer.cpp
src/pch.h
src/support/tempname.cpp

index bb1bca12ffcb78b7ea7b2c4bead4c3809601f74e..4b41bce023a86960effcbb318182a959fda4bfaf 100644 (file)
@@ -167,9 +167,6 @@ AC_ARG_ENABLE(warnings,
     fi;])
 if test x$enable_warnings = xyes ; then
   lyx_flags="warnings $lyx_flags"
-  AC_DEFINE(WITH_WARNINGS, 1,
-  [Define this if you want to see the warning directives put here and
-   there by the developpers to get attention])
 fi
 
 ### We might want to disable debug
index c4006e971a2f383d665a98eca6fb75be2113ce3e..1bdc9d2db7551c961100175960f43e8291a8625f 100644 (file)
@@ -234,7 +234,7 @@ AC_LANG_POP(C)
 # some standard header files
 AC_HEADER_DIRENT
 AC_HEADER_MAJOR
-AC_CHECK_HEADERS(sys/time.h sys/types.h sys/select.h strings.h locale.h utime.h sys/utime.h io.h process.h NewAPIs.h)
+AC_CHECK_HEADERS(sys/time.h sys/types.h sys/select.h strings.h locale.h io.h process.h NewAPIs.h)
 
 # some standard structures
 AC_HEADER_STAT
@@ -347,15 +347,6 @@ extern "C"
 char * strerror(int n);
 #endif
 
-#ifdef HAVE_MKSTEMP
-#ifndef HAVE_DECL_MKSTEMP
-#if defined(__cplusplus)
-extern "C"
-#endif
-int mkstemp(char*);
-#endif
-#endif
-
 #if defined(HAVE_OSTREAM) && defined(HAVE_LOCALE) && defined(HAVE_SSTREAM)
 #  define USE_BOOST_FORMAT 1
 #else
index 9509980b6f1a13474bda411076fa60408f520ee5..a6b1aaf92ac6a77e22c4fc3d5f5a71f1d27e55a8 100644 (file)
@@ -158,9 +158,6 @@ opts.AddOptions(
     # BoolOption('pch', 'Whether or not use pch', False),
     # enable assertion, (config.h has ENABLE_ASSERTIOS
     BoolOption('assertions', 'Use assertions', True),
-    # enable warning, (config.h has WITH_WARNINGS)
-    # default to False since MSVC does not have #warning
-    BoolOption('warnings', 'Use warnings', False),
     # config.h define _GLIBCXX_CONCEPT_CHECKS
     # Note: for earlier version of gcc (3.3) define _GLIBCPP_CONCEPT_CHECKS
     BoolOption('concept_checks', 'Enable concept checks', True),
@@ -1009,10 +1006,6 @@ return std::count(a, a+5, 'l');
             'HAVE_GETTEXT',
             'Define to 1 if using system gettext library'
         ),
-        (env.has_key('warnings') and env['warnings'],
-            'WITH_WARNINGS',
-            'Define this if you want to see the warning directives put here and there by the developpers to get attention'
-        ),
         (env.has_key('concept_checks') and env['concept_checks'],
             '_GLIBCXX_CONCEPT_CHECKS',
             'libstdc++ concept checking'
@@ -1080,15 +1073,6 @@ extern "C"
 char * strerror(int n);
 #endif
 
-#ifdef HAVE_MKSTEMP
-#ifndef HAVE_DECL_MKSTEMP
-#if defined(__cplusplus)
-extern "C"
-#endif
-int mkstemp(char*);
-#endif
-#endif
-
 #include <../boost/config.h>
 
 #endif
index e5de38c4822312d9198ff5850e25c63f9feea08e..8a52b65bc730657231a56477c4c49697f63e1d00 100644 (file)
 #include <boost/filesystem/exception.hpp>
 #include <boost/filesystem/operations.hpp>
 
-#if defined (HAVE_UTIME_H)
-#include <utime.h>
-#elif defined (HAVE_SYS_UTIME_H)
-#include <sys/utime.h>
-#endif
-
 #include <iomanip>
 #include <stack>
 #include <sstream>
index 05a5d0419fed87eff49fbc5687ac666469c81a4f..37fc540d8c821df2f449fbc9e8f1913966572ab7 100644 (file)
--- a/src/pch.h
+++ b/src/pch.h
@@ -64,6 +64,4 @@
 #include <stack>
 #include <string>
 #include <utility>
-
-#include <utime.h>
 #include <vector>
index dcb6c9dae0ecebefe8a5d9b970d1e3b3c6b99723..049b863d7e5a4bd5f39798fcf2c80d873608a982 100644 (file)
 # include <unistd.h>
 #endif
 
+#if defined(HAVE_MKSTEMP) && ! defined(HAVE_DECL_MKSTEMP)
+extern "C" int mkstemp(char *);
+#endif
+
 #if !defined(HAVE_MKSTEMP) && defined(HAVE_MKTEMP)
 # include <fcntl.h>
 # ifdef HAVE_SYS_STAT_H