$ configure --with-licq-includes=../../licq/include/

now works. the problem was that the first LICQ_FIND_FILE founded the file (and 
replaced $licq_licq_includes as a relative thing. 

i asume /dev/null existes, and cut utilty is installed. (yeah... we should use 
AC_CHECK_PROGS)

-- 
Buenos Aires, Argentina
? autom4te.cache
? stamp-h1
Index: admin/acinclude.m4.in
===================================================================
RCS file: /cvsroot/licq/licq-common/admin/acinclude.m4.in,v
retrieving revision 1.18
diff -u -d -p -r1.18 acinclude.m4.in
--- admin/acinclude.m4.in	15 Feb 2003 15:27:27 -0000	1.18
+++ admin/acinclude.m4.in	6 Mar 2003 03:59:57 -0000
@@ -46,7 +46,15 @@ AC_DEFUN(LICQ_CHECK_LICQ,
     [  --with-licq-includes    where the Licq daemon includes are located.],
     [  licq_licq_includes="$withval" ])
 
+  
   if test -n "$licq_licq_includes"; then
+    # resolv relatives path
+    if test "`echo $licq_licq_includes|cut -b1`" != "/" ; then
+      relpath="`(cd $licq_licq_includes && pwd) 2>/dev/null`"
+      if test -n "$relpath" ;  then
+         licq_licq_includes="$relpath"
+      fi
+    fi
     LICQ_FIND_FILE(licq_icqd.h, $licq_licq_includes, licq_inc)
   else
     licq_paths="$prefix/include/licq \
@@ -54,7 +62,6 @@ AC_DEFUN(LICQ_CHECK_LICQ,
                 /usr/include/licq"
 
     relpath=`cd $srcdir/../../include && pwd`
-
     if test -r $relpath/licq_icqd.h; then
       LICQ_FIND_FILE(licq_icqd.h, $relpath, licq_inc)
     else

Attachment: pgp00000.pgp
Description: signature

Reply via email to