2001-02-20 Alex Graveley <alex@ximian.com>
+ * src/soup-core/Makefile.am (libsoup_la_LDFLAGS): remove -release
+ tag so libsoup is named libsoup.so.0.1.9 not libsoup-0.1.9.so.0.0.0
+
+ * soupConf.sh.in (SOUP_INCLUDEDIR): use $CPPFLAGS instead of $CFLAGS.
+
+ * soup-config.in (depend_cflags): use $CPPFLAGS instead of $CFLAGS.
+
+ * configure.in: Clean up to use $CPPFLAGS instead of $CFLAGS for
+ storing glib, gnet, libxml, openssl, nspr, and nss header
+ locations.
+
+2001-02-20 Alex Graveley <alex@ximian.com>
+
* configure.in: cleaned up to no longer link with an SSL
library. Added options --with-nspr-includes, --with-nspr-libs,
--with-nss-includes, --with-nss-libs, --with-openssl-includes, and
SOUP_INTERFACE_AGE=0
SOUP_BINARY_AGE=0
SOUP_VERSION=$SOUP_MAJOR_VERSION.$SOUP_MINOR_VERSION.$SOUP_MICRO_VERSION
-VERSION=$SOUP_VERSION
-PACKAGE=soup
-AC_DIVERT_POP()
-
-LT_RELEASE=$SOUP_VERSION
-LT_CURRENT=$SOUP_INTERFACE_AGE
-LT_REVISION=$SOUP_BINARY_AGE
-LT_AGE=`expr $SOUP_BINARY_AGE - $SOUP_INTERFACE_AGE`
-
AC_SUBST(SOUP_MAJOR_VERSION)
AC_SUBST(SOUP_MINOR_VERSION)
AC_SUBST(SOUP_MICRO_VERSION)
AC_SUBST(SOUP_VERSION)
+AC_DIVERT_POP()
+
+LT_RELEASE=$SOUP_VERSION
+LT_CURRENT=$SOUP_MINOR_VERSION
+LT_REVISION=$SOUP_MICRO_VERSION
+LT_AGE=$SOUP_MINOR_VERSION
AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
+VERSION=$SOUP_VERSION
+PACKAGE=soup
+
# Specify a configuration file
AM_CONFIG_HEADER(config.h)
# Need GLIB
AM_PATH_GLIB(1.2.0,
- [LIBS="$LIBS $GLIB_LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS"],
+ [LIBS="$LIBS $GLIB_LIBS" CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"],
AC_MSG_ERROR(Cannot find GLIB: Is glib-config in path?),
gmodule)
# Need GNET
AM_PATH_GNET(1.0.0,
- [LIBS="$LIBS $GNET_LIBS" CFLAGS="$CFLAGS $GNET_CFLAGS"],
+ [LIBS="$LIBS $GNET_LIBS" CPPFLAGS="$CPPFLAGS $GNET_CFLAGS"],
AC_MSG_ERROR(Cannot find GNET: Is gnet-config in path?))
#GNET_CFLAGS=`gnet-config --cflags gnet`
XML_CFLAGS=`xml-config --cflags`
LIBS="$LIBS $XML_LIBS"
-CFLAGS="$CFLAGS $XML_CFLAGS"
+CPPFLAGS="$CPPFLAGS $XML_CFLAGS"
AC_SUBST(XML_LIBS)
AC_SUBST(XML_CFLAGS)
AC_ARG_WITH(nspr-includes,
[ --with-nspr-includes Specify location of Netscape Portable Runtime headers],[
-CFLAGS="$CFLAGS -I$withval"
-nspr_inc_prefix=$withval
+nspr_inc_prefix=-I$withval
])
AC_ARG_WITH(nspr-libs,
AC_ARG_WITH(nss-includes,
[ --with-nss-includes Specify location of NSS header files],[
-CFLAGS="$CFLAGS -I$withval"
-nss_inc_prefix=$withval
+nss_inc_prefix=-I$withval
])
AC_ARG_WITH(nss-libs,
AC_ARG_WITH(openssl-includes,
[ --with-openssl-includes Specify location of OpenSSL header files],[
-CFLAGS="$CFLAGS -I$withval"
-openssl_inc_prefix=$withval
+openssl_inc_prefix=-I$withval
])
AC_ARG_WITH(openssl-libs,
])
if test "x$enable_ssl" = xyes; then
- save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$CPPFLAGS -I$openssl_inc_prefix -I$nspr_inc_prefix -I$nss_inc_prefix"
+ CPPFLAGS="$CPPFLAGS $openssl_inc_prefix $nspr_inc_prefix $nss_inc_prefix"
AC_CHECK_HEADERS(openssl/ssl.h)
AC_CHECK_HEADERS(openssl/err.h)
- AC_CHECK_HEADERS(prtypes.h)
+ AC_CHECK_HEADERS(prthread.h)
AC_CHECK_HEADERS(security/ssl.h)
AC_CHECK_HEADERS(security/pk11func.h)
- CPPFLAGS="$save_CPPFLAGS"
fi
# Set PACKAGE_SOURCE_DIR in config.h.
# If gcc is the compiler, compile with lots of warnings
if test "x$GCC" = "xyes"; then
- CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
+ CFLAGS="$CFLAGS -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
fi
# doc/Makefile