update changelog
[debian/amanda] / config / amanda / libs.m4
index 4bf2bc279b322263b6a6c3c0e67e8445ae9acb2d..e22038f5eb94e288f8525568277340ca9a029de6 100644 (file)
@@ -17,7 +17,7 @@
 #   the libcurl distribution for details.
 #
 AC_DEFUN([AMANDA_CHECK_LIBCURL], [
-    case "$target" in
+    case "$host" in
         sparc-sun-solaris2.10) # Solaris 10
         # curl is not in the LD_LIBRARY_PATH on Solaris 10, so we search
         # for it in a few common paths; we then extract the -L flags and
@@ -76,7 +76,7 @@ AC_DEFUN([AMANDA_CHECK_HMAC], [
 #
 AC_DEFUN([AMANDA_CHECK_NET_LIBS], [
     # Make sure we don't use -lnsl and -lsun on Irix systems.
-    case "$target" in
+    case "$host" in
        *sgi-irix*)
                            AC_CHECK_LIB(socket,main)
                            ;;
@@ -104,7 +104,7 @@ AC_DEFUN([AMANDA_CHECK_GLIB], [
     # system-specific search paths.
     AC_PATH_PROG(PKG_CONFIG, pkg-config, [], $LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin)
 
-    case "$target" in
+    case "$host" in
        sparc-sun-solaris2.8) # Solaris 8
            # give the linker a runtime search path; pkg-config doesn't supply this.
            # Users could also specify this with LD_LIBRARY_PATH to both ./configure
@@ -120,8 +120,8 @@ AC_DEFUN([AMANDA_CHECK_GLIB], [
     AM_PATH_GLIB_2_0(2.2.0,,[
        AC_MSG_ERROR(glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help)
     ], gmodule gobject gthread)
-    AMANDA_ADD_CFLAGS($GLIB_CFLAGS)
-    AMANDA_ADD_CPPFLAGS($GLIB_CPPFLAGS)
+    # GLIB_CPPFLAGS is not set by autoconf, yet GLIB_CFLAGS contains what GLIB_CPPFLAGS should contain.
+    AMANDA_ADD_CPPFLAGS($GLIB_CFLAGS)
     AMANDA_ADD_LIBS($GLIB_LIBS)
 ])