bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening a can of worms: a readline gnulib module?


From: Sam Steingold
Subject: Re: Opening a can of worms: a readline gnulib module?
Date: Thu, 11 Aug 2005 13:49:38 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

> * Bruno Haible <address@hidden> [2005-08-11 16:46:35 +0200]:
>
>> > +  AC_CHECK_LIB(readline, readline)
>
> Can you please use AC_LIB_LINKFLAGS (from lib-link.m4) instead? So
> that the library is recognized (and the -rpath linker option is used)
> when it is installed in the $PREFIX directory but not in /usr/lib ?

DIUC that the correct order is this:

AC_LIB_LINKFLAGS
AC_CHECK_HEADERS
AC_SEARCH_LIBS

e.g.

AC_LIB_LINKFLAGS([z])
AC_CHECK_HEADERS(zlib.h)
if test "$ac_cv_header_zlib_h" = "no" ;
then AC_MSG_ERROR([cannot find ZLIB headers])
fi
AC_SEARCH_LIBS(compress2, z)
if test "$ac_cv_search_compress2" = "no"; then
  AC_MSG_ERROR([cannot find ZLIB library])
fi


(one can have AC_CHECK_HEADERS and AC_SEARCH_LIBS in any order)


-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://ffii.org/> <http://www.dhimmi.com/>
<http://pmw.org.il/> <http://www.iris.org.il> <http://www.camera.org>
Good programmers treat Microsoft products as damage and route around it.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]