let the build with external libs work
authorMichael Wallner <mike@php.net>
Fri, 17 Jan 2014 14:32:46 +0000 (15:32 +0100)
committerMichael Wallner <mike@php.net>
Fri, 17 Jan 2014 14:32:46 +0000 (15:32 +0100)
not sure what all that cruft was about; where are the comments!?

config9.m4

index a5ede93..ce63132 100644 (file)
@@ -187,10 +187,9 @@ dnl ----
                        save_LIBS="$LIBS"
                        LIBS=
                        save_CFLAGS="$CFLAGS"
-                       CFLAGS=`$CURL_CONFIG --cflags`
+                       CFLAGS="$CFLAGS `$CURL_CONFIG --cflags`"
                        save_LDFLAGS="$LDFLAGS"
-                       LDFLAGS=`$CURL_CONFIG --libs`
-                       LDFLAGS="$LDFLAGS $ld_runpath_switch$CURL_DIR/$PHP_LIBDIR"
+                       LDFLAGS="$LDFLAGS `$CURL_CONFIG --libs` $ld_runpath_switch$CURL_DIR/$PHP_LIBDIR"
                
                        AC_MSG_CHECKING([for SSL support in libcurl])
                        CURL_SSL=`$CURL_CONFIG --feature | $EGREP SSL`