]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Remove spaces from Makefile.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 8 Aug 2017 09:43:51 +0000 (09:43 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 8 Aug 2017 09:43:51 +0000 (09:43 +0000)
git-svn-id: file:///svn/unbound/trunk@4297 be551aaa-1e26-0410-a405-d3ace91eadb9

configure
configure.ac
doc/Changelog

index 64040541ced760c087f8ca95fc2f59452cb30da9..ca28cef42b11804ac7deb13a4e526d281d68511d 100755 (executable)
--- a/configure
+++ b/configure
@@ -16464,7 +16464,9 @@ if test x"$ax_pthread_ok" = xyes; then
 
 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
 
-               LIBS="$PTHREAD_LIBS $LIBS"
+               if test -n "$PTHREAD_LIBS"; then
+                 LIBS="$PTHREAD_LIBS $LIBS"
+               fi
                CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
                CC="$PTHREAD_CC"
                ub_have_pthreads=yes
@@ -16894,8 +16896,16 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
 
-      LIBS="$PYTHON_LDFLAGS $LIBS"
-      CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
+      if test -n "$LIBS"; then
+        LIBS="$PYTHON_LDFLAGS $LIBS"
+      else
+        LIBS="$PYTHON_LDFLAGS"
+      fi
+      if test -n "$CPPFLAGS"; then
+        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
+      else
+        CPPFLAGS="$PYTHON_CPPFLAGS"
+      fi
       ub_have_python=yes
       PC_PY_DEPENDENCY="python"
 
@@ -20658,7 +20668,12 @@ $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
   fi
 
 
-LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
+if test -n "$LATE_LDFLAGS"; then
+  LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
+fi
+# remove start spaces
+LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
+LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
 
 
 cat >>confdefs.h <<_ACEOF
index e94abe0b31fd747e54eb201089f5299bec9103ec..ac09819182d146938cc949ef2e82a291a38e94ca 100644 (file)
@@ -456,7 +456,9 @@ ub_have_pthreads=no
 if test x_$withval != x_no; then
        AX_PTHREAD([
                AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.])
-               LIBS="$PTHREAD_LIBS $LIBS"
+               if test -n "$PTHREAD_LIBS"; then
+                 LIBS="$PTHREAD_LIBS $LIBS"
+               fi
                CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
                CC="$PTHREAD_CC"
                ub_have_pthreads=yes
@@ -558,8 +560,16 @@ if test x_$ub_test_python != x_no; then
       AC_SUBST(PY_MAJOR_VERSION)
       # Have Python
       AC_DEFINE(HAVE_PYTHON,1,[Define if you have Python libraries and header files.])
-      LIBS="$PYTHON_LDFLAGS $LIBS"
-      CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
+      if test -n "$LIBS"; then
+        LIBS="$PYTHON_LDFLAGS $LIBS"
+      else
+        LIBS="$PYTHON_LDFLAGS"
+      fi
+      if test -n "$CPPFLAGS"; then
+        CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
+      else
+        CPPFLAGS="$PYTHON_CPPFLAGS"
+      fi
       ub_have_python=yes
       PC_PY_DEPENDENCY="python"
       AC_SUBST(PC_PY_DEPENDENCY)
@@ -1457,7 +1467,12 @@ AC_SUBST(ALLTARGET)
 AC_SUBST(INSTALLTARGET)
 
 ACX_STRIP_EXT_FLAGS
-LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
+if test -n "$LATE_LDFLAGS"; then
+  LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
+fi
+# remove start spaces 
+LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
+LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
 
 AC_DEFINE_UNQUOTED([MAXSYSLOGMSGLEN], [10240], [Define to the maximum message length to pass to syslog.])
 
index 60d1f070c195da20e4332981e0fbe2ddc3233e63..3508447a7439e2e3705c8c08f0b2d8bd208581a7 100644 (file)
@@ -1,5 +1,6 @@
 8 August 2017: Wouter
        - Fix #1398: make cachedb secret configurable.
+       - Remove spaces from Makefile.
 
 7 August 2017: Wouter
        - Fix #1397: Recursive DS lookups for AS112 zones names should recurse.