summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-09-06 02:45:34 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-09-06 02:45:34 +0000
commit5fd735589f5a69f20cc435476ee03450b5329d03 (patch)
tree891d8f7319a500bd61a29fb36ee6c9872bba8449 /configure.ac
parent4d7564308cef46e20f0e7491dcc51f6c9ea33c22 (diff)
as per leif's patch - make the clearenv check nicer.
SVN revision: 76213
Diffstat (limited to '')
-rw-r--r--configure.ac9
1 files changed, 1 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index efffcf7f9..7187c1c1d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -201,6 +201,7 @@ if test "x$want_quicklaunch" != "xno"; then
201 have_fork="yes" 201 have_fork="yes"
202 AC_DEFINE(HAVE_FORK) 202 AC_DEFINE(HAVE_FORK)
203 ]) 203 ])
204 AC_CHECK_FUNCS([clearenv])
204fi 205fi
205AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x$have_fork" = "xyes" && test "x$have_dlopen" = "xyes"]) 206AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x$have_fork" = "xyes" && test "x$have_dlopen" = "xyes"])
206 207
@@ -732,14 +733,6 @@ extern char **environ;
732 AC_DEFINE(HAVE_ENVIRON, 1, [extern environ exists]) 733 AC_DEFINE(HAVE_ENVIRON, 1, [extern environ exists])
733]) 734])
734 735
735AC_TRY_COMPILE([
736#include <stdlib.h>
737], [
738clearenv();
739], [
740 AC_DEFINE(HAVE_CLEARENV, 1, [extern environ exists])
741])
742
743AC_OUTPUT([ 736AC_OUTPUT([
744Makefile 737Makefile
745elementary.spec 738elementary.spec