From: Enrico Forestieri Date: Fri, 26 Jul 2013 18:48:34 +0000 (+0200) Subject: Fix compiling on platforms lacking setenv X-Git-Tag: 2.1.0beta2~203 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=b885b80bc0074821c8e98b2d64accd74d5bc08d6;p=features.git Fix compiling on platforms lacking setenv Using autotools, the availability of putenv is not checked, so the macro HAVE_PUTENV is not defined and compiling stops with the error "No environment-setting function has been defined." Thus, also check for putenv. --- diff --git a/configure.ac b/configure.ac index c5fc54cddb..4da4881ace 100644 --- a/configure.ac +++ b/configure.ac @@ -173,7 +173,7 @@ fi LYX_CHECK_DEF(PATH_MAX, limits.h, [int n = PATH_MAX;]) -AC_CHECK_FUNCS(chmod close _close fork getpid _getpid lstat mkfifo open _open pclose _pclose popen _popen readlink setenv strerror unsetenv) +AC_CHECK_FUNCS(chmod close _close fork getpid _getpid lstat mkfifo open _open pclose _pclose popen _popen readlink putenv setenv strerror unsetenv) # Check the form of mkdir() AC_FUNC_MKDIR AC_FUNC_SELECT_ARGTYPES