Erlang/OTP Forums

Author Message

<  Ejabberd mailing list  ~  autoconf bugs

Guest
Posted: Tue Mar 06, 2007 7:02 pm Reply with quote
Guest
I install various libraries in non-standard places which tends to show up
bugs in configure scripts....

--- configure.ac~ 2007-03-06 18:57:20.000000000 +0000
+++ configure.ac 2007-03-06 18:58:26.000000000 +0000
@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.53)
-AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
+AC_INIT(ejabberd,, ejabberd@jabber.ru)

# Checks for programs.
AC_PROG_CC
--- aclocal.m4~ 2007-03-06 18:49:02.000000000 +0000
+++ aclocal.m4 2007-03-06 18:49:30.000000000 +0000
@@ -266,19 +266,19 @@
if test x"$tls" != x; then
for ssl_prefix in $withval /usr/local/ssl /usr/lib/ssl /usr/ssl
/usr/pkg /usr/local /usr; do
printf "looking for openssl in $ssl_prefix...\n"
- SSL_CFLAGS="-I$ssl_prefix/include/openssl"
+ SSL_CFLAGS="-I$ssl_prefix/include"
SSL_LIBS="-L$ssl_prefix/lib -lcrypto"
AC_CHECK_LIB(ssl, SSL_new, [ have_openssl=yes ], [ have_openssl=no ], [ $SSL_LIBS $SSL_CFLAGS ])
if test x"$have_openssl" = xyes; then
save_CPPFLAGS=$CPPFLAGS
- CPPFLAGS="-I$ssl_prefix/lib $CPPFLAGS"
+ CPPFLAGS="-I$ssl_prefix/include $CPPFLAGS"
AC_CHECK_HEADERS(openssl/ssl.h, have_openssl_h=yes)
CPPFLAGS=$save_CPPFLAGS
if test x"$have_openssl_h" = xyes; then
have_openssl=yes
printf "openssl found in $ssl_prefix\n";
SSL_LIBS="-L$ssl_prefix/lib -lssl -lcrypto"
- CPPFLAGS="-I$ssl_prefix/lib $CPPFLAGS"
+ CPPFLAGS="-I$ssl_prefix/include $CPPFLAGS"
SSL_CFLAGS="-DHAVE_SSL"
break
fi

Tony.
--
f.a.n.finch <dot@dotat.at> http://dotat.at/
HUMBER THAMES: SOUTHERLY 4 OR 5 VEERING NORTHWESTERLY 3 OR 4. ROUGH DECREASING
MODERATE. RAIN OR SQUALLY SHOWERS. MODERATE OR GOOD.
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Wed Mar 07, 2007 5:18 pm Reply with quote
Guest
On Tue, 6 Mar 2007, Tony Finch wrote:

> I install various libraries in non-standard places which tends to show up
> bugs in configure scripts....

another one:

--- configure.ac~ 2007-03-07 17:17:33.000000000 +0000
+++ configure.ac 2007-03-07 17:17:43.000000000 +0000
@@ -21,7 +21,7 @@
AC_C_CONST

# Change default prefix
-AC_PREFIX_DEFAULT /
+AC_PREFIX_DEFAULT(/)

# Checks for library functions.
AC_FUNC_MALLOC

Tony.
--
f.a.n.finch <dot@dotat.at> http://dotat.at/
SOUTH UTSIRE: SOUTHERLY 4 OR 5, OCCASIONALLY 6. VERY ROUGH DECREASING ROUGH.
RAIN OR SHOWERS. MODERATE OR GOOD.
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Wed Mar 07, 2007 5:38 pm Reply with quote
Guest
On Tue, 6 Mar 2007, Tony Finch wrote:

> I install various libraries in non-standard places which tends to show up
> bugs in configure scripts....

Also:

--- aclocal.m4~ 2007-03-07 17:30:43.000000000 +0000
+++ aclocal.m4 2007-03-07 17:31:45.000000000 +0000
@@ -19,11 +19,14 @@
fi
expat_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $EXPAT_CFLAGS"
+ expat_save_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
AC_CHECK_HEADERS(expat.h, , expat_found=no)
if test $expat_found = no; then
AC_MSG_ERROR([Could not find expat.h])
fi
CFLAGS="$expat_save_CFLAGS"
+ CPPFLAGS="$expat_save_CPPFLAGS"

AC_SUBST(EXPAT_CFLAGS)
AC_SUBST(EXPAT_LIBS)
@@ -50,11 +53,14 @@
fi
zlib_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $ZLIB_CFLAGS"
+ zlib_save_CPPFLAGS="$CFLAGS"
+ CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS"
AC_CHECK_HEADERS(zlib.h, , zlib_found=no)
if test $zlib_found = no; then
AC_MSG_ERROR([Could not find zlib.h])
fi
CFLAGS="$zlib_save_CFLAGS"
+ CPPFLAGS="$zlib_save_CPPFLAGS"

AC_SUBST(ZLIB_CFLAGS)
AC_SUBST(ZLIB_LIBS)

Tony.
--
f.a.n.finch <dot@dotat.at> http://dotat.at/
HUMBER THAMES DOVER:: NORTHWEST BACKING SOUTHWEST 3 OR 4, OCCASIONALLY 5.
SLIGHT OR MODERATE, OCCASIONALLY ROUGH. SHOWERS. GOOD..
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Fri Mar 09, 2007 9:57 am Reply with quote
Guest
2007/3/7, Tony Finch <dot@dotat.at>:
> On Tue, 6 Mar 2007, Tony Finch wrote:
>
> > I install various libraries in non-standard places which tends to show up
> > bugs in configure scripts....

Hi Tony and thanks for your patches. They have been added in ticket
EJAB-204 for reviewing. You can check the status of their integration
on this page :
https://support.process-one.net/browse/EJAB-204

J

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum