a/src/configure.ac b/src/configure.ac
...
...
258
AC_CHECK_LIB([dl], [dlopen], [], [])
258
AC_CHECK_LIB([dl], [dlopen], [], [])
259
AC_CHECK_LIB([z], [zlibVersion], [], [])
259
AC_CHECK_LIB([z], [zlibVersion], [], [])
260
260
261
############# Putenv
261
############# Putenv
262
AC_MSG_CHECKING(for type of string parameter to putenv)
262
AC_MSG_CHECKING(for type of string parameter to putenv)
263
AC_LANG_PUSH([C++])
263
AC_TRY_COMPILE([
264
AC_TRY_COMPILE([
264
    #include <stdlib.h>
265
    #include <stdlib.h>
265
  ],[
266
  ],[
266
    putenv((const char *)0);
267
    putenv((const char *)0);
267
  ], rcl_putenv_string_const="1", rcl_putenv_string_const="0")
268
  ], rcl_putenv_string_const="1", rcl_putenv_string_const="0")
268
if test X$rcl_putenv_string_const = X1 ; then
269
if test X$rcl_putenv_string_const = X1 ; then
269
  AC_DEFINE(PUTENV_ARG_CONST, 1, [putenv parameter is const])
270
  AC_DEFINE(PUTENV_ARG_CONST, 1, [putenv parameter is const])
270
fi
271
fi
272
AC_LANG_POP([C++])
271
273
272
274
273
#### Look for Xapian. Done in a strange way to work around autoconf
275
#### Look for Xapian. Done in a strange way to work around autoconf
274
# cache
276
# cache
275
XAPIAN_CONFIG=${XAPIAN_CONFIG:-no}
277
XAPIAN_CONFIG=${XAPIAN_CONFIG:-no}