From: Bruno Haible Date: Sat, 21 May 2011 22:00:35 +0000 (+0200) Subject: setenv: Move AC_LIBOBJ invocations to module description. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c03434c92e62b43c4101d098ab33d54e89c8b39a;p=pspp setenv: Move AC_LIBOBJ invocations to module description. * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from here... * modules/setenv (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index 8820ea4810..57e3815d2a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-21 Bruno Haible + + setenv: Move AC_LIBOBJ invocations to module description. + * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from + here... + * modules/setenv (configure.ac): ... to here. + 2011-05-21 Bruno Haible selinux-h: Move AC_LIBOBJ invocations to module description. diff --git a/m4/setenv.m4 b/m4/setenv.m4 index c8b025ce4c..eaa53b1e3c 100644 --- a/m4/setenv.m4 +++ b/m4/setenv.m4 @@ -1,4 +1,4 @@ -# setenv.m4 serial 22 +# setenv.m4 serial 23 dnl Copyright (C) 2001-2004, 2006-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -38,9 +38,6 @@ AC_DEFUN([gl_FUNC_SETENV], REPLACE_SETENV=1 fi fi - if test $HAVE_SETENV$REPLACE_SETENV != 10; then - AC_LIBOBJ([setenv]) - fi ]) # Like gl_FUNC_SETENV, except prepare for separate compilation diff --git a/modules/setenv b/modules/setenv index 95ff0a0e3d..cf534d29ba 100644 --- a/modules/setenv +++ b/modules/setenv @@ -14,6 +14,9 @@ environ [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1] configure.ac: gl_FUNC_SETENV +if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then + AC_LIBOBJ([setenv]) +fi gl_STDLIB_MODULE_INDICATOR([setenv]) Makefile.am: