mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Hopefully fix the macro which guesses argument type of putenv()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@418 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f20dd3e30e
commit
9c142e223b
@ -1,5 +1,8 @@
|
||||
2000-01-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* config/lyxinclude.m4 (LYX_FUNC_PUTENV_ARGTYPE): fix the macro,
|
||||
which was bogus for several reasons.
|
||||
|
||||
* src/LaTeX.C (scanAux): fix the regular expression used to scan
|
||||
.aux files.
|
||||
(runBibTeX): ditto.
|
||||
|
@ -616,8 +616,9 @@ AC_DEFUN(LYX_FUNC_PUTENV_ARGTYPE,
|
||||
[AC_MSG_CHECKING([type of argument for putenv()])
|
||||
AC_CACHE_VAL(lyx_cv_func_putenv_arg,dnl
|
||||
[AC_TRY_COMPILE(dnl
|
||||
[#include <cstdlib>
|
||||
extern int putenv(const char *);],,dnl
|
||||
[#include <cstdlib>],
|
||||
[char const * foo = "bar";
|
||||
putenv(foo);],dnl
|
||||
[lyx_cv_func_putenv_arg='char const *'],[lyx_cv_func_putenv_arg='char *'])])
|
||||
AC_MSG_RESULT($lyx_cv_func_putenv_arg)
|
||||
AC_DEFINE_UNQUOTED(PUTENV_TYPE_ARG,$lyx_cv_func_putenv_arg,dnl
|
||||
|
@ -616,8 +616,9 @@ AC_DEFUN(LYX_FUNC_PUTENV_ARGTYPE,
|
||||
[AC_MSG_CHECKING([type of argument for putenv()])
|
||||
AC_CACHE_VAL(lyx_cv_func_putenv_arg,dnl
|
||||
[AC_TRY_COMPILE(dnl
|
||||
[#include <cstdlib>
|
||||
extern int putenv(const char *);],,dnl
|
||||
[#include <cstdlib>],
|
||||
[char const * foo = "bar";
|
||||
putenv(foo);],dnl
|
||||
[lyx_cv_func_putenv_arg='char const *'],[lyx_cv_func_putenv_arg='char *'])])
|
||||
AC_MSG_RESULT($lyx_cv_func_putenv_arg)
|
||||
AC_DEFINE_UNQUOTED(PUTENV_TYPE_ARG,$lyx_cv_func_putenv_arg,dnl
|
||||
|
Loading…
Reference in New Issue
Block a user