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:
Jean-Marc Lasgouttes 2000-01-12 14:21:42 +00:00
parent f20dd3e30e
commit 9c142e223b
3 changed files with 9 additions and 4 deletions

View File

@ -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.

View File

@ -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

View File

@ -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