Author: rfm
Date: Mon Aug 31 07:39:23 2015
New Revision: 38962

URL: http://svn.gna.org/viewcvs/gnustep?rev=38962&view=rev
Log:
Check that LDFLAGS environment variable is consistent with the one used for make

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=38962&r1=38961&r2=38962&view=diff
==============================================================================
--- libs/base/trunk/configure   (original)
+++ libs/base/trunk/configure   Mon Aug 31 07:39:23 2015
@@ -4023,13 +4023,14 @@
 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
 else
   if test "$CC" != "$MAKECC"; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are running 
configure with the compiler ($CC) set to a different value from that used by 
gnustep-make ($MAKECC).  To avoid conflicts/problems, reconfigure/reinstall 
gnustep-make to use $CC or run the gnustep-base configure again with your CC 
environment variable set to $MAKECC" >&5
-$as_echo "$as_me: WARNING: You are running configure with the compiler ($CC) 
set to a different value from that used by gnustep-make ($MAKECC).  To avoid 
conflicts/problems, reconfigure/reinstall gnustep-make to use $CC or run the 
gnustep-base configure again with your CC environment variable set to $MAKECC" 
>&2;}
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are running 
configure with the compiler ($CC) set to a different value from that used by 
gnustep-make ($MAKECC).  To avoid conflicts/problems, reconfigure/reinstall 
gnustep-make to use CC=$CC or run the gnustep-base configure again with your CC 
environment variable set to $MAKECC" >&5
+$as_echo "$as_me: WARNING: You are running configure with the compiler ($CC) 
set to a different value from that used by gnustep-make ($MAKECC).  To avoid 
conflicts/problems, reconfigure/reinstall gnustep-make to use CC=$CC or run the 
gnustep-base configure again with your CC environment variable set to $MAKECC" 
>&2;}
   fi
 fi
 if test "$CPP" = ""; then
@@ -4037,8 +4038,8 @@
   export CPP
 else
   if test "$CPP" != "$MAKECPP"; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are running 
configure with the preprocessor ($CPP) set to a different value from that used 
by gnustep-make ($MAKECPP).  To avoid conflicts/problems, reconfigure/reinstall 
gnustep-make to use $CPP or run the gnustep-base configure again with your CPP 
environment variable set to $MAKECPP" >&5
-$as_echo "$as_me: WARNING: You are running configure with the preprocessor 
($CPP) set to a different value from that used by gnustep-make ($MAKECPP).  To 
avoid conflicts/problems, reconfigure/reinstall gnustep-make to use $CPP or run 
the gnustep-base configure again with your CPP environment variable set to 
$MAKECPP" >&2;}
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are running 
configure with the preprocessor ($CPP) set to a different value from that used 
by gnustep-make ($MAKECPP).  To avoid conflicts/problems, reconfigure/reinstall 
gnustep-make to use CPP=$CPP or run the gnustep-base configure again with your 
CPP environment variable set to $MAKECPP" >&5
+$as_echo "$as_me: WARNING: You are running configure with the preprocessor 
($CPP) set to a different value from that used by gnustep-make ($MAKECPP).  To 
avoid conflicts/problems, reconfigure/reinstall gnustep-make to use CPP=$CPP or 
run the gnustep-base configure again with your CPP environment variable set to 
$MAKECPP" >&2;}
   fi
 fi
 if test "$CXX" = ""; then
@@ -4046,8 +4047,17 @@
   export CXX
 else
   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 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 or run the 
gnustep-base configure again with your CXX environment variable set to 
$MAKECXX" >&2;}
+    { $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=38962&r1=38961&r2=38962&view=diff
==============================================================================
--- libs/base/trunk/configure.ac        (original)
+++ libs/base/trunk/configure.ac        Mon Aug 31 07:39:23 2015
@@ -1056,12 +1056,13 @@
 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
 else
   if test "$CC" != "$MAKECC"; then
-    AC_MSG_WARN([You are running configure with the compiler ($CC) set to a 
different value from that used by gnustep-make ($MAKECC).  To avoid 
conflicts/problems, reconfigure/reinstall gnustep-make to use $CC or run the 
gnustep-base configure again with your CC environment variable set to $MAKECC])
+    AC_MSG_WARN([You are running configure with the compiler ($CC) set to a 
different value from that used by gnustep-make ($MAKECC).  To avoid 
conflicts/problems, reconfigure/reinstall gnustep-make to use CC=$CC or run the 
gnustep-base configure again with your CC environment variable set to $MAKECC])
   fi
 fi
 if test "$CPP" = ""; then
@@ -1069,7 +1070,7 @@
   export CPP
 else
   if test "$CPP" != "$MAKECPP"; then
-    AC_MSG_WARN([You are running configure with the preprocessor ($CPP) set to 
a different value from that used by gnustep-make ($MAKECPP).  To avoid 
conflicts/problems, reconfigure/reinstall gnustep-make to use $CPP or run the 
gnustep-base configure again with your CPP environment variable set to 
$MAKECPP])
+    AC_MSG_WARN([You are running configure with the preprocessor ($CPP) set to 
a different value from that used by gnustep-make ($MAKECPP).  To avoid 
conflicts/problems, reconfigure/reinstall gnustep-make to use CPP=$CPP or run 
the gnustep-base configure again with your CPP environment variable set to 
$MAKECPP])
   fi
 fi
 if test "$CXX" = ""; then
@@ -1077,7 +1078,15 @@
   export CXX
 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 or run the 
gnustep-base configure again with your CXX environment variable set to 
$MAKECXX])
+    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

Reply via email to