Author: rfm
Date: Thu Sep 3 16:23:20 2015
New Revision: 38967
URL: http://svn.gna.org/viewcvs/gnustep?rev=38967&view=rev
Log:
check flags used at make configure time
Modified:
libs/base/trunk/configure
libs/base/trunk/configure.ac
Modified: libs/base/trunk/configure
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/configure?rev=38967&r1=38966&r2=38967&view=diff
==============================================================================
--- libs/base/trunk/configure (original)
+++ libs/base/trunk/configure Thu Sep 3 16:23:20 2015
@@ -2747,6 +2747,28 @@
fi
+MAKECPPFLAGS=`gnustep-config --variable=CPPFLAGS`
+if test "$CPPFLAGS" = ""; then
+ CPPFLAGS=$MAKECPPFLAGS
+ export CPPFLAGS
+else
+ if test "$CPPFLAGS" != "$MAKECPPFLAGS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are running
configure with the link options ($CPPFLAGS) set to a different value from that
used by gnustep-make ($MAKECPPFLAGS). To avoid conflicts/problems,
reconfigure/reinstall gnustep-make to use CPPFLAGS=$CPPFLAGS or run the
gnustep-base configure again with your CPPFLAGS environment variable set to
$MAKECPPFLAGS" >&5
+$as_echo "$as_me: WARNING: You are running configure with the link options
($CPPFLAGS) set to a different value from that used by gnustep-make
($MAKECPPFLAGS). To avoid conflicts/problems, reconfigure/reinstall
gnustep-make to use CPPFLAGS=$CPPFLAGS or run the gnustep-base configure again
with your CPPFLAGS environment variable set to $MAKECPPFLAGS" >&2;}
+ fi
+fi
+
+MAKELDFLAGS=`gnustep-config --variable=LDFLAGS`
+if test "$LDFLAGS" = ""; then
+ LDFLAGS=$MAKELDFLAGS
+ export LDFLAGS
+else
+ if test "$LDFLAGS" != "$MAKELDFLAGS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are running
configure with the link options ($LDFLAGS) set to a different value from that
used by gnustep-make ($MAKELDFLAGS). To avoid conflicts/problems,
reconfigure/reinstall gnustep-make to use LDFLAGS=$LDFLAGS or run the
gnustep-base configure again with your LDFLAGS environment variable set to
$MAKELDFLAGS" >&5
+$as_echo "$as_me: WARNING: You are running configure with the link options
($LDFLAGS) set to a different value from that used by gnustep-make
($MAKELDFLAGS). To avoid conflicts/problems, reconfigure/reinstall
gnustep-make to use LDFLAGS=$LDFLAGS or run the gnustep-base configure again
with your LDFLAGS environment variable set to $MAKELDFLAGS" >&2;}
+ fi
+fi
+
# We shouldn't be loading GNUstep.sh here. It would load in a lot of
# variables which might get confused with the ones that will be used
# at runtime. We will load it later once we have determined (and
@@ -4023,7 +4045,6 @@
MAKECC=`gnustep-config --variable=CC`
MAKECPP=`gnustep-config --variable=CPP`
MAKECXX=`gnustep-config --variable=CXX`
-MAKELDFLAGS=`gnustep-config --variable=LDFLAGS`
if test "$CC" = ""; then
CC=$MAKECC
export CC
@@ -4049,15 +4070,6 @@
if test "$CXX" != "$MAKECXX"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are running
configure with the compiler ($CXX) set to a different value from that used by
gnustep-make ($MAKECXX). To avoid conflicts/problems, reconfigure/reinstall
gnustep-make to use CXX=$CXX or run the gnustep-base configure again with your
CXX environment variable set to $MAKECXX" >&5
$as_echo "$as_me: WARNING: You are running configure with the compiler ($CXX)
set to a different value from that used by gnustep-make ($MAKECXX). To avoid
conflicts/problems, reconfigure/reinstall gnustep-make to use CXX=$CXX or run
the gnustep-base configure again with your CXX environment variable set to
$MAKECXX" >&2;}
- fi
-fi
-if test "$LDFLAGS" = ""; then
- LDFLAGS=$MAKELDFLAGS
- export LDFLAGS
-else
- if test "$LDFLAGS" != "$MAKELDFLAGS"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are running
configure with the link options ($LDFLAGS) set to a different value from that
used by gnustep-make ($MAKELDFLAGS). To avoid conflicts/problems,
reconfigure/reinstall gnustep-make to use LDFLAGS=$LDFLAGS or run the
gnustep-base configure again with your LDFLAGS environment variable set to
$MAKELDFLAGS" >&5
-$as_echo "$as_me: WARNING: You are running configure with the link options
($LDFLAGS) set to a different value from that used by gnustep-make
($MAKELDFLAGS). To avoid conflicts/problems, reconfigure/reinstall
gnustep-make to use LDFLAGS=$LDFLAGS or run the gnustep-base configure again
with your LDFLAGS environment variable set to $MAKELDFLAGS" >&2;}
fi
fi
ac_ext=c
Modified: libs/base/trunk/configure.ac
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/configure.ac?rev=38967&r1=38966&r2=38967&view=diff
==============================================================================
--- libs/base/trunk/configure.ac (original)
+++ libs/base/trunk/configure.ac Thu Sep 3 16:23:20 2015
@@ -104,6 +104,26 @@
fi
fi
AC_SUBST(BASE_NONFRAGILE_ABI)
+
+MAKECPPFLAGS=`gnustep-config --variable=CPPFLAGS`
+if test "$CPPFLAGS" = ""; then
+ CPPFLAGS=$MAKECPPFLAGS
+ export CPPFLAGS
+else
+ if test "$CPPFLAGS" != "$MAKECPPFLAGS"; then
+ AC_MSG_WARN([You are running configure with the preprocessor options
($CPPFLAGS) set to a different value from that used by gnustep-make
($MAKECPPFLAGS). To avoid conflicts/problems, reconfigure/reinstall
gnustep-make to use CPPFLAGS=$CPPFLAGS or run the gnustep-base configure again
with your CPPFLAGS environment variable set to $MAKECPPFLAGS])
+ fi
+fi
+
+MAKELDFLAGS=`gnustep-config --variable=LDFLAGS`
+if test "$LDFLAGS" = ""; then
+ LDFLAGS=$MAKELDFLAGS
+ export LDFLAGS
+else
+ if test "$LDFLAGS" != "$MAKELDFLAGS"; then
+ AC_MSG_WARN([You are running configure with the link options ($LDFLAGS)
set to a different value from that used by gnustep-make ($MAKELDFLAGS). To
avoid conflicts/problems, reconfigure/reinstall gnustep-make to use
LDFLAGS=$LDFLAGS or run the gnustep-base configure again with your LDFLAGS
environment variable set to $MAKELDFLAGS])
+ fi
+fi
# We shouldn't be loading GNUstep.sh here. It would load in a lot of
# variables which might get confused with the ones that will be used
@@ -1056,7 +1076,6 @@
MAKECC=`gnustep-config --variable=CC`
MAKECPP=`gnustep-config --variable=CPP`
MAKECXX=`gnustep-config --variable=CXX`
-MAKELDFLAGS=`gnustep-config --variable=LDFLAGS`
if test "$CC" = ""; then
CC=$MAKECC
export CC
@@ -1079,14 +1098,6 @@
else
if test "$CXX" != "$MAKECXX"; then
AC_MSG_WARN([You are running configure with the compiler ($CXX) set to a
different value from that used by gnustep-make ($MAKECXX). To avoid
conflicts/problems, reconfigure/reinstall gnustep-make to use CXX=$CXX or run
the gnustep-base configure again with your CXX environment variable set to
$MAKECXX])
- fi
-fi
-if test "$LDFLAGS" = ""; then
- LDFLAGS=$MAKELDFLAGS
- export LDFLAGS
-else
- if test "$LDFLAGS" != "$MAKELDFLAGS"; then
- AC_MSG_WARN([You are running configure with the link options ($LDFLAGS)
set to a different value from that used by gnustep-make ($MAKELDFLAGS). To
avoid conflicts/problems, reconfigure/reinstall gnustep-make to use
LDFLAGS=$LDFLAGS or run the gnustep-base configure again with your LDFLAGS
environment variable set to $MAKELDFLAGS])
fi
fi
AC_PROG_CC
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs